]> code.delx.au - gnu-emacs/blob - configure
Merge from trunk and from gnulib stdio.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, 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 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201 fi
202 fi
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243 fi
244 exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262 { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271 return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342 else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359 else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378 fi
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469 *)
470 ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494 else
495 as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
539
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545 #
546 # Initializations.
547 #
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
556
557 # Identity of this package.
558 PACKAGE_NAME='emacs'
559 PACKAGE_TARNAME='emacs'
560 PACKAGE_VERSION='24.0.50'
561 PACKAGE_STRING='emacs 24.0.50'
562 PACKAGE_BUGREPORT=''
563 PACKAGE_URL=''
564
565 ac_unique_file="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_header_list=
603 gl_getopt_required=POSIX
604 gl_getopt_required=POSIX
605 ac_func_list=
606 ac_subst_vars='gltests_LTLIBOBJS
607 gltests_LIBOBJS
608 gl_LTLIBOBJS
609 gl_LIBOBJS
610 am__EXEEXT_FALSE
611 am__EXEEXT_TRUE
612 LTLIBOBJS
613 LIBOBJS
614 WINDOW_SUPPORT
615 TOOLTIP_SUPPORT
616 MOUSE_SUPPORT
617 LIB_GCC
618 LD_FIRSTFLAG
619 LD_SWITCH_SYSTEM_TEMACS
620 POST_ALLOC_OBJ
621 PRE_ALLOC_OBJ
622 CYGWIN_OBJ
623 RALLOC_OBJ
624 OLDXMENU_DEPS
625 LIBX_OTHER
626 LIBXMENU
627 OLDXMENU
628 OLDXMENU_TARGET
629 LIBXT_OTHER
630 TOOLKIT_LIBW
631 WIDGET_OBJ
632 XOBJ
633 XMENU_OBJ
634 FONT_OBJ
635 OTHER_FILES
636 GNU_OBJC_CFLAGS
637 ns_appsrc
638 ns_appresdir
639 ns_appbindir
640 ns_appdir
641 S_FILE
642 M_FILE
643 X_TOOLKIT_TYPE
644 C_SWITCH_X_SYSTEM
645 C_SWITCH_X_SITE
646 LD_SWITCH_X_SITE
647 gameuser
648 gamedir
649 bitmapdir
650 archlibdir
651 etcdir
652 x_default_search_path
653 lisppath
654 locallisppath
655 lispdir
656 srcdir
657 canonical
658 configuration
659 version
660 KRB4LIB
661 DESLIB
662 KRB5LIB
663 CRYPTOLIB
664 COM_ERRLIB
665 LIBRESOLV
666 LIBHESIOD
667 TERMCAP_OBJ
668 LIBS_TERMCAP
669 LIBGNU_LTLIBDEPS
670 LIBGNU_LIBDEPS
671 gltests_WITNESS
672 HAVE_UNISTD_H
673 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
674 NEXT_UNISTD_H
675 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
676 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
677 TIME_H_DEFINES_STRUCT_TIMESPEC
678 NEXT_AS_FIRST_DIRECTIVE_TIME_H
679 NEXT_TIME_H
680 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
681 NEXT_SYS_STAT_H
682 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
683 NEXT_STDLIB_H
684 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
685 NEXT_STDIO_H
686 REPLACE_VSPRINTF
687 REPLACE_VSNPRINTF
688 REPLACE_VPRINTF
689 REPLACE_VFPRINTF
690 REPLACE_VDPRINTF
691 REPLACE_VASPRINTF
692 REPLACE_TMPFILE
693 REPLACE_STDIO_WRITE_FUNCS
694 REPLACE_SPRINTF
695 REPLACE_SNPRINTF
696 REPLACE_RENAMEAT
697 REPLACE_RENAME
698 REPLACE_REMOVE
699 REPLACE_PRINTF
700 REPLACE_POPEN
701 REPLACE_PERROR
702 REPLACE_OBSTACK_PRINTF
703 REPLACE_GETLINE
704 REPLACE_GETDELIM
705 REPLACE_FTELLO
706 REPLACE_FTELL
707 REPLACE_FSEEKO
708 REPLACE_FSEEK
709 REPLACE_FREOPEN
710 REPLACE_FPURGE
711 REPLACE_FPRINTF
712 REPLACE_FOPEN
713 REPLACE_FFLUSH
714 REPLACE_FCLOSE
715 REPLACE_DPRINTF
716 HAVE_VDPRINTF
717 HAVE_VASPRINTF
718 HAVE_RENAMEAT
719 HAVE_FTELLO
720 HAVE_FSEEKO
721 HAVE_DPRINTF
722 HAVE_DECL_VSNPRINTF
723 HAVE_DECL_SNPRINTF
724 HAVE_DECL_OBSTACK_PRINTF
725 HAVE_DECL_GETLINE
726 HAVE_DECL_GETDELIM
727 HAVE_DECL_FTELLO
728 HAVE_DECL_FSEEKO
729 HAVE_DECL_FPURGE
730 GNULIB_VSPRINTF_POSIX
731 GNULIB_VSNPRINTF
732 GNULIB_VPRINTF_POSIX
733 GNULIB_VPRINTF
734 GNULIB_VFPRINTF_POSIX
735 GNULIB_VFPRINTF
736 GNULIB_VDPRINTF
737 GNULIB_VASPRINTF
738 GNULIB_TMPFILE
739 GNULIB_STDIO_H_SIGPIPE
740 GNULIB_SPRINTF_POSIX
741 GNULIB_SNPRINTF
742 GNULIB_RENAMEAT
743 GNULIB_RENAME
744 GNULIB_REMOVE
745 GNULIB_PUTS
746 GNULIB_PUTCHAR
747 GNULIB_PUTC
748 GNULIB_PRINTF_POSIX
749 GNULIB_PRINTF
750 GNULIB_POPEN
751 GNULIB_PERROR
752 GNULIB_OBSTACK_PRINTF_POSIX
753 GNULIB_OBSTACK_PRINTF
754 GNULIB_GETLINE
755 GNULIB_GETDELIM
756 GNULIB_FWRITE
757 GNULIB_FTELLO
758 GNULIB_FTELL
759 GNULIB_FSEEKO
760 GNULIB_FSEEK
761 GNULIB_FREOPEN
762 GNULIB_FPUTS
763 GNULIB_FPUTC
764 GNULIB_FPURGE
765 GNULIB_FPRINTF_POSIX
766 GNULIB_FPRINTF
767 GNULIB_FOPEN
768 GNULIB_FFLUSH
769 GNULIB_FCLOSE
770 GNULIB_DPRINTF
771 STDINT_H
772 WINT_T_SUFFIX
773 WCHAR_T_SUFFIX
774 SIG_ATOMIC_T_SUFFIX
775 SIZE_T_SUFFIX
776 PTRDIFF_T_SUFFIX
777 HAVE_SIGNED_WINT_T
778 HAVE_SIGNED_WCHAR_T
779 HAVE_SIGNED_SIG_ATOMIC_T
780 BITSIZEOF_WINT_T
781 BITSIZEOF_WCHAR_T
782 BITSIZEOF_SIG_ATOMIC_T
783 BITSIZEOF_SIZE_T
784 BITSIZEOF_PTRDIFF_T
785 HAVE_SYS_BITYPES_H
786 HAVE_SYS_INTTYPES_H
787 HAVE_STDINT_H
788 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
789 NEXT_STDINT_H
790 HAVE_SYS_TYPES_H
791 HAVE_INTTYPES_H
792 HAVE_WCHAR_H
793 HAVE_UNSIGNED_LONG_LONG_INT
794 HAVE_LONG_LONG_INT
795 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
796 NEXT_STDDEF_H
797 STDDEF_H
798 HAVE_WCHAR_T
799 REPLACE_NULL
800 HAVE__BOOL
801 STDBOOL_H
802 APPLE_UNIVERSAL_BUILD
803 REPLACE_TIMEGM
804 REPLACE_NANOSLEEP
805 REPLACE_MKTIME
806 REPLACE_LOCALTIME_R
807 HAVE_TIMEGM
808 HAVE_STRPTIME
809 HAVE_NANOSLEEP
810 HAVE_DECL_LOCALTIME_R
811 GNULIB_TIME_R
812 GNULIB_TIMEGM
813 GNULIB_STRPTIME
814 GNULIB_NANOSLEEP
815 GNULIB_MKTIME
816 REPLACE_UTIMENSAT
817 REPLACE_STAT
818 REPLACE_MKNOD
819 REPLACE_MKFIFO
820 REPLACE_MKDIR
821 REPLACE_LSTAT
822 REPLACE_FUTIMENS
823 REPLACE_FSTATAT
824 REPLACE_FSTAT
825 HAVE_UTIMENSAT
826 HAVE_MKNODAT
827 HAVE_MKNOD
828 HAVE_MKFIFOAT
829 HAVE_MKFIFO
830 HAVE_MKDIRAT
831 HAVE_LSTAT
832 HAVE_LCHMOD
833 HAVE_FUTIMENS
834 HAVE_FSTATAT
835 HAVE_FCHMODAT
836 GNULIB_UTIMENSAT
837 GNULIB_STAT
838 GNULIB_MKNODAT
839 GNULIB_MKNOD
840 GNULIB_MKFIFOAT
841 GNULIB_MKFIFO
842 GNULIB_MKDIRAT
843 GNULIB_LSTAT
844 GNULIB_LCHMOD
845 GNULIB_FUTIMENS
846 GNULIB_FSTATAT
847 GNULIB_FCHMODAT
848 LTLIBINTL
849 LIBINTL
850 GETOPT_H
851 HAVE_GETOPT_H
852 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
853 NEXT_GETOPT_H
854 PRAGMA_COLUMNS
855 PRAGMA_SYSTEM_HEADER
856 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
857 INCLUDE_NEXT
858 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
859 UNISTD_H_HAVE_WINSOCK2_H
860 REPLACE_WRITE
861 REPLACE_USLEEP
862 REPLACE_UNLINKAT
863 REPLACE_UNLINK
864 REPLACE_TTYNAME_R
865 REPLACE_SYMLINK
866 REPLACE_SLEEP
867 REPLACE_RMDIR
868 REPLACE_READLINK
869 REPLACE_PWRITE
870 REPLACE_PREAD
871 REPLACE_LSEEK
872 REPLACE_LINKAT
873 REPLACE_LINK
874 REPLACE_LCHOWN
875 REPLACE_GETPAGESIZE
876 REPLACE_GETGROUPS
877 REPLACE_GETLOGIN_R
878 REPLACE_GETDOMAINNAME
879 REPLACE_GETCWD
880 REPLACE_FCHOWNAT
881 REPLACE_DUP2
882 REPLACE_DUP
883 REPLACE_CLOSE
884 REPLACE_CHOWN
885 HAVE_SYS_PARAM_H
886 HAVE_OS_H
887 HAVE_DECL_TTYNAME_R
888 HAVE_DECL_GETUSERSHELL
889 HAVE_DECL_GETPAGESIZE
890 HAVE_DECL_GETLOGIN_R
891 HAVE_DECL_GETDOMAINNAME
892 HAVE_DECL_FCHDIR
893 HAVE_DECL_ENVIRON
894 HAVE_USLEEP
895 HAVE_UNLINKAT
896 HAVE_SYMLINKAT
897 HAVE_SYMLINK
898 HAVE_SLEEP
899 HAVE_READLINKAT
900 HAVE_READLINK
901 HAVE_PWRITE
902 HAVE_PREAD
903 HAVE_PIPE2
904 HAVE_PIPE
905 HAVE_LINKAT
906 HAVE_LINK
907 HAVE_LCHOWN
908 HAVE_GETPAGESIZE
909 HAVE_GETLOGIN
910 HAVE_GETHOSTNAME
911 HAVE_GETGROUPS
912 HAVE_GETDTABLESIZE
913 HAVE_FTRUNCATE
914 HAVE_FSYNC
915 HAVE_FCHOWNAT
916 HAVE_FCHDIR
917 HAVE_FACCESSAT
918 HAVE_EUIDACCESS
919 HAVE_DUP3
920 HAVE_DUP2
921 HAVE_CHOWN
922 GNULIB_WRITE
923 GNULIB_USLEEP
924 GNULIB_UNLINKAT
925 GNULIB_UNLINK
926 GNULIB_UNISTD_H_SIGPIPE
927 GNULIB_UNISTD_H_GETOPT
928 GNULIB_TTYNAME_R
929 GNULIB_SYMLINKAT
930 GNULIB_SYMLINK
931 GNULIB_SLEEP
932 GNULIB_RMDIR
933 GNULIB_READLINKAT
934 GNULIB_READLINK
935 GNULIB_PWRITE
936 GNULIB_PREAD
937 GNULIB_PIPE2
938 GNULIB_PIPE
939 GNULIB_LSEEK
940 GNULIB_LINKAT
941 GNULIB_LINK
942 GNULIB_LCHOWN
943 GNULIB_GETUSERSHELL
944 GNULIB_GETPAGESIZE
945 GNULIB_GETLOGIN_R
946 GNULIB_GETLOGIN
947 GNULIB_GETHOSTNAME
948 GNULIB_GETGROUPS
949 GNULIB_GETDTABLESIZE
950 GNULIB_GETDOMAINNAME
951 GNULIB_GETCWD
952 GNULIB_FTRUNCATE
953 GNULIB_FSYNC
954 GNULIB_FCHOWNAT
955 GNULIB_FCHDIR
956 GNULIB_FACCESSAT
957 GNULIB_EUIDACCESS
958 GNULIB_ENVIRON
959 GNULIB_DUP3
960 GNULIB_DUP2
961 GNULIB_CLOSE
962 GNULIB_CHOWN
963 GETLOADAVG_LIBS
964 REPLACE_WCTOMB
965 REPLACE_UNSETENV
966 REPLACE_STRTOD
967 REPLACE_SETENV
968 REPLACE_REALPATH
969 REPLACE_REALLOC
970 REPLACE_PUTENV
971 REPLACE_MKSTEMP
972 REPLACE_MBTOWC
973 REPLACE_MALLOC
974 REPLACE_CANONICALIZE_FILE_NAME
975 REPLACE_CALLOC
976 HAVE_DECL_UNSETENV
977 HAVE_UNLOCKPT
978 HAVE_SYS_LOADAVG_H
979 HAVE_STRUCT_RANDOM_DATA
980 HAVE_STRTOULL
981 HAVE_STRTOLL
982 HAVE_STRTOD
983 HAVE_DECL_SETENV
984 HAVE_SETENV
985 HAVE_RPMATCH
986 HAVE_REALPATH
987 HAVE_RANDOM_R
988 HAVE_RANDOM_H
989 HAVE_PTSNAME
990 HAVE_MKSTEMPS
991 HAVE_MKSTEMP
992 HAVE_MKOSTEMPS
993 HAVE_MKOSTEMP
994 HAVE_MKDTEMP
995 HAVE_GRANTPT
996 HAVE_GETSUBOPT
997 HAVE_DECL_GETLOADAVG
998 HAVE_CANONICALIZE_FILE_NAME
999 HAVE_ATOLL
1000 HAVE__EXIT
1001 GNULIB_WCTOMB
1002 GNULIB_UNSETENV
1003 GNULIB_UNLOCKPT
1004 GNULIB_SYSTEM_POSIX
1005 GNULIB_STRTOULL
1006 GNULIB_STRTOLL
1007 GNULIB_STRTOD
1008 GNULIB_SETENV
1009 GNULIB_RPMATCH
1010 GNULIB_REALPATH
1011 GNULIB_REALLOC_POSIX
1012 GNULIB_RANDOM_R
1013 GNULIB_PUTENV
1014 GNULIB_PTSNAME
1015 GNULIB_MKSTEMPS
1016 GNULIB_MKSTEMP
1017 GNULIB_MKOSTEMPS
1018 GNULIB_MKOSTEMP
1019 GNULIB_MKDTEMP
1020 GNULIB_MBTOWC
1021 GNULIB_MALLOC_POSIX
1022 GNULIB_GRANTPT
1023 GNULIB_GETSUBOPT
1024 GNULIB_GETLOADAVG
1025 GNULIB_CANONICALIZE_FILE_NAME
1026 GNULIB_CALLOC_POSIX
1027 GNULIB_ATOLL
1028 GNULIB__EXIT
1029 GL_COND_LIBTOOL_FALSE
1030 GL_COND_LIBTOOL_TRUE
1031 BLESSMAIL_TARGET
1032 LIBS_MAIL
1033 liblockfile
1034 ALLOCA
1035 LIBXML2_LIBS
1036 LIBXML2_CFLAGS
1037 LIBXSM
1038 LIBGPM
1039 LIBGIF
1040 LIBTIFF
1041 LIBPNG
1042 LIBJPEG
1043 LIBXPM
1044 M17N_FLT_LIBS
1045 M17N_FLT_CFLAGS
1046 LIBOTF_LIBS
1047 LIBOTF_CFLAGS
1048 FREETYPE_LIBS
1049 FREETYPE_CFLAGS
1050 XFT_LIBS
1051 XFT_CFLAGS
1052 FONTCONFIG_LIBS
1053 FONTCONFIG_CFLAGS
1054 LIBXMU
1055 LIBXTR6
1056 LIBGNUTLS_LIBS
1057 LIBGNUTLS_CFLAGS
1058 LIBSELINUX_LIBS
1059 GCONF_LIBS
1060 GCONF_CFLAGS
1061 DBUS_OBJ
1062 DBUS_LIBS
1063 DBUS_CFLAGS
1064 GTK_OBJ
1065 GTK_LIBS
1066 GTK_CFLAGS
1067 IMAGEMAGICK_LIBS
1068 IMAGEMAGICK_CFLAGS
1069 RSVG_LIBS
1070 RSVG_CFLAGS
1071 VMLIMIT_OBJ
1072 GMALLOC_OBJ
1073 HAVE_XSERVER
1074 LIB_STANDARD
1075 NS_SUPPORT
1076 NS_OBJC_OBJ
1077 NS_OBJ
1078 TEMACS_LDFLAGS2
1079 LD_SWITCH_X_SITE_AUX_RPATH
1080 LD_SWITCH_X_SITE_AUX
1081 XMKMF
1082 DEPFLAGS
1083 MKDEPDIR
1084 CFLAGS_SOUND
1085 ALSA_LIBS
1086 ALSA_CFLAGS
1087 PKG_CONFIG
1088 LIBSOUND
1089 START_FILES
1090 LIB_MATH
1091 CRT_DIR
1092 LIBS_SYSTEM
1093 C_SWITCH_SYSTEM
1094 UNEXEC_OBJ
1095 C_SWITCH_MACHINE
1096 LD_SWITCH_SYSTEM
1097 CANNOT_DUMP
1098 HAVE_MAKEINFO
1099 GZIP_PROG
1100 INSTALL_INFO
1101 C_WARNINGS_SWITCH
1102 EGREP
1103 GREP
1104 CPP
1105 RANLIB
1106 am__fastdepCC_FALSE
1107 am__fastdepCC_TRUE
1108 CCDEPMODE
1109 AMDEPBACKSLASH
1110 AMDEP_FALSE
1111 AMDEP_TRUE
1112 am__quote
1113 am__include
1114 DEPDIR
1115 OBJEXT
1116 EXEEXT
1117 ac_ct_CC
1118 CPPFLAGS
1119 LDFLAGS
1120 CFLAGS
1121 CC
1122 host_os
1123 host_vendor
1124 host_cpu
1125 host
1126 build_os
1127 build_vendor
1128 build_cpu
1129 build
1130 PROFILING_CFLAGS
1131 MAINT
1132 GZIP_INFO
1133 am__untar
1134 am__tar
1135 AMTAR
1136 am__leading_dot
1137 SET_MAKE
1138 AWK
1139 mkdir_p
1140 MKDIR_P
1141 INSTALL_STRIP_PROGRAM
1142 STRIP
1143 install_sh
1144 MAKEINFO
1145 AUTOHEADER
1146 AUTOMAKE
1147 AUTOCONF
1148 ACLOCAL
1149 VERSION
1150 PACKAGE
1151 CYGPATH_W
1152 am__isrc
1153 INSTALL_DATA
1154 INSTALL_SCRIPT
1155 INSTALL_PROGRAM
1156 target_alias
1157 host_alias
1158 build_alias
1159 LIBS
1160 ECHO_T
1161 ECHO_N
1162 ECHO_C
1163 DEFS
1164 mandir
1165 localedir
1166 libdir
1167 psdir
1168 pdfdir
1169 dvidir
1170 htmldir
1171 infodir
1172 docdir
1173 oldincludedir
1174 includedir
1175 localstatedir
1176 sharedstatedir
1177 sysconfdir
1178 datadir
1179 datarootdir
1180 libexecdir
1181 sbindir
1182 bindir
1183 program_transform_name
1184 prefix
1185 exec_prefix
1186 PACKAGE_URL
1187 PACKAGE_BUGREPORT
1188 PACKAGE_STRING
1189 PACKAGE_VERSION
1190 PACKAGE_TARNAME
1191 PACKAGE_NAME
1192 PATH_SEPARATOR
1193 SHELL'
1194 ac_subst_files='deps_frag
1195 ns_frag'
1196 ac_user_opts='
1197 enable_option_checking
1198 with_pop
1199 with_kerberos
1200 with_kerberos5
1201 with_hesiod
1202 with_mmdf
1203 with_mail_unlink
1204 with_mailhost
1205 with_sound
1206 with_sync_input
1207 with_x_toolkit
1208 with_xpm
1209 with_jpeg
1210 with_tiff
1211 with_gif
1212 with_png
1213 with_rsvg
1214 with_xml2
1215 with_imagemagick
1216 with_xft
1217 with_libotf
1218 with_m17n_flt
1219 with_toolkit_scroll_bars
1220 with_xaw3d
1221 with_xim
1222 with_ns
1223 with_gpm
1224 with_dbus
1225 with_gconf
1226 with_selinux
1227 with_gnutls
1228 with_makeinfo
1229 with_compress_info
1230 with_pkg_config_prog
1231 with_crt_dir
1232 with_gameuser
1233 with_gnustep_conf
1234 enable_ns_self_contained
1235 enable_asserts
1236 enable_maintainer_mode
1237 enable_locallisppath
1238 enable_checking
1239 enable_use_lisp_union_type
1240 enable_profiling
1241 enable_autodepend
1242 enable_dependency_tracking
1243 enable_largefile
1244 with_x
1245 '
1246 ac_precious_vars='build_alias
1247 host_alias
1248 target_alias
1249 CC
1250 CFLAGS
1251 LDFLAGS
1252 LIBS
1253 CPPFLAGS
1254 CPP
1255 XMKMF'
1256
1257
1258 # Initialize some variables set by options.
1259 ac_init_help=
1260 ac_init_version=false
1261 ac_unrecognized_opts=
1262 ac_unrecognized_sep=
1263 # The variables have the same names as the options, with
1264 # dashes changed to underlines.
1265 cache_file=/dev/null
1266 exec_prefix=NONE
1267 no_create=
1268 no_recursion=
1269 prefix=NONE
1270 program_prefix=NONE
1271 program_suffix=NONE
1272 program_transform_name=s,x,x,
1273 silent=
1274 site=
1275 srcdir=
1276 verbose=
1277 x_includes=NONE
1278 x_libraries=NONE
1279
1280 # Installation directory options.
1281 # These are left unexpanded so users can "make install exec_prefix=/foo"
1282 # and all the variables that are supposed to be based on exec_prefix
1283 # by default will actually change.
1284 # Use braces instead of parens because sh, perl, etc. also accept them.
1285 # (The list follows the same order as the GNU Coding Standards.)
1286 bindir='${exec_prefix}/bin'
1287 sbindir='${exec_prefix}/sbin'
1288 libexecdir='${exec_prefix}/libexec'
1289 datarootdir='${prefix}/share'
1290 datadir='${datarootdir}'
1291 sysconfdir='${prefix}/etc'
1292 sharedstatedir='${prefix}/com'
1293 localstatedir='${prefix}/var'
1294 includedir='${prefix}/include'
1295 oldincludedir='/usr/include'
1296 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1297 infodir='${datarootdir}/info'
1298 htmldir='${docdir}'
1299 dvidir='${docdir}'
1300 pdfdir='${docdir}'
1301 psdir='${docdir}'
1302 libdir='${exec_prefix}/lib'
1303 localedir='${datarootdir}/locale'
1304 mandir='${datarootdir}/man'
1305
1306 ac_prev=
1307 ac_dashdash=
1308 for ac_option
1309 do
1310 # If the previous option needs an argument, assign it.
1311 if test -n "$ac_prev"; then
1312 eval $ac_prev=\$ac_option
1313 ac_prev=
1314 continue
1315 fi
1316
1317 case $ac_option in
1318 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1319 *=) ac_optarg= ;;
1320 *) ac_optarg=yes ;;
1321 esac
1322
1323 # Accept the important Cygnus configure options, so we can diagnose typos.
1324
1325 case $ac_dashdash$ac_option in
1326 --)
1327 ac_dashdash=yes ;;
1328
1329 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1330 ac_prev=bindir ;;
1331 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1332 bindir=$ac_optarg ;;
1333
1334 -build | --build | --buil | --bui | --bu)
1335 ac_prev=build_alias ;;
1336 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1337 build_alias=$ac_optarg ;;
1338
1339 -cache-file | --cache-file | --cache-fil | --cache-fi \
1340 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1341 ac_prev=cache_file ;;
1342 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1343 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1344 cache_file=$ac_optarg ;;
1345
1346 --config-cache | -C)
1347 cache_file=config.cache ;;
1348
1349 -datadir | --datadir | --datadi | --datad)
1350 ac_prev=datadir ;;
1351 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1352 datadir=$ac_optarg ;;
1353
1354 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1355 | --dataroo | --dataro | --datar)
1356 ac_prev=datarootdir ;;
1357 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1358 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1359 datarootdir=$ac_optarg ;;
1360
1361 -disable-* | --disable-*)
1362 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1363 # Reject names that are not valid shell variable names.
1364 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1365 as_fn_error $? "invalid feature name: $ac_useropt"
1366 ac_useropt_orig=$ac_useropt
1367 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1368 case $ac_user_opts in
1369 *"
1370 "enable_$ac_useropt"
1371 "*) ;;
1372 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1373 ac_unrecognized_sep=', ';;
1374 esac
1375 eval enable_$ac_useropt=no ;;
1376
1377 -docdir | --docdir | --docdi | --doc | --do)
1378 ac_prev=docdir ;;
1379 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1380 docdir=$ac_optarg ;;
1381
1382 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1383 ac_prev=dvidir ;;
1384 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1385 dvidir=$ac_optarg ;;
1386
1387 -enable-* | --enable-*)
1388 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1389 # Reject names that are not valid shell variable names.
1390 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1391 as_fn_error $? "invalid feature name: $ac_useropt"
1392 ac_useropt_orig=$ac_useropt
1393 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1394 case $ac_user_opts in
1395 *"
1396 "enable_$ac_useropt"
1397 "*) ;;
1398 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1399 ac_unrecognized_sep=', ';;
1400 esac
1401 eval enable_$ac_useropt=\$ac_optarg ;;
1402
1403 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1404 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1405 | --exec | --exe | --ex)
1406 ac_prev=exec_prefix ;;
1407 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1408 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1409 | --exec=* | --exe=* | --ex=*)
1410 exec_prefix=$ac_optarg ;;
1411
1412 -gas | --gas | --ga | --g)
1413 # Obsolete; use --with-gas.
1414 with_gas=yes ;;
1415
1416 -help | --help | --hel | --he | -h)
1417 ac_init_help=long ;;
1418 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1419 ac_init_help=recursive ;;
1420 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1421 ac_init_help=short ;;
1422
1423 -host | --host | --hos | --ho)
1424 ac_prev=host_alias ;;
1425 -host=* | --host=* | --hos=* | --ho=*)
1426 host_alias=$ac_optarg ;;
1427
1428 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1429 ac_prev=htmldir ;;
1430 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1431 | --ht=*)
1432 htmldir=$ac_optarg ;;
1433
1434 -includedir | --includedir | --includedi | --included | --include \
1435 | --includ | --inclu | --incl | --inc)
1436 ac_prev=includedir ;;
1437 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1438 | --includ=* | --inclu=* | --incl=* | --inc=*)
1439 includedir=$ac_optarg ;;
1440
1441 -infodir | --infodir | --infodi | --infod | --info | --inf)
1442 ac_prev=infodir ;;
1443 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1444 infodir=$ac_optarg ;;
1445
1446 -libdir | --libdir | --libdi | --libd)
1447 ac_prev=libdir ;;
1448 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1449 libdir=$ac_optarg ;;
1450
1451 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1452 | --libexe | --libex | --libe)
1453 ac_prev=libexecdir ;;
1454 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1455 | --libexe=* | --libex=* | --libe=*)
1456 libexecdir=$ac_optarg ;;
1457
1458 -localedir | --localedir | --localedi | --localed | --locale)
1459 ac_prev=localedir ;;
1460 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1461 localedir=$ac_optarg ;;
1462
1463 -localstatedir | --localstatedir | --localstatedi | --localstated \
1464 | --localstate | --localstat | --localsta | --localst | --locals)
1465 ac_prev=localstatedir ;;
1466 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1467 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1468 localstatedir=$ac_optarg ;;
1469
1470 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1471 ac_prev=mandir ;;
1472 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1473 mandir=$ac_optarg ;;
1474
1475 -nfp | --nfp | --nf)
1476 # Obsolete; use --without-fp.
1477 with_fp=no ;;
1478
1479 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1480 | --no-cr | --no-c | -n)
1481 no_create=yes ;;
1482
1483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1485 no_recursion=yes ;;
1486
1487 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1488 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1489 | --oldin | --oldi | --old | --ol | --o)
1490 ac_prev=oldincludedir ;;
1491 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1492 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1493 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1494 oldincludedir=$ac_optarg ;;
1495
1496 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1497 ac_prev=prefix ;;
1498 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1499 prefix=$ac_optarg ;;
1500
1501 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1502 | --program-pre | --program-pr | --program-p)
1503 ac_prev=program_prefix ;;
1504 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1505 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1506 program_prefix=$ac_optarg ;;
1507
1508 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1509 | --program-suf | --program-su | --program-s)
1510 ac_prev=program_suffix ;;
1511 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1512 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1513 program_suffix=$ac_optarg ;;
1514
1515 -program-transform-name | --program-transform-name \
1516 | --program-transform-nam | --program-transform-na \
1517 | --program-transform-n | --program-transform- \
1518 | --program-transform | --program-transfor \
1519 | --program-transfo | --program-transf \
1520 | --program-trans | --program-tran \
1521 | --progr-tra | --program-tr | --program-t)
1522 ac_prev=program_transform_name ;;
1523 -program-transform-name=* | --program-transform-name=* \
1524 | --program-transform-nam=* | --program-transform-na=* \
1525 | --program-transform-n=* | --program-transform-=* \
1526 | --program-transform=* | --program-transfor=* \
1527 | --program-transfo=* | --program-transf=* \
1528 | --program-trans=* | --program-tran=* \
1529 | --progr-tra=* | --program-tr=* | --program-t=*)
1530 program_transform_name=$ac_optarg ;;
1531
1532 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1533 ac_prev=pdfdir ;;
1534 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1535 pdfdir=$ac_optarg ;;
1536
1537 -psdir | --psdir | --psdi | --psd | --ps)
1538 ac_prev=psdir ;;
1539 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1540 psdir=$ac_optarg ;;
1541
1542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1543 | -silent | --silent | --silen | --sile | --sil)
1544 silent=yes ;;
1545
1546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1547 ac_prev=sbindir ;;
1548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1549 | --sbi=* | --sb=*)
1550 sbindir=$ac_optarg ;;
1551
1552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1554 | --sharedst | --shareds | --shared | --share | --shar \
1555 | --sha | --sh)
1556 ac_prev=sharedstatedir ;;
1557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1560 | --sha=* | --sh=*)
1561 sharedstatedir=$ac_optarg ;;
1562
1563 -site | --site | --sit)
1564 ac_prev=site ;;
1565 -site=* | --site=* | --sit=*)
1566 site=$ac_optarg ;;
1567
1568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1569 ac_prev=srcdir ;;
1570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1571 srcdir=$ac_optarg ;;
1572
1573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1574 | --syscon | --sysco | --sysc | --sys | --sy)
1575 ac_prev=sysconfdir ;;
1576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1578 sysconfdir=$ac_optarg ;;
1579
1580 -target | --target | --targe | --targ | --tar | --ta | --t)
1581 ac_prev=target_alias ;;
1582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1583 target_alias=$ac_optarg ;;
1584
1585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1586 verbose=yes ;;
1587
1588 -version | --version | --versio | --versi | --vers | -V)
1589 ac_init_version=: ;;
1590
1591 -with-* | --with-*)
1592 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1593 # Reject names that are not valid shell variable names.
1594 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1595 as_fn_error $? "invalid package name: $ac_useropt"
1596 ac_useropt_orig=$ac_useropt
1597 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1598 case $ac_user_opts in
1599 *"
1600 "with_$ac_useropt"
1601 "*) ;;
1602 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1603 ac_unrecognized_sep=', ';;
1604 esac
1605 eval with_$ac_useropt=\$ac_optarg ;;
1606
1607 -without-* | --without-*)
1608 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1609 # Reject names that are not valid shell variable names.
1610 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1611 as_fn_error $? "invalid package name: $ac_useropt"
1612 ac_useropt_orig=$ac_useropt
1613 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1614 case $ac_user_opts in
1615 *"
1616 "with_$ac_useropt"
1617 "*) ;;
1618 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1619 ac_unrecognized_sep=', ';;
1620 esac
1621 eval with_$ac_useropt=no ;;
1622
1623 --x)
1624 # Obsolete; use --with-x.
1625 with_x=yes ;;
1626
1627 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1628 | --x-incl | --x-inc | --x-in | --x-i)
1629 ac_prev=x_includes ;;
1630 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1631 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1632 x_includes=$ac_optarg ;;
1633
1634 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1635 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1636 ac_prev=x_libraries ;;
1637 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1638 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1639 x_libraries=$ac_optarg ;;
1640
1641 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1642 Try \`$0 --help' for more information"
1643 ;;
1644
1645 *=*)
1646 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1647 # Reject names that are not valid shell variable names.
1648 case $ac_envvar in #(
1649 '' | [0-9]* | *[!_$as_cr_alnum]* )
1650 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1651 esac
1652 eval $ac_envvar=\$ac_optarg
1653 export $ac_envvar ;;
1654
1655 *)
1656 # FIXME: should be removed in autoconf 3.0.
1657 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1658 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1659 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1660 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1661 ;;
1662
1663 esac
1664 done
1665
1666 if test -n "$ac_prev"; then
1667 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1668 as_fn_error $? "missing argument to $ac_option"
1669 fi
1670
1671 if test -n "$ac_unrecognized_opts"; then
1672 case $enable_option_checking in
1673 no) ;;
1674 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1675 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1676 esac
1677 fi
1678
1679 # Check all directory arguments for consistency.
1680 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1681 datadir sysconfdir sharedstatedir localstatedir includedir \
1682 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1683 libdir localedir mandir
1684 do
1685 eval ac_val=\$$ac_var
1686 # Remove trailing slashes.
1687 case $ac_val in
1688 */ )
1689 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1690 eval $ac_var=\$ac_val;;
1691 esac
1692 # Be sure to have absolute directory names.
1693 case $ac_val in
1694 [\\/$]* | ?:[\\/]* ) continue;;
1695 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1696 esac
1697 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1698 done
1699
1700 # There might be people who depend on the old broken behavior: `$host'
1701 # used to hold the argument of --host etc.
1702 # FIXME: To remove some day.
1703 build=$build_alias
1704 host=$host_alias
1705 target=$target_alias
1706
1707 # FIXME: To remove some day.
1708 if test "x$host_alias" != x; then
1709 if test "x$build_alias" = x; then
1710 cross_compiling=maybe
1711 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1712 If a cross compiler is detected then cross compile mode will be used" >&2
1713 elif test "x$build_alias" != "x$host_alias"; then
1714 cross_compiling=yes
1715 fi
1716 fi
1717
1718 ac_tool_prefix=
1719 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1720
1721 test "$silent" = yes && exec 6>/dev/null
1722
1723
1724 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1725 ac_ls_di=`ls -di .` &&
1726 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1727 as_fn_error $? "working directory cannot be determined"
1728 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1729 as_fn_error $? "pwd does not report name of working directory"
1730
1731
1732 # Find the source files, if location was not specified.
1733 if test -z "$srcdir"; then
1734 ac_srcdir_defaulted=yes
1735 # Try the directory containing this script, then the parent directory.
1736 ac_confdir=`$as_dirname -- "$as_myself" ||
1737 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1738 X"$as_myself" : 'X\(//\)[^/]' \| \
1739 X"$as_myself" : 'X\(//\)$' \| \
1740 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1741 $as_echo X"$as_myself" |
1742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1743 s//\1/
1744 q
1745 }
1746 /^X\(\/\/\)[^/].*/{
1747 s//\1/
1748 q
1749 }
1750 /^X\(\/\/\)$/{
1751 s//\1/
1752 q
1753 }
1754 /^X\(\/\).*/{
1755 s//\1/
1756 q
1757 }
1758 s/.*/./; q'`
1759 srcdir=$ac_confdir
1760 if test ! -r "$srcdir/$ac_unique_file"; then
1761 srcdir=..
1762 fi
1763 else
1764 ac_srcdir_defaulted=no
1765 fi
1766 if test ! -r "$srcdir/$ac_unique_file"; then
1767 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1768 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1769 fi
1770 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1771 ac_abs_confdir=`(
1772 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1773 pwd)`
1774 # When building in place, set srcdir=.
1775 if test "$ac_abs_confdir" = "$ac_pwd"; then
1776 srcdir=.
1777 fi
1778 # Remove unnecessary trailing slashes from srcdir.
1779 # Double slashes in file names in object file debugging info
1780 # mess up M-x gdb in Emacs.
1781 case $srcdir in
1782 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1783 esac
1784 for ac_var in $ac_precious_vars; do
1785 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1786 eval ac_env_${ac_var}_value=\$${ac_var}
1787 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1788 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1789 done
1790
1791 #
1792 # Report the --help message.
1793 #
1794 if test "$ac_init_help" = "long"; then
1795 # Omit some internal or obsolete options to make the list less imposing.
1796 # This message is too long to be a string in the A/UX 3.1 sh.
1797 cat <<_ACEOF
1798 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1799
1800 Usage: $0 [OPTION]... [VAR=VALUE]...
1801
1802 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1803 VAR=VALUE. See below for descriptions of some of the useful variables.
1804
1805 Defaults for the options are specified in brackets.
1806
1807 Configuration:
1808 -h, --help display this help and exit
1809 --help=short display options specific to this package
1810 --help=recursive display the short help of all the included packages
1811 -V, --version display version information and exit
1812 -q, --quiet, --silent do not print \`checking ...' messages
1813 --cache-file=FILE cache test results in FILE [disabled]
1814 -C, --config-cache alias for \`--cache-file=config.cache'
1815 -n, --no-create do not create output files
1816 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1817
1818 Installation directories:
1819 --prefix=PREFIX install architecture-independent files in PREFIX
1820 [$ac_default_prefix]
1821 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1822 [PREFIX]
1823
1824 By default, \`make install' will install all the files in
1825 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1826 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1827 for instance \`--prefix=\$HOME'.
1828
1829 For better control, use the options below.
1830
1831 Fine tuning of the installation directories:
1832 --bindir=DIR user executables [EPREFIX/bin]
1833 --sbindir=DIR system admin executables [EPREFIX/sbin]
1834 --libexecdir=DIR program executables [EPREFIX/libexec]
1835 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1836 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1837 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1838 --libdir=DIR object code libraries [EPREFIX/lib]
1839 --includedir=DIR C header files [PREFIX/include]
1840 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1841 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1842 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1843 --infodir=DIR info documentation [DATAROOTDIR/info]
1844 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1845 --mandir=DIR man documentation [DATAROOTDIR/man]
1846 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1847 --htmldir=DIR html documentation [DOCDIR]
1848 --dvidir=DIR dvi documentation [DOCDIR]
1849 --pdfdir=DIR pdf documentation [DOCDIR]
1850 --psdir=DIR ps documentation [DOCDIR]
1851 _ACEOF
1852
1853 cat <<\_ACEOF
1854
1855 Program names:
1856 --program-prefix=PREFIX prepend PREFIX to installed program names
1857 --program-suffix=SUFFIX append SUFFIX to installed program names
1858 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1859
1860 X features:
1861 --x-includes=DIR X include files are in DIR
1862 --x-libraries=DIR X library files are in DIR
1863
1864 System types:
1865 --build=BUILD configure for building on BUILD [guessed]
1866 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1867 _ACEOF
1868 fi
1869
1870 if test -n "$ac_init_help"; then
1871 case $ac_init_help in
1872 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1873 esac
1874 cat <<\_ACEOF
1875
1876 Optional Features:
1877 --disable-option-checking ignore unrecognized --enable/--with options
1878 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1879 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1880 --disable-ns-self-contained
1881 disable self contained build under NeXTstep
1882 --enable-asserts compile code with asserts enabled
1883 --enable-maintainer-mode
1884 enable make rules and dependencies not useful (and
1885 sometimes confusing) to the casual installer
1886 --enable-locallisppath=PATH
1887 directories Emacs should search for lisp files
1888 specific to this site
1889 --enable-checking[=LIST]
1890 enable expensive run-time checks. With LIST, enable
1891 only specific categories of checks. Categories are:
1892 all,yes,no. Flags are: stringbytes, stringoverrun,
1893 stringfreelist, xmallocoverrun, conslist
1894 --enable-use-lisp-union-type
1895 use a union for the Lisp_Object data type. This is
1896 only useful for development for catching certain
1897 types of bugs.
1898 --enable-profiling build emacs with profiling support. This might not
1899 work on all platforms
1900 --enable-autodepend automatically generate dependencies to .h-files.
1901 Requires GNU Make and Gcc. Enabled if GNU Make and
1902 Gcc is found
1903 --disable-dependency-tracking speeds up one-time build
1904 --enable-dependency-tracking do not reject slow dependency extractors
1905 --disable-largefile omit support for large files
1906
1907 Optional Packages:
1908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1910 --without-pop don't support POP mail retrieval with movemail
1911 --with-kerberos support Kerberos-authenticated POP
1912 --with-kerberos5 support Kerberos version 5 authenticated POP
1913 --with-hesiod support Hesiod to get the POP server host
1914 --with-mmdf support MMDF mailboxes
1915 --with-mail-unlink unlink, rather than empty, mail spool after reading
1916 --with-mailhost=HOSTNAME
1917 string giving default POP mail host
1918 --without-sound don't compile with sound support
1919 --without-sync-input process async input synchronously
1920 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1921 lucid or athena, motif, no)
1922 --without-xpm don't compile with XPM image support
1923 --without-jpeg don't compile with JPEG image support
1924 --without-tiff don't compile with TIFF image support
1925 --without-gif don't compile with GIF image support
1926 --without-png don't compile with PNG image support
1927 --without-rsvg don't compile with SVG image support
1928 --without-xml2 don't compile with XML parsing support
1929 --without-imagemagick don't compile with ImageMagick image support
1930 --without-xft don't use XFT for anti aliased fonts
1931 --without-libotf don't use libotf for OpenType font support
1932 --without-m17n-flt don't use m17n-flt for text shaping
1933 --without-toolkit-scroll-bars
1934 don't use Motif or Xaw3d scroll bars
1935 --without-xaw3d don't use Xaw3d
1936 --without-xim don't use X11 XIM
1937 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
1938 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1939 console
1940 --without-dbus don't compile with D-Bus support
1941 --without-gconf don't compile with GConf support
1942 --without-selinux don't compile with SELinux support
1943 --without-gnutls don't use -lgnutls for SSL/TLS support
1944 --without-makeinfo don't require makeinfo for building manuals
1945 --without-compress-info don't compress the installed Info pages
1946 --with-pkg-config-prog=PATH
1947 path to pkg-config for finding GTK and librsvg
1948 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1949 /usr/lib, or /usr/lib64 on some platforms.
1950 --with-gameuser=USER user for shared game score files
1951 --with-gnustep-conf=PATH
1952 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1953 or /etc/GNUstep/GNUstep.conf
1954 --with-x use the X Window System
1955
1956 Some influential environment variables:
1957 CC C compiler command
1958 CFLAGS C compiler flags
1959 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1960 nonstandard directory <lib dir>
1961 LIBS libraries to pass to the linker, e.g. -l<library>
1962 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1963 you have headers in a nonstandard directory <include dir>
1964 CPP C preprocessor
1965 XMKMF Path to xmkmf, Makefile generator for X Window System
1966
1967 Use these variables to override the choices made by `configure' or to help
1968 it to find libraries and programs with nonstandard names/locations.
1969
1970 Report bugs to the package provider.
1971 _ACEOF
1972 ac_status=$?
1973 fi
1974
1975 if test "$ac_init_help" = "recursive"; then
1976 # If there are subdirs, report their specific --help.
1977 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1978 test -d "$ac_dir" ||
1979 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1980 continue
1981 ac_builddir=.
1982
1983 case "$ac_dir" in
1984 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1985 *)
1986 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1987 # A ".." for each directory in $ac_dir_suffix.
1988 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1989 case $ac_top_builddir_sub in
1990 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1991 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1992 esac ;;
1993 esac
1994 ac_abs_top_builddir=$ac_pwd
1995 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1996 # for backward compatibility:
1997 ac_top_builddir=$ac_top_build_prefix
1998
1999 case $srcdir in
2000 .) # We are building in place.
2001 ac_srcdir=.
2002 ac_top_srcdir=$ac_top_builddir_sub
2003 ac_abs_top_srcdir=$ac_pwd ;;
2004 [\\/]* | ?:[\\/]* ) # Absolute name.
2005 ac_srcdir=$srcdir$ac_dir_suffix;
2006 ac_top_srcdir=$srcdir
2007 ac_abs_top_srcdir=$srcdir ;;
2008 *) # Relative name.
2009 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2010 ac_top_srcdir=$ac_top_build_prefix$srcdir
2011 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2012 esac
2013 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2014
2015 cd "$ac_dir" || { ac_status=$?; continue; }
2016 # Check for guested configure.
2017 if test -f "$ac_srcdir/configure.gnu"; then
2018 echo &&
2019 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2020 elif test -f "$ac_srcdir/configure"; then
2021 echo &&
2022 $SHELL "$ac_srcdir/configure" --help=recursive
2023 else
2024 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2025 fi || ac_status=$?
2026 cd "$ac_pwd" || { ac_status=$?; break; }
2027 done
2028 fi
2029
2030 test -n "$ac_init_help" && exit $ac_status
2031 if $ac_init_version; then
2032 cat <<\_ACEOF
2033 emacs configure 24.0.50
2034 generated by GNU Autoconf 2.68
2035
2036 Copyright (C) 2010 Free Software Foundation, Inc.
2037 This configure script is free software; the Free Software Foundation
2038 gives unlimited permission to copy, distribute and modify it.
2039 _ACEOF
2040 exit
2041 fi
2042
2043 ## ------------------------ ##
2044 ## Autoconf initialization. ##
2045 ## ------------------------ ##
2046
2047 # ac_fn_c_try_compile LINENO
2048 # --------------------------
2049 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2050 ac_fn_c_try_compile ()
2051 {
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 rm -f conftest.$ac_objext
2054 if { { ac_try="$ac_compile"
2055 case "(($ac_try" in
2056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2057 *) ac_try_echo=$ac_try;;
2058 esac
2059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2060 $as_echo "$ac_try_echo"; } >&5
2061 (eval "$ac_compile") 2>conftest.err
2062 ac_status=$?
2063 if test -s conftest.err; then
2064 grep -v '^ *+' conftest.err >conftest.er1
2065 cat conftest.er1 >&5
2066 mv -f conftest.er1 conftest.err
2067 fi
2068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2069 test $ac_status = 0; } && {
2070 test -z "$ac_c_werror_flag" ||
2071 test ! -s conftest.err
2072 } && test -s conftest.$ac_objext; then :
2073 ac_retval=0
2074 else
2075 $as_echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2077
2078 ac_retval=1
2079 fi
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081 as_fn_set_status $ac_retval
2082
2083 } # ac_fn_c_try_compile
2084
2085 # ac_fn_c_try_cpp LINENO
2086 # ----------------------
2087 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2088 ac_fn_c_try_cpp ()
2089 {
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 if { { ac_try="$ac_cpp conftest.$ac_ext"
2092 case "(($ac_try" in
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2095 esac
2096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097 $as_echo "$ac_try_echo"; } >&5
2098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2099 ac_status=$?
2100 if test -s conftest.err; then
2101 grep -v '^ *+' conftest.err >conftest.er1
2102 cat conftest.er1 >&5
2103 mv -f conftest.er1 conftest.err
2104 fi
2105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2106 test $ac_status = 0; } > conftest.i && {
2107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2108 test ! -s conftest.err
2109 }; then :
2110 ac_retval=0
2111 else
2112 $as_echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2114
2115 ac_retval=1
2116 fi
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118 as_fn_set_status $ac_retval
2119
2120 } # ac_fn_c_try_cpp
2121
2122 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2123 # -------------------------------------------------------
2124 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2125 # the include files in INCLUDES and setting the cache variable VAR
2126 # accordingly.
2127 ac_fn_c_check_header_mongrel ()
2128 {
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 if eval \${$3+:} false; then :
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2132 $as_echo_n "checking for $2... " >&6; }
2133 if eval \${$3+:} false; then :
2134 $as_echo_n "(cached) " >&6
2135 fi
2136 eval ac_res=\$$3
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 $as_echo "$ac_res" >&6; }
2139 else
2140 # Is the header compilable?
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2142 $as_echo_n "checking $2 usability... " >&6; }
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2145 $4
2146 #include <$2>
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 ac_header_compiler=yes
2150 else
2151 ac_header_compiler=no
2152 fi
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2155 $as_echo "$ac_header_compiler" >&6; }
2156
2157 # Is the header present?
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2159 $as_echo_n "checking $2 presence... " >&6; }
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2162 #include <$2>
2163 _ACEOF
2164 if ac_fn_c_try_cpp "$LINENO"; then :
2165 ac_header_preproc=yes
2166 else
2167 ac_header_preproc=no
2168 fi
2169 rm -f conftest.err conftest.i conftest.$ac_ext
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2171 $as_echo "$ac_header_preproc" >&6; }
2172
2173 # So? What about this header?
2174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2175 yes:no: )
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2177 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2179 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2180 ;;
2181 no:yes:* )
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2183 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2185 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2187 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2189 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2191 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2192 ;;
2193 esac
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2195 $as_echo_n "checking for $2... " >&6; }
2196 if eval \${$3+:} false; then :
2197 $as_echo_n "(cached) " >&6
2198 else
2199 eval "$3=\$ac_header_compiler"
2200 fi
2201 eval ac_res=\$$3
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203 $as_echo "$ac_res" >&6; }
2204 fi
2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206
2207 } # ac_fn_c_check_header_mongrel
2208
2209 # ac_fn_c_try_run LINENO
2210 # ----------------------
2211 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2212 # that executables *can* be run.
2213 ac_fn_c_try_run ()
2214 {
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 if { { ac_try="$ac_link"
2217 case "(($ac_try" in
2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219 *) ac_try_echo=$ac_try;;
2220 esac
2221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2222 $as_echo "$ac_try_echo"; } >&5
2223 (eval "$ac_link") 2>&5
2224 ac_status=$?
2225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2226 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2227 { { case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2230 esac
2231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2232 $as_echo "$ac_try_echo"; } >&5
2233 (eval "$ac_try") 2>&5
2234 ac_status=$?
2235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2236 test $ac_status = 0; }; }; then :
2237 ac_retval=0
2238 else
2239 $as_echo "$as_me: program exited with status $ac_status" >&5
2240 $as_echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2242
2243 ac_retval=$ac_status
2244 fi
2245 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2246 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2247 as_fn_set_status $ac_retval
2248
2249 } # ac_fn_c_try_run
2250
2251 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2252 # -------------------------------------------------------
2253 # Tests whether HEADER exists and can be compiled using the include files in
2254 # INCLUDES, setting the cache variable VAR accordingly.
2255 ac_fn_c_check_header_compile ()
2256 {
2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259 $as_echo_n "checking for $2... " >&6; }
2260 if eval \${$3+:} false; then :
2261 $as_echo_n "(cached) " >&6
2262 else
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2265 $4
2266 #include <$2>
2267 _ACEOF
2268 if ac_fn_c_try_compile "$LINENO"; then :
2269 eval "$3=yes"
2270 else
2271 eval "$3=no"
2272 fi
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 fi
2275 eval ac_res=\$$3
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2277 $as_echo "$ac_res" >&6; }
2278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2279
2280 } # ac_fn_c_check_header_compile
2281
2282 # ac_fn_c_try_link LINENO
2283 # -----------------------
2284 # Try to link conftest.$ac_ext, and return whether this succeeded.
2285 ac_fn_c_try_link ()
2286 {
2287 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288 rm -f conftest.$ac_objext conftest$ac_exeext
2289 if { { ac_try="$ac_link"
2290 case "(($ac_try" in
2291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292 *) ac_try_echo=$ac_try;;
2293 esac
2294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2295 $as_echo "$ac_try_echo"; } >&5
2296 (eval "$ac_link") 2>conftest.err
2297 ac_status=$?
2298 if test -s conftest.err; then
2299 grep -v '^ *+' conftest.err >conftest.er1
2300 cat conftest.er1 >&5
2301 mv -f conftest.er1 conftest.err
2302 fi
2303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2304 test $ac_status = 0; } && {
2305 test -z "$ac_c_werror_flag" ||
2306 test ! -s conftest.err
2307 } && test -s conftest$ac_exeext && {
2308 test "$cross_compiling" = yes ||
2309 $as_test_x conftest$ac_exeext
2310 }; then :
2311 ac_retval=0
2312 else
2313 $as_echo "$as_me: failed program was:" >&5
2314 sed 's/^/| /' conftest.$ac_ext >&5
2315
2316 ac_retval=1
2317 fi
2318 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2319 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2320 # interfere with the next link command; also delete a directory that is
2321 # left behind by Apple's compiler. We do this before executing the actions.
2322 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2323 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2324 as_fn_set_status $ac_retval
2325
2326 } # ac_fn_c_try_link
2327
2328 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2329 # ---------------------------------------------
2330 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2331 # accordingly.
2332 ac_fn_c_check_decl ()
2333 {
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 as_decl_name=`echo $2|sed 's/ *(.*//'`
2336 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2338 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2339 if eval \${$3+:} false; then :
2340 $as_echo_n "(cached) " >&6
2341 else
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2344 $4
2345 int
2346 main ()
2347 {
2348 #ifndef $as_decl_name
2349 #ifdef __cplusplus
2350 (void) $as_decl_use;
2351 #else
2352 (void) $as_decl_name;
2353 #endif
2354 #endif
2355
2356 ;
2357 return 0;
2358 }
2359 _ACEOF
2360 if ac_fn_c_try_compile "$LINENO"; then :
2361 eval "$3=yes"
2362 else
2363 eval "$3=no"
2364 fi
2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 fi
2367 eval ac_res=\$$3
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369 $as_echo "$ac_res" >&6; }
2370 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2371
2372 } # ac_fn_c_check_decl
2373
2374 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2375 # ----------------------------------------------
2376 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2377 ac_fn_c_check_header_preproc ()
2378 {
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2381 $as_echo_n "checking for $2... " >&6; }
2382 if eval \${$3+:} false; then :
2383 $as_echo_n "(cached) " >&6
2384 else
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2387 #include <$2>
2388 _ACEOF
2389 if ac_fn_c_try_cpp "$LINENO"; then :
2390 eval "$3=yes"
2391 else
2392 eval "$3=no"
2393 fi
2394 rm -f conftest.err conftest.i conftest.$ac_ext
2395 fi
2396 eval ac_res=\$$3
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2398 $as_echo "$ac_res" >&6; }
2399 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2400
2401 } # ac_fn_c_check_header_preproc
2402
2403 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2404 # ----------------------------------------------------
2405 # Tries to find if the field MEMBER exists in type AGGR, after including
2406 # INCLUDES, setting cache variable VAR accordingly.
2407 ac_fn_c_check_member ()
2408 {
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2411 $as_echo_n "checking for $2.$3... " >&6; }
2412 if eval \${$4+:} false; then :
2413 $as_echo_n "(cached) " >&6
2414 else
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2417 $5
2418 int
2419 main ()
2420 {
2421 static $2 ac_aggr;
2422 if (ac_aggr.$3)
2423 return 0;
2424 ;
2425 return 0;
2426 }
2427 _ACEOF
2428 if ac_fn_c_try_compile "$LINENO"; then :
2429 eval "$4=yes"
2430 else
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2433 $5
2434 int
2435 main ()
2436 {
2437 static $2 ac_aggr;
2438 if (sizeof ac_aggr.$3)
2439 return 0;
2440 ;
2441 return 0;
2442 }
2443 _ACEOF
2444 if ac_fn_c_try_compile "$LINENO"; then :
2445 eval "$4=yes"
2446 else
2447 eval "$4=no"
2448 fi
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 fi
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 fi
2453 eval ac_res=\$$4
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2455 $as_echo "$ac_res" >&6; }
2456 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2457
2458 } # ac_fn_c_check_member
2459
2460 # ac_fn_c_check_func LINENO FUNC VAR
2461 # ----------------------------------
2462 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2463 ac_fn_c_check_func ()
2464 {
2465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2467 $as_echo_n "checking for $2... " >&6; }
2468 if eval \${$3+:} false; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h. */
2473 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2475 #define $2 innocuous_$2
2476
2477 /* System header to define __stub macros and hopefully few prototypes,
2478 which can conflict with char $2 (); below.
2479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2480 <limits.h> exists even on freestanding compilers. */
2481
2482 #ifdef __STDC__
2483 # include <limits.h>
2484 #else
2485 # include <assert.h>
2486 #endif
2487
2488 #undef $2
2489
2490 /* Override any GCC internal prototype to avoid an error.
2491 Use char because int might match the return type of a GCC
2492 builtin and then its argument prototype would still apply. */
2493 #ifdef __cplusplus
2494 extern "C"
2495 #endif
2496 char $2 ();
2497 /* The GNU C library defines this for functions which it implements
2498 to always fail with ENOSYS. Some functions are actually named
2499 something starting with __ and the normal name is an alias. */
2500 #if defined __stub_$2 || defined __stub___$2
2501 choke me
2502 #endif
2503
2504 int
2505 main ()
2506 {
2507 return $2 ();
2508 ;
2509 return 0;
2510 }
2511 _ACEOF
2512 if ac_fn_c_try_link "$LINENO"; then :
2513 eval "$3=yes"
2514 else
2515 eval "$3=no"
2516 fi
2517 rm -f core conftest.err conftest.$ac_objext \
2518 conftest$ac_exeext conftest.$ac_ext
2519 fi
2520 eval ac_res=\$$3
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2522 $as_echo "$ac_res" >&6; }
2523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2524
2525 } # ac_fn_c_check_func
2526
2527 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2528 # -------------------------------------------
2529 # Tests whether TYPE exists after having included INCLUDES, setting cache
2530 # variable VAR accordingly.
2531 ac_fn_c_check_type ()
2532 {
2533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2535 $as_echo_n "checking for $2... " >&6; }
2536 if eval \${$3+:} false; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 eval "$3=no"
2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h. */
2542 $4
2543 int
2544 main ()
2545 {
2546 if (sizeof ($2))
2547 return 0;
2548 ;
2549 return 0;
2550 }
2551 _ACEOF
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2555 $4
2556 int
2557 main ()
2558 {
2559 if (sizeof (($2)))
2560 return 0;
2561 ;
2562 return 0;
2563 }
2564 _ACEOF
2565 if ac_fn_c_try_compile "$LINENO"; then :
2566
2567 else
2568 eval "$3=yes"
2569 fi
2570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2571 fi
2572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2573 fi
2574 eval ac_res=\$$3
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2576 $as_echo "$ac_res" >&6; }
2577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2578
2579 } # ac_fn_c_check_type
2580
2581 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2582 # --------------------------------------------
2583 # Tries to find the compile-time value of EXPR in a program that includes
2584 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2585 # computed
2586 ac_fn_c_compute_int ()
2587 {
2588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2589 if test "$cross_compiling" = yes; then
2590 # Depending upon the size, compute the lo and hi bounds.
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2593 $4
2594 int
2595 main ()
2596 {
2597 static int test_array [1 - 2 * !(($2) >= 0)];
2598 test_array [0] = 0
2599
2600 ;
2601 return 0;
2602 }
2603 _ACEOF
2604 if ac_fn_c_try_compile "$LINENO"; then :
2605 ac_lo=0 ac_mid=0
2606 while :; do
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2609 $4
2610 int
2611 main ()
2612 {
2613 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2614 test_array [0] = 0
2615
2616 ;
2617 return 0;
2618 }
2619 _ACEOF
2620 if ac_fn_c_try_compile "$LINENO"; then :
2621 ac_hi=$ac_mid; break
2622 else
2623 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2624 if test $ac_lo -le $ac_mid; then
2625 ac_lo= ac_hi=
2626 break
2627 fi
2628 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2629 fi
2630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631 done
2632 else
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2635 $4
2636 int
2637 main ()
2638 {
2639 static int test_array [1 - 2 * !(($2) < 0)];
2640 test_array [0] = 0
2641
2642 ;
2643 return 0;
2644 }
2645 _ACEOF
2646 if ac_fn_c_try_compile "$LINENO"; then :
2647 ac_hi=-1 ac_mid=-1
2648 while :; do
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2651 $4
2652 int
2653 main ()
2654 {
2655 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2656 test_array [0] = 0
2657
2658 ;
2659 return 0;
2660 }
2661 _ACEOF
2662 if ac_fn_c_try_compile "$LINENO"; then :
2663 ac_lo=$ac_mid; break
2664 else
2665 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2666 if test $ac_mid -le $ac_hi; then
2667 ac_lo= ac_hi=
2668 break
2669 fi
2670 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2671 fi
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673 done
2674 else
2675 ac_lo= ac_hi=
2676 fi
2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678 fi
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680 # Binary search between lo and hi bounds.
2681 while test "x$ac_lo" != "x$ac_hi"; do
2682 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2684 /* end confdefs.h. */
2685 $4
2686 int
2687 main ()
2688 {
2689 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2690 test_array [0] = 0
2691
2692 ;
2693 return 0;
2694 }
2695 _ACEOF
2696 if ac_fn_c_try_compile "$LINENO"; then :
2697 ac_hi=$ac_mid
2698 else
2699 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2700 fi
2701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 done
2703 case $ac_lo in #((
2704 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2705 '') ac_retval=1 ;;
2706 esac
2707 else
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2710 $4
2711 static long int longval () { return $2; }
2712 static unsigned long int ulongval () { return $2; }
2713 #include <stdio.h>
2714 #include <stdlib.h>
2715 int
2716 main ()
2717 {
2718
2719 FILE *f = fopen ("conftest.val", "w");
2720 if (! f)
2721 return 1;
2722 if (($2) < 0)
2723 {
2724 long int i = longval ();
2725 if (i != ($2))
2726 return 1;
2727 fprintf (f, "%ld", i);
2728 }
2729 else
2730 {
2731 unsigned long int i = ulongval ();
2732 if (i != ($2))
2733 return 1;
2734 fprintf (f, "%lu", i);
2735 }
2736 /* Do not output a trailing newline, as this causes \r\n confusion
2737 on some platforms. */
2738 return ferror (f) || fclose (f) != 0;
2739
2740 ;
2741 return 0;
2742 }
2743 _ACEOF
2744 if ac_fn_c_try_run "$LINENO"; then :
2745 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2746 else
2747 ac_retval=1
2748 fi
2749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2750 conftest.$ac_objext conftest.beam conftest.$ac_ext
2751 rm -f conftest.val
2752
2753 fi
2754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2755 as_fn_set_status $ac_retval
2756
2757 } # ac_fn_c_compute_int
2758 cat >config.log <<_ACEOF
2759 This file contains any messages produced by compilers while
2760 running configure, to aid debugging if configure makes a mistake.
2761
2762 It was created by emacs $as_me 24.0.50, which was
2763 generated by GNU Autoconf 2.68. Invocation command line was
2764
2765 $ $0 $@
2766
2767 _ACEOF
2768 exec 5>>config.log
2769 {
2770 cat <<_ASUNAME
2771 ## --------- ##
2772 ## Platform. ##
2773 ## --------- ##
2774
2775 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2776 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2777 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2778 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2779 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2780
2781 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2782 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2783
2784 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2785 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2786 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2787 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2788 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2789 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2790 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2791
2792 _ASUNAME
2793
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 $as_echo "PATH: $as_dir"
2800 done
2801 IFS=$as_save_IFS
2802
2803 } >&5
2804
2805 cat >&5 <<_ACEOF
2806
2807
2808 ## ----------- ##
2809 ## Core tests. ##
2810 ## ----------- ##
2811
2812 _ACEOF
2813
2814
2815 # Keep a trace of the command line.
2816 # Strip out --no-create and --no-recursion so they do not pile up.
2817 # Strip out --silent because we don't want to record it for future runs.
2818 # Also quote any args containing shell meta-characters.
2819 # Make two passes to allow for proper duplicate-argument suppression.
2820 ac_configure_args=
2821 ac_configure_args0=
2822 ac_configure_args1=
2823 ac_must_keep_next=false
2824 for ac_pass in 1 2
2825 do
2826 for ac_arg
2827 do
2828 case $ac_arg in
2829 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2830 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2831 | -silent | --silent | --silen | --sile | --sil)
2832 continue ;;
2833 *\'*)
2834 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2835 esac
2836 case $ac_pass in
2837 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2838 2)
2839 as_fn_append ac_configure_args1 " '$ac_arg'"
2840 if test $ac_must_keep_next = true; then
2841 ac_must_keep_next=false # Got value, back to normal.
2842 else
2843 case $ac_arg in
2844 *=* | --config-cache | -C | -disable-* | --disable-* \
2845 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2846 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2847 | -with-* | --with-* | -without-* | --without-* | --x)
2848 case "$ac_configure_args0 " in
2849 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2850 esac
2851 ;;
2852 -* ) ac_must_keep_next=true ;;
2853 esac
2854 fi
2855 as_fn_append ac_configure_args " '$ac_arg'"
2856 ;;
2857 esac
2858 done
2859 done
2860 { ac_configure_args0=; unset ac_configure_args0;}
2861 { ac_configure_args1=; unset ac_configure_args1;}
2862
2863 # When interrupted or exit'd, cleanup temporary files, and complete
2864 # config.log. We remove comments because anyway the quotes in there
2865 # would cause problems or look ugly.
2866 # WARNING: Use '\'' to represent an apostrophe within the trap.
2867 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2868 trap 'exit_status=$?
2869 # Save into config.log some information that might help in debugging.
2870 {
2871 echo
2872
2873 $as_echo "## ---------------- ##
2874 ## Cache variables. ##
2875 ## ---------------- ##"
2876 echo
2877 # The following way of writing the cache mishandles newlines in values,
2878 (
2879 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2880 eval ac_val=\$$ac_var
2881 case $ac_val in #(
2882 *${as_nl}*)
2883 case $ac_var in #(
2884 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2885 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2886 esac
2887 case $ac_var in #(
2888 _ | IFS | as_nl) ;; #(
2889 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2890 *) { eval $ac_var=; unset $ac_var;} ;;
2891 esac ;;
2892 esac
2893 done
2894 (set) 2>&1 |
2895 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2896 *${as_nl}ac_space=\ *)
2897 sed -n \
2898 "s/'\''/'\''\\\\'\'''\''/g;
2899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2900 ;; #(
2901 *)
2902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2903 ;;
2904 esac |
2905 sort
2906 )
2907 echo
2908
2909 $as_echo "## ----------------- ##
2910 ## Output variables. ##
2911 ## ----------------- ##"
2912 echo
2913 for ac_var in $ac_subst_vars
2914 do
2915 eval ac_val=\$$ac_var
2916 case $ac_val in
2917 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2918 esac
2919 $as_echo "$ac_var='\''$ac_val'\''"
2920 done | sort
2921 echo
2922
2923 if test -n "$ac_subst_files"; then
2924 $as_echo "## ------------------- ##
2925 ## File substitutions. ##
2926 ## ------------------- ##"
2927 echo
2928 for ac_var in $ac_subst_files
2929 do
2930 eval ac_val=\$$ac_var
2931 case $ac_val in
2932 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2933 esac
2934 $as_echo "$ac_var='\''$ac_val'\''"
2935 done | sort
2936 echo
2937 fi
2938
2939 if test -s confdefs.h; then
2940 $as_echo "## ----------- ##
2941 ## confdefs.h. ##
2942 ## ----------- ##"
2943 echo
2944 cat confdefs.h
2945 echo
2946 fi
2947 test "$ac_signal" != 0 &&
2948 $as_echo "$as_me: caught signal $ac_signal"
2949 $as_echo "$as_me: exit $exit_status"
2950 } >&5
2951 rm -f core *.core core.conftest.* &&
2952 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2953 exit $exit_status
2954 ' 0
2955 for ac_signal in 1 2 13 15; do
2956 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2957 done
2958 ac_signal=0
2959
2960 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2961 rm -f -r conftest* confdefs.h
2962
2963 $as_echo "/* confdefs.h */" > confdefs.h
2964
2965 # Predefined preprocessor variables.
2966
2967 cat >>confdefs.h <<_ACEOF
2968 #define PACKAGE_NAME "$PACKAGE_NAME"
2969 _ACEOF
2970
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2973 _ACEOF
2974
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2977 _ACEOF
2978
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE_STRING "$PACKAGE_STRING"
2981 _ACEOF
2982
2983 cat >>confdefs.h <<_ACEOF
2984 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2985 _ACEOF
2986
2987 cat >>confdefs.h <<_ACEOF
2988 #define PACKAGE_URL "$PACKAGE_URL"
2989 _ACEOF
2990
2991
2992 # Let the site file select an alternate cache file if it wants to.
2993 # Prefer an explicitly selected file to automatically selected ones.
2994 ac_site_file1=NONE
2995 ac_site_file2=NONE
2996 if test -n "$CONFIG_SITE"; then
2997 # We do not want a PATH search for config.site.
2998 case $CONFIG_SITE in #((
2999 -*) ac_site_file1=./$CONFIG_SITE;;
3000 */*) ac_site_file1=$CONFIG_SITE;;
3001 *) ac_site_file1=./$CONFIG_SITE;;
3002 esac
3003 elif test "x$prefix" != xNONE; then
3004 ac_site_file1=$prefix/share/config.site
3005 ac_site_file2=$prefix/etc/config.site
3006 else
3007 ac_site_file1=$ac_default_prefix/share/config.site
3008 ac_site_file2=$ac_default_prefix/etc/config.site
3009 fi
3010 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3011 do
3012 test "x$ac_site_file" = xNONE && continue
3013 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3015 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3016 sed 's/^/| /' "$ac_site_file" >&5
3017 . "$ac_site_file" \
3018 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3020 as_fn_error $? "failed to load site script $ac_site_file
3021 See \`config.log' for more details" "$LINENO" 5; }
3022 fi
3023 done
3024
3025 if test -r "$cache_file"; then
3026 # Some versions of bash will fail to source /dev/null (special files
3027 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3028 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3030 $as_echo "$as_me: loading cache $cache_file" >&6;}
3031 case $cache_file in
3032 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3033 *) . "./$cache_file";;
3034 esac
3035 fi
3036 else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3038 $as_echo "$as_me: creating cache $cache_file" >&6;}
3039 >$cache_file
3040 fi
3041
3042 as_fn_append ac_header_list " stdlib.h"
3043 as_fn_append ac_header_list " unistd.h"
3044 as_fn_append ac_header_list " sys/param.h"
3045 gl_getopt_required=GNU
3046 as_fn_append ac_header_list " getopt.h"
3047 as_fn_append ac_func_list " lstat"
3048 as_fn_append ac_func_list " alarm"
3049 as_fn_append ac_func_list " readlink"
3050 as_fn_append ac_header_list " sys/socket.h"
3051 as_fn_append ac_header_list " wchar.h"
3052 as_fn_append ac_header_list " stdint.h"
3053 as_fn_append ac_func_list " tzset"
3054 as_fn_append ac_func_list " symlink"
3055 as_fn_append ac_header_list " sys/stat.h"
3056 as_fn_append ac_header_list " sys/time.h"
3057 as_fn_append ac_func_list " localtime_r"
3058 # Check that the precious variables saved in the cache have kept the same
3059 # value.
3060 ac_cache_corrupted=false
3061 for ac_var in $ac_precious_vars; do
3062 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3063 eval ac_new_set=\$ac_env_${ac_var}_set
3064 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3065 eval ac_new_val=\$ac_env_${ac_var}_value
3066 case $ac_old_set,$ac_new_set in
3067 set,)
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3069 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3070 ac_cache_corrupted=: ;;
3071 ,set)
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3073 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3074 ac_cache_corrupted=: ;;
3075 ,);;
3076 *)
3077 if test "x$ac_old_val" != "x$ac_new_val"; then
3078 # differences in whitespace do not lead to failure.
3079 ac_old_val_w=`echo x $ac_old_val`
3080 ac_new_val_w=`echo x $ac_new_val`
3081 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3083 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3084 ac_cache_corrupted=:
3085 else
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3087 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3088 eval $ac_var=\$ac_old_val
3089 fi
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3091 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3093 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3094 fi;;
3095 esac
3096 # Pass precious variables to config.status.
3097 if test "$ac_new_set" = set; then
3098 case $ac_new_val in
3099 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3100 *) ac_arg=$ac_var=$ac_new_val ;;
3101 esac
3102 case " $ac_configure_args " in
3103 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3104 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3105 esac
3106 fi
3107 done
3108 if $ac_cache_corrupted; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3112 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3113 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3114 fi
3115 ## -------------------- ##
3116 ## Main body of script. ##
3117 ## -------------------- ##
3118
3119 ac_ext=c
3120 ac_cpp='$CPP $CPPFLAGS'
3121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124
3125
3126 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3127
3128
3129 am__api_version='1.11'
3130
3131 ac_aux_dir=
3132 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3133 if test -f "$ac_dir/install-sh"; then
3134 ac_aux_dir=$ac_dir
3135 ac_install_sh="$ac_aux_dir/install-sh -c"
3136 break
3137 elif test -f "$ac_dir/install.sh"; then
3138 ac_aux_dir=$ac_dir
3139 ac_install_sh="$ac_aux_dir/install.sh -c"
3140 break
3141 elif test -f "$ac_dir/shtool"; then
3142 ac_aux_dir=$ac_dir
3143 ac_install_sh="$ac_aux_dir/shtool install -c"
3144 break
3145 fi
3146 done
3147 if test -z "$ac_aux_dir"; then
3148 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3149 fi
3150
3151 # These three variables are undocumented and unsupported,
3152 # and are intended to be withdrawn in a future Autoconf release.
3153 # They can cause serious problems if a builder's source tree is in a directory
3154 # whose full name contains unusual characters.
3155 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3156 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3157 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3158
3159
3160 # Find a good install program. We prefer a C program (faster),
3161 # so one script is as good as another. But avoid the broken or
3162 # incompatible versions:
3163 # SysV /etc/install, /usr/sbin/install
3164 # SunOS /usr/etc/install
3165 # IRIX /sbin/install
3166 # AIX /bin/install
3167 # AmigaOS /C/install, which installs bootblocks on floppy discs
3168 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3169 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3170 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3171 # OS/2's system install, which has a completely different semantic
3172 # ./install, which can be erroneously created by make from ./install.sh.
3173 # Reject install programs that cannot install multiple files.
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3175 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3176 if test -z "$INSTALL"; then
3177 if ${ac_cv_path_install+:} false; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 # Account for people who put trailing slashes in PATH elements.
3186 case $as_dir/ in #((
3187 ./ | .// | /[cC]/* | \
3188 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3189 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3190 /usr/ucb/* ) ;;
3191 *)
3192 # OSF1 and SCO ODT 3.0 have their own names for install.
3193 # Don't use installbsd from OSF since it installs stuff as root
3194 # by default.
3195 for ac_prog in ginstall scoinst install; do
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3198 if test $ac_prog = install &&
3199 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3200 # AIX install. It has an incompatible calling convention.
3201 :
3202 elif test $ac_prog = install &&
3203 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3204 # program-specific install script used by HP pwplus--don't use.
3205 :
3206 else
3207 rm -rf conftest.one conftest.two conftest.dir
3208 echo one > conftest.one
3209 echo two > conftest.two
3210 mkdir conftest.dir
3211 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3212 test -s conftest.one && test -s conftest.two &&
3213 test -s conftest.dir/conftest.one &&
3214 test -s conftest.dir/conftest.two
3215 then
3216 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3217 break 3
3218 fi
3219 fi
3220 fi
3221 done
3222 done
3223 ;;
3224 esac
3225
3226 done
3227 IFS=$as_save_IFS
3228
3229 rm -rf conftest.one conftest.two conftest.dir
3230
3231 fi
3232 if test "${ac_cv_path_install+set}" = set; then
3233 INSTALL=$ac_cv_path_install
3234 else
3235 # As a last resort, use the slow shell script. Don't cache a
3236 # value for INSTALL within a source directory, because that will
3237 # break other packages using the cache if that directory is
3238 # removed, or if the value is a relative name.
3239 INSTALL=$ac_install_sh
3240 fi
3241 fi
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3243 $as_echo "$INSTALL" >&6; }
3244
3245 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3246 # It thinks the first close brace ends the variable substitution.
3247 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3248
3249 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3250
3251 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3252
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3254 $as_echo_n "checking whether build environment is sane... " >&6; }
3255 # Just in case
3256 sleep 1
3257 echo timestamp > conftest.file
3258 # Reject unsafe characters in $srcdir or the absolute working directory
3259 # name. Accept space and tab only in the latter.
3260 am_lf='
3261 '
3262 case `pwd` in
3263 *[\\\"\#\$\&\'\`$am_lf]*)
3264 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3265 esac
3266 case $srcdir in
3267 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3268 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3269 esac
3270
3271 # Do `set' in a subshell so we don't clobber the current shell's
3272 # arguments. Must try -L first in case configure is actually a
3273 # symlink; some systems play weird games with the mod time of symlinks
3274 # (eg FreeBSD returns the mod time of the symlink's containing
3275 # directory).
3276 if (
3277 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3278 if test "$*" = "X"; then
3279 # -L didn't work.
3280 set X `ls -t "$srcdir/configure" conftest.file`
3281 fi
3282 rm -f conftest.file
3283 if test "$*" != "X $srcdir/configure conftest.file" \
3284 && test "$*" != "X conftest.file $srcdir/configure"; then
3285
3286 # If neither matched, then we have a broken ls. This can happen
3287 # if, for instance, CONFIG_SHELL is bash and it inherits a
3288 # broken ls alias from the environment. This has actually
3289 # happened. Such a system could not be considered "sane".
3290 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3291 alias in your environment" "$LINENO" 5
3292 fi
3293
3294 test "$2" = conftest.file
3295 )
3296 then
3297 # Ok.
3298 :
3299 else
3300 as_fn_error $? "newly created file is older than distributed files!
3301 Check your system clock" "$LINENO" 5
3302 fi
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304 $as_echo "yes" >&6; }
3305 test "$program_prefix" != NONE &&
3306 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3307 # Use a double $ so make ignores it.
3308 test "$program_suffix" != NONE &&
3309 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3310 # Double any \ or $.
3311 # By default was `s,x,x', remove it if useless.
3312 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3313 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3314
3315 # expand $ac_aux_dir to an absolute path
3316 am_aux_dir=`cd $ac_aux_dir && pwd`
3317
3318 if test x"${MISSING+set}" != xset; then
3319 case $am_aux_dir in
3320 *\ * | *\ *)
3321 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3322 *)
3323 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3324 esac
3325 fi
3326 # Use eval to expand $SHELL
3327 if eval "$MISSING --run true"; then
3328 am_missing_run="$MISSING --run "
3329 else
3330 am_missing_run=
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3332 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3333 fi
3334
3335 if test x"${install_sh}" != xset; then
3336 case $am_aux_dir in
3337 *\ * | *\ *)
3338 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3339 *)
3340 install_sh="\${SHELL} $am_aux_dir/install-sh"
3341 esac
3342 fi
3343
3344 # Installed binaries are usually stripped using `strip' when the user
3345 # run `make install-strip'. However `strip' might not be the right
3346 # tool to use in cross-compilation environments, therefore Automake
3347 # will honor the `STRIP' environment variable to overrule this program.
3348 if test "$cross_compiling" != no; then
3349 if test -n "$ac_tool_prefix"; then
3350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}strip; ac_word=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if ${ac_cv_prog_STRIP+:} false; then :
3355 $as_echo_n "(cached) " >&6
3356 else
3357 if test -n "$STRIP"; then
3358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363 IFS=$as_save_IFS
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 break 2
3370 fi
3371 done
3372 done
3373 IFS=$as_save_IFS
3374
3375 fi
3376 fi
3377 STRIP=$ac_cv_prog_STRIP
3378 if test -n "$STRIP"; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3380 $as_echo "$STRIP" >&6; }
3381 else
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3384 fi
3385
3386
3387 fi
3388 if test -z "$ac_cv_prog_STRIP"; then
3389 ac_ct_STRIP=$STRIP
3390 # Extract the first word of "strip", so it can be a program name with args.
3391 set dummy strip; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3395 $as_echo_n "(cached) " >&6
3396 else
3397 if test -n "$ac_ct_STRIP"; then
3398 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3402 do
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407 ac_cv_prog_ac_ct_STRIP="strip"
3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3410 fi
3411 done
3412 done
3413 IFS=$as_save_IFS
3414
3415 fi
3416 fi
3417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3418 if test -n "$ac_ct_STRIP"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3420 $as_echo "$ac_ct_STRIP" >&6; }
3421 else
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3424 fi
3425
3426 if test "x$ac_ct_STRIP" = x; then
3427 STRIP=":"
3428 else
3429 case $cross_compiling:$ac_tool_warned in
3430 yes:)
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned=yes ;;
3434 esac
3435 STRIP=$ac_ct_STRIP
3436 fi
3437 else
3438 STRIP="$ac_cv_prog_STRIP"
3439 fi
3440
3441 fi
3442 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3443
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3445 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3446 if test -z "$MKDIR_P"; then
3447 if ${ac_cv_path_mkdir+:} false; then :
3448 $as_echo_n "(cached) " >&6
3449 else
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3452 do
3453 IFS=$as_save_IFS
3454 test -z "$as_dir" && as_dir=.
3455 for ac_prog in mkdir gmkdir; do
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3458 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3459 'mkdir (GNU coreutils) '* | \
3460 'mkdir (coreutils) '* | \
3461 'mkdir (fileutils) '4.1*)
3462 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3463 break 3;;
3464 esac
3465 done
3466 done
3467 done
3468 IFS=$as_save_IFS
3469
3470 fi
3471
3472 test -d ./--version && rmdir ./--version
3473 if test "${ac_cv_path_mkdir+set}" = set; then
3474 MKDIR_P="$ac_cv_path_mkdir -p"
3475 else
3476 # As a last resort, use the slow shell script. Don't cache a
3477 # value for MKDIR_P within a source directory, because that will
3478 # break other packages using the cache if that directory is
3479 # removed, or if the value is a relative name.
3480 MKDIR_P="$ac_install_sh -d"
3481 fi
3482 fi
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3484 $as_echo "$MKDIR_P" >&6; }
3485
3486
3487 mkdir_p="$MKDIR_P"
3488 case $mkdir_p in
3489 [\\/$]* | ?:[\\/]*) ;;
3490 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3491 esac
3492
3493 for ac_prog in gawk mawk nawk awk
3494 do
3495 # Extract the first word of "$ac_prog", so it can be a program name with args.
3496 set dummy $ac_prog; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if ${ac_cv_prog_AWK+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 if test -n "$AWK"; then
3503 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_AWK="$ac_prog"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3515 fi
3516 done
3517 done
3518 IFS=$as_save_IFS
3519
3520 fi
3521 fi
3522 AWK=$ac_cv_prog_AWK
3523 if test -n "$AWK"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3525 $as_echo "$AWK" >&6; }
3526 else
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531
3532 test -n "$AWK" && break
3533 done
3534
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3536 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3537 set x ${MAKE-make}
3538 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3539 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 cat >conftest.make <<\_ACEOF
3543 SHELL = /bin/sh
3544 all:
3545 @echo '@@@%%%=$(MAKE)=@@@%%%'
3546 _ACEOF
3547 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3548 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3549 *@@@%%%=?*=@@@%%%*)
3550 eval ac_cv_prog_make_${ac_make}_set=yes;;
3551 *)
3552 eval ac_cv_prog_make_${ac_make}_set=no;;
3553 esac
3554 rm -f conftest.make
3555 fi
3556 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3558 $as_echo "yes" >&6; }
3559 SET_MAKE=
3560 else
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3563 SET_MAKE="MAKE=${MAKE-make}"
3564 fi
3565
3566 rm -rf .tst 2>/dev/null
3567 mkdir .tst 2>/dev/null
3568 if test -d .tst; then
3569 am__leading_dot=.
3570 else
3571 am__leading_dot=_
3572 fi
3573 rmdir .tst 2>/dev/null
3574
3575 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3576 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3577 # is not polluted with repeated "-I."
3578 am__isrc=' -I$(srcdir)'
3579 # test to see if srcdir already configured
3580 if test -f $srcdir/config.status; then
3581 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3582 fi
3583 fi
3584
3585 # test whether we have cygpath
3586 if test -z "$CYGPATH_W"; then
3587 if (cygpath --version) >/dev/null 2>/dev/null; then
3588 CYGPATH_W='cygpath -w'
3589 else
3590 CYGPATH_W=echo
3591 fi
3592 fi
3593
3594
3595 # Define the identity of the package.
3596 PACKAGE='emacs'
3597 VERSION='24.0.50'
3598
3599
3600 cat >>confdefs.h <<_ACEOF
3601 #define PACKAGE "$PACKAGE"
3602 _ACEOF
3603
3604
3605 cat >>confdefs.h <<_ACEOF
3606 #define VERSION "$VERSION"
3607 _ACEOF
3608
3609 # Some tools Automake needs.
3610
3611 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3612
3613
3614 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3615
3616
3617 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3618
3619
3620 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3621
3622
3623 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3624
3625 # We need awk for the "check" target. The system "awk" is bad on
3626 # some platforms.
3627 # Always define AMTAR for backward compatibility.
3628
3629 AMTAR=${AMTAR-"${am_missing_run}tar"}
3630
3631 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3632
3633
3634
3635
3636
3637
3638
3639
3640 lispdir='${datadir}/emacs/${version}/lisp'
3641 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3642 '${datadir}/emacs/site-lisp'
3643 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3644 etcdir='${datadir}/emacs/${version}/etc'
3645 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3646 docdir='${datadir}/emacs/${version}/etc'
3647 gamedir='${localstatedir}/games/emacs'
3648
3649
3650
3651
3652 # Check whether --with-pop was given.
3653 if test "${with_pop+set}" = set; then :
3654 withval=$with_pop;
3655 else
3656 with_pop=yes
3657 fi
3658
3659 if test "$with_pop" = yes; then
3660 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3661
3662 fi
3663
3664
3665 # Check whether --with-kerberos was given.
3666 if test "${with_kerberos+set}" = set; then :
3667 withval=$with_kerberos;
3668 else
3669 with_kerberos=no
3670 fi
3671
3672 if test "$with_kerberos" != no; then
3673 $as_echo "#define KERBEROS 1" >>confdefs.h
3674
3675 fi
3676
3677
3678 # Check whether --with-kerberos5 was given.
3679 if test "${with_kerberos5+set}" = set; then :
3680 withval=$with_kerberos5;
3681 else
3682 with_kerberos5=no
3683 fi
3684
3685 if test "${with_kerberos5}" != no; then
3686 if test "${with_kerberos}" = no; then
3687 with_kerberos=yes
3688 $as_echo "#define KERBEROS 1" >>confdefs.h
3689
3690 fi
3691
3692 $as_echo "#define KERBEROS5 1" >>confdefs.h
3693
3694 fi
3695
3696
3697 # Check whether --with-hesiod was given.
3698 if test "${with_hesiod+set}" = set; then :
3699 withval=$with_hesiod;
3700 else
3701 with_hesiod=no
3702 fi
3703
3704 if test "$with_hesiod" != no; then
3705
3706 $as_echo "#define HESIOD 1" >>confdefs.h
3707
3708 fi
3709
3710
3711 # Check whether --with-mmdf was given.
3712 if test "${with_mmdf+set}" = set; then :
3713 withval=$with_mmdf;
3714 else
3715 with_mmdf=no
3716 fi
3717
3718 if test "$with_mmdf" != no; then
3719
3720 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3721
3722 fi
3723
3724
3725 # Check whether --with-mail-unlink was given.
3726 if test "${with_mail_unlink+set}" = set; then :
3727 withval=$with_mail_unlink;
3728 else
3729 with_mail_unlink=no
3730 fi
3731
3732 if test "$with_mail_unlink" != no; then
3733
3734 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3735
3736 fi
3737
3738
3739 # Check whether --with-mailhost was given.
3740 if test "${with_mailhost+set}" = set; then :
3741 withval=$with_mailhost;
3742 cat >>confdefs.h <<_ACEOF
3743 #define MAILHOST "$withval"
3744 _ACEOF
3745
3746 fi
3747
3748
3749
3750 # Check whether --with-sound was given.
3751 if test "${with_sound+set}" = set; then :
3752 withval=$with_sound;
3753 else
3754 with_sound=yes
3755 fi
3756
3757
3758
3759 # Check whether --with-sync-input was given.
3760 if test "${with_sync_input+set}" = set; then :
3761 withval=$with_sync_input;
3762 else
3763 with_sync_input=yes
3764 fi
3765
3766 if test "$with_sync_input" = yes; then
3767
3768 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3769
3770 fi
3771
3772
3773 # Check whether --with-x-toolkit was given.
3774 if test "${with_x_toolkit+set}" = set; then :
3775 withval=$with_x_toolkit; case "${withval}" in
3776 y | ye | yes ) val=gtk ;;
3777 n | no ) val=no ;;
3778 l | lu | luc | luci | lucid ) val=lucid ;;
3779 a | at | ath | athe | athen | athena ) val=athena ;;
3780 m | mo | mot | moti | motif ) val=motif ;;
3781 g | gt | gtk ) val=gtk ;;
3782 gtk3 ) val=gtk3 ;;
3783 * )
3784 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3785 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3786 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3787 ;;
3788 esac
3789 with_x_toolkit=$val
3790
3791 fi
3792
3793
3794
3795 # Check whether --with-xpm was given.
3796 if test "${with_xpm+set}" = set; then :
3797 withval=$with_xpm;
3798 else
3799 with_xpm=yes
3800 fi
3801
3802
3803 # Check whether --with-jpeg was given.
3804 if test "${with_jpeg+set}" = set; then :
3805 withval=$with_jpeg;
3806 else
3807 with_jpeg=yes
3808 fi
3809
3810
3811 # Check whether --with-tiff was given.
3812 if test "${with_tiff+set}" = set; then :
3813 withval=$with_tiff;
3814 else
3815 with_tiff=yes
3816 fi
3817
3818
3819 # Check whether --with-gif was given.
3820 if test "${with_gif+set}" = set; then :
3821 withval=$with_gif;
3822 else
3823 with_gif=yes
3824 fi
3825
3826
3827 # Check whether --with-png was given.
3828 if test "${with_png+set}" = set; then :
3829 withval=$with_png;
3830 else
3831 with_png=yes
3832 fi
3833
3834
3835 # Check whether --with-rsvg was given.
3836 if test "${with_rsvg+set}" = set; then :
3837 withval=$with_rsvg;
3838 else
3839 with_rsvg=yes
3840 fi
3841
3842
3843 # Check whether --with-xml2 was given.
3844 if test "${with_xml2+set}" = set; then :
3845 withval=$with_xml2;
3846 else
3847 with_xml2=yes
3848 fi
3849
3850
3851 # Check whether --with-imagemagick was given.
3852 if test "${with_imagemagick+set}" = set; then :
3853 withval=$with_imagemagick;
3854 else
3855 with_imagemagick=yes
3856 fi
3857
3858
3859
3860 # Check whether --with-xft was given.
3861 if test "${with_xft+set}" = set; then :
3862 withval=$with_xft;
3863 else
3864 with_xft=yes
3865 fi
3866
3867
3868 # Check whether --with-libotf was given.
3869 if test "${with_libotf+set}" = set; then :
3870 withval=$with_libotf;
3871 else
3872 with_libotf=yes
3873 fi
3874
3875
3876 # Check whether --with-m17n-flt was given.
3877 if test "${with_m17n_flt+set}" = set; then :
3878 withval=$with_m17n_flt;
3879 else
3880 with_m17n_flt=yes
3881 fi
3882
3883
3884
3885 # Check whether --with-toolkit-scroll-bars was given.
3886 if test "${with_toolkit_scroll_bars+set}" = set; then :
3887 withval=$with_toolkit_scroll_bars;
3888 else
3889 with_toolkit_scroll_bars=yes
3890 fi
3891
3892
3893 # Check whether --with-xaw3d was given.
3894 if test "${with_xaw3d+set}" = set; then :
3895 withval=$with_xaw3d;
3896 else
3897 with_xaw3d=yes
3898 fi
3899
3900
3901 # Check whether --with-xim was given.
3902 if test "${with_xim+set}" = set; then :
3903 withval=$with_xim;
3904 else
3905 with_xim=yes
3906 fi
3907
3908
3909 # Check whether --with-ns was given.
3910 if test "${with_ns+set}" = set; then :
3911 withval=$with_ns;
3912 else
3913 with_ns=no
3914 fi
3915
3916
3917
3918 # Check whether --with-gpm was given.
3919 if test "${with_gpm+set}" = set; then :
3920 withval=$with_gpm;
3921 else
3922 with_gpm=yes
3923 fi
3924
3925
3926 # Check whether --with-dbus was given.
3927 if test "${with_dbus+set}" = set; then :
3928 withval=$with_dbus;
3929 else
3930 with_dbus=yes
3931 fi
3932
3933
3934 # Check whether --with-gconf was given.
3935 if test "${with_gconf+set}" = set; then :
3936 withval=$with_gconf;
3937 else
3938 with_gconf=yes
3939 fi
3940
3941
3942 # Check whether --with-selinux was given.
3943 if test "${with_selinux+set}" = set; then :
3944 withval=$with_selinux;
3945 else
3946 with_selinux=yes
3947 fi
3948
3949
3950 # Check whether --with-gnutls was given.
3951 if test "${with_gnutls+set}" = set; then :
3952 withval=$with_gnutls;
3953 else
3954 with_gnutls=yes
3955 fi
3956
3957
3958 ## For the times when you want to build Emacs but don't have
3959 ## a suitable makeinfo, and can live without the manuals.
3960
3961 # Check whether --with-makeinfo was given.
3962 if test "${with_makeinfo+set}" = set; then :
3963 withval=$with_makeinfo;
3964 else
3965 with_makeinfo=yes
3966 fi
3967
3968
3969 ## This is an option because I do not know if all info/man support
3970 ## compressed files, nor how to test if they do so.
3971
3972 # Check whether --with-compress-info was given.
3973 if test "${with_compress_info+set}" = set; then :
3974 withval=$with_compress_info;
3975 else
3976 with_compress_info=yes
3977 fi
3978
3979 if test $with_compress_info = yes; then
3980 GZIP_INFO=yes
3981 else
3982 GZIP_INFO=
3983 fi
3984
3985
3986
3987 # Check whether --with-pkg-config-prog was given.
3988 if test "${with_pkg_config_prog+set}" = set; then :
3989 withval=$with_pkg_config_prog;
3990 fi
3991
3992 if test "X${with_pkg_config_prog}" != X; then
3993 if test "${with_pkg_config_prog}" != yes; then
3994 PKG_CONFIG="${with_pkg_config_prog}"
3995 fi
3996 fi
3997
3998 CRT_DIR=
3999
4000 # Check whether --with-crt-dir was given.
4001 if test "${with_crt_dir+set}" = set; then :
4002 withval=$with_crt_dir;
4003 fi
4004
4005 CRT_DIR="${with_crt_dir}"
4006
4007
4008 # Check whether --with-gameuser was given.
4009 if test "${with_gameuser+set}" = set; then :
4010 withval=$with_gameuser;
4011 fi
4012
4013 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4014 && gameuser="${with_gameuser}"
4015 test "X$gameuser" = X && gameuser=games
4016
4017
4018 # Check whether --with-gnustep-conf was given.
4019 if test "${with_gnustep_conf+set}" = set; then :
4020 withval=$with_gnustep_conf;
4021 fi
4022
4023 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4024 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4025 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4026 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4027
4028 # Check whether --enable-ns-self-contained was given.
4029 if test "${enable_ns_self_contained+set}" = set; then :
4030 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4031 else
4032 EN_NS_SELF_CONTAINED=yes
4033 fi
4034
4035
4036 # Check whether --enable-asserts was given.
4037 if test "${enable_asserts+set}" = set; then :
4038 enableval=$enable_asserts; USE_XASSERTS=$enableval
4039 else
4040 USE_XASSERTS=no
4041 fi
4042
4043
4044 # Check whether --enable-maintainer-mode was given.
4045 if test "${enable_maintainer_mode+set}" = set; then :
4046 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4047 else
4048 USE_MAINTAINER_MODE=yes
4049 fi
4050
4051 if test $USE_MAINTAINER_MODE = yes; then
4052 MAINT=
4053 else
4054 MAINT=#
4055 fi
4056
4057
4058 # Check whether --enable-locallisppath was given.
4059 if test "${enable_locallisppath+set}" = set; then :
4060 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4061 locallisppath=
4062 elif test "${enableval}" != "yes"; then
4063 locallisppath=${enableval}
4064 fi
4065 fi
4066
4067
4068 # Check whether --enable-checking was given.
4069 if test "${enable_checking+set}" = set; then :
4070 enableval=$enable_checking; ac_checking_flags="${enableval}"
4071 fi
4072
4073 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4074 for check in $ac_checking_flags
4075 do
4076 case $check in
4077 # these set all the flags to specific states
4078 yes) ac_enable_checking=1 ;;
4079 no) ac_enable_checking= ;
4080 ac_gc_check_stringbytes= ;
4081 ac_gc_check_string_overrun= ;
4082 ac_gc_check_string_free_list= ;
4083 ac_xmalloc_overrun= ;
4084 ac_gc_check_cons_list= ;;
4085 all) ac_enable_checking=1 ;
4086 ac_gc_check_stringbytes=1 ;
4087 ac_gc_check_string_overrun=1 ;
4088 ac_gc_check_string_free_list=1 ;
4089 ac_xmalloc_overrun=1 ;
4090 ac_gc_check_cons_list=1 ;;
4091 # these enable particular checks
4092 stringbytes) ac_gc_check_stringbytes=1 ;;
4093 stringoverrun) ac_gc_check_string_overrun=1 ;;
4094 stringfreelist) ac_gc_check_string_free_list=1 ;;
4095 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4096 conslist) ac_gc_check_cons_list=1 ;;
4097 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
4098 esac
4099 done
4100 IFS="$ac_save_IFS"
4101
4102 if test x$ac_enable_checking != x ; then
4103
4104 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4105
4106 fi
4107 if test x$ac_gc_check_stringbytes != x ; then
4108
4109 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4110
4111 fi
4112 if test x$ac_gc_check_stringoverrun != x ; then
4113
4114 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4115
4116 fi
4117 if test x$ac_gc_check_string_free_list != x ; then
4118
4119 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4120
4121 fi
4122 if test x$ac_xmalloc_overrun != x ; then
4123
4124 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4125
4126 fi
4127 if test x$ac_gc_check_cons_list != x ; then
4128
4129 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4130
4131 fi
4132
4133 # Check whether --enable-use-lisp-union-type was given.
4134 if test "${enable_use_lisp_union_type+set}" = set; then :
4135 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4136
4137 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4138
4139 fi
4140 fi
4141
4142
4143
4144 # Check whether --enable-profiling was given.
4145 if test "${enable_profiling+set}" = set; then :
4146 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4147 fi
4148
4149 if test x$ac_enable_profiling != x ; then
4150 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4151 else
4152 PROFILING_CFLAGS=
4153 fi
4154
4155
4156 # Check whether --enable-autodepend was given.
4157 if test "${enable_autodepend+set}" = set; then :
4158 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4159 else
4160 ac_enable_autodepend=yes
4161 fi
4162
4163
4164 #### Make srcdir absolute, if it isn't already. It's important to
4165 #### avoid running the path through pwd unnecessarily, since pwd can
4166 #### give you automounter prefixes, which can go away. We do all this
4167 #### so Emacs can find its files when run uninstalled.
4168 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4169 unset CDPATH
4170 case "${srcdir}" in
4171 /* ) ;;
4172 . )
4173 ## We may be able to use the $PWD environment variable to make this
4174 ## absolute. But sometimes PWD is inaccurate.
4175 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4176 ## but that tested only for a well-formed and valid PWD,
4177 ## it did not object when PWD was well-formed and valid but just wrong.
4178 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4179 then
4180 srcdir="$PWD"
4181 else
4182 srcdir="`(cd ${srcdir}; pwd)`"
4183 fi
4184 ;;
4185 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4186 esac
4187
4188 #### Check if the source directory already has a configured system in it.
4189 if test `pwd` != `(cd ${srcdir} && pwd)` \
4190 && test -f "${srcdir}/src/config.h" ; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4192 as a build directory right now; it has been configured in its own
4193 right. To configure in another directory as well, you MUST
4194 use GNU make. If you do not have GNU make, then you must
4195 now do \`make distclean' in ${srcdir},
4196 and then run $0 again." >&5
4197 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4198 as a build directory right now; it has been configured in its own
4199 right. To configure in another directory as well, you MUST
4200 use GNU make. If you do not have GNU make, then you must
4201 now do \`make distclean' in ${srcdir},
4202 and then run $0 again." >&2;}
4203 fi
4204
4205 #### Given the configuration name, set machfile and opsysfile to the
4206 #### names of the m/*.h and s/*.h files we should use.
4207
4208 ### Canonicalize the configuration name.
4209
4210 # Make sure we can run config.sub.
4211 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4212 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4213
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4215 $as_echo_n "checking build system type... " >&6; }
4216 if ${ac_cv_build+:} false; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 ac_build_alias=$build_alias
4220 test "x$ac_build_alias" = x &&
4221 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4222 test "x$ac_build_alias" = x &&
4223 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4224 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4225 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4226
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4229 $as_echo "$ac_cv_build" >&6; }
4230 case $ac_cv_build in
4231 *-*-*) ;;
4232 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4233 esac
4234 build=$ac_cv_build
4235 ac_save_IFS=$IFS; IFS='-'
4236 set x $ac_cv_build
4237 shift
4238 build_cpu=$1
4239 build_vendor=$2
4240 shift; shift
4241 # Remember, the first character of IFS is used to create $*,
4242 # except with old shells:
4243 build_os=$*
4244 IFS=$ac_save_IFS
4245 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4246
4247
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4249 $as_echo_n "checking host system type... " >&6; }
4250 if ${ac_cv_host+:} false; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 if test "x$host_alias" = x; then
4254 ac_cv_host=$ac_cv_build
4255 else
4256 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4257 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4258 fi
4259
4260 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4262 $as_echo "$ac_cv_host" >&6; }
4263 case $ac_cv_host in
4264 *-*-*) ;;
4265 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4266 esac
4267 host=$ac_cv_host
4268 ac_save_IFS=$IFS; IFS='-'
4269 set x $ac_cv_host
4270 shift
4271 host_cpu=$1
4272 host_vendor=$2
4273 shift; shift
4274 # Remember, the first character of IFS is used to create $*,
4275 # except with old shells:
4276 host_os=$*
4277 IFS=$ac_save_IFS
4278 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4279
4280
4281 canonical=$host
4282 configuration=${host_alias-${build_alias-$host}}
4283
4284
4285
4286 ### If you add support for a new configuration, add code to this
4287 ### switch statement to recognize your configuration name and select
4288 ### the appropriate operating system and machine description files.
4289
4290 ### You would hope that you could choose an m/*.h file pretty much
4291 ### based on the machine portion of the configuration name, and an s/*.h
4292 ### file based on the operating system portion. However, it turns out
4293 ### that each m/*.h file is pretty manufacturer-specific - for
4294 ### example mips.h is MIPS
4295 ### So we basically have to have a special case for each
4296 ### configuration name.
4297 ###
4298 ### As far as handling version numbers on operating systems is
4299 ### concerned, make sure things will fail in a fixable way. If
4300 ### /etc/MACHINES doesn't say anything about version numbers, be
4301 ### prepared to handle anything reasonably. If version numbers
4302 ### matter, be sure /etc/MACHINES says something about it.
4303
4304 machine='' opsys='' unported=no
4305 case "${canonical}" in
4306
4307 ## GNU/Linux ports
4308 *-*-linux-gnu*)
4309 opsys=gnu-linux
4310 case ${canonical} in
4311 alpha*) machine=alpha ;;
4312 s390-*) machine=ibms390 ;;
4313 s390x-*) machine=ibms390x ;;
4314 powerpc*) machine=macppc ;;
4315 sparc*) machine=sparc ;;
4316 ia64*) machine=ia64 ;;
4317 m68k*) machine=m68k ;;
4318 x86_64*) machine=amdx86-64 ;;
4319 esac
4320 ;;
4321
4322 ## FreeBSD ports
4323 *-*-freebsd* )
4324 opsys=freebsd
4325 case "${canonical}" in
4326 alpha*) machine=alpha ;;
4327 amd64-*|x86_64-*) machine=amdx86-64 ;;
4328 ia64-*) machine=ia64 ;;
4329 i[3456]86-*) machine=intel386 ;;
4330 powerpc-*) machine=macppc ;;
4331 sparc-*) machine=sparc ;;
4332 sparc64-*) machine=sparc ;;
4333 esac
4334 ;;
4335
4336 ## FreeBSD kernel + glibc based userland
4337 *-*-kfreebsd*gnu* )
4338 opsys=gnu-kfreebsd
4339 case "${canonical}" in
4340 alpha*) machine=alpha ;;
4341 amd64-*|x86_64-*) machine=amdx86-64 ;;
4342 ia64-*) machine=ia64 ;;
4343 i[3456]86-*) machine=intel386 ;;
4344 powerpc-*) machine=macppc ;;
4345 sparc-*) machine=sparc ;;
4346 sparc64-*) machine=sparc ;;
4347 esac
4348 ;;
4349
4350 ## NetBSD ports
4351 *-*-netbsd* )
4352 opsys=netbsd
4353 case "${canonical}" in
4354 alpha*) machine=alpha ;;
4355 x86_64-*) machine=amdx86-64 ;;
4356 i[3456]86-*) machine=intel386 ;;
4357 m68k-*) machine=m68k ;;
4358 powerpc-*) machine=macppc ;;
4359 sparc*-) machine=sparc ;;
4360 vax-*) machine=vax ;;
4361 esac
4362 ;;
4363
4364 ## OpenBSD ports
4365 *-*-openbsd* )
4366 opsys=openbsd
4367 case "${canonical}" in
4368 alpha*) machine=alpha ;;
4369 x86_64-*) machine=amdx86-64 ;;
4370 i386-*) machine=intel386 ;;
4371 powerpc-*) machine=macppc ;;
4372 sparc*) machine=sparc ;;
4373 vax-*) machine=vax ;;
4374 esac
4375 ;;
4376
4377 ## Apple Darwin / Mac OS X
4378 *-apple-darwin* )
4379 case "${canonical}" in
4380 i[3456]86-* ) machine=intel386 ;;
4381 powerpc-* ) machine=macppc ;;
4382 x86_64-* ) machine=amdx86-64 ;;
4383 * ) unported=yes ;;
4384 esac
4385 opsys=darwin
4386 # Define CPP as follows to make autoconf work correctly.
4387 CPP="${CC-cc} -E -no-cpp-precomp"
4388 # Use fink packages if available.
4389 if test -d /sw/include && test -d /sw/lib; then
4390 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4391 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4392 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4393 fi
4394 ;;
4395
4396 ## HP 9000 series 700 and 800, running HP/UX
4397 hppa*-hp-hpux10.2* )
4398 opsys=hpux10-20
4399 ;;
4400 hppa*-hp-hpux1[1-9]* )
4401 opsys=hpux11
4402 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4403 ;;
4404
4405 ia64*-hp-hpux1[1-9]* )
4406 machine=hp800 opsys=hpux11
4407 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4408 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4409 CANNOT_DUMP=yes
4410 ;;
4411
4412 hppa*-*-linux-gnu* )
4413 machine=hp800 opsys=gnu-linux
4414 ;;
4415
4416 ## IBM machines
4417 rs6000-ibm-aix4.[23]* )
4418 machine=ibmrs6000 opsys=aix4-2
4419 ;;
4420 powerpc-ibm-aix4.[23]* )
4421 machine=ibmrs6000 opsys=aix4-2
4422 ;;
4423 rs6000-ibm-aix[56]* )
4424 machine=ibmrs6000 opsys=aix4-2
4425 ;;
4426 powerpc-ibm-aix[56]* )
4427 machine=ibmrs6000 opsys=aix4-2
4428 ;;
4429
4430 ## Silicon Graphics machines
4431 ## Iris 4D
4432 mips-sgi-irix6.5 )
4433 machine=iris4d opsys=irix6-5
4434 # Without defining _LANGUAGE_C, things get masked out in the headers
4435 # so that, for instance, grepping for `free' in stdlib.h fails and
4436 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4437 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4438 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4439 ;;
4440
4441 ## Suns
4442 *-sun-solaris* \
4443 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4444 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4445 case "${canonical}" in
4446 i[3456]86-*-* ) machine=intel386 ;;
4447 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4448 sparc* ) machine=sparc ;;
4449 * ) unported=yes ;;
4450 esac
4451 case "${canonical}" in
4452 *-sunos5.6* | *-solaris2.6* )
4453 opsys=sol2-6
4454 NON_GNU_CPP=/usr/ccs/lib/cpp
4455 RANLIB="ar -ts"
4456 ;;
4457 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4458 opsys=sol2-6
4459 emacs_check_sunpro_c=yes
4460 NON_GNU_CPP=/usr/ccs/lib/cpp
4461 ;;
4462 *-sunos5* | *-solaris* )
4463 opsys=sol2-10
4464 emacs_check_sunpro_c=yes
4465 NON_GNU_CPP=/usr/ccs/lib/cpp
4466 ;;
4467 esac
4468 ## Watch out for a compiler that we know will not work.
4469 case "${canonical}" in
4470 *-solaris* | *-sunos5* )
4471 if [ "x$CC" = x/usr/ucb/cc ]; then
4472 ## /usr/ucb/cc doesn't work;
4473 ## we should find some other compiler that does work.
4474 unset CC
4475 fi
4476 ;;
4477 *) ;;
4478 esac
4479 ;;
4480
4481 ## Intel 386 machines where we don't care about the manufacturer.
4482 i[3456]86-*-* )
4483 machine=intel386
4484 case "${canonical}" in
4485 *-cygwin ) opsys=cygwin ;;
4486 *-darwin* ) opsys=darwin
4487 CPP="${CC-cc} -E -no-cpp-precomp"
4488 ;;
4489 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4490 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4491 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4492 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4493 esac
4494 ;;
4495
4496 * )
4497 unported=yes
4498 ;;
4499 esac
4500
4501 ### If the code above didn't choose an operating system, just choose
4502 ### an operating system based on the configuration name. You really
4503 ### only want to use this when you have no idea what the right
4504 ### operating system is; if you know what operating systems a machine
4505 ### runs, it's cleaner to make it explicit in the case statement
4506 ### above.
4507 if test x"${opsys}" = x; then
4508 case "${canonical}" in
4509 *-gnu* ) opsys=gnu ;;
4510 * )
4511 unported=yes
4512 ;;
4513 esac
4514 fi
4515
4516
4517
4518 if test $unported = yes; then
4519 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
4520 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4521 fi
4522
4523 if test -n "$machine"; then
4524 machfile="m/${machine}.h"
4525 else
4526 machfile=
4527 fi
4528 opsysfile="s/${opsys}.h"
4529
4530
4531 #### Choose a compiler.
4532 test -n "$CC" && cc_specified=yes
4533
4534 # Save the value of CFLAGS that the user specified.
4535 SPECIFIED_CFLAGS="$CFLAGS"
4536
4537 ac_ext=c
4538 ac_cpp='$CPP $CPPFLAGS'
4539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542 if test -n "$ac_tool_prefix"; then
4543 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4544 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if ${ac_cv_prog_CC+:} false; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 if test -n "$CC"; then
4551 ac_cv_prog_CC="$CC" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564 done
4565 done
4566 IFS=$as_save_IFS
4567
4568 fi
4569 fi
4570 CC=$ac_cv_prog_CC
4571 if test -n "$CC"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4573 $as_echo "$CC" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4577 fi
4578
4579
4580 fi
4581 if test -z "$ac_cv_prog_CC"; then
4582 ac_ct_CC=$CC
4583 # Extract the first word of "gcc", so it can be a program name with args.
4584 set dummy gcc; ac_word=$2
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 $as_echo_n "checking for $ac_word... " >&6; }
4587 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 if test -n "$ac_ct_CC"; then
4591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600 ac_cv_prog_ac_ct_CC="gcc"
4601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4603 fi
4604 done
4605 done
4606 IFS=$as_save_IFS
4607
4608 fi
4609 fi
4610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4611 if test -n "$ac_ct_CC"; then
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4613 $as_echo "$ac_ct_CC" >&6; }
4614 else
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616 $as_echo "no" >&6; }
4617 fi
4618
4619 if test "x$ac_ct_CC" = x; then
4620 CC=""
4621 else
4622 case $cross_compiling:$ac_tool_warned in
4623 yes:)
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4626 ac_tool_warned=yes ;;
4627 esac
4628 CC=$ac_ct_CC
4629 fi
4630 else
4631 CC="$ac_cv_prog_CC"
4632 fi
4633
4634 if test -z "$CC"; then
4635 if test -n "$ac_tool_prefix"; then
4636 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4637 set dummy ${ac_tool_prefix}cc; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_prog_CC+:} false; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 if test -n "$CC"; then
4644 ac_cv_prog_CC="$CC" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4653 ac_cv_prog_CC="${ac_tool_prefix}cc"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4656 fi
4657 done
4658 done
4659 IFS=$as_save_IFS
4660
4661 fi
4662 fi
4663 CC=$ac_cv_prog_CC
4664 if test -n "$CC"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4666 $as_echo "$CC" >&6; }
4667 else
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4670 fi
4671
4672
4673 fi
4674 fi
4675 if test -z "$CC"; then
4676 # Extract the first word of "cc", so it can be a program name with args.
4677 set dummy cc; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if ${ac_cv_prog_CC+:} false; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 if test -n "$CC"; then
4684 ac_cv_prog_CC="$CC" # Let the user override the test.
4685 else
4686 ac_prog_rejected=no
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4694 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4695 ac_prog_rejected=yes
4696 continue
4697 fi
4698 ac_cv_prog_CC="cc"
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
4701 fi
4702 done
4703 done
4704 IFS=$as_save_IFS
4705
4706 if test $ac_prog_rejected = yes; then
4707 # We found a bogon in the path, so make sure we never use it.
4708 set dummy $ac_cv_prog_CC
4709 shift
4710 if test $# != 0; then
4711 # We chose a different compiler from the bogus one.
4712 # However, it has the same basename, so the bogon will be chosen
4713 # first if we set CC to just the basename; use the full file name.
4714 shift
4715 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4716 fi
4717 fi
4718 fi
4719 fi
4720 CC=$ac_cv_prog_CC
4721 if test -n "$CC"; then
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4723 $as_echo "$CC" >&6; }
4724 else
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 $as_echo "no" >&6; }
4727 fi
4728
4729
4730 fi
4731 if test -z "$CC"; then
4732 if test -n "$ac_tool_prefix"; then
4733 for ac_prog in cl.exe
4734 do
4735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if ${ac_cv_prog_CC+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test -n "$CC"; then
4743 ac_cv_prog_CC="$CC" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4755 fi
4756 done
4757 done
4758 IFS=$as_save_IFS
4759
4760 fi
4761 fi
4762 CC=$ac_cv_prog_CC
4763 if test -n "$CC"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4765 $as_echo "$CC" >&6; }
4766 else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4769 fi
4770
4771
4772 test -n "$CC" && break
4773 done
4774 fi
4775 if test -z "$CC"; then
4776 ac_ct_CC=$CC
4777 for ac_prog in cl.exe
4778 do
4779 # Extract the first word of "$ac_prog", so it can be a program name with args.
4780 set dummy $ac_prog; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 if test -n "$ac_ct_CC"; then
4787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_prog_ac_ct_CC="$ac_prog"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4799 fi
4800 done
4801 done
4802 IFS=$as_save_IFS
4803
4804 fi
4805 fi
4806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4807 if test -n "$ac_ct_CC"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4809 $as_echo "$ac_ct_CC" >&6; }
4810 else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4813 fi
4814
4815
4816 test -n "$ac_ct_CC" && break
4817 done
4818
4819 if test "x$ac_ct_CC" = x; then
4820 CC=""
4821 else
4822 case $cross_compiling:$ac_tool_warned in
4823 yes:)
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826 ac_tool_warned=yes ;;
4827 esac
4828 CC=$ac_ct_CC
4829 fi
4830 fi
4831
4832 fi
4833
4834
4835 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4837 as_fn_error $? "no acceptable C compiler found in \$PATH
4838 See \`config.log' for more details" "$LINENO" 5; }
4839
4840 # Provide some information about the compiler.
4841 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4842 set X $ac_compile
4843 ac_compiler=$2
4844 for ac_option in --version -v -V -qversion; do
4845 { { ac_try="$ac_compiler $ac_option >&5"
4846 case "(($ac_try" in
4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4849 esac
4850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4851 $as_echo "$ac_try_echo"; } >&5
4852 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4853 ac_status=$?
4854 if test -s conftest.err; then
4855 sed '10a\
4856 ... rest of stderr output deleted ...
4857 10q' conftest.err >conftest.er1
4858 cat conftest.er1 >&5
4859 fi
4860 rm -f conftest.er1 conftest.err
4861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4862 test $ac_status = 0; }
4863 done
4864
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4867
4868 int
4869 main ()
4870 {
4871
4872 ;
4873 return 0;
4874 }
4875 _ACEOF
4876 ac_clean_files_save=$ac_clean_files
4877 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4878 # Try to create an executable without -o first, disregard a.out.
4879 # It will help us diagnose broken compilers, and finding out an intuition
4880 # of exeext.
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4882 $as_echo_n "checking whether the C compiler works... " >&6; }
4883 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4884
4885 # The possible output files:
4886 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4887
4888 ac_rmfiles=
4889 for ac_file in $ac_files
4890 do
4891 case $ac_file in
4892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4893 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4894 esac
4895 done
4896 rm -f $ac_rmfiles
4897
4898 if { { ac_try="$ac_link_default"
4899 case "(($ac_try" in
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4902 esac
4903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4904 $as_echo "$ac_try_echo"; } >&5
4905 (eval "$ac_link_default") 2>&5
4906 ac_status=$?
4907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4908 test $ac_status = 0; }; then :
4909 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4910 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4911 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4912 # so that the user can short-circuit this test for compilers unknown to
4913 # Autoconf.
4914 for ac_file in $ac_files ''
4915 do
4916 test -f "$ac_file" || continue
4917 case $ac_file in
4918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4919 ;;
4920 [ab].out )
4921 # We found the default executable, but exeext='' is most
4922 # certainly right.
4923 break;;
4924 *.* )
4925 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4926 then :; else
4927 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4928 fi
4929 # We set ac_cv_exeext here because the later test for it is not
4930 # safe: cross compilers may not add the suffix if given an `-o'
4931 # argument, so we may need to know it at that point already.
4932 # Even if this section looks crufty: it has the advantage of
4933 # actually working.
4934 break;;
4935 * )
4936 break;;
4937 esac
4938 done
4939 test "$ac_cv_exeext" = no && ac_cv_exeext=
4940
4941 else
4942 ac_file=''
4943 fi
4944 if test -z "$ac_file"; then :
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 $as_echo "no" >&6; }
4947 $as_echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4949
4950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4952 as_fn_error 77 "C compiler cannot create executables
4953 See \`config.log' for more details" "$LINENO" 5; }
4954 else
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4956 $as_echo "yes" >&6; }
4957 fi
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4959 $as_echo_n "checking for C compiler default output file name... " >&6; }
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4961 $as_echo "$ac_file" >&6; }
4962 ac_exeext=$ac_cv_exeext
4963
4964 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4965 ac_clean_files=$ac_clean_files_save
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4967 $as_echo_n "checking for suffix of executables... " >&6; }
4968 if { { ac_try="$ac_link"
4969 case "(($ac_try" in
4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4972 esac
4973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4974 $as_echo "$ac_try_echo"; } >&5
4975 (eval "$ac_link") 2>&5
4976 ac_status=$?
4977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4978 test $ac_status = 0; }; then :
4979 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4980 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4981 # work properly (i.e., refer to `conftest.exe'), while it won't with
4982 # `rm'.
4983 for ac_file in conftest.exe conftest conftest.*; do
4984 test -f "$ac_file" || continue
4985 case $ac_file in
4986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4987 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4988 break;;
4989 * ) break;;
4990 esac
4991 done
4992 else
4993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4995 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4996 See \`config.log' for more details" "$LINENO" 5; }
4997 fi
4998 rm -f conftest conftest$ac_cv_exeext
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5000 $as_echo "$ac_cv_exeext" >&6; }
5001
5002 rm -f conftest.$ac_ext
5003 EXEEXT=$ac_cv_exeext
5004 ac_exeext=$EXEEXT
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5007 #include <stdio.h>
5008 int
5009 main ()
5010 {
5011 FILE *f = fopen ("conftest.out", "w");
5012 return ferror (f) || fclose (f) != 0;
5013
5014 ;
5015 return 0;
5016 }
5017 _ACEOF
5018 ac_clean_files="$ac_clean_files conftest.out"
5019 # Check that the compiler produces executables we can run. If not, either
5020 # the compiler is broken, or we cross compile.
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5022 $as_echo_n "checking whether we are cross compiling... " >&6; }
5023 if test "$cross_compiling" != yes; then
5024 { { ac_try="$ac_link"
5025 case "(($ac_try" in
5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5028 esac
5029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5030 $as_echo "$ac_try_echo"; } >&5
5031 (eval "$ac_link") 2>&5
5032 ac_status=$?
5033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5034 test $ac_status = 0; }
5035 if { ac_try='./conftest$ac_cv_exeext'
5036 { { case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5039 esac
5040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5041 $as_echo "$ac_try_echo"; } >&5
5042 (eval "$ac_try") 2>&5
5043 ac_status=$?
5044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5045 test $ac_status = 0; }; }; then
5046 cross_compiling=no
5047 else
5048 if test "$cross_compiling" = maybe; then
5049 cross_compiling=yes
5050 else
5051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5053 as_fn_error $? "cannot run C compiled programs.
5054 If you meant to cross compile, use \`--host'.
5055 See \`config.log' for more details" "$LINENO" 5; }
5056 fi
5057 fi
5058 fi
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5060 $as_echo "$cross_compiling" >&6; }
5061
5062 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5063 ac_clean_files=$ac_clean_files_save
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5065 $as_echo_n "checking for suffix of object files... " >&6; }
5066 if ${ac_cv_objext+:} false; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5071
5072 int
5073 main ()
5074 {
5075
5076 ;
5077 return 0;
5078 }
5079 _ACEOF
5080 rm -f conftest.o conftest.obj
5081 if { { ac_try="$ac_compile"
5082 case "(($ac_try" in
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5085 esac
5086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5087 $as_echo "$ac_try_echo"; } >&5
5088 (eval "$ac_compile") 2>&5
5089 ac_status=$?
5090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5091 test $ac_status = 0; }; then :
5092 for ac_file in conftest.o conftest.obj conftest.*; do
5093 test -f "$ac_file" || continue;
5094 case $ac_file in
5095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5096 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5097 break;;
5098 esac
5099 done
5100 else
5101 $as_echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5103
5104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5106 as_fn_error $? "cannot compute suffix of object files: cannot compile
5107 See \`config.log' for more details" "$LINENO" 5; }
5108 fi
5109 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5110 fi
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5112 $as_echo "$ac_cv_objext" >&6; }
5113 OBJEXT=$ac_cv_objext
5114 ac_objext=$OBJEXT
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5116 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5117 if ${ac_cv_c_compiler_gnu+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122
5123 int
5124 main ()
5125 {
5126 #ifndef __GNUC__
5127 choke me
5128 #endif
5129
5130 ;
5131 return 0;
5132 }
5133 _ACEOF
5134 if ac_fn_c_try_compile "$LINENO"; then :
5135 ac_compiler_gnu=yes
5136 else
5137 ac_compiler_gnu=no
5138 fi
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5141
5142 fi
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5144 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5145 if test $ac_compiler_gnu = yes; then
5146 GCC=yes
5147 else
5148 GCC=
5149 fi
5150 ac_test_CFLAGS=${CFLAGS+set}
5151 ac_save_CFLAGS=$CFLAGS
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5153 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5154 if ${ac_cv_prog_cc_g+:} false; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 ac_save_c_werror_flag=$ac_c_werror_flag
5158 ac_c_werror_flag=yes
5159 ac_cv_prog_cc_g=no
5160 CFLAGS="-g"
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163
5164 int
5165 main ()
5166 {
5167
5168 ;
5169 return 0;
5170 }
5171 _ACEOF
5172 if ac_fn_c_try_compile "$LINENO"; then :
5173 ac_cv_prog_cc_g=yes
5174 else
5175 CFLAGS=""
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178
5179 int
5180 main ()
5181 {
5182
5183 ;
5184 return 0;
5185 }
5186 _ACEOF
5187 if ac_fn_c_try_compile "$LINENO"; then :
5188
5189 else
5190 ac_c_werror_flag=$ac_save_c_werror_flag
5191 CFLAGS="-g"
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5194
5195 int
5196 main ()
5197 {
5198
5199 ;
5200 return 0;
5201 }
5202 _ACEOF
5203 if ac_fn_c_try_compile "$LINENO"; then :
5204 ac_cv_prog_cc_g=yes
5205 fi
5206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207 fi
5208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209 fi
5210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211 ac_c_werror_flag=$ac_save_c_werror_flag
5212 fi
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5214 $as_echo "$ac_cv_prog_cc_g" >&6; }
5215 if test "$ac_test_CFLAGS" = set; then
5216 CFLAGS=$ac_save_CFLAGS
5217 elif test $ac_cv_prog_cc_g = yes; then
5218 if test "$GCC" = yes; then
5219 CFLAGS="-g -O2"
5220 else
5221 CFLAGS="-g"
5222 fi
5223 else
5224 if test "$GCC" = yes; then
5225 CFLAGS="-O2"
5226 else
5227 CFLAGS=
5228 fi
5229 fi
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5231 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5232 if ${ac_cv_prog_cc_c89+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 ac_cv_prog_cc_c89=no
5236 ac_save_CC=$CC
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 #include <stdarg.h>
5240 #include <stdio.h>
5241 #include <sys/types.h>
5242 #include <sys/stat.h>
5243 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5244 struct buf { int x; };
5245 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5246 static char *e (p, i)
5247 char **p;
5248 int i;
5249 {
5250 return p[i];
5251 }
5252 static char *f (char * (*g) (char **, int), char **p, ...)
5253 {
5254 char *s;
5255 va_list v;
5256 va_start (v,p);
5257 s = g (p, va_arg (v,int));
5258 va_end (v);
5259 return s;
5260 }
5261
5262 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5263 function prototypes and stuff, but not '\xHH' hex character constants.
5264 These don't provoke an error unfortunately, instead are silently treated
5265 as 'x'. The following induces an error, until -std is added to get
5266 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5267 array size at least. It's necessary to write '\x00'==0 to get something
5268 that's true only with -std. */
5269 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5270
5271 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5272 inside strings and character constants. */
5273 #define FOO(x) 'x'
5274 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5275
5276 int test (int i, double x);
5277 struct s1 {int (*f) (int a);};
5278 struct s2 {int (*f) (double a);};
5279 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5280 int argc;
5281 char **argv;
5282 int
5283 main ()
5284 {
5285 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5286 ;
5287 return 0;
5288 }
5289 _ACEOF
5290 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5291 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5292 do
5293 CC="$ac_save_CC $ac_arg"
5294 if ac_fn_c_try_compile "$LINENO"; then :
5295 ac_cv_prog_cc_c89=$ac_arg
5296 fi
5297 rm -f core conftest.err conftest.$ac_objext
5298 test "x$ac_cv_prog_cc_c89" != "xno" && break
5299 done
5300 rm -f conftest.$ac_ext
5301 CC=$ac_save_CC
5302
5303 fi
5304 # AC_CACHE_VAL
5305 case "x$ac_cv_prog_cc_c89" in
5306 x)
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5308 $as_echo "none needed" >&6; } ;;
5309 xno)
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5311 $as_echo "unsupported" >&6; } ;;
5312 *)
5313 CC="$CC $ac_cv_prog_cc_c89"
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5315 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5316 esac
5317 if test "x$ac_cv_prog_cc_c89" != xno; then :
5318
5319 fi
5320
5321 ac_ext=c
5322 ac_cpp='$CPP $CPPFLAGS'
5323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5326 DEPDIR="${am__leading_dot}deps"
5327
5328 ac_config_commands="$ac_config_commands depfiles"
5329
5330
5331 am_make=${MAKE-make}
5332 cat > confinc << 'END'
5333 am__doit:
5334 @echo this is the am__doit target
5335 .PHONY: am__doit
5336 END
5337 # If we don't find an include directive, just comment out the code.
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5339 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5340 am__include="#"
5341 am__quote=
5342 _am_result=none
5343 # First try GNU make style include.
5344 echo "include confinc" > confmf
5345 # Ignore all kinds of additional output from `make'.
5346 case `$am_make -s -f confmf 2> /dev/null` in #(
5347 *the\ am__doit\ target*)
5348 am__include=include
5349 am__quote=
5350 _am_result=GNU
5351 ;;
5352 esac
5353 # Now try BSD make style include.
5354 if test "$am__include" = "#"; then
5355 echo '.include "confinc"' > confmf
5356 case `$am_make -s -f confmf 2> /dev/null` in #(
5357 *the\ am__doit\ target*)
5358 am__include=.include
5359 am__quote="\""
5360 _am_result=BSD
5361 ;;
5362 esac
5363 fi
5364
5365
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5367 $as_echo "$_am_result" >&6; }
5368 rm -f confinc confmf
5369
5370 # Check whether --enable-dependency-tracking was given.
5371 if test "${enable_dependency_tracking+set}" = set; then :
5372 enableval=$enable_dependency_tracking;
5373 fi
5374
5375 if test "x$enable_dependency_tracking" != xno; then
5376 am_depcomp="$ac_aux_dir/depcomp"
5377 AMDEPBACKSLASH='\'
5378 fi
5379 if test "x$enable_dependency_tracking" != xno; then
5380 AMDEP_TRUE=
5381 AMDEP_FALSE='#'
5382 else
5383 AMDEP_TRUE='#'
5384 AMDEP_FALSE=
5385 fi
5386
5387
5388
5389 depcc="$CC" am_compiler_list=
5390
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5392 $as_echo_n "checking dependency style of $depcc... " >&6; }
5393 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5397 # We make a subdir and do the tests there. Otherwise we can end up
5398 # making bogus files that we don't know about and never remove. For
5399 # instance it was reported that on HP-UX the gcc test will end up
5400 # making a dummy file named `D' -- because `-MD' means `put the output
5401 # in D'.
5402 mkdir conftest.dir
5403 # Copy depcomp to subdir because otherwise we won't find it if we're
5404 # using a relative directory.
5405 cp "$am_depcomp" conftest.dir
5406 cd conftest.dir
5407 # We will build objects and dependencies in a subdirectory because
5408 # it helps to detect inapplicable dependency modes. For instance
5409 # both Tru64's cc and ICC support -MD to output dependencies as a
5410 # side effect of compilation, but ICC will put the dependencies in
5411 # the current directory while Tru64 will put them in the object
5412 # directory.
5413 mkdir sub
5414
5415 am_cv_CC_dependencies_compiler_type=none
5416 if test "$am_compiler_list" = ""; then
5417 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5418 fi
5419 am__universal=false
5420 case " $depcc " in #(
5421 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5422 esac
5423
5424 for depmode in $am_compiler_list; do
5425 # Setup a source with many dependencies, because some compilers
5426 # like to wrap large dependency lists on column 80 (with \), and
5427 # we should not choose a depcomp mode which is confused by this.
5428 #
5429 # We need to recreate these files for each test, as the compiler may
5430 # overwrite some of them when testing with obscure command lines.
5431 # This happens at least with the AIX C compiler.
5432 : > sub/conftest.c
5433 for i in 1 2 3 4 5 6; do
5434 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5435 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5436 # Solaris 8's {/usr,}/bin/sh.
5437 touch sub/conftst$i.h
5438 done
5439 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5440
5441 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5442 # mode. It turns out that the SunPro C++ compiler does not properly
5443 # handle `-M -o', and we need to detect this. Also, some Intel
5444 # versions had trouble with output in subdirs
5445 am__obj=sub/conftest.${OBJEXT-o}
5446 am__minus_obj="-o $am__obj"
5447 case $depmode in
5448 gcc)
5449 # This depmode causes a compiler race in universal mode.
5450 test "$am__universal" = false || continue
5451 ;;
5452 nosideeffect)
5453 # after this tag, mechanisms are not by side-effect, so they'll
5454 # only be used when explicitly requested
5455 if test "x$enable_dependency_tracking" = xyes; then
5456 continue
5457 else
5458 break
5459 fi
5460 ;;
5461 msvisualcpp | msvcmsys)
5462 # This compiler won't grok `-c -o', but also, the minuso test has
5463 # not run yet. These depmodes are late enough in the game, and
5464 # so weak that their functioning should not be impacted.
5465 am__obj=conftest.${OBJEXT-o}
5466 am__minus_obj=
5467 ;;
5468 none) break ;;
5469 esac
5470 if depmode=$depmode \
5471 source=sub/conftest.c object=$am__obj \
5472 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5473 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5474 >/dev/null 2>conftest.err &&
5475 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5476 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5477 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5478 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5479 # icc doesn't choke on unknown options, it will just issue warnings
5480 # or remarks (even with -Werror). So we grep stderr for any message
5481 # that says an option was ignored or not supported.
5482 # When given -MP, icc 7.0 and 7.1 complain thusly:
5483 # icc: Command line warning: ignoring option '-M'; no argument required
5484 # The diagnosis changed in icc 8.0:
5485 # icc: Command line remark: option '-MP' not supported
5486 if (grep 'ignoring option' conftest.err ||
5487 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5488 am_cv_CC_dependencies_compiler_type=$depmode
5489 break
5490 fi
5491 fi
5492 done
5493
5494 cd ..
5495 rm -rf conftest.dir
5496 else
5497 am_cv_CC_dependencies_compiler_type=none
5498 fi
5499
5500 fi
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5502 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5503 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5504
5505 if
5506 test "x$enable_dependency_tracking" != xno \
5507 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5508 am__fastdepCC_TRUE=
5509 am__fastdepCC_FALSE='#'
5510 else
5511 am__fastdepCC_TRUE='#'
5512 am__fastdepCC_FALSE=
5513 fi
5514
5515
5516 if test "x$CC" != xcc; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5518 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5519 else
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5521 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5522 fi
5523 set dummy $CC; ac_cc=`$as_echo "$2" |
5524 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5525 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530
5531 int
5532 main ()
5533 {
5534
5535 ;
5536 return 0;
5537 }
5538 _ACEOF
5539 # Make sure it works both with $CC and with simple cc.
5540 # We do the test twice because some compilers refuse to overwrite an
5541 # existing .o file with -o, though they will create one.
5542 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5543 rm -f conftest2.*
5544 if { { case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547 esac
5548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5549 $as_echo "$ac_try_echo"; } >&5
5550 (eval "$ac_try") 2>&5
5551 ac_status=$?
5552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5553 test $ac_status = 0; } &&
5554 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557 esac
5558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5559 $as_echo "$ac_try_echo"; } >&5
5560 (eval "$ac_try") 2>&5
5561 ac_status=$?
5562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5563 test $ac_status = 0; };
5564 then
5565 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5566 if test "x$CC" != xcc; then
5567 # Test first that cc exists at all.
5568 if { ac_try='cc -c conftest.$ac_ext >&5'
5569 { { case "(($ac_try" in
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5572 esac
5573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5574 $as_echo "$ac_try_echo"; } >&5
5575 (eval "$ac_try") 2>&5
5576 ac_status=$?
5577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5578 test $ac_status = 0; }; }; then
5579 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5580 rm -f conftest2.*
5581 if { { case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584 esac
5585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5586 $as_echo "$ac_try_echo"; } >&5
5587 (eval "$ac_try") 2>&5
5588 ac_status=$?
5589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5590 test $ac_status = 0; } &&
5591 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594 esac
5595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5596 $as_echo "$ac_try_echo"; } >&5
5597 (eval "$ac_try") 2>&5
5598 ac_status=$?
5599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5600 test $ac_status = 0; };
5601 then
5602 # cc works too.
5603 :
5604 else
5605 # cc exists but doesn't like -o.
5606 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5607 fi
5608 fi
5609 fi
5610 else
5611 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5612 fi
5613 rm -f core conftest*
5614
5615 fi
5616 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5618 $as_echo "yes" >&6; }
5619 else
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5622
5623 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5624
5625 fi
5626
5627 # FIXME: we rely on the cache variable name because
5628 # there is no other way.
5629 set dummy $CC
5630 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5631 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5632 if test "$am_t" != yes; then
5633 # Losing compiler, so override with the script.
5634 # FIXME: It is wrong to rewrite CC.
5635 # But if we don't then we get into trouble of one sort or another.
5636 # A longer-term fix would be to have automake use am__CC in this case,
5637 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5638 CC="$am_aux_dir/compile $CC"
5639 fi
5640
5641
5642
5643 # Initialize gnulib right after verifying that the C compiler works.
5644 if test -n "$ac_tool_prefix"; then
5645 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5646 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if ${ac_cv_prog_RANLIB+:} false; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 if test -n "$RANLIB"; then
5653 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5654 else
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH
5657 do
5658 IFS=$as_save_IFS
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664 break 2
5665 fi
5666 done
5667 done
5668 IFS=$as_save_IFS
5669
5670 fi
5671 fi
5672 RANLIB=$ac_cv_prog_RANLIB
5673 if test -n "$RANLIB"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5675 $as_echo "$RANLIB" >&6; }
5676 else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }
5679 fi
5680
5681
5682 fi
5683 if test -z "$ac_cv_prog_RANLIB"; then
5684 ac_ct_RANLIB=$RANLIB
5685 # Extract the first word of "ranlib", so it can be a program name with args.
5686 set dummy ranlib; ac_word=$2
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 $as_echo_n "checking for $ac_word... " >&6; }
5689 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691 else
5692 if test -n "$ac_ct_RANLIB"; then
5693 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5697 do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5702 ac_cv_prog_ac_ct_RANLIB="ranlib"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5705 fi
5706 done
5707 done
5708 IFS=$as_save_IFS
5709
5710 fi
5711 fi
5712 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5713 if test -n "$ac_ct_RANLIB"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5715 $as_echo "$ac_ct_RANLIB" >&6; }
5716 else
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5719 fi
5720
5721 if test "x$ac_ct_RANLIB" = x; then
5722 RANLIB=":"
5723 else
5724 case $cross_compiling:$ac_tool_warned in
5725 yes:)
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5728 ac_tool_warned=yes ;;
5729 esac
5730 RANLIB=$ac_ct_RANLIB
5731 fi
5732 else
5733 RANLIB="$ac_cv_prog_RANLIB"
5734 fi
5735
5736
5737 ac_ext=c
5738 ac_cpp='$CPP $CPPFLAGS'
5739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5743 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5744 # On Suns, sometimes $CPP names a directory.
5745 if test -n "$CPP" && test -d "$CPP"; then
5746 CPP=
5747 fi
5748 if test -z "$CPP"; then
5749 if ${ac_cv_prog_CPP+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 # Double quotes because CPP needs to be expanded
5753 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5754 do
5755 ac_preproc_ok=false
5756 for ac_c_preproc_warn_flag in '' yes
5757 do
5758 # Use a header file that comes with gcc, so configuring glibc
5759 # with a fresh cross-compiler works.
5760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5761 # <limits.h> exists even on freestanding compilers.
5762 # On the NeXT, cc -E runs the code through the compiler's parser,
5763 # not just through cpp. "Syntax error" is here to catch this case.
5764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5766 #ifdef __STDC__
5767 # include <limits.h>
5768 #else
5769 # include <assert.h>
5770 #endif
5771 Syntax error
5772 _ACEOF
5773 if ac_fn_c_try_cpp "$LINENO"; then :
5774
5775 else
5776 # Broken: fails on valid input.
5777 continue
5778 fi
5779 rm -f conftest.err conftest.i conftest.$ac_ext
5780
5781 # OK, works on sane cases. Now check whether nonexistent headers
5782 # can be detected and how.
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5785 #include <ac_nonexistent.h>
5786 _ACEOF
5787 if ac_fn_c_try_cpp "$LINENO"; then :
5788 # Broken: success on invalid input.
5789 continue
5790 else
5791 # Passes both tests.
5792 ac_preproc_ok=:
5793 break
5794 fi
5795 rm -f conftest.err conftest.i conftest.$ac_ext
5796
5797 done
5798 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5799 rm -f conftest.i conftest.err conftest.$ac_ext
5800 if $ac_preproc_ok; then :
5801 break
5802 fi
5803
5804 done
5805 ac_cv_prog_CPP=$CPP
5806
5807 fi
5808 CPP=$ac_cv_prog_CPP
5809 else
5810 ac_cv_prog_CPP=$CPP
5811 fi
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5813 $as_echo "$CPP" >&6; }
5814 ac_preproc_ok=false
5815 for ac_c_preproc_warn_flag in '' yes
5816 do
5817 # Use a header file that comes with gcc, so configuring glibc
5818 # with a fresh cross-compiler works.
5819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5820 # <limits.h> exists even on freestanding compilers.
5821 # On the NeXT, cc -E runs the code through the compiler's parser,
5822 # not just through cpp. "Syntax error" is here to catch this case.
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5825 #ifdef __STDC__
5826 # include <limits.h>
5827 #else
5828 # include <assert.h>
5829 #endif
5830 Syntax error
5831 _ACEOF
5832 if ac_fn_c_try_cpp "$LINENO"; then :
5833
5834 else
5835 # Broken: fails on valid input.
5836 continue
5837 fi
5838 rm -f conftest.err conftest.i conftest.$ac_ext
5839
5840 # OK, works on sane cases. Now check whether nonexistent headers
5841 # can be detected and how.
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5844 #include <ac_nonexistent.h>
5845 _ACEOF
5846 if ac_fn_c_try_cpp "$LINENO"; then :
5847 # Broken: success on invalid input.
5848 continue
5849 else
5850 # Passes both tests.
5851 ac_preproc_ok=:
5852 break
5853 fi
5854 rm -f conftest.err conftest.i conftest.$ac_ext
5855
5856 done
5857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5858 rm -f conftest.i conftest.err conftest.$ac_ext
5859 if $ac_preproc_ok; then :
5860
5861 else
5862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5864 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5865 See \`config.log' for more details" "$LINENO" 5; }
5866 fi
5867
5868 ac_ext=c
5869 ac_cpp='$CPP $CPPFLAGS'
5870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5873
5874
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5876 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5877 if ${ac_cv_path_GREP+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 if test -z "$GREP"; then
5881 ac_path_GREP_found=false
5882 # Loop through the user's path and test for each of PROGNAME-LIST
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5885 do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_prog in grep ggrep; do
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5891 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5892 # Check for GNU ac_path_GREP and select it if it is found.
5893 # Check for GNU $ac_path_GREP
5894 case `"$ac_path_GREP" --version 2>&1` in
5895 *GNU*)
5896 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5897 *)
5898 ac_count=0
5899 $as_echo_n 0123456789 >"conftest.in"
5900 while :
5901 do
5902 cat "conftest.in" "conftest.in" >"conftest.tmp"
5903 mv "conftest.tmp" "conftest.in"
5904 cp "conftest.in" "conftest.nl"
5905 $as_echo 'GREP' >> "conftest.nl"
5906 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5908 as_fn_arith $ac_count + 1 && ac_count=$as_val
5909 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5910 # Best one so far, save it but keep looking for a better one
5911 ac_cv_path_GREP="$ac_path_GREP"
5912 ac_path_GREP_max=$ac_count
5913 fi
5914 # 10*(2^10) chars as input seems more than enough
5915 test $ac_count -gt 10 && break
5916 done
5917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5918 esac
5919
5920 $ac_path_GREP_found && break 3
5921 done
5922 done
5923 done
5924 IFS=$as_save_IFS
5925 if test -z "$ac_cv_path_GREP"; then
5926 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5927 fi
5928 else
5929 ac_cv_path_GREP=$GREP
5930 fi
5931
5932 fi
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5934 $as_echo "$ac_cv_path_GREP" >&6; }
5935 GREP="$ac_cv_path_GREP"
5936
5937
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5939 $as_echo_n "checking for egrep... " >&6; }
5940 if ${ac_cv_path_EGREP+:} false; then :
5941 $as_echo_n "(cached) " >&6
5942 else
5943 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5944 then ac_cv_path_EGREP="$GREP -E"
5945 else
5946 if test -z "$EGREP"; then
5947 ac_path_EGREP_found=false
5948 # Loop through the user's path and test for each of PROGNAME-LIST
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5951 do
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_prog in egrep; do
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5957 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5958 # Check for GNU ac_path_EGREP and select it if it is found.
5959 # Check for GNU $ac_path_EGREP
5960 case `"$ac_path_EGREP" --version 2>&1` in
5961 *GNU*)
5962 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5963 *)
5964 ac_count=0
5965 $as_echo_n 0123456789 >"conftest.in"
5966 while :
5967 do
5968 cat "conftest.in" "conftest.in" >"conftest.tmp"
5969 mv "conftest.tmp" "conftest.in"
5970 cp "conftest.in" "conftest.nl"
5971 $as_echo 'EGREP' >> "conftest.nl"
5972 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5974 as_fn_arith $ac_count + 1 && ac_count=$as_val
5975 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5976 # Best one so far, save it but keep looking for a better one
5977 ac_cv_path_EGREP="$ac_path_EGREP"
5978 ac_path_EGREP_max=$ac_count
5979 fi
5980 # 10*(2^10) chars as input seems more than enough
5981 test $ac_count -gt 10 && break
5982 done
5983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5984 esac
5985
5986 $ac_path_EGREP_found && break 3
5987 done
5988 done
5989 done
5990 IFS=$as_save_IFS
5991 if test -z "$ac_cv_path_EGREP"; then
5992 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5993 fi
5994 else
5995 ac_cv_path_EGREP=$EGREP
5996 fi
5997
5998 fi
5999 fi
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6001 $as_echo "$ac_cv_path_EGREP" >&6; }
6002 EGREP="$ac_cv_path_EGREP"
6003
6004
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6006 $as_echo_n "checking for ANSI C header files... " >&6; }
6007 if ${ac_cv_header_stdc+:} false; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012 #include <stdlib.h>
6013 #include <stdarg.h>
6014 #include <string.h>
6015 #include <float.h>
6016
6017 int
6018 main ()
6019 {
6020
6021 ;
6022 return 0;
6023 }
6024 _ACEOF
6025 if ac_fn_c_try_compile "$LINENO"; then :
6026 ac_cv_header_stdc=yes
6027 else
6028 ac_cv_header_stdc=no
6029 fi
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031
6032 if test $ac_cv_header_stdc = yes; then
6033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6036 #include <string.h>
6037
6038 _ACEOF
6039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6040 $EGREP "memchr" >/dev/null 2>&1; then :
6041
6042 else
6043 ac_cv_header_stdc=no
6044 fi
6045 rm -f conftest*
6046
6047 fi
6048
6049 if test $ac_cv_header_stdc = yes; then
6050 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6053 #include <stdlib.h>
6054
6055 _ACEOF
6056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6057 $EGREP "free" >/dev/null 2>&1; then :
6058
6059 else
6060 ac_cv_header_stdc=no
6061 fi
6062 rm -f conftest*
6063
6064 fi
6065
6066 if test $ac_cv_header_stdc = yes; then
6067 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6068 if test "$cross_compiling" = yes; then :
6069 :
6070 else
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6073 #include <ctype.h>
6074 #include <stdlib.h>
6075 #if ((' ' & 0x0FF) == 0x020)
6076 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6077 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6078 #else
6079 # define ISLOWER(c) \
6080 (('a' <= (c) && (c) <= 'i') \
6081 || ('j' <= (c) && (c) <= 'r') \
6082 || ('s' <= (c) && (c) <= 'z'))
6083 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6084 #endif
6085
6086 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6087 int
6088 main ()
6089 {
6090 int i;
6091 for (i = 0; i < 256; i++)
6092 if (XOR (islower (i), ISLOWER (i))
6093 || toupper (i) != TOUPPER (i))
6094 return 2;
6095 return 0;
6096 }
6097 _ACEOF
6098 if ac_fn_c_try_run "$LINENO"; then :
6099
6100 else
6101 ac_cv_header_stdc=no
6102 fi
6103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6104 conftest.$ac_objext conftest.beam conftest.$ac_ext
6105 fi
6106
6107 fi
6108 fi
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6110 $as_echo "$ac_cv_header_stdc" >&6; }
6111 if test $ac_cv_header_stdc = yes; then
6112
6113 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6114
6115 fi
6116
6117 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6118 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6119 inttypes.h stdint.h unistd.h
6120 do :
6121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6122 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6123 "
6124 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6125 cat >>confdefs.h <<_ACEOF
6126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6127 _ACEOF
6128
6129 fi
6130
6131 done
6132
6133
6134
6135
6136
6137 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6138 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6139 MINIX=yes
6140 else
6141 MINIX=
6142 fi
6143
6144
6145 if test "$MINIX" = yes; then
6146
6147 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6148
6149
6150 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6151
6152
6153 $as_echo "#define _MINIX 1" >>confdefs.h
6154
6155 fi
6156
6157 case "$host_os" in
6158 hpux*)
6159
6160 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6161
6162 ;;
6163 esac
6164
6165
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6167 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6168 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6173
6174 # define __EXTENSIONS__ 1
6175 $ac_includes_default
6176 int
6177 main ()
6178 {
6179
6180 ;
6181 return 0;
6182 }
6183 _ACEOF
6184 if ac_fn_c_try_compile "$LINENO"; then :
6185 ac_cv_safe_to_define___extensions__=yes
6186 else
6187 ac_cv_safe_to_define___extensions__=no
6188 fi
6189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6190 fi
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6192 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6193 test $ac_cv_safe_to_define___extensions__ = yes &&
6194 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6195
6196 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6197
6198 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6199
6200 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6201
6202 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213 # Code from module arg-nonnull:
6214 # Code from module c++defs:
6215 # Code from module crypto/md5:
6216 # Code from module dosname:
6217 # Code from module dtoastr:
6218 # Code from module extensions:
6219
6220 # Code from module filemode:
6221 # Code from module getloadavg:
6222 # Code from module getopt-gnu:
6223 # Code from module getopt-posix:
6224 # Code from module gettext-h:
6225 # Code from module ignore-value:
6226 # Code from module include_next:
6227 # Code from module intprops:
6228 # Code from module lstat:
6229 # Code from module mktime:
6230 # Code from module multiarch:
6231 # Code from module readlink:
6232 # Code from module socklen:
6233 # Code from module stat:
6234 # Code from module stdbool:
6235 # Code from module stddef:
6236 # Code from module stdint:
6237 # Code from module stdio:
6238 # Code from module stdlib:
6239 # Code from module strftime:
6240 # Code from module symlink:
6241 # Code from module sys_stat:
6242 # Code from module time:
6243 # Code from module time_r:
6244 # Code from module unistd:
6245 # Code from module warn-on-use:
6246
6247
6248 # On Suns, sometimes $CPP names a directory.
6249 if test -n "$CPP" && test -d "$CPP"; then
6250 CPP=
6251 fi
6252
6253 ## If not using gcc, and on Solaris, and no CPP specified, see if
6254 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6255 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6256 test x"$CPP" = x; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6258 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6259 if ${emacs_cv_sunpro_c+:} false; then :
6260 $as_echo_n "(cached) " >&6
6261 else
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264
6265 int
6266 main ()
6267 {
6268 #ifndef __SUNPRO_C
6269 fail;
6270 #endif
6271
6272 ;
6273 return 0;
6274 }
6275 _ACEOF
6276 if ac_fn_c_try_link "$LINENO"; then :
6277 emacs_cv_sunpro_c=yes
6278 else
6279 emacs_cv_sunpro_c=no
6280 fi
6281 rm -f core conftest.err conftest.$ac_objext \
6282 conftest$ac_exeext conftest.$ac_ext
6283 fi
6284
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6286 $as_echo "$emacs_cv_sunpro_c" >&6; }
6287
6288 if test x"$emacs_cv_sunpro_c" = xyes; then
6289 NON_GNU_CPP="$CC -E -Xs"
6290 fi
6291 fi
6292
6293 #### Some systems specify a CPP to use unless we are using GCC.
6294 #### Now that we know whether we are using GCC, we can decide whether
6295 #### to use that one.
6296 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6297 then
6298 CPP="$NON_GNU_CPP"
6299 fi
6300
6301 #### Some systems specify a CC to use unless we are using GCC.
6302 #### Now that we know whether we are using GCC, we can decide whether
6303 #### to use that one.
6304 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6305 test x$cc_specified != xyes
6306 then
6307 CC="$NON_GNU_CC"
6308 fi
6309
6310 if test x$GCC = xyes; then
6311 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6312 else
6313 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6314 fi
6315
6316 ### Use -Wdeclaration-after-statement if the compiler supports it
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6318 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6319 SAVE_CFLAGS="$CFLAGS"
6320 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322 /* end confdefs.h. */
6323
6324 int
6325 main ()
6326 {
6327
6328 ;
6329 return 0;
6330 }
6331 _ACEOF
6332 if ac_fn_c_try_compile "$LINENO"; then :
6333 has_option=yes
6334 else
6335 has_option=no
6336 fi
6337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6338 if test $has_option = yes; then
6339 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6340 fi
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6342 $as_echo "$has_option" >&6; }
6343 CFLAGS="$SAVE_CFLAGS"
6344 unset has_option
6345 unset SAVE_CFLAGS
6346
6347 ### Use -Wold-style-definition if the compiler supports it
6348 # This can be removed when conversion to standard C is finished.
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6350 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6351 SAVE_CFLAGS="$CFLAGS"
6352 CFLAGS="$CFLAGS -Wold-style-definition"
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6355
6356 int
6357 main ()
6358 {
6359
6360 ;
6361 return 0;
6362 }
6363 _ACEOF
6364 if ac_fn_c_try_compile "$LINENO"; then :
6365 has_option=yes
6366 else
6367 has_option=no
6368 fi
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 if test $has_option = yes; then
6371 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6372 fi
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6374 $as_echo "$has_option" >&6; }
6375 CFLAGS="$SAVE_CFLAGS"
6376 unset has_option
6377 unset SAVE_CFLAGS
6378
6379 ### Use -Wimplicit-function-declaration if the compiler supports it
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6381 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6382 SAVE_CFLAGS="$CFLAGS"
6383 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6386
6387 int
6388 main ()
6389 {
6390
6391 ;
6392 return 0;
6393 }
6394 _ACEOF
6395 if ac_fn_c_try_compile "$LINENO"; then :
6396 has_option=yes
6397 else
6398 has_option=no
6399 fi
6400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401 if test $has_option = yes; then
6402 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6403 fi
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6405 $as_echo "$has_option" >&6; }
6406 CFLAGS="$SAVE_CFLAGS"
6407 unset has_option
6408 unset SAVE_CFLAGS
6409
6410
6411
6412
6413 #### Some other nice autoconf tests.
6414
6415 ac_ext=c
6416 ac_cpp='$CPP $CPPFLAGS'
6417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6421 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6422 # On Suns, sometimes $CPP names a directory.
6423 if test -n "$CPP" && test -d "$CPP"; then
6424 CPP=
6425 fi
6426 if test -z "$CPP"; then
6427 if ${ac_cv_prog_CPP+:} false; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 # Double quotes because CPP needs to be expanded
6431 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6432 do
6433 ac_preproc_ok=false
6434 for ac_c_preproc_warn_flag in '' yes
6435 do
6436 # Use a header file that comes with gcc, so configuring glibc
6437 # with a fresh cross-compiler works.
6438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6439 # <limits.h> exists even on freestanding compilers.
6440 # On the NeXT, cc -E runs the code through the compiler's parser,
6441 # not just through cpp. "Syntax error" is here to catch this case.
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6444 #ifdef __STDC__
6445 # include <limits.h>
6446 #else
6447 # include <assert.h>
6448 #endif
6449 Syntax error
6450 _ACEOF
6451 if ac_fn_c_try_cpp "$LINENO"; then :
6452
6453 else
6454 # Broken: fails on valid input.
6455 continue
6456 fi
6457 rm -f conftest.err conftest.i conftest.$ac_ext
6458
6459 # OK, works on sane cases. Now check whether nonexistent headers
6460 # can be detected and how.
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6463 #include <ac_nonexistent.h>
6464 _ACEOF
6465 if ac_fn_c_try_cpp "$LINENO"; then :
6466 # Broken: success on invalid input.
6467 continue
6468 else
6469 # Passes both tests.
6470 ac_preproc_ok=:
6471 break
6472 fi
6473 rm -f conftest.err conftest.i conftest.$ac_ext
6474
6475 done
6476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6477 rm -f conftest.i conftest.err conftest.$ac_ext
6478 if $ac_preproc_ok; then :
6479 break
6480 fi
6481
6482 done
6483 ac_cv_prog_CPP=$CPP
6484
6485 fi
6486 CPP=$ac_cv_prog_CPP
6487 else
6488 ac_cv_prog_CPP=$CPP
6489 fi
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6491 $as_echo "$CPP" >&6; }
6492 ac_preproc_ok=false
6493 for ac_c_preproc_warn_flag in '' yes
6494 do
6495 # Use a header file that comes with gcc, so configuring glibc
6496 # with a fresh cross-compiler works.
6497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6498 # <limits.h> exists even on freestanding compilers.
6499 # On the NeXT, cc -E runs the code through the compiler's parser,
6500 # not just through cpp. "Syntax error" is here to catch this case.
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503 #ifdef __STDC__
6504 # include <limits.h>
6505 #else
6506 # include <assert.h>
6507 #endif
6508 Syntax error
6509 _ACEOF
6510 if ac_fn_c_try_cpp "$LINENO"; then :
6511
6512 else
6513 # Broken: fails on valid input.
6514 continue
6515 fi
6516 rm -f conftest.err conftest.i conftest.$ac_ext
6517
6518 # OK, works on sane cases. Now check whether nonexistent headers
6519 # can be detected and how.
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6522 #include <ac_nonexistent.h>
6523 _ACEOF
6524 if ac_fn_c_try_cpp "$LINENO"; then :
6525 # Broken: success on invalid input.
6526 continue
6527 else
6528 # Passes both tests.
6529 ac_preproc_ok=:
6530 break
6531 fi
6532 rm -f conftest.err conftest.i conftest.$ac_ext
6533
6534 done
6535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6536 rm -f conftest.i conftest.err conftest.$ac_ext
6537 if $ac_preproc_ok; then :
6538
6539 else
6540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6542 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6543 See \`config.log' for more details" "$LINENO" 5; }
6544 fi
6545
6546 ac_ext=c
6547 ac_cpp='$CPP $CPPFLAGS'
6548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6551
6552
6553 if test "x$RANLIB" = x; then
6554 if test -n "$ac_tool_prefix"; then
6555 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6556 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_prog_RANLIB+:} false; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 if test -n "$RANLIB"; then
6563 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568 IFS=$as_save_IFS
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 break 2
6575 fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 RANLIB=$ac_cv_prog_RANLIB
6583 if test -n "$RANLIB"; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6585 $as_echo "$RANLIB" >&6; }
6586 else
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6589 fi
6590
6591
6592 fi
6593 if test -z "$ac_cv_prog_RANLIB"; then
6594 ac_ct_RANLIB=$RANLIB
6595 # Extract the first word of "ranlib", so it can be a program name with args.
6596 set dummy ranlib; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 if test -n "$ac_ct_RANLIB"; then
6603 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_ac_ct_RANLIB="ranlib"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6615 fi
6616 done
6617 done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6623 if test -n "$ac_ct_RANLIB"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6625 $as_echo "$ac_ct_RANLIB" >&6; }
6626 else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6629 fi
6630
6631 if test "x$ac_ct_RANLIB" = x; then
6632 RANLIB=":"
6633 else
6634 case $cross_compiling:$ac_tool_warned in
6635 yes:)
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6638 ac_tool_warned=yes ;;
6639 esac
6640 RANLIB=$ac_ct_RANLIB
6641 fi
6642 else
6643 RANLIB="$ac_cv_prog_RANLIB"
6644 fi
6645
6646 fi
6647
6648 ## Although we're running on an amd64 kernel, we're actually compiling for
6649 ## the x86 architecture. The user should probably have provided an
6650 ## explicit --build to `configure', but if everything else than the kernel
6651 ## is running in i386 mode, we can help them out.
6652 if test "$machine" = "amdx86-64"; then
6653 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6654 if test "x$ac_cv_have_decl_i386" = xyes; then :
6655
6656 fi
6657
6658 if test "$ac_cv_have_decl_i386" = "yes"; then
6659 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6660 machine=intel386
6661 machfile="m/${machine}.h"
6662 fi
6663 fi
6664
6665 # Extract the first word of "install-info", so it can be a program name with args.
6666 set dummy install-info; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 case $INSTALL_INFO in
6673 [\\/]* | ?:[\\/]*)
6674 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6675 ;;
6676 *)
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688 done
6689 done
6690 IFS=$as_save_IFS
6691
6692 ;;
6693 esac
6694 fi
6695 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6696 if test -n "$INSTALL_INFO"; then
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6698 $as_echo "$INSTALL_INFO" >&6; }
6699 else
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 $as_echo "no" >&6; }
6702 fi
6703
6704
6705 # Extract the first word of "install-info", so it can be a program name with args.
6706 set dummy install-info; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6710 $as_echo_n "(cached) " >&6
6711 else
6712 case $INSTALL_INFO in
6713 [\\/]* | ?:[\\/]*)
6714 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6715 ;;
6716 *)
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in /usr/sbin
6719 do
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6724 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6727 fi
6728 done
6729 done
6730 IFS=$as_save_IFS
6731
6732 ;;
6733 esac
6734 fi
6735 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6736 if test -n "$INSTALL_INFO"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6738 $as_echo "$INSTALL_INFO" >&6; }
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6743
6744
6745 # Extract the first word of "install-info", so it can be a program name with args.
6746 set dummy install-info; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6750 $as_echo_n "(cached) " >&6
6751 else
6752 case $INSTALL_INFO in
6753 [\\/]* | ?:[\\/]*)
6754 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6755 ;;
6756 *)
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in /sbin
6759 do
6760 IFS=$as_save_IFS
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 break 2
6767 fi
6768 done
6769 done
6770 IFS=$as_save_IFS
6771
6772 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6773 ;;
6774 esac
6775 fi
6776 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6777 if test -n "$INSTALL_INFO"; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6779 $as_echo "$INSTALL_INFO" >&6; }
6780 else
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6783 fi
6784
6785
6786 # Extract the first word of "gzip", so it can be a program name with args.
6787 set dummy gzip; ac_word=$2
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789 $as_echo_n "checking for $ac_word... " >&6; }
6790 if ${ac_cv_path_GZIP_PROG+:} false; then :
6791 $as_echo_n "(cached) " >&6
6792 else
6793 case $GZIP_PROG in
6794 [\\/]* | ?:[\\/]*)
6795 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6796 ;;
6797 *)
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6800 do
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 break 2
6808 fi
6809 done
6810 done
6811 IFS=$as_save_IFS
6812
6813 ;;
6814 esac
6815 fi
6816 GZIP_PROG=$ac_cv_path_GZIP_PROG
6817 if test -n "$GZIP_PROG"; then
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6819 $as_echo "$GZIP_PROG" >&6; }
6820 else
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6822 $as_echo "no" >&6; }
6823 fi
6824
6825
6826
6827
6828 ## Need makeinfo >= 4.6 (?) to build the manuals.
6829 # Extract the first word of "makeinfo", so it can be a program name with args.
6830 set dummy makeinfo; ac_word=$2
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832 $as_echo_n "checking for $ac_word... " >&6; }
6833 if ${ac_cv_path_MAKEINFO+:} false; then :
6834 $as_echo_n "(cached) " >&6
6835 else
6836 case $MAKEINFO in
6837 [\\/]* | ?:[\\/]*)
6838 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6839 ;;
6840 *)
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6851 fi
6852 done
6853 done
6854 IFS=$as_save_IFS
6855
6856 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6857 ;;
6858 esac
6859 fi
6860 MAKEINFO=$ac_cv_path_MAKEINFO
6861 if test -n "$MAKEINFO"; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6863 $as_echo "$MAKEINFO" >&6; }
6864 else
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6867 fi
6868
6869
6870 if test "$MAKEINFO" != "no" && \
6871 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
6872 MAKEINFO=no
6873 fi
6874
6875 ## Makeinfo is unusual. For a released Emacs, the manuals are
6876 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6877 ## therefore in the category of "special tools" not normally required, which
6878 ## configure does not have to check for (eg autoconf itself).
6879 ## In a Bazaar checkout on the other hand, the manuals are not included.
6880 ## So makeinfo is a requirement to build from Bazaar, and configure
6881 ## should test for it as it does for any other build requirement.
6882 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6883 ## with pre-built manuals, from a Bazaar checkout.
6884 HAVE_MAKEINFO=yes
6885
6886 if test "$MAKEINFO" = "no"; then
6887 MAKEINFO=makeinfo
6888 if test "x${with_makeinfo}" = "xno"; then
6889 HAVE_MAKEINFO=no
6890 elif test ! -e $srcdir/info/emacs; then
6891 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
6892 source tree does not seem to have pre-built manuals in the \`info' directory.
6893 Either install a suitable version of makeinfo, or re-run configure
6894 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6895 fi
6896 fi
6897
6898
6899
6900 if test x$GCC = xyes; then
6901 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6902 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6903 else
6904 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6905 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6906 fi
6907
6908
6909 late_LDFLAGS=$LDFLAGS
6910 if test x$GCC = xyes; then
6911 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6912 else
6913 LDFLAGS="$LDFLAGS -znocombreloc"
6914 fi
6915
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6917 $as_echo_n "checking for -znocombreloc... " >&6; }
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6920
6921 int
6922 main ()
6923 {
6924
6925 ;
6926 return 0;
6927 }
6928 _ACEOF
6929 if ac_fn_c_try_link "$LINENO"; then :
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6931 $as_echo "yes" >&6; }
6932 else
6933 LDFLAGS=$late_LDFLAGS
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6936 fi
6937 rm -f core conftest.err conftest.$ac_objext \
6938 conftest$ac_exeext conftest.$ac_ext
6939
6940
6941 # The value of CPP is a quoted variable reference, so we need to do this
6942 # to get its actual value...
6943 CPP=`eval "echo $CPP"`
6944
6945
6946 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
6947 case "$opsys" in
6948 your-opsys-here) CANNOT_DUMP=yes ;;
6949 esac
6950
6951 test "$CANNOT_DUMP" = "yes" && \
6952
6953 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6954
6955
6956
6957
6958
6959 UNEXEC_OBJ=unexelf.o
6960 case "$opsys" in
6961 # MSDOS uses unexcoff.o
6962 # MSWindows uses unexw32.o
6963 aix4-2)
6964 UNEXEC_OBJ=unexaix.o
6965 ;;
6966 cygwin)
6967 UNEXEC_OBJ=unexcw.o
6968 ;;
6969 darwin)
6970 UNEXEC_OBJ=unexmacosx.o
6971 ;;
6972 hpux10-20 | hpux11)
6973 UNEXEC_OBJ=unexhp9k800.o
6974 ;;
6975 sol2-10)
6976 # Use the Solaris dldump() function, called from unexsol.c, to dump
6977 # emacs, instead of the generic ELF dump code found in unexelf.c.
6978 # The resulting binary has a complete symbol table, and is better
6979 # for debugging and other observability tools (debuggers, pstack, etc).
6980 #
6981 # If you encounter a problem using dldump(), please consider sending
6982 # a message to the OpenSolaris tools-linking mailing list:
6983 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6984 #
6985 # It is likely that dldump() works with older Solaris too, but this has
6986 # not been tested, so for now this change is for Solaris 10 or newer.
6987 UNEXEC_OBJ=unexsol.o
6988 ;;
6989 esac
6990
6991 LD_SWITCH_SYSTEM=
6992 case "$opsys" in
6993 freebsd)
6994 ## Let `ld' find image libs and similar things in /usr/local/lib.
6995 ## The system compiler, GCC, has apparently been modified to not
6996 ## look there, contrary to what a stock GCC would do.
6997 LD_SWITCH_SYSTEM=-L/usr/local/lib
6998 ;;
6999
7000 gnu-linux)
7001 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7002 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7003 ;;
7004
7005 netbsd)
7006 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7007 ;;
7008
7009 openbsd)
7010 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7011 ## otherwise Emacs dumps core on elf systems.
7012 LD_SWITCH_SYSTEM="-Z"
7013 ;;
7014 esac
7015
7016
7017 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7018
7019 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7020 ## which has not been defined yet. When this was handled with cpp,
7021 ## it was expanded to null when configure sourced the s/*.h file.
7022 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7023 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7024 ## (or somesuch), but because it is supposed to go at the _front_
7025 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7026 ## Compare with the gnu-linux case below, which added to the end
7027 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7028 ## LD_SWITCH_SYSTEM_TEMACS.
7029 case "$opsys" in
7030 netbsd|openbsd)
7031 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7032 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7033 esac
7034
7035
7036 C_SWITCH_MACHINE=
7037 if test "$machine" = "alpha"; then
7038 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7039 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
7040
7041 fi
7042
7043 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7044 ## With ELF, make sure that all common symbols get allocated to in the
7045 ## data section. Otherwise, the dump of temacs may miss variables in
7046 ## the shared library that have been initialized. For example, with
7047 ## GNU libc, __malloc_initialized would normally be resolved to the
7048 ## shared library's .bss section, which is fatal.
7049 if test "x$GCC" = "xyes"; then
7050 C_SWITCH_MACHINE="-fno-common"
7051 else
7052 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7053 fi
7054 else
7055 UNEXEC_OBJ=unexalpha.o
7056 fi
7057 fi
7058
7059
7060
7061
7062 C_SWITCH_SYSTEM=
7063 ## Some programs in src produce warnings saying certain subprograms
7064 ## are too complex and need a MAXMEM value greater than 2000 for
7065 ## additional optimization. --nils@exp-math.uni-essen.de
7066 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7067 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7068 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7069 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7070
7071
7072
7073 LIBS_SYSTEM=
7074 case "$opsys" in
7075 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7076 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7077
7078 freebsd) LIBS_SYSTEM="-lutil" ;;
7079
7080 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7081
7082 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7083
7084 ## Motif needs -lgen.
7085 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7086 esac
7087
7088
7089
7090 ### Make sure subsequent tests use flags consistent with the build flags.
7091
7092 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7093 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7094 else
7095 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7096 fi
7097
7098 # Check whether --enable-largefile was given.
7099 if test "${enable_largefile+set}" = set; then :
7100 enableval=$enable_largefile;
7101 fi
7102
7103 if test "$enable_largefile" != no; then
7104
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7106 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7107 if ${ac_cv_sys_largefile_CC+:} false; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 ac_cv_sys_largefile_CC=no
7111 if test "$GCC" != yes; then
7112 ac_save_CC=$CC
7113 while :; do
7114 # IRIX 6.2 and later do not support large files by default,
7115 # so use the C compiler's -n32 option if that helps.
7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7118 #include <sys/types.h>
7119 /* Check that off_t can represent 2**63 - 1 correctly.
7120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7121 since some C++ compilers masquerading as C compilers
7122 incorrectly reject 9223372036854775807. */
7123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7125 && LARGE_OFF_T % 2147483647 == 1)
7126 ? 1 : -1];
7127 int
7128 main ()
7129 {
7130
7131 ;
7132 return 0;
7133 }
7134 _ACEOF
7135 if ac_fn_c_try_compile "$LINENO"; then :
7136 break
7137 fi
7138 rm -f core conftest.err conftest.$ac_objext
7139 CC="$CC -n32"
7140 if ac_fn_c_try_compile "$LINENO"; then :
7141 ac_cv_sys_largefile_CC=' -n32'; break
7142 fi
7143 rm -f core conftest.err conftest.$ac_objext
7144 break
7145 done
7146 CC=$ac_save_CC
7147 rm -f conftest.$ac_ext
7148 fi
7149 fi
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7151 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7152 if test "$ac_cv_sys_largefile_CC" != no; then
7153 CC=$CC$ac_cv_sys_largefile_CC
7154 fi
7155
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7157 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7158 if ${ac_cv_sys_file_offset_bits+:} false; then :
7159 $as_echo_n "(cached) " >&6
7160 else
7161 while :; do
7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h. */
7164 #include <sys/types.h>
7165 /* Check that off_t can represent 2**63 - 1 correctly.
7166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7167 since some C++ compilers masquerading as C compilers
7168 incorrectly reject 9223372036854775807. */
7169 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7171 && LARGE_OFF_T % 2147483647 == 1)
7172 ? 1 : -1];
7173 int
7174 main ()
7175 {
7176
7177 ;
7178 return 0;
7179 }
7180 _ACEOF
7181 if ac_fn_c_try_compile "$LINENO"; then :
7182 ac_cv_sys_file_offset_bits=no; break
7183 fi
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7187 #define _FILE_OFFSET_BITS 64
7188 #include <sys/types.h>
7189 /* Check that off_t can represent 2**63 - 1 correctly.
7190 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7191 since some C++ compilers masquerading as C compilers
7192 incorrectly reject 9223372036854775807. */
7193 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7194 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7195 && LARGE_OFF_T % 2147483647 == 1)
7196 ? 1 : -1];
7197 int
7198 main ()
7199 {
7200
7201 ;
7202 return 0;
7203 }
7204 _ACEOF
7205 if ac_fn_c_try_compile "$LINENO"; then :
7206 ac_cv_sys_file_offset_bits=64; break
7207 fi
7208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209 ac_cv_sys_file_offset_bits=unknown
7210 break
7211 done
7212 fi
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7214 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7215 case $ac_cv_sys_file_offset_bits in #(
7216 no | unknown) ;;
7217 *)
7218 cat >>confdefs.h <<_ACEOF
7219 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7220 _ACEOF
7221 ;;
7222 esac
7223 rm -rf conftest*
7224 if test $ac_cv_sys_file_offset_bits = unknown; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7226 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7227 if ${ac_cv_sys_large_files+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 while :; do
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7233 #include <sys/types.h>
7234 /* Check that off_t can represent 2**63 - 1 correctly.
7235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7236 since some C++ compilers masquerading as C compilers
7237 incorrectly reject 9223372036854775807. */
7238 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7240 && LARGE_OFF_T % 2147483647 == 1)
7241 ? 1 : -1];
7242 int
7243 main ()
7244 {
7245
7246 ;
7247 return 0;
7248 }
7249 _ACEOF
7250 if ac_fn_c_try_compile "$LINENO"; then :
7251 ac_cv_sys_large_files=no; break
7252 fi
7253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7256 #define _LARGE_FILES 1
7257 #include <sys/types.h>
7258 /* Check that off_t can represent 2**63 - 1 correctly.
7259 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7260 since some C++ compilers masquerading as C compilers
7261 incorrectly reject 9223372036854775807. */
7262 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7263 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7264 && LARGE_OFF_T % 2147483647 == 1)
7265 ? 1 : -1];
7266 int
7267 main ()
7268 {
7269
7270 ;
7271 return 0;
7272 }
7273 _ACEOF
7274 if ac_fn_c_try_compile "$LINENO"; then :
7275 ac_cv_sys_large_files=1; break
7276 fi
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 ac_cv_sys_large_files=unknown
7279 break
7280 done
7281 fi
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7283 $as_echo "$ac_cv_sys_large_files" >&6; }
7284 case $ac_cv_sys_large_files in #(
7285 no | unknown) ;;
7286 *)
7287 cat >>confdefs.h <<_ACEOF
7288 #define _LARGE_FILES $ac_cv_sys_large_files
7289 _ACEOF
7290 ;;
7291 esac
7292 rm -rf conftest*
7293 fi
7294 fi
7295
7296
7297
7298 ## If user specified a crt-dir, use that unconditionally.
7299 if test "X$CRT_DIR" = "X"; then
7300
7301 case "$canonical" in
7302 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7303 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7304 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7305 ## For anything else (eg /usr/lib32), it is up the user to specify
7306 ## the location (bug#5655).
7307 ## Test for crtn.o, not just the directory, because sometimes the
7308 ## directory exists but does not have the relevant files (bug#1287).
7309 ## FIXME better to test for binary compatibility somehow.
7310 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7311 ;;
7312
7313 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7314 esac
7315
7316 case "$opsys" in
7317 hpux10-20) CRT_DIR=/lib ;;
7318 esac
7319
7320 ## Default is /usr/lib.
7321 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7322
7323 else
7324
7325 ## Some platforms don't use any of these files, so it is not
7326 ## appropriate to put this test outside the if block.
7327 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7328 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
7329
7330 fi
7331
7332
7333
7334 LIB_MATH=-lm
7335 LIB_STANDARD=
7336 START_FILES=
7337
7338 case $opsys in
7339 cygwin )
7340 LIB_MATH=
7341 START_FILES='pre-crt0.o'
7342 ;;
7343 darwin )
7344 ## Adding -lm confuses the dynamic linker, so omit it.
7345 LIB_MATH=
7346 START_FILES='pre-crt0.o'
7347 ;;
7348 freebsd )
7349 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7350 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7351 ;;
7352 gnu-linux | gnu-kfreebsd )
7353 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7354 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7355 ;;
7356 hpux10-20 | hpux11 )
7357 LIB_STANDARD=-lc
7358 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7359 ;;
7360 netbsd | openbsd )
7361 if test -f $CRT_DIR/crti.o; then
7362 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7363 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7364 else
7365 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7366 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7367 fi
7368 ;;
7369 esac
7370
7371
7372
7373
7374
7375
7376
7377 if test "${with_sound}" != "no"; then
7378 # Sound support for GNU/Linux and the free BSDs.
7379 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7380 do :
7381 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7382 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7383 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7384 cat >>confdefs.h <<_ACEOF
7385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7386 _ACEOF
7387 have_sound_header=yes
7388 fi
7389
7390 done
7391
7392 # Emulation library used on NetBSD.
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7394 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7395 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
7396 $as_echo_n "(cached) " >&6
7397 else
7398 ac_check_lib_save_LIBS=$LIBS
7399 LIBS="-lossaudio $LIBS"
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7402
7403 /* Override any GCC internal prototype to avoid an error.
7404 Use char because int might match the return type of a GCC
7405 builtin and then its argument prototype would still apply. */
7406 #ifdef __cplusplus
7407 extern "C"
7408 #endif
7409 char _oss_ioctl ();
7410 int
7411 main ()
7412 {
7413 return _oss_ioctl ();
7414 ;
7415 return 0;
7416 }
7417 _ACEOF
7418 if ac_fn_c_try_link "$LINENO"; then :
7419 ac_cv_lib_ossaudio__oss_ioctl=yes
7420 else
7421 ac_cv_lib_ossaudio__oss_ioctl=no
7422 fi
7423 rm -f core conftest.err conftest.$ac_objext \
7424 conftest$ac_exeext conftest.$ac_ext
7425 LIBS=$ac_check_lib_save_LIBS
7426 fi
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7428 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7429 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
7430 LIBSOUND=-lossaudio
7431 else
7432 LIBSOUND=
7433 fi
7434
7435
7436
7437 ALSA_REQUIRED=1.0.0
7438 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7439
7440 succeeded=no
7441
7442 # Extract the first word of "pkg-config", so it can be a program name with args.
7443 set dummy pkg-config; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 case $PKG_CONFIG in
7450 [\\/]* | ?:[\\/]*)
7451 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7452 ;;
7453 *)
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7464 fi
7465 done
7466 done
7467 IFS=$as_save_IFS
7468
7469 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7470 ;;
7471 esac
7472 fi
7473 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7474 if test -n "$PKG_CONFIG"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7476 $as_echo "$PKG_CONFIG" >&6; }
7477 else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7480 fi
7481
7482
7483
7484 if test "$PKG_CONFIG" = "no" ; then
7485 HAVE_ALSA=no
7486 else
7487 PKG_CONFIG_MIN_VERSION=0.9.0
7488 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7490 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7491
7492 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7494 $as_echo "yes" >&6; }
7495 succeeded=yes
7496
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7498 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7499 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7501 $as_echo "$ALSA_CFLAGS" >&6; }
7502
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7504 $as_echo_n "checking ALSA_LIBS... " >&6; }
7505 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7507 $as_echo "$ALSA_LIBS" >&6; }
7508 else
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7511 ALSA_CFLAGS=""
7512 ALSA_LIBS=""
7513 ## If we have a custom action on failure, don't print errors, but
7514 ## do set a variable so people can do so.
7515 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7516
7517 fi
7518
7519
7520
7521 else
7522 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7523 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7524 fi
7525 fi
7526
7527 if test $succeeded = yes; then
7528 HAVE_ALSA=yes
7529 else
7530 HAVE_ALSA=no
7531 fi
7532
7533 if test $HAVE_ALSA = yes; then
7534 SAVE_CFLAGS="$CFLAGS"
7535 SAVE_LDFLAGS="$LDFLAGS"
7536 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7537 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7540 #include <asoundlib.h>
7541 int
7542 main ()
7543 {
7544 snd_lib_error_set_handler (0);
7545 ;
7546 return 0;
7547 }
7548 _ACEOF
7549 if ac_fn_c_try_compile "$LINENO"; then :
7550 emacs_alsa_normal=yes
7551 else
7552 emacs_alsa_normal=no
7553 fi
7554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7555 if test "$emacs_alsa_normal" != yes; then
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7558 #include <alsa/asoundlib.h>
7559 int
7560 main ()
7561 {
7562 snd_lib_error_set_handler (0);
7563 ;
7564 return 0;
7565 }
7566 _ACEOF
7567 if ac_fn_c_try_compile "$LINENO"; then :
7568 emacs_alsa_subdir=yes
7569 else
7570 emacs_alsa_subdir=no
7571 fi
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573 if test "$emacs_alsa_subdir" != yes; then
7574 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7575 fi
7576 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7577 fi
7578
7579 CFLAGS="$SAVE_CFLAGS"
7580 LDFLAGS="$SAVE_LDFLAGS"
7581 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7582 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7583
7584 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7585
7586 fi
7587
7588 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7589 case "$opsys" in
7590 gnu-linux|freebsd|netbsd)
7591
7592 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7593
7594 ;;
7595 esac
7596 fi
7597
7598
7599 fi
7600
7601 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7602 linux/version.h sys/systeminfo.h limits.h \
7603 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7604 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7605 sys/utsname.h pwd.h utmp.h dirent.h util.h
7606 do :
7607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7608 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7609 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7610 cat >>confdefs.h <<_ACEOF
7611 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7612 _ACEOF
7613
7614 fi
7615
7616 done
7617
7618
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7620 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7623 #include <sys/personality.h>
7624 int
7625 main ()
7626 {
7627 personality (PER_LINUX32)
7628 ;
7629 return 0;
7630 }
7631 _ACEOF
7632 if ac_fn_c_try_compile "$LINENO"; then :
7633 emacs_cv_personality_linux32=yes
7634 else
7635 emacs_cv_personality_linux32=no
7636 fi
7637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7639 $as_echo "$emacs_cv_personality_linux32" >&6; }
7640
7641 if test $emacs_cv_personality_linux32 = yes; then
7642
7643 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7644
7645 fi
7646
7647 for ac_header in term.h
7648 do :
7649 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7650 if test "x$ac_cv_header_term_h" = xyes; then :
7651 cat >>confdefs.h <<_ACEOF
7652 #define HAVE_TERM_H 1
7653 _ACEOF
7654
7655 fi
7656
7657 done
7658
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7660 $as_echo_n "checking for ANSI C header files... " >&6; }
7661 if ${ac_cv_header_stdc+:} false; then :
7662 $as_echo_n "(cached) " >&6
7663 else
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7666 #include <stdlib.h>
7667 #include <stdarg.h>
7668 #include <string.h>
7669 #include <float.h>
7670
7671 int
7672 main ()
7673 {
7674
7675 ;
7676 return 0;
7677 }
7678 _ACEOF
7679 if ac_fn_c_try_compile "$LINENO"; then :
7680 ac_cv_header_stdc=yes
7681 else
7682 ac_cv_header_stdc=no
7683 fi
7684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685
7686 if test $ac_cv_header_stdc = yes; then
7687 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7690 #include <string.h>
7691
7692 _ACEOF
7693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7694 $EGREP "memchr" >/dev/null 2>&1; then :
7695
7696 else
7697 ac_cv_header_stdc=no
7698 fi
7699 rm -f conftest*
7700
7701 fi
7702
7703 if test $ac_cv_header_stdc = yes; then
7704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7707 #include <stdlib.h>
7708
7709 _ACEOF
7710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7711 $EGREP "free" >/dev/null 2>&1; then :
7712
7713 else
7714 ac_cv_header_stdc=no
7715 fi
7716 rm -f conftest*
7717
7718 fi
7719
7720 if test $ac_cv_header_stdc = yes; then
7721 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7722 if test "$cross_compiling" = yes; then :
7723 :
7724 else
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7727 #include <ctype.h>
7728 #include <stdlib.h>
7729 #if ((' ' & 0x0FF) == 0x020)
7730 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7731 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7732 #else
7733 # define ISLOWER(c) \
7734 (('a' <= (c) && (c) <= 'i') \
7735 || ('j' <= (c) && (c) <= 'r') \
7736 || ('s' <= (c) && (c) <= 'z'))
7737 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7738 #endif
7739
7740 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7741 int
7742 main ()
7743 {
7744 int i;
7745 for (i = 0; i < 256; i++)
7746 if (XOR (islower (i), ISLOWER (i))
7747 || toupper (i) != TOUPPER (i))
7748 return 2;
7749 return 0;
7750 }
7751 _ACEOF
7752 if ac_fn_c_try_run "$LINENO"; then :
7753
7754 else
7755 ac_cv_header_stdc=no
7756 fi
7757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7758 conftest.$ac_objext conftest.beam conftest.$ac_ext
7759 fi
7760
7761 fi
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7764 $as_echo "$ac_cv_header_stdc" >&6; }
7765 if test $ac_cv_header_stdc = yes; then
7766
7767 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7768
7769 fi
7770
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7772 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7773 if ${ac_cv_header_time+:} false; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778 #include <sys/types.h>
7779 #include <sys/time.h>
7780 #include <time.h>
7781
7782 int
7783 main ()
7784 {
7785 if ((struct tm *) 0)
7786 return 0;
7787 ;
7788 return 0;
7789 }
7790 _ACEOF
7791 if ac_fn_c_try_compile "$LINENO"; then :
7792 ac_cv_header_time=yes
7793 else
7794 ac_cv_header_time=no
7795 fi
7796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7797 fi
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7799 $as_echo "$ac_cv_header_time" >&6; }
7800 if test $ac_cv_header_time = yes; then
7801
7802 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7803
7804 fi
7805
7806 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7807 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
7808 ac_have_decl=1
7809 else
7810 ac_have_decl=0
7811 fi
7812
7813 cat >>confdefs.h <<_ACEOF
7814 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7815 _ACEOF
7816
7817 if test $ac_cv_have_decl_sys_siglist != yes; then
7818 # For Tru64, at least:
7819 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7820 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
7821 ac_have_decl=1
7822 else
7823 ac_have_decl=0
7824 fi
7825
7826 cat >>confdefs.h <<_ACEOF
7827 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7828 _ACEOF
7829
7830 if test $ac_cv_have_decl___sys_siglist = yes; then
7831
7832 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7833
7834 fi
7835 fi
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7837 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7838 if ${ac_cv_header_sys_wait_h+:} false; then :
7839 $as_echo_n "(cached) " >&6
7840 else
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7843 #include <sys/types.h>
7844 #include <sys/wait.h>
7845 #ifndef WEXITSTATUS
7846 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7847 #endif
7848 #ifndef WIFEXITED
7849 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7850 #endif
7851
7852 int
7853 main ()
7854 {
7855 int s;
7856 wait (&s);
7857 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7858 ;
7859 return 0;
7860 }
7861 _ACEOF
7862 if ac_fn_c_try_compile "$LINENO"; then :
7863 ac_cv_header_sys_wait_h=yes
7864 else
7865 ac_cv_header_sys_wait_h=no
7866 fi
7867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 fi
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7870 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7871 if test $ac_cv_header_sys_wait_h = yes; then
7872
7873 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7874
7875 fi
7876
7877
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7879 $as_echo_n "checking for struct utimbuf... " >&6; }
7880 if ${emacs_cv_struct_utimbuf+:} false; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7885 #ifdef TIME_WITH_SYS_TIME
7886 #include <sys/time.h>
7887 #include <time.h>
7888 #else
7889 #ifdef HAVE_SYS_TIME_H
7890 #include <sys/time.h>
7891 #else
7892 #include <time.h>
7893 #endif
7894 #endif
7895 #ifdef HAVE_UTIME_H
7896 #include <utime.h>
7897 #endif
7898 int
7899 main ()
7900 {
7901 static struct utimbuf x; x.actime = x.modtime;
7902 ;
7903 return 0;
7904 }
7905 _ACEOF
7906 if ac_fn_c_try_compile "$LINENO"; then :
7907 emacs_cv_struct_utimbuf=yes
7908 else
7909 emacs_cv_struct_utimbuf=no
7910 fi
7911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912 fi
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7914 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7915 if test $emacs_cv_struct_utimbuf = yes; then
7916
7917 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7918
7919 fi
7920
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7922 $as_echo_n "checking return type of signal handlers... " >&6; }
7923 if ${ac_cv_type_signal+:} false; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h. */
7928 #include <sys/types.h>
7929 #include <signal.h>
7930
7931 int
7932 main ()
7933 {
7934 return *(signal (0, 0)) (0) == 1;
7935 ;
7936 return 0;
7937 }
7938 _ACEOF
7939 if ac_fn_c_try_compile "$LINENO"; then :
7940 ac_cv_type_signal=int
7941 else
7942 ac_cv_type_signal=void
7943 fi
7944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945 fi
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7947 $as_echo "$ac_cv_type_signal" >&6; }
7948
7949 cat >>confdefs.h <<_ACEOF
7950 #define RETSIGTYPE $ac_cv_type_signal
7951 _ACEOF
7952
7953
7954
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7956 $as_echo_n "checking for speed_t... " >&6; }
7957 if ${emacs_cv_speed_t+:} false; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7962 #include <termios.h>
7963 int
7964 main ()
7965 {
7966 speed_t x = 1;
7967 ;
7968 return 0;
7969 }
7970 _ACEOF
7971 if ac_fn_c_try_compile "$LINENO"; then :
7972 emacs_cv_speed_t=yes
7973 else
7974 emacs_cv_speed_t=no
7975 fi
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 fi
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7979 $as_echo "$emacs_cv_speed_t" >&6; }
7980 if test $emacs_cv_speed_t = yes; then
7981
7982 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7983
7984 fi
7985
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7987 $as_echo_n "checking for struct timeval... " >&6; }
7988 if ${emacs_cv_struct_timeval+:} false; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7993 #ifdef TIME_WITH_SYS_TIME
7994 #include <sys/time.h>
7995 #include <time.h>
7996 #else
7997 #ifdef HAVE_SYS_TIME_H
7998 #include <sys/time.h>
7999 #else
8000 #include <time.h>
8001 #endif
8002 #endif
8003 int
8004 main ()
8005 {
8006 static struct timeval x; x.tv_sec = x.tv_usec;
8007 ;
8008 return 0;
8009 }
8010 _ACEOF
8011 if ac_fn_c_try_compile "$LINENO"; then :
8012 emacs_cv_struct_timeval=yes
8013 else
8014 emacs_cv_struct_timeval=no
8015 fi
8016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8017 fi
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8019 $as_echo "$emacs_cv_struct_timeval" >&6; }
8020 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8021 if test $emacs_cv_struct_timeval = yes; then
8022
8023 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8024
8025 fi
8026
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8028 $as_echo_n "checking for struct exception... " >&6; }
8029 if ${emacs_cv_struct_exception+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h. */
8034 #include <math.h>
8035 int
8036 main ()
8037 {
8038 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8039 ;
8040 return 0;
8041 }
8042 _ACEOF
8043 if ac_fn_c_try_compile "$LINENO"; then :
8044 emacs_cv_struct_exception=yes
8045 else
8046 emacs_cv_struct_exception=no
8047 fi
8048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8049 fi
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8051 $as_echo "$emacs_cv_struct_exception" >&6; }
8052 HAVE_EXCEPTION=$emacs_cv_struct_exception
8053 if test $emacs_cv_struct_exception != yes; then
8054
8055 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8056
8057 fi
8058
8059 for ac_header in net/if.h
8060 do :
8061 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8062 #if HAVE_SYS_SOCKET_H
8063 #include <sys/socket.h>
8064 #endif
8065 "
8066 if test "x$ac_cv_header_net_if_h" = xyes; then :
8067 cat >>confdefs.h <<_ACEOF
8068 #define HAVE_NET_IF_H 1
8069 _ACEOF
8070
8071 fi
8072
8073 done
8074
8075
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8077 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8078 if ${ac_cv_struct_tm+:} false; then :
8079 $as_echo_n "(cached) " >&6
8080 else
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8083 #include <sys/types.h>
8084 #include <time.h>
8085
8086 int
8087 main ()
8088 {
8089 struct tm tm;
8090 int *p = &tm.tm_sec;
8091 return !p;
8092 ;
8093 return 0;
8094 }
8095 _ACEOF
8096 if ac_fn_c_try_compile "$LINENO"; then :
8097 ac_cv_struct_tm=time.h
8098 else
8099 ac_cv_struct_tm=sys/time.h
8100 fi
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 fi
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8104 $as_echo "$ac_cv_struct_tm" >&6; }
8105 if test $ac_cv_struct_tm = sys/time.h; then
8106
8107 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8108
8109 fi
8110
8111 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8112 #include <$ac_cv_struct_tm>
8113
8114 "
8115 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8116
8117 cat >>confdefs.h <<_ACEOF
8118 #define HAVE_STRUCT_TM_TM_ZONE 1
8119 _ACEOF
8120
8121
8122 fi
8123
8124 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8125
8126 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8127
8128 else
8129 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8130 "
8131 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8132 ac_have_decl=1
8133 else
8134 ac_have_decl=0
8135 fi
8136
8137 cat >>confdefs.h <<_ACEOF
8138 #define HAVE_DECL_TZNAME $ac_have_decl
8139 _ACEOF
8140
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8142 $as_echo_n "checking for tzname... " >&6; }
8143 if ${ac_cv_var_tzname+:} false; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8148 #include <time.h>
8149 #if !HAVE_DECL_TZNAME
8150 extern char *tzname[];
8151 #endif
8152
8153 int
8154 main ()
8155 {
8156 return tzname[0][0];
8157 ;
8158 return 0;
8159 }
8160 _ACEOF
8161 if ac_fn_c_try_link "$LINENO"; then :
8162 ac_cv_var_tzname=yes
8163 else
8164 ac_cv_var_tzname=no
8165 fi
8166 rm -f core conftest.err conftest.$ac_objext \
8167 conftest$ac_exeext conftest.$ac_ext
8168 fi
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8170 $as_echo "$ac_cv_var_tzname" >&6; }
8171 if test $ac_cv_var_tzname = yes; then
8172
8173 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8174
8175 fi
8176 fi
8177
8178 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8179 "
8180 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
8181
8182 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8183
8184 fi
8185
8186 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8187 #if HAVE_SYS_SOCKET_H
8188 #include <sys/socket.h>
8189 #endif
8190 #if HAVE_NET_IF_H
8191 #include <net/if.h>
8192 #endif
8193 "
8194 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
8195
8196 cat >>confdefs.h <<_ACEOF
8197 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8198 _ACEOF
8199
8200
8201 fi
8202 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8203 #if HAVE_SYS_SOCKET_H
8204 #include <sys/socket.h>
8205 #endif
8206 #if HAVE_NET_IF_H
8207 #include <net/if.h>
8208 #endif
8209 "
8210 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
8211
8212 cat >>confdefs.h <<_ACEOF
8213 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8214 _ACEOF
8215
8216
8217 fi
8218 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8219 #if HAVE_SYS_SOCKET_H
8220 #include <sys/socket.h>
8221 #endif
8222 #if HAVE_NET_IF_H
8223 #include <net/if.h>
8224 #endif
8225 "
8226 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
8227
8228 cat >>confdefs.h <<_ACEOF
8229 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8230 _ACEOF
8231
8232
8233 fi
8234 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8235 #if HAVE_SYS_SOCKET_H
8236 #include <sys/socket.h>
8237 #endif
8238 #if HAVE_NET_IF_H
8239 #include <net/if.h>
8240 #endif
8241 "
8242 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
8243
8244 cat >>confdefs.h <<_ACEOF
8245 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8246 _ACEOF
8247
8248
8249 fi
8250 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8251 #if HAVE_SYS_SOCKET_H
8252 #include <sys/socket.h>
8253 #endif
8254 #if HAVE_NET_IF_H
8255 #include <net/if.h>
8256 #endif
8257 "
8258 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
8259
8260 cat >>confdefs.h <<_ACEOF
8261 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8262 _ACEOF
8263
8264
8265 fi
8266
8267
8268
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8270 $as_echo_n "checking for function prototypes... " >&6; }
8271 if test "$ac_cv_prog_cc_c89" != no; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8273 $as_echo "yes" >&6; }
8274
8275 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8276
8277
8278 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8279
8280 else
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8282 $as_echo "no" >&6; }
8283 fi
8284
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8286 $as_echo_n "checking for working volatile... " >&6; }
8287 if ${ac_cv_c_volatile+:} false; then :
8288 $as_echo_n "(cached) " >&6
8289 else
8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291 /* end confdefs.h. */
8292
8293 int
8294 main ()
8295 {
8296
8297 volatile int x;
8298 int * volatile y = (int *) 0;
8299 return !x && !y;
8300 ;
8301 return 0;
8302 }
8303 _ACEOF
8304 if ac_fn_c_try_compile "$LINENO"; then :
8305 ac_cv_c_volatile=yes
8306 else
8307 ac_cv_c_volatile=no
8308 fi
8309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310 fi
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8312 $as_echo "$ac_cv_c_volatile" >&6; }
8313 if test $ac_cv_c_volatile = no; then
8314
8315 $as_echo "#define volatile /**/" >>confdefs.h
8316
8317 fi
8318
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8320 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8321 if ${ac_cv_c_const+:} false; then :
8322 $as_echo_n "(cached) " >&6
8323 else
8324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h. */
8326
8327 int
8328 main ()
8329 {
8330 /* FIXME: Include the comments suggested by Paul. */
8331 #ifndef __cplusplus
8332 /* Ultrix mips cc rejects this. */
8333 typedef int charset[2];
8334 const charset cs;
8335 /* SunOS 4.1.1 cc rejects this. */
8336 char const *const *pcpcc;
8337 char **ppc;
8338 /* NEC SVR4.0.2 mips cc rejects this. */
8339 struct point {int x, y;};
8340 static struct point const zero = {0,0};
8341 /* AIX XL C 1.02.0.0 rejects this.
8342 It does not let you subtract one const X* pointer from another in
8343 an arm of an if-expression whose if-part is not a constant
8344 expression */
8345 const char *g = "string";
8346 pcpcc = &g + (g ? g-g : 0);
8347 /* HPUX 7.0 cc rejects these. */
8348 ++pcpcc;
8349 ppc = (char**) pcpcc;
8350 pcpcc = (char const *const *) ppc;
8351 { /* SCO 3.2v4 cc rejects this. */
8352 char *t;
8353 char const *s = 0 ? (char *) 0 : (char const *) 0;
8354
8355 *t++ = 0;
8356 if (s) return 0;
8357 }
8358 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8359 int x[] = {25, 17};
8360 const int *foo = &x[0];
8361 ++foo;
8362 }
8363 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8364 typedef const int *iptr;
8365 iptr p = 0;
8366 ++p;
8367 }
8368 { /* AIX XL C 1.02.0.0 rejects this saying
8369 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8370 struct s { int j; const int *ap[3]; };
8371 struct s *b; b->j = 5;
8372 }
8373 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8374 const int foo = 10;
8375 if (!foo) return 0;
8376 }
8377 return !cs[0] && !zero.x;
8378 #endif
8379
8380 ;
8381 return 0;
8382 }
8383 _ACEOF
8384 if ac_fn_c_try_compile "$LINENO"; then :
8385 ac_cv_c_const=yes
8386 else
8387 ac_cv_c_const=no
8388 fi
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 fi
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8392 $as_echo "$ac_cv_c_const" >&6; }
8393 if test $ac_cv_c_const = no; then
8394
8395 $as_echo "#define const /**/" >>confdefs.h
8396
8397 fi
8398
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8400 $as_echo_n "checking for void * support... " >&6; }
8401 if ${emacs_cv_void_star+:} false; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8406
8407 int
8408 main ()
8409 {
8410 void * foo;
8411 ;
8412 return 0;
8413 }
8414 _ACEOF
8415 if ac_fn_c_try_compile "$LINENO"; then :
8416 emacs_cv_void_star=yes
8417 else
8418 emacs_cv_void_star=no
8419 fi
8420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8421 fi
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8423 $as_echo "$emacs_cv_void_star" >&6; }
8424 if test $emacs_cv_void_star = yes; then
8425 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8426
8427 else
8428 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8429
8430 fi
8431
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8433 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8434 if ${ac_cv_c_bigendian+:} false; then :
8435 $as_echo_n "(cached) " >&6
8436 else
8437 ac_cv_c_bigendian=unknown
8438 # See if we're dealing with a universal compiler.
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441 #ifndef __APPLE_CC__
8442 not a universal capable compiler
8443 #endif
8444 typedef int dummy;
8445
8446 _ACEOF
8447 if ac_fn_c_try_compile "$LINENO"; then :
8448
8449 # Check for potential -arch flags. It is not universal unless
8450 # there are at least two -arch flags with different values.
8451 ac_arch=
8452 ac_prev=
8453 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8454 if test -n "$ac_prev"; then
8455 case $ac_word in
8456 i?86 | x86_64 | ppc | ppc64)
8457 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8458 ac_arch=$ac_word
8459 else
8460 ac_cv_c_bigendian=universal
8461 break
8462 fi
8463 ;;
8464 esac
8465 ac_prev=
8466 elif test "x$ac_word" = "x-arch"; then
8467 ac_prev=arch
8468 fi
8469 done
8470 fi
8471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8472 if test $ac_cv_c_bigendian = unknown; then
8473 # See if sys/param.h defines the BYTE_ORDER macro.
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 #include <sys/types.h>
8477 #include <sys/param.h>
8478
8479 int
8480 main ()
8481 {
8482 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8483 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8484 && LITTLE_ENDIAN)
8485 bogus endian macros
8486 #endif
8487
8488 ;
8489 return 0;
8490 }
8491 _ACEOF
8492 if ac_fn_c_try_compile "$LINENO"; then :
8493 # It does; now see whether it defined to BIG_ENDIAN or not.
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 #include <sys/types.h>
8497 #include <sys/param.h>
8498
8499 int
8500 main ()
8501 {
8502 #if BYTE_ORDER != BIG_ENDIAN
8503 not big endian
8504 #endif
8505
8506 ;
8507 return 0;
8508 }
8509 _ACEOF
8510 if ac_fn_c_try_compile "$LINENO"; then :
8511 ac_cv_c_bigendian=yes
8512 else
8513 ac_cv_c_bigendian=no
8514 fi
8515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8516 fi
8517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 fi
8519 if test $ac_cv_c_bigendian = unknown; then
8520 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8523 #include <limits.h>
8524
8525 int
8526 main ()
8527 {
8528 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8529 bogus endian macros
8530 #endif
8531
8532 ;
8533 return 0;
8534 }
8535 _ACEOF
8536 if ac_fn_c_try_compile "$LINENO"; then :
8537 # It does; now see whether it defined to _BIG_ENDIAN or not.
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8540 #include <limits.h>
8541
8542 int
8543 main ()
8544 {
8545 #ifndef _BIG_ENDIAN
8546 not big endian
8547 #endif
8548
8549 ;
8550 return 0;
8551 }
8552 _ACEOF
8553 if ac_fn_c_try_compile "$LINENO"; then :
8554 ac_cv_c_bigendian=yes
8555 else
8556 ac_cv_c_bigendian=no
8557 fi
8558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8559 fi
8560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8561 fi
8562 if test $ac_cv_c_bigendian = unknown; then
8563 # Compile a test program.
8564 if test "$cross_compiling" = yes; then :
8565 # Try to guess by grepping values from an object file.
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 short int ascii_mm[] =
8569 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8570 short int ascii_ii[] =
8571 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8572 int use_ascii (int i) {
8573 return ascii_mm[i] + ascii_ii[i];
8574 }
8575 short int ebcdic_ii[] =
8576 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8577 short int ebcdic_mm[] =
8578 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8579 int use_ebcdic (int i) {
8580 return ebcdic_mm[i] + ebcdic_ii[i];
8581 }
8582 extern int foo;
8583
8584 int
8585 main ()
8586 {
8587 return use_ascii (foo) == use_ebcdic (foo);
8588 ;
8589 return 0;
8590 }
8591 _ACEOF
8592 if ac_fn_c_try_compile "$LINENO"; then :
8593 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8594 ac_cv_c_bigendian=yes
8595 fi
8596 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8597 if test "$ac_cv_c_bigendian" = unknown; then
8598 ac_cv_c_bigendian=no
8599 else
8600 # finding both strings is unlikely to happen, but who knows?
8601 ac_cv_c_bigendian=unknown
8602 fi
8603 fi
8604 fi
8605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8606 else
8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8609 $ac_includes_default
8610 int
8611 main ()
8612 {
8613
8614 /* Are we little or big endian? From Harbison&Steele. */
8615 union
8616 {
8617 long int l;
8618 char c[sizeof (long int)];
8619 } u;
8620 u.l = 1;
8621 return u.c[sizeof (long int) - 1] == 1;
8622
8623 ;
8624 return 0;
8625 }
8626 _ACEOF
8627 if ac_fn_c_try_run "$LINENO"; then :
8628 ac_cv_c_bigendian=no
8629 else
8630 ac_cv_c_bigendian=yes
8631 fi
8632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8633 conftest.$ac_objext conftest.beam conftest.$ac_ext
8634 fi
8635
8636 fi
8637 fi
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8639 $as_echo "$ac_cv_c_bigendian" >&6; }
8640 case $ac_cv_c_bigendian in #(
8641 yes)
8642 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8643 ;; #(
8644 no)
8645 ;; #(
8646 universal)
8647
8648 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8649
8650 ;; #(
8651 *)
8652 as_fn_error $? "unknown endianness
8653 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8654 esac
8655
8656
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8658 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8659 if ${emacs_cv_attribute_aligned+:} false; then :
8660 $as_echo_n "(cached) " >&6
8661 else
8662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8664 char __attribute__ ((__aligned__ (1 << 3))) c;
8665 int
8666 main ()
8667 {
8668
8669 ;
8670 return 0;
8671 }
8672 _ACEOF
8673 if ac_fn_c_try_compile "$LINENO"; then :
8674 emacs_cv_attribute_aligned=yes
8675 else
8676 emacs_cv_attribute_aligned=no
8677 fi
8678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8679 fi
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8681 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8682 if test $emacs_cv_attribute_aligned = yes; then
8683
8684 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8685
8686 fi
8687
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8689 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8690 set x ${MAKE-make}
8691 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8692 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 cat >conftest.make <<\_ACEOF
8696 SHELL = /bin/sh
8697 all:
8698 @echo '@@@%%%=$(MAKE)=@@@%%%'
8699 _ACEOF
8700 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8701 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8702 *@@@%%%=?*=@@@%%%*)
8703 eval ac_cv_prog_make_${ac_make}_set=yes;;
8704 *)
8705 eval ac_cv_prog_make_${ac_make}_set=no;;
8706 esac
8707 rm -f conftest.make
8708 fi
8709 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8711 $as_echo "yes" >&6; }
8712 SET_MAKE=
8713 else
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8716 SET_MAKE="MAKE=${MAKE-make}"
8717 fi
8718
8719
8720 DEPFLAGS=
8721 MKDEPDIR=":"
8722 deps_frag=deps.mk
8723 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8725 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8726 HAVE_GNU_MAKE=no
8727 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8728 if test "x$testval" != x; then
8729 HAVE_GNU_MAKE=yes
8730 else
8731 ac_enable_autodepend=no
8732 fi
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8734 $as_echo "$HAVE_GNU_MAKE" >&6; }
8735 if test $HAVE_GNU_MAKE = yes; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8737 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8738 SAVE_CFLAGS="$CFLAGS"
8739 CFLAGS="$CFLAGS -MMD -MF deps.d"
8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h. */
8742
8743 int
8744 main ()
8745 {
8746
8747 ;
8748 return 0;
8749 }
8750 _ACEOF
8751 if ac_fn_c_try_compile "$LINENO"; then :
8752
8753 else
8754 ac_enable_autodepend=no
8755 fi
8756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757 CFLAGS="$SAVE_CFLAGS"
8758 test -f deps.d || ac_enable_autodepend=no
8759 rm -rf deps.d
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8761 $as_echo "$ac_enable_autodepend" >&6; }
8762 fi
8763 if test $ac_enable_autodepend = yes; then
8764 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8765 ## In parallel builds, another make might create depdir between
8766 ## the first test and mkdir, so stick another test on the end.
8767 ## Or use mkinstalldirs? mkdir -p is not portable.
8768 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8769 deps_frag=autodeps.mk
8770 fi
8771 fi
8772 deps_frag=$srcdir/src/$deps_frag
8773
8774
8775
8776
8777
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8779 $as_echo_n "checking for long file names... " >&6; }
8780 if ${ac_cv_sys_long_file_names+:} false; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783 ac_cv_sys_long_file_names=yes
8784 # Test for long file names in all the places we know might matter:
8785 # . the current directory, where building will happen
8786 # $prefix/lib where we will be installing things
8787 # $exec_prefix/lib likewise
8788 # $TMPDIR if set, where it might want to write temporary files
8789 # /tmp where it might want to write temporary files
8790 # /var/tmp likewise
8791 # /usr/tmp likewise
8792 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8793 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8794 # in the usual case where exec_prefix is '${prefix}'.
8795 case $ac_dir in #(
8796 . | /* | ?:[\\/]*) ;; #(
8797 *) continue;;
8798 esac
8799 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8800 ac_xdir=$ac_dir/cf$$
8801 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8802 ac_tf1=$ac_xdir/conftest9012345
8803 ac_tf2=$ac_xdir/conftest9012346
8804 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8805 ac_cv_sys_long_file_names=no
8806 rm -f -r "$ac_xdir" 2>/dev/null
8807 test $ac_cv_sys_long_file_names = no && break
8808 done
8809 fi
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8811 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8812 if test $ac_cv_sys_long_file_names = yes; then
8813
8814 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8815
8816 fi
8817
8818
8819 #### Choose a window system.
8820
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8822 $as_echo_n "checking for X... " >&6; }
8823
8824
8825 # Check whether --with-x was given.
8826 if test "${with_x+set}" = set; then :
8827 withval=$with_x;
8828 fi
8829
8830 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8831 if test "x$with_x" = xno; then
8832 # The user explicitly disabled X.
8833 have_x=disabled
8834 else
8835 case $x_includes,$x_libraries in #(
8836 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8837 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8838 $as_echo_n "(cached) " >&6
8839 else
8840 # One or both of the vars are not set, and there is no cached value.
8841 ac_x_includes=no ac_x_libraries=no
8842 rm -f -r conftest.dir
8843 if mkdir conftest.dir; then
8844 cd conftest.dir
8845 cat >Imakefile <<'_ACEOF'
8846 incroot:
8847 @echo incroot='${INCROOT}'
8848 usrlibdir:
8849 @echo usrlibdir='${USRLIBDIR}'
8850 libdir:
8851 @echo libdir='${LIBDIR}'
8852 _ACEOF
8853 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8854 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8855 for ac_var in incroot usrlibdir libdir; do
8856 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8857 done
8858 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8859 for ac_extension in a so sl dylib la dll; do
8860 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8861 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8862 ac_im_usrlibdir=$ac_im_libdir; break
8863 fi
8864 done
8865 # Screen out bogus values from the imake configuration. They are
8866 # bogus both because they are the default anyway, and because
8867 # using them would break gcc on systems where it needs fixed includes.
8868 case $ac_im_incroot in
8869 /usr/include) ac_x_includes= ;;
8870 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8871 esac
8872 case $ac_im_usrlibdir in
8873 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8874 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8875 esac
8876 fi
8877 cd ..
8878 rm -f -r conftest.dir
8879 fi
8880
8881 # Standard set of common directories for X headers.
8882 # Check X11 before X11Rn because it is often a symlink to the current release.
8883 ac_x_header_dirs='
8884 /usr/X11/include
8885 /usr/X11R7/include
8886 /usr/X11R6/include
8887 /usr/X11R5/include
8888 /usr/X11R4/include
8889
8890 /usr/include/X11
8891 /usr/include/X11R7
8892 /usr/include/X11R6
8893 /usr/include/X11R5
8894 /usr/include/X11R4
8895
8896 /usr/local/X11/include
8897 /usr/local/X11R7/include
8898 /usr/local/X11R6/include
8899 /usr/local/X11R5/include
8900 /usr/local/X11R4/include
8901
8902 /usr/local/include/X11
8903 /usr/local/include/X11R7
8904 /usr/local/include/X11R6
8905 /usr/local/include/X11R5
8906 /usr/local/include/X11R4
8907
8908 /usr/X386/include
8909 /usr/x386/include
8910 /usr/XFree86/include/X11
8911
8912 /usr/include
8913 /usr/local/include
8914 /usr/unsupported/include
8915 /usr/athena/include
8916 /usr/local/x11r5/include
8917 /usr/lpp/Xamples/include
8918
8919 /usr/openwin/include
8920 /usr/openwin/share/include'
8921
8922 if test "$ac_x_includes" = no; then
8923 # Guess where to find include files, by looking for Xlib.h.
8924 # First, try using that file with no special directory specified.
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927 #include <X11/Xlib.h>
8928 _ACEOF
8929 if ac_fn_c_try_cpp "$LINENO"; then :
8930 # We can compile using X headers with no special include directory.
8931 ac_x_includes=
8932 else
8933 for ac_dir in $ac_x_header_dirs; do
8934 if test -r "$ac_dir/X11/Xlib.h"; then
8935 ac_x_includes=$ac_dir
8936 break
8937 fi
8938 done
8939 fi
8940 rm -f conftest.err conftest.i conftest.$ac_ext
8941 fi # $ac_x_includes = no
8942
8943 if test "$ac_x_libraries" = no; then
8944 # Check for the libraries.
8945 # See if we find them without any special options.
8946 # Don't add to $LIBS permanently.
8947 ac_save_LIBS=$LIBS
8948 LIBS="-lX11 $LIBS"
8949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950 /* end confdefs.h. */
8951 #include <X11/Xlib.h>
8952 int
8953 main ()
8954 {
8955 XrmInitialize ()
8956 ;
8957 return 0;
8958 }
8959 _ACEOF
8960 if ac_fn_c_try_link "$LINENO"; then :
8961 LIBS=$ac_save_LIBS
8962 # We can link X programs with no special library path.
8963 ac_x_libraries=
8964 else
8965 LIBS=$ac_save_LIBS
8966 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8967 do
8968 # Don't even attempt the hair of trying to link an X program!
8969 for ac_extension in a so sl dylib la dll; do
8970 if test -r "$ac_dir/libX11.$ac_extension"; then
8971 ac_x_libraries=$ac_dir
8972 break 2
8973 fi
8974 done
8975 done
8976 fi
8977 rm -f core conftest.err conftest.$ac_objext \
8978 conftest$ac_exeext conftest.$ac_ext
8979 fi # $ac_x_libraries = no
8980
8981 case $ac_x_includes,$ac_x_libraries in #(
8982 no,* | *,no | *\'*)
8983 # Didn't find X, or a directory has "'" in its name.
8984 ac_cv_have_x="have_x=no";; #(
8985 *)
8986 # Record where we found X for the cache.
8987 ac_cv_have_x="have_x=yes\
8988 ac_x_includes='$ac_x_includes'\
8989 ac_x_libraries='$ac_x_libraries'"
8990 esac
8991 fi
8992 ;; #(
8993 *) have_x=yes;;
8994 esac
8995 eval "$ac_cv_have_x"
8996 fi # $with_x != no
8997
8998 if test "$have_x" != yes; then
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9000 $as_echo "$have_x" >&6; }
9001 no_x=yes
9002 else
9003 # If each of the values was on the command line, it overrides each guess.
9004 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9005 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9006 # Update the cache value to reflect the command line values.
9007 ac_cv_have_x="have_x=yes\
9008 ac_x_includes='$x_includes'\
9009 ac_x_libraries='$x_libraries'"
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9011 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9012 fi
9013
9014 if test "$no_x" = yes; then
9015 window_system=none
9016 else
9017 window_system=x11
9018 fi
9019
9020 ## Workaround for bug in autoconf <= 2.62.
9021 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9022 ## No need to do anything special for these standard directories.
9023 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9024
9025 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9026
9027 fi
9028
9029 LD_SWITCH_X_SITE_AUX=
9030 LD_SWITCH_X_SITE_AUX_RPATH=
9031 if test "${x_libraries}" != NONE; then
9032 if test -n "${x_libraries}"; then
9033 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9034 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9035 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9036 fi
9037 x_default_search_path=""
9038 x_search_path=${x_libraries}
9039 if test -z "${x_search_path}"; then
9040 x_search_path=/usr/lib
9041 fi
9042 for x_library in `echo ${x_search_path}: | \
9043 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9044 x_search_path="\
9045 ${x_library}/X11/%L/%T/%N%C%S:\
9046 ${x_library}/X11/%l/%T/%N%C%S:\
9047 ${x_library}/X11/%T/%N%C%S:\
9048 ${x_library}/X11/%L/%T/%N%S:\
9049 ${x_library}/X11/%l/%T/%N%S:\
9050 ${x_library}/X11/%T/%N%S"
9051 if test x"${x_default_search_path}" = x; then
9052 x_default_search_path=${x_search_path}
9053 else
9054 x_default_search_path="${x_search_path}:${x_default_search_path}"
9055 fi
9056 done
9057 fi
9058
9059
9060
9061 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9062 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9063 fi
9064
9065 if test x"${x_includes}" = x; then
9066 bitmapdir=/usr/include/X11/bitmaps
9067 else
9068 # accumulate include directories that have X11 bitmap subdirectories
9069 bmd_acc="dummyval"
9070 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9071 if test -d "${bmd}/X11/bitmaps"; then
9072 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9073 fi
9074 if test -d "${bmd}/bitmaps"; then
9075 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9076 fi
9077 done
9078 if test ${bmd_acc} != "dummyval"; then
9079 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9080 fi
9081 fi
9082
9083 HAVE_NS=no
9084 NS_IMPL_COCOA=no
9085 NS_IMPL_GNUSTEP=no
9086 tmp_CPPFLAGS="$CPPFLAGS"
9087 tmp_CFLAGS="$CFLAGS"
9088 CPPFLAGS="$CPPFLAGS -x objective-c"
9089 CFLAGS="$CFLAGS -x objective-c"
9090 TEMACS_LDFLAGS2="\${LDFLAGS}"
9091 if test "${with_ns}" != no; then
9092 if test "${opsys}" = darwin; then
9093 NS_IMPL_COCOA=yes
9094 ns_appdir=`pwd`/nextstep/Emacs.app
9095 ns_appbindir=${ns_appdir}/Contents/MacOS/
9096 ns_appresdir=${ns_appdir}/Contents/Resources
9097 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9098 elif test -f $GNUSTEP_CONFIG_FILE; then
9099 NS_IMPL_GNUSTEP=yes
9100 ns_appdir=`pwd`/nextstep/Emacs.app
9101 ns_appbindir=${ns_appdir}/
9102 ns_appresdir=${ns_appdir}/Resources
9103 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9104 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9105 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9106 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9107 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9108 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9109 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9110 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9111 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9112 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9113 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9114 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9115 LIB_STANDARD=
9116 START_FILES=
9117 TEMACS_LDFLAGS2=
9118 fi
9119 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9120 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
9121 HAVE_NS=yes
9122 else
9123 as_fn_error $? "\`--with-ns' was specified, but the include
9124 files are missing or cannot be compiled." "$LINENO" 5
9125 fi
9126
9127
9128 NS_HAVE_NSINTEGER=yes
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131 #include <Foundation/NSObjCRuntime.h>
9132 int
9133 main ()
9134 {
9135 NSInteger i;
9136 ;
9137 return 0;
9138 }
9139 _ACEOF
9140 if ac_fn_c_try_compile "$LINENO"; then :
9141 ns_have_nsinteger=yes
9142 else
9143 ns_have_nsinteger=no
9144 fi
9145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9146 if test $ns_have_nsinteger = no; then
9147 NS_HAVE_NSINTEGER=no
9148 fi
9149 fi
9150
9151
9152 ns_frag=/dev/null
9153 NS_OBJ=
9154 NS_OBJC_OBJ=
9155 NS_SUPPORT=
9156 if test "${HAVE_NS}" = yes; then
9157 window_system=nextstep
9158 with_xft=no
9159 # set up packaging dirs
9160 exec_prefix=${ns_appbindir}
9161 libexecdir=${ns_appbindir}/libexec
9162 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9163 prefix=${ns_appresdir}
9164 fi
9165 ns_frag=$srcdir/src/ns.mk
9166 NS_OBJ="fontset.o fringe.o image.o"
9167 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9168 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9169 fi
9170 CFLAGS="$tmp_CFLAGS"
9171 CPPFLAGS="$tmp_CPPFLAGS"
9172
9173
9174
9175
9176
9177
9178 case "${window_system}" in
9179 x11 )
9180 HAVE_X_WINDOWS=yes
9181 HAVE_X11=yes
9182 case "${with_x_toolkit}" in
9183 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9184 motif ) USE_X_TOOLKIT=MOTIF ;;
9185 gtk ) with_gtk=yes
9186 USE_X_TOOLKIT=none ;;
9187 gtk3 ) with_gtk3=yes
9188 USE_X_TOOLKIT=none ;;
9189 no ) USE_X_TOOLKIT=none ;;
9190 * ) USE_X_TOOLKIT=maybe ;;
9191 esac
9192 ;;
9193 nextstep | none )
9194 HAVE_X_WINDOWS=no
9195 HAVE_X11=no
9196 USE_X_TOOLKIT=none
9197 ;;
9198 esac
9199
9200 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9201 # Extract the first word of "X", so it can be a program name with args.
9202 set dummy X; ac_word=$2
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9204 $as_echo_n "checking for $ac_word... " >&6; }
9205 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
9206 $as_echo_n "(cached) " >&6
9207 else
9208 if test -n "$HAVE_XSERVER"; then
9209 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9210 else
9211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9212 for as_dir in $PATH
9213 do
9214 IFS=$as_save_IFS
9215 test -z "$as_dir" && as_dir=.
9216 for ac_exec_ext in '' $ac_executable_extensions; do
9217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9218 ac_cv_prog_HAVE_XSERVER="true"
9219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9220 break 2
9221 fi
9222 done
9223 done
9224 IFS=$as_save_IFS
9225
9226 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9227 fi
9228 fi
9229 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9230 if test -n "$HAVE_XSERVER"; then
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9232 $as_echo "$HAVE_XSERVER" >&6; }
9233 else
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9235 $as_echo "no" >&6; }
9236 fi
9237
9238
9239 if test "$HAVE_XSERVER" = true ||
9240 test -n "$DISPLAY" ||
9241 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9242 as_fn_error $? "You seem to be running X, but no X development libraries
9243 were found. You should install the relevant development files for X
9244 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9245 sure you have development files for image handling, i.e.
9246 tiff, gif, jpeg, png and xpm.
9247 If you are sure you want Emacs compiled without X window support, pass
9248 --without-x
9249 to configure." "$LINENO" 5
9250 fi
9251 fi
9252
9253 ### If we're using X11, we should use the X menu package.
9254 HAVE_MENUS=no
9255 case ${HAVE_X11} in
9256 yes ) HAVE_MENUS=yes ;;
9257 esac
9258
9259 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9260 # Assume not, until told otherwise.
9261 GNU_MALLOC=yes
9262 doug_lea_malloc=yes
9263 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9264 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
9265
9266 else
9267 doug_lea_malloc=no
9268 fi
9269
9270 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9271 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
9272
9273 else
9274 doug_lea_malloc=no
9275 fi
9276
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9278 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9279 if ${emacs_cv_var___after_morecore_hook+:} false; then :
9280 $as_echo_n "(cached) " >&6
9281 else
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9284 extern void (* __after_morecore_hook)();
9285 int
9286 main ()
9287 {
9288 __after_morecore_hook = 0
9289 ;
9290 return 0;
9291 }
9292 _ACEOF
9293 if ac_fn_c_try_link "$LINENO"; then :
9294 emacs_cv_var___after_morecore_hook=yes
9295 else
9296 emacs_cv_var___after_morecore_hook=no
9297 fi
9298 rm -f core conftest.err conftest.$ac_objext \
9299 conftest$ac_exeext conftest.$ac_ext
9300 fi
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9302 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9303 if test $emacs_cv_var___after_morecore_hook = no; then
9304 doug_lea_malloc=no
9305 fi
9306
9307
9308 system_malloc=no
9309 case "$opsys" in
9310 ## darwin ld insists on the use of malloc routines in the System framework.
9311 darwin|sol2-10) system_malloc=yes ;;
9312 esac
9313
9314 if test "${system_malloc}" = "yes"; then
9315
9316 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9317
9318 GNU_MALLOC=no
9319 GNU_MALLOC_reason="
9320 (The GNU allocators don't work with this system configuration.)"
9321 GMALLOC_OBJ=
9322 VMLIMIT_OBJ=
9323 else
9324 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9325 VMLIMIT_OBJ=vm-limit.o
9326 fi
9327
9328
9329
9330 if test "$doug_lea_malloc" = "yes" ; then
9331 if test "$GNU_MALLOC" = yes ; then
9332 GNU_MALLOC_reason="
9333 (Using Doug Lea's new malloc from the GNU C Library.)"
9334 fi
9335
9336 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9337
9338
9339 ## Use mmap directly for allocating larger buffers.
9340 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9341 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9342 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9343 case "$opsys" in
9344 gnu*) REL_ALLOC=no ;;
9345 esac
9346 fi
9347
9348 if test x"${REL_ALLOC}" = x; then
9349 REL_ALLOC=${GNU_MALLOC}
9350 fi
9351
9352 use_mmap_for_buffers=no
9353 case "$opsys" in
9354 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9355 esac
9356
9357
9358
9359
9360 for ac_header in $ac_header_list
9361 do :
9362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9363 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9364 "
9365 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9366 cat >>confdefs.h <<_ACEOF
9367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9368 _ACEOF
9369
9370 fi
9371
9372 done
9373
9374
9375
9376
9377
9378
9379
9380
9381 for ac_func in getpagesize
9382 do :
9383 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9384 if test "x$ac_cv_func_getpagesize" = xyes; then :
9385 cat >>confdefs.h <<_ACEOF
9386 #define HAVE_GETPAGESIZE 1
9387 _ACEOF
9388
9389 fi
9390 done
9391
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9393 $as_echo_n "checking for working mmap... " >&6; }
9394 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
9395 $as_echo_n "(cached) " >&6
9396 else
9397 if test "$cross_compiling" = yes; then :
9398 ac_cv_func_mmap_fixed_mapped=no
9399 else
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9402 $ac_includes_default
9403 /* malloc might have been renamed as rpl_malloc. */
9404 #undef malloc
9405
9406 /* Thanks to Mike Haertel and Jim Avera for this test.
9407 Here is a matrix of mmap possibilities:
9408 mmap private not fixed
9409 mmap private fixed at somewhere currently unmapped
9410 mmap private fixed at somewhere already mapped
9411 mmap shared not fixed
9412 mmap shared fixed at somewhere currently unmapped
9413 mmap shared fixed at somewhere already mapped
9414 For private mappings, we should verify that changes cannot be read()
9415 back from the file, nor mmap's back from the file at a different
9416 address. (There have been systems where private was not correctly
9417 implemented like the infamous i386 svr4.0, and systems where the
9418 VM page cache was not coherent with the file system buffer cache
9419 like early versions of FreeBSD and possibly contemporary NetBSD.)
9420 For shared mappings, we should conversely verify that changes get
9421 propagated back to all the places they're supposed to be.
9422
9423 Grep wants private fixed already mapped.
9424 The main things grep needs to know about mmap are:
9425 * does it exist and is it safe to write into the mmap'd area
9426 * how to use it (BSD variants) */
9427
9428 #include <fcntl.h>
9429 #include <sys/mman.h>
9430
9431 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9432 char *malloc ();
9433 #endif
9434
9435 /* This mess was copied from the GNU getpagesize.h. */
9436 #ifndef HAVE_GETPAGESIZE
9437 # ifdef _SC_PAGESIZE
9438 # define getpagesize() sysconf(_SC_PAGESIZE)
9439 # else /* no _SC_PAGESIZE */
9440 # ifdef HAVE_SYS_PARAM_H
9441 # include <sys/param.h>
9442 # ifdef EXEC_PAGESIZE
9443 # define getpagesize() EXEC_PAGESIZE
9444 # else /* no EXEC_PAGESIZE */
9445 # ifdef NBPG
9446 # define getpagesize() NBPG * CLSIZE
9447 # ifndef CLSIZE
9448 # define CLSIZE 1
9449 # endif /* no CLSIZE */
9450 # else /* no NBPG */
9451 # ifdef NBPC
9452 # define getpagesize() NBPC
9453 # else /* no NBPC */
9454 # ifdef PAGESIZE
9455 # define getpagesize() PAGESIZE
9456 # endif /* PAGESIZE */
9457 # endif /* no NBPC */
9458 # endif /* no NBPG */
9459 # endif /* no EXEC_PAGESIZE */
9460 # else /* no HAVE_SYS_PARAM_H */
9461 # define getpagesize() 8192 /* punt totally */
9462 # endif /* no HAVE_SYS_PARAM_H */
9463 # endif /* no _SC_PAGESIZE */
9464
9465 #endif /* no HAVE_GETPAGESIZE */
9466
9467 int
9468 main ()
9469 {
9470 char *data, *data2, *data3;
9471 const char *cdata2;
9472 int i, pagesize;
9473 int fd, fd2;
9474
9475 pagesize = getpagesize ();
9476
9477 /* First, make a file with some known garbage in it. */
9478 data = (char *) malloc (pagesize);
9479 if (!data)
9480 return 1;
9481 for (i = 0; i < pagesize; ++i)
9482 *(data + i) = rand ();
9483 umask (0);
9484 fd = creat ("conftest.mmap", 0600);
9485 if (fd < 0)
9486 return 2;
9487 if (write (fd, data, pagesize) != pagesize)
9488 return 3;
9489 close (fd);
9490
9491 /* Next, check that the tail of a page is zero-filled. File must have
9492 non-zero length, otherwise we risk SIGBUS for entire page. */
9493 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9494 if (fd2 < 0)
9495 return 4;
9496 cdata2 = "";
9497 if (write (fd2, cdata2, 1) != 1)
9498 return 5;
9499 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9500 if (data2 == MAP_FAILED)
9501 return 6;
9502 for (i = 0; i < pagesize; ++i)
9503 if (*(data2 + i))
9504 return 7;
9505 close (fd2);
9506 if (munmap (data2, pagesize))
9507 return 8;
9508
9509 /* Next, try to mmap the file at a fixed address which already has
9510 something else allocated at it. If we can, also make sure that
9511 we see the same garbage. */
9512 fd = open ("conftest.mmap", O_RDWR);
9513 if (fd < 0)
9514 return 9;
9515 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9516 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9517 return 10;
9518 for (i = 0; i < pagesize; ++i)
9519 if (*(data + i) != *(data2 + i))
9520 return 11;
9521
9522 /* Finally, make sure that changes to the mapped area do not
9523 percolate back to the file as seen by read(). (This is a bug on
9524 some variants of i386 svr4.0.) */
9525 for (i = 0; i < pagesize; ++i)
9526 *(data2 + i) = *(data2 + i) + 1;
9527 data3 = (char *) malloc (pagesize);
9528 if (!data3)
9529 return 12;
9530 if (read (fd, data3, pagesize) != pagesize)
9531 return 13;
9532 for (i = 0; i < pagesize; ++i)
9533 if (*(data + i) != *(data3 + i))
9534 return 14;
9535 close (fd);
9536 return 0;
9537 }
9538 _ACEOF
9539 if ac_fn_c_try_run "$LINENO"; then :
9540 ac_cv_func_mmap_fixed_mapped=yes
9541 else
9542 ac_cv_func_mmap_fixed_mapped=no
9543 fi
9544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9545 conftest.$ac_objext conftest.beam conftest.$ac_ext
9546 fi
9547
9548 fi
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9550 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9551 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9552
9553 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9554
9555 fi
9556 rm -f conftest.mmap conftest.txt
9557
9558 if test $use_mmap_for_buffers = yes; then
9559
9560 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9561
9562 REL_ALLOC=no
9563 fi
9564
9565 LIBS="$LIBS_SYSTEM $LIBS"
9566
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9568 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9569 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
9570 $as_echo_n "(cached) " >&6
9571 else
9572 ac_check_lib_save_LIBS=$LIBS
9573 LIBS="-ldnet $LIBS"
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9576
9577 /* Override any GCC internal prototype to avoid an error.
9578 Use char because int might match the return type of a GCC
9579 builtin and then its argument prototype would still apply. */
9580 #ifdef __cplusplus
9581 extern "C"
9582 #endif
9583 char dnet_ntoa ();
9584 int
9585 main ()
9586 {
9587 return dnet_ntoa ();
9588 ;
9589 return 0;
9590 }
9591 _ACEOF
9592 if ac_fn_c_try_link "$LINENO"; then :
9593 ac_cv_lib_dnet_dnet_ntoa=yes
9594 else
9595 ac_cv_lib_dnet_dnet_ntoa=no
9596 fi
9597 rm -f core conftest.err conftest.$ac_objext \
9598 conftest$ac_exeext conftest.$ac_ext
9599 LIBS=$ac_check_lib_save_LIBS
9600 fi
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9602 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9603 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9604 cat >>confdefs.h <<_ACEOF
9605 #define HAVE_LIBDNET 1
9606 _ACEOF
9607
9608 LIBS="-ldnet $LIBS"
9609
9610 fi
9611
9612
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9614 $as_echo_n "checking for main in -lXbsd... " >&6; }
9615 if ${ac_cv_lib_Xbsd_main+:} false; then :
9616 $as_echo_n "(cached) " >&6
9617 else
9618 ac_check_lib_save_LIBS=$LIBS
9619 LIBS="-lXbsd $LIBS"
9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622
9623
9624 int
9625 main ()
9626 {
9627 return main ();
9628 ;
9629 return 0;
9630 }
9631 _ACEOF
9632 if ac_fn_c_try_link "$LINENO"; then :
9633 ac_cv_lib_Xbsd_main=yes
9634 else
9635 ac_cv_lib_Xbsd_main=no
9636 fi
9637 rm -f core conftest.err conftest.$ac_objext \
9638 conftest$ac_exeext conftest.$ac_ext
9639 LIBS=$ac_check_lib_save_LIBS
9640 fi
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9642 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9643 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
9644 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9645 fi
9646
9647
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9649 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9650 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
9651 $as_echo_n "(cached) " >&6
9652 else
9653 ac_check_lib_save_LIBS=$LIBS
9654 LIBS="-lpthreads $LIBS"
9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h. */
9657
9658 /* Override any GCC internal prototype to avoid an error.
9659 Use char because int might match the return type of a GCC
9660 builtin and then its argument prototype would still apply. */
9661 #ifdef __cplusplus
9662 extern "C"
9663 #endif
9664 char cma_open ();
9665 int
9666 main ()
9667 {
9668 return cma_open ();
9669 ;
9670 return 0;
9671 }
9672 _ACEOF
9673 if ac_fn_c_try_link "$LINENO"; then :
9674 ac_cv_lib_pthreads_cma_open=yes
9675 else
9676 ac_cv_lib_pthreads_cma_open=no
9677 fi
9678 rm -f core conftest.err conftest.$ac_objext \
9679 conftest$ac_exeext conftest.$ac_ext
9680 LIBS=$ac_check_lib_save_LIBS
9681 fi
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9683 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9684 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
9685 cat >>confdefs.h <<_ACEOF
9686 #define HAVE_LIBPTHREADS 1
9687 _ACEOF
9688
9689 LIBS="-lpthreads $LIBS"
9690
9691 fi
9692
9693
9694 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9695 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9696 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9697 ## added to LIBS in configure would never contain the pthreads part,
9698 ## but the value used in Makefiles might. FIXME?
9699 ##
9700 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9701 ## be harmless on older versions of X where it happens to exist.
9702 test "$opsys" = "aix4-2" && \
9703 test $ac_cv_lib_pthreads_cma_open = yes && \
9704 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9705
9706
9707 case ${host_os} in
9708 aix*)
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9710 $as_echo_n "checking for -bbigtoc option... " >&6; }
9711 if ${gdb_cv_bigtoc+:} false; then :
9712 $as_echo_n "(cached) " >&6
9713 else
9714
9715 case $GCC in
9716 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9717 *) gdb_cv_bigtoc=-bbigtoc ;;
9718 esac
9719
9720 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9723
9724 int
9725 main ()
9726 {
9727 int i;
9728 ;
9729 return 0;
9730 }
9731 _ACEOF
9732 if ac_fn_c_try_link "$LINENO"; then :
9733
9734 else
9735 gdb_cv_bigtoc=
9736 fi
9737 rm -f core conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
9739
9740 fi
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9742 $as_echo "$gdb_cv_bigtoc" >&6; }
9743 ;;
9744 esac
9745
9746 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9747 # used for the tests that follow. We set them back to REAL_CFLAGS and
9748 # REAL_CPPFLAGS later on.
9749
9750 REAL_CFLAGS="$CFLAGS"
9751 REAL_CPPFLAGS="$CPPFLAGS"
9752
9753 if test "${HAVE_X11}" = "yes"; then
9754 DEFS="$C_SWITCH_X_SITE $DEFS"
9755 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9756 LIBS="-lX11 $LIBS"
9757 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9758 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9759
9760 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9761 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9762 # but it's more convenient here to set LD_RUN_PATH
9763 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9764 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9765 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9766 export LD_RUN_PATH
9767 fi
9768
9769 if test "${opsys}" = "gnu-linux"; then
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9771 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9774
9775 int
9776 main ()
9777 {
9778 XOpenDisplay ("foo");
9779 ;
9780 return 0;
9781 }
9782 _ACEOF
9783 if ac_fn_c_try_link "$LINENO"; then :
9784 xlinux_first_failure=no
9785 else
9786 xlinux_first_failure=yes
9787 fi
9788 rm -f core conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext conftest.$ac_ext
9790 if test "${xlinux_first_failure}" = "yes"; then
9791 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9792 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9793 OLD_CPPFLAGS="$CPPFLAGS"
9794 OLD_LIBS="$LIBS"
9795 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9796 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9797 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9798 LIBS="$LIBS -b i486-linuxaout"
9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800 /* end confdefs.h. */
9801
9802 int
9803 main ()
9804 {
9805 XOpenDisplay ("foo");
9806 ;
9807 return 0;
9808 }
9809 _ACEOF
9810 if ac_fn_c_try_link "$LINENO"; then :
9811 xlinux_second_failure=no
9812 else
9813 xlinux_second_failure=yes
9814 fi
9815 rm -f core conftest.err conftest.$ac_objext \
9816 conftest$ac_exeext conftest.$ac_ext
9817 if test "${xlinux_second_failure}" = "yes"; then
9818 # If we get the same failure with -b, there is no use adding -b.
9819 # So take it out. This plays safe.
9820 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9821 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9822 CPPFLAGS="$OLD_CPPFLAGS"
9823 LIBS="$OLD_LIBS"
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9825 $as_echo "no" >&6; }
9826 else
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9828 $as_echo "yes" >&6; }
9829 fi
9830 else
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9832 $as_echo "no" >&6; }
9833 fi
9834 fi
9835
9836 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9837 # header files included from there.
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9839 $as_echo_n "checking for Xkb... " >&6; }
9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9842 #include <X11/Xlib.h>
9843 #include <X11/XKBlib.h>
9844 int
9845 main ()
9846 {
9847 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9848 ;
9849 return 0;
9850 }
9851 _ACEOF
9852 if ac_fn_c_try_link "$LINENO"; then :
9853 emacs_xkb=yes
9854 else
9855 emacs_xkb=no
9856 fi
9857 rm -f core conftest.err conftest.$ac_objext \
9858 conftest$ac_exeext conftest.$ac_ext
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9860 $as_echo "$emacs_xkb" >&6; }
9861 if test $emacs_xkb = yes; then
9862
9863 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9864
9865 fi
9866
9867 for ac_func in XrmSetDatabase XScreenResourceString \
9868 XScreenNumberOfScreen XSetWMProtocols
9869 do :
9870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9871 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9872 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9873 cat >>confdefs.h <<_ACEOF
9874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9875 _ACEOF
9876
9877 fi
9878 done
9879
9880 fi
9881
9882 if test "${window_system}" = "x11"; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9884 $as_echo_n "checking X11 version 6... " >&6; }
9885 if ${emacs_cv_x11_version_6+:} false; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889 /* end confdefs.h. */
9890 #include <X11/Xlib.h>
9891 int
9892 main ()
9893 {
9894 #if XlibSpecificationRelease < 6
9895 fail;
9896 #endif
9897
9898 ;
9899 return 0;
9900 }
9901 _ACEOF
9902 if ac_fn_c_try_link "$LINENO"; then :
9903 emacs_cv_x11_version_6=yes
9904 else
9905 emacs_cv_x11_version_6=no
9906 fi
9907 rm -f core conftest.err conftest.$ac_objext \
9908 conftest$ac_exeext conftest.$ac_ext
9909 fi
9910
9911 if test $emacs_cv_x11_version_6 = yes; then
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9913 $as_echo "6 or newer" >&6; }
9914
9915 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9916
9917
9918 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9919
9920 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9921 ## XIM support.
9922 case "$opsys" in
9923 sol2-*) : ;;
9924 *)
9925 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9926
9927 ;;
9928 esac
9929 else
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9931 $as_echo "before 6" >&6; }
9932 fi
9933 fi
9934
9935
9936 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9937 HAVE_RSVG=no
9938 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9939 if test "${with_rsvg}" != "no"; then
9940 RSVG_REQUIRED=2.11.0
9941 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9942
9943
9944 succeeded=no
9945
9946 # Extract the first word of "pkg-config", so it can be a program name with args.
9947 set dummy pkg-config; ac_word=$2
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9949 $as_echo_n "checking for $ac_word... " >&6; }
9950 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9951 $as_echo_n "(cached) " >&6
9952 else
9953 case $PKG_CONFIG in
9954 [\\/]* | ?:[\\/]*)
9955 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9956 ;;
9957 *)
9958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959 for as_dir in $PATH
9960 do
9961 IFS=$as_save_IFS
9962 test -z "$as_dir" && as_dir=.
9963 for ac_exec_ext in '' $ac_executable_extensions; do
9964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9965 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9967 break 2
9968 fi
9969 done
9970 done
9971 IFS=$as_save_IFS
9972
9973 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9974 ;;
9975 esac
9976 fi
9977 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9978 if test -n "$PKG_CONFIG"; then
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9980 $as_echo "$PKG_CONFIG" >&6; }
9981 else
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983 $as_echo "no" >&6; }
9984 fi
9985
9986
9987
9988 if test "$PKG_CONFIG" = "no" ; then
9989 :
9990 else
9991 PKG_CONFIG_MIN_VERSION=0.9.0
9992 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9994 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9995
9996 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9998 $as_echo "yes" >&6; }
9999 succeeded=yes
10000
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10002 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10003 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10005 $as_echo "$RSVG_CFLAGS" >&6; }
10006
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10008 $as_echo_n "checking RSVG_LIBS... " >&6; }
10009 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10011 $as_echo "$RSVG_LIBS" >&6; }
10012 else
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014 $as_echo "no" >&6; }
10015 RSVG_CFLAGS=""
10016 RSVG_LIBS=""
10017 ## If we have a custom action on failure, don't print errors, but
10018 ## do set a variable so people can do so.
10019 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10020
10021 fi
10022
10023
10024
10025 else
10026 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10027 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10028 fi
10029 fi
10030
10031 if test $succeeded = yes; then
10032 HAVE_RSVG=yes
10033 else
10034 :
10035 fi
10036
10037
10038
10039
10040 if test $HAVE_RSVG = yes; then
10041
10042 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10043
10044 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10045 LIBS="$RSVG_LIBS $LIBS"
10046 fi
10047 fi
10048 fi
10049
10050 HAVE_IMAGEMAGICK=no
10051 if test "${HAVE_X11}" = "yes"; then
10052 if test "${with_imagemagick}" != "no"; then
10053 IMAGEMAGICK_MODULE="Wand"
10054
10055 succeeded=no
10056
10057 # Extract the first word of "pkg-config", so it can be a program name with args.
10058 set dummy pkg-config; ac_word=$2
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10060 $as_echo_n "checking for $ac_word... " >&6; }
10061 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10062 $as_echo_n "(cached) " >&6
10063 else
10064 case $PKG_CONFIG in
10065 [\\/]* | ?:[\\/]*)
10066 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10067 ;;
10068 *)
10069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10070 for as_dir in $PATH
10071 do
10072 IFS=$as_save_IFS
10073 test -z "$as_dir" && as_dir=.
10074 for ac_exec_ext in '' $ac_executable_extensions; do
10075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10076 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10078 break 2
10079 fi
10080 done
10081 done
10082 IFS=$as_save_IFS
10083
10084 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10085 ;;
10086 esac
10087 fi
10088 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10089 if test -n "$PKG_CONFIG"; then
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10091 $as_echo "$PKG_CONFIG" >&6; }
10092 else
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10095 fi
10096
10097
10098
10099 if test "$PKG_CONFIG" = "no" ; then
10100 :
10101 else
10102 PKG_CONFIG_MIN_VERSION=0.9.0
10103 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10105 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10106
10107 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10109 $as_echo "yes" >&6; }
10110 succeeded=yes
10111
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10113 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10114 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10116 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10117
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10119 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10120 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10122 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10123 else
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10125 $as_echo "no" >&6; }
10126 IMAGEMAGICK_CFLAGS=""
10127 IMAGEMAGICK_LIBS=""
10128 ## If we have a custom action on failure, don't print errors, but
10129 ## do set a variable so people can do so.
10130 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10131
10132 fi
10133
10134
10135
10136 else
10137 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10138 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10139 fi
10140 fi
10141
10142 if test $succeeded = yes; then
10143 HAVE_IMAGEMAGICK=yes
10144 else
10145 :
10146 fi
10147
10148
10149
10150
10151 if test $HAVE_IMAGEMAGICK = yes; then
10152
10153 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10154
10155 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10156 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10157 for ac_func in MagickExportImagePixels
10158 do :
10159 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10160 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
10161 cat >>confdefs.h <<_ACEOF
10162 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10163 _ACEOF
10164
10165 fi
10166 done
10167
10168 fi
10169 fi
10170 fi
10171
10172
10173 HAVE_GTK=no
10174 if test "${with_gtk3}" = "yes"; then
10175 GLIB_REQUIRED=2.28
10176 GTK_REQUIRED=3.0
10177 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10178
10179
10180 succeeded=no
10181
10182 # Extract the first word of "pkg-config", so it can be a program name with args.
10183 set dummy pkg-config; ac_word=$2
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10185 $as_echo_n "checking for $ac_word... " >&6; }
10186 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 case $PKG_CONFIG in
10190 [\\/]* | ?:[\\/]*)
10191 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10192 ;;
10193 *)
10194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195 for as_dir in $PATH
10196 do
10197 IFS=$as_save_IFS
10198 test -z "$as_dir" && as_dir=.
10199 for ac_exec_ext in '' $ac_executable_extensions; do
10200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10201 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10203 break 2
10204 fi
10205 done
10206 done
10207 IFS=$as_save_IFS
10208
10209 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10210 ;;
10211 esac
10212 fi
10213 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10214 if test -n "$PKG_CONFIG"; then
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10216 $as_echo "$PKG_CONFIG" >&6; }
10217 else
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10219 $as_echo "no" >&6; }
10220 fi
10221
10222
10223
10224 if test "$PKG_CONFIG" = "no" ; then
10225 pkg_check_gtk=no
10226 else
10227 PKG_CONFIG_MIN_VERSION=0.9.0
10228 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10230 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10231
10232 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10234 $as_echo "yes" >&6; }
10235 succeeded=yes
10236
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10238 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10239 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10241 $as_echo "$GTK_CFLAGS" >&6; }
10242
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10244 $as_echo_n "checking GTK_LIBS... " >&6; }
10245 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10247 $as_echo "$GTK_LIBS" >&6; }
10248 else
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10251 GTK_CFLAGS=""
10252 GTK_LIBS=""
10253 ## If we have a custom action on failure, don't print errors, but
10254 ## do set a variable so people can do so.
10255 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10256
10257 fi
10258
10259
10260
10261 else
10262 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10263 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10264 fi
10265 fi
10266
10267 if test $succeeded = yes; then
10268 pkg_check_gtk=yes
10269 else
10270 pkg_check_gtk=no
10271 fi
10272
10273 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10274 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10275 fi
10276
10277 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10278
10279 fi
10280
10281 if test "$pkg_check_gtk" != "yes"; then
10282 HAVE_GTK=no
10283 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10284 GLIB_REQUIRED=2.6
10285 GTK_REQUIRED=2.6
10286 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10287
10288
10289 succeeded=no
10290
10291 # Extract the first word of "pkg-config", so it can be a program name with args.
10292 set dummy pkg-config; ac_word=$2
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10294 $as_echo_n "checking for $ac_word... " >&6; }
10295 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10296 $as_echo_n "(cached) " >&6
10297 else
10298 case $PKG_CONFIG in
10299 [\\/]* | ?:[\\/]*)
10300 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10301 ;;
10302 *)
10303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10304 for as_dir in $PATH
10305 do
10306 IFS=$as_save_IFS
10307 test -z "$as_dir" && as_dir=.
10308 for ac_exec_ext in '' $ac_executable_extensions; do
10309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10310 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10312 break 2
10313 fi
10314 done
10315 done
10316 IFS=$as_save_IFS
10317
10318 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10319 ;;
10320 esac
10321 fi
10322 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10323 if test -n "$PKG_CONFIG"; then
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10325 $as_echo "$PKG_CONFIG" >&6; }
10326 else
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10328 $as_echo "no" >&6; }
10329 fi
10330
10331
10332
10333 if test "$PKG_CONFIG" = "no" ; then
10334 pkg_check_gtk=no
10335 else
10336 PKG_CONFIG_MIN_VERSION=0.9.0
10337 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10339 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10340
10341 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10343 $as_echo "yes" >&6; }
10344 succeeded=yes
10345
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10347 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10348 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10350 $as_echo "$GTK_CFLAGS" >&6; }
10351
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10353 $as_echo_n "checking GTK_LIBS... " >&6; }
10354 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10356 $as_echo "$GTK_LIBS" >&6; }
10357 else
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359 $as_echo "no" >&6; }
10360 GTK_CFLAGS=""
10361 GTK_LIBS=""
10362 ## If we have a custom action on failure, don't print errors, but
10363 ## do set a variable so people can do so.
10364 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10365
10366 fi
10367
10368
10369
10370 else
10371 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10372 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10373 fi
10374 fi
10375
10376 if test $succeeded = yes; then
10377 pkg_check_gtk=yes
10378 else
10379 pkg_check_gtk=no
10380 fi
10381
10382 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10383 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10384 fi
10385 fi
10386 fi
10387
10388 GTK_OBJ=
10389 if test x"$pkg_check_gtk" = xyes; then
10390
10391
10392
10393 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10394 CFLAGS="$CFLAGS $GTK_CFLAGS"
10395 LIBS="$GTK_LIBS $LIBS"
10396 GTK_COMPILES=no
10397 for ac_func in gtk_main
10398 do :
10399 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10400 if test "x$ac_cv_func_gtk_main" = xyes; then :
10401 cat >>confdefs.h <<_ACEOF
10402 #define HAVE_GTK_MAIN 1
10403 _ACEOF
10404 GTK_COMPILES=yes
10405 fi
10406 done
10407
10408 if test "${GTK_COMPILES}" != "yes"; then
10409 if test "$USE_X_TOOLKIT" != "maybe"; then
10410 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10411 fi
10412 else
10413 HAVE_GTK=yes
10414
10415 $as_echo "#define USE_GTK 1" >>confdefs.h
10416
10417 GTK_OBJ=gtkutil.o
10418 USE_X_TOOLKIT=none
10419 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10420 :
10421 else
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10423 closing open displays. This is no problem if you just use
10424 one display, but if you use more than one and close one of them
10425 Emacs may crash." >&5
10426 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10427 closing open displays. This is no problem if you just use
10428 one display, but if you use more than one and close one of them
10429 Emacs may crash." >&2;}
10430 sleep 3
10431 fi
10432 fi
10433
10434 fi
10435
10436
10437
10438 if test "${HAVE_GTK}" = "yes"; then
10439
10440 if test "$with_toolkit_scroll_bars" != no; then
10441 with_toolkit_scroll_bars=yes
10442 fi
10443
10444 HAVE_GTK_FILE_SELECTION=no
10445 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10446 #include <gtk/gtk.h>
10447 "
10448 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
10449 HAVE_GTK_FILE_SELECTION=yes
10450 else
10451 HAVE_GTK_FILE_SELECTION=no
10452 fi
10453
10454 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10455 for ac_func in gtk_file_selection_new
10456 do :
10457 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10458 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
10459 cat >>confdefs.h <<_ACEOF
10460 #define HAVE_GTK_FILE_SELECTION_NEW 1
10461 _ACEOF
10462
10463 fi
10464 done
10465
10466 fi
10467
10468 HAVE_GTK_AND_PTHREAD=no
10469 for ac_header in pthread.h
10470 do :
10471 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10472 if test "x$ac_cv_header_pthread_h" = xyes; then :
10473 cat >>confdefs.h <<_ACEOF
10474 #define HAVE_PTHREAD_H 1
10475 _ACEOF
10476
10477 fi
10478
10479 done
10480
10481 if test "$ac_cv_header_pthread_h"; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10483 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10484 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
10485 $as_echo_n "(cached) " >&6
10486 else
10487 ac_check_lib_save_LIBS=$LIBS
10488 LIBS="-lpthread $LIBS"
10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10491
10492 /* Override any GCC internal prototype to avoid an error.
10493 Use char because int might match the return type of a GCC
10494 builtin and then its argument prototype would still apply. */
10495 #ifdef __cplusplus
10496 extern "C"
10497 #endif
10498 char pthread_self ();
10499 int
10500 main ()
10501 {
10502 return pthread_self ();
10503 ;
10504 return 0;
10505 }
10506 _ACEOF
10507 if ac_fn_c_try_link "$LINENO"; then :
10508 ac_cv_lib_pthread_pthread_self=yes
10509 else
10510 ac_cv_lib_pthread_pthread_self=no
10511 fi
10512 rm -f core conftest.err conftest.$ac_objext \
10513 conftest$ac_exeext conftest.$ac_ext
10514 LIBS=$ac_check_lib_save_LIBS
10515 fi
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10517 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10518 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
10519 HAVE_GTK_AND_PTHREAD=yes
10520 fi
10521
10522 fi
10523 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10524 case "${canonical}" in
10525 *-hpux*) ;;
10526 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10527 esac
10528
10529 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10530
10531 fi
10532
10533 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10534 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10535 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10536 gtk_orientable_set_orientation
10537 do :
10538 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10539 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10540 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10541 cat >>confdefs.h <<_ACEOF
10542 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10543 _ACEOF
10544
10545 fi
10546 done
10547
10548
10549 fi
10550
10551 HAVE_DBUS=no
10552 DBUS_OBJ=
10553 if test "${with_dbus}" = "yes"; then
10554
10555 succeeded=no
10556
10557 # Extract the first word of "pkg-config", so it can be a program name with args.
10558 set dummy pkg-config; ac_word=$2
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10560 $as_echo_n "checking for $ac_word... " >&6; }
10561 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10562 $as_echo_n "(cached) " >&6
10563 else
10564 case $PKG_CONFIG in
10565 [\\/]* | ?:[\\/]*)
10566 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10567 ;;
10568 *)
10569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570 for as_dir in $PATH
10571 do
10572 IFS=$as_save_IFS
10573 test -z "$as_dir" && as_dir=.
10574 for ac_exec_ext in '' $ac_executable_extensions; do
10575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10576 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10578 break 2
10579 fi
10580 done
10581 done
10582 IFS=$as_save_IFS
10583
10584 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10585 ;;
10586 esac
10587 fi
10588 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10589 if test -n "$PKG_CONFIG"; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10591 $as_echo "$PKG_CONFIG" >&6; }
10592 else
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594 $as_echo "no" >&6; }
10595 fi
10596
10597
10598
10599 if test "$PKG_CONFIG" = "no" ; then
10600 HAVE_DBUS=no
10601 else
10602 PKG_CONFIG_MIN_VERSION=0.9.0
10603 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10605 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10606
10607 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10609 $as_echo "yes" >&6; }
10610 succeeded=yes
10611
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10613 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10614 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10616 $as_echo "$DBUS_CFLAGS" >&6; }
10617
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10619 $as_echo_n "checking DBUS_LIBS... " >&6; }
10620 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10622 $as_echo "$DBUS_LIBS" >&6; }
10623 else
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625 $as_echo "no" >&6; }
10626 DBUS_CFLAGS=""
10627 DBUS_LIBS=""
10628 ## If we have a custom action on failure, don't print errors, but
10629 ## do set a variable so people can do so.
10630 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10631
10632 fi
10633
10634
10635
10636 else
10637 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10638 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10639 fi
10640 fi
10641
10642 if test $succeeded = yes; then
10643 HAVE_DBUS=yes
10644 else
10645 HAVE_DBUS=no
10646 fi
10647
10648 if test "$HAVE_DBUS" = yes; then
10649 LIBS="$LIBS $DBUS_LIBS"
10650
10651 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10652
10653 for ac_func in dbus_watch_get_unix_fd
10654 do :
10655 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10656 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
10657 cat >>confdefs.h <<_ACEOF
10658 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10659 _ACEOF
10660
10661 fi
10662 done
10663
10664 DBUS_OBJ=dbusbind.o
10665 fi
10666 fi
10667
10668
10669 HAVE_GCONF=no
10670 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10671
10672 succeeded=no
10673
10674 # Extract the first word of "pkg-config", so it can be a program name with args.
10675 set dummy pkg-config; ac_word=$2
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677 $as_echo_n "checking for $ac_word... " >&6; }
10678 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10679 $as_echo_n "(cached) " >&6
10680 else
10681 case $PKG_CONFIG in
10682 [\\/]* | ?:[\\/]*)
10683 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10684 ;;
10685 *)
10686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10687 for as_dir in $PATH
10688 do
10689 IFS=$as_save_IFS
10690 test -z "$as_dir" && as_dir=.
10691 for ac_exec_ext in '' $ac_executable_extensions; do
10692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10693 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10695 break 2
10696 fi
10697 done
10698 done
10699 IFS=$as_save_IFS
10700
10701 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10702 ;;
10703 esac
10704 fi
10705 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10706 if test -n "$PKG_CONFIG"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10708 $as_echo "$PKG_CONFIG" >&6; }
10709 else
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711 $as_echo "no" >&6; }
10712 fi
10713
10714
10715
10716 if test "$PKG_CONFIG" = "no" ; then
10717 HAVE_GCONF=no
10718 else
10719 PKG_CONFIG_MIN_VERSION=0.9.0
10720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10722 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10723
10724 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10726 $as_echo "yes" >&6; }
10727 succeeded=yes
10728
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10730 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10731 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10733 $as_echo "$GCONF_CFLAGS" >&6; }
10734
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10736 $as_echo_n "checking GCONF_LIBS... " >&6; }
10737 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10739 $as_echo "$GCONF_LIBS" >&6; }
10740 else
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742 $as_echo "no" >&6; }
10743 GCONF_CFLAGS=""
10744 GCONF_LIBS=""
10745 ## If we have a custom action on failure, don't print errors, but
10746 ## do set a variable so people can do so.
10747 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10748
10749 fi
10750
10751
10752
10753 else
10754 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10755 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10756 fi
10757 fi
10758
10759 if test $succeeded = yes; then
10760 HAVE_GCONF=yes
10761 else
10762 HAVE_GCONF=no
10763 fi
10764
10765 if test "$HAVE_GCONF" = yes; then
10766
10767 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10768
10769 for ac_func in g_type_init
10770 do :
10771 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10772 if test "x$ac_cv_func_g_type_init" = xyes; then :
10773 cat >>confdefs.h <<_ACEOF
10774 #define HAVE_G_TYPE_INIT 1
10775 _ACEOF
10776
10777 fi
10778 done
10779
10780 fi
10781 fi
10782
10783 HAVE_LIBSELINUX=no
10784 LIBSELINUX_LIBS=
10785 if test "${with_selinux}" = "yes"; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10787 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10788 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10791 ac_check_lib_save_LIBS=$LIBS
10792 LIBS="-lselinux $LIBS"
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10795
10796 /* Override any GCC internal prototype to avoid an error.
10797 Use char because int might match the return type of a GCC
10798 builtin and then its argument prototype would still apply. */
10799 #ifdef __cplusplus
10800 extern "C"
10801 #endif
10802 char lgetfilecon ();
10803 int
10804 main ()
10805 {
10806 return lgetfilecon ();
10807 ;
10808 return 0;
10809 }
10810 _ACEOF
10811 if ac_fn_c_try_link "$LINENO"; then :
10812 ac_cv_lib_selinux_lgetfilecon=yes
10813 else
10814 ac_cv_lib_selinux_lgetfilecon=no
10815 fi
10816 rm -f core conftest.err conftest.$ac_objext \
10817 conftest$ac_exeext conftest.$ac_ext
10818 LIBS=$ac_check_lib_save_LIBS
10819 fi
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10821 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10822 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
10823 HAVE_LIBSELINUX=yes
10824 else
10825 HAVE_LIBSELINUX=no
10826 fi
10827
10828 if test "$HAVE_LIBSELINUX" = yes; then
10829
10830 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10831
10832 LIBSELINUX_LIBS=-lselinux
10833 fi
10834 fi
10835
10836
10837 HAVE_GNUTLS=no
10838 if test "${with_gnutls}" = "yes" ; then
10839
10840 succeeded=no
10841
10842 # Extract the first word of "pkg-config", so it can be a program name with args.
10843 set dummy pkg-config; ac_word=$2
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10845 $as_echo_n "checking for $ac_word... " >&6; }
10846 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 case $PKG_CONFIG in
10850 [\\/]* | ?:[\\/]*)
10851 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10852 ;;
10853 *)
10854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10855 for as_dir in $PATH
10856 do
10857 IFS=$as_save_IFS
10858 test -z "$as_dir" && as_dir=.
10859 for ac_exec_ext in '' $ac_executable_extensions; do
10860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10861 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10863 break 2
10864 fi
10865 done
10866 done
10867 IFS=$as_save_IFS
10868
10869 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10870 ;;
10871 esac
10872 fi
10873 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10874 if test -n "$PKG_CONFIG"; then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10876 $as_echo "$PKG_CONFIG" >&6; }
10877 else
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879 $as_echo "no" >&6; }
10880 fi
10881
10882
10883
10884 if test "$PKG_CONFIG" = "no" ; then
10885 HAVE_GNUTLS=no
10886 else
10887 PKG_CONFIG_MIN_VERSION=0.9.0
10888 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10890 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10891
10892 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10894 $as_echo "yes" >&6; }
10895 succeeded=yes
10896
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10898 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10899 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10901 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10902
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10904 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10905 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10907 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10908 else
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910 $as_echo "no" >&6; }
10911 LIBGNUTLS_CFLAGS=""
10912 LIBGNUTLS_LIBS=""
10913 ## If we have a custom action on failure, don't print errors, but
10914 ## do set a variable so people can do so.
10915 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10916
10917 fi
10918
10919
10920
10921 else
10922 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10923 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10924 fi
10925 fi
10926
10927 if test $succeeded = yes; then
10928 HAVE_GNUTLS=yes
10929 else
10930 HAVE_GNUTLS=no
10931 fi
10932
10933 if test "${HAVE_GNUTLS}" = "yes"; then
10934
10935 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10936
10937 fi
10938 fi
10939
10940
10941
10942 HAVE_XAW3D=no
10943 LUCID_LIBW=
10944 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10945 if test "$with_xaw3d" != no; then
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10947 $as_echo_n "checking for xaw3d... " >&6; }
10948 if ${emacs_cv_xaw3d+:} false; then :
10949 $as_echo_n "(cached) " >&6
10950 else
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10953
10954 #include <X11/Intrinsic.h>
10955 #include <X11/Xaw3d/Simple.h>
10956 int
10957 main ()
10958 {
10959
10960 ;
10961 return 0;
10962 }
10963 _ACEOF
10964 if ac_fn_c_try_link "$LINENO"; then :
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10966 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10967 if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false; then :
10968 $as_echo_n "(cached) " >&6
10969 else
10970 ac_check_lib_save_LIBS=$LIBS
10971 LIBS="-lXaw3d $LIBS"
10972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h. */
10974
10975 /* Override any GCC internal prototype to avoid an error.
10976 Use char because int might match the return type of a GCC
10977 builtin and then its argument prototype would still apply. */
10978 #ifdef __cplusplus
10979 extern "C"
10980 #endif
10981 char XawScrollbarSetThumb ();
10982 int
10983 main ()
10984 {
10985 return XawScrollbarSetThumb ();
10986 ;
10987 return 0;
10988 }
10989 _ACEOF
10990 if ac_fn_c_try_link "$LINENO"; then :
10991 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10992 else
10993 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10994 fi
10995 rm -f core conftest.err conftest.$ac_objext \
10996 conftest$ac_exeext conftest.$ac_ext
10997 LIBS=$ac_check_lib_save_LIBS
10998 fi
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11000 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11001 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes; then :
11002 emacs_cv_xaw3d=yes
11003 else
11004 emacs_cv_xaw3d=no
11005 fi
11006
11007 else
11008 emacs_cv_xaw3d=no
11009 fi
11010 rm -f core conftest.err conftest.$ac_objext \
11011 conftest$ac_exeext conftest.$ac_ext
11012 fi
11013
11014 else
11015 emacs_cv_xaw3d=no
11016 fi
11017 if test $emacs_cv_xaw3d = yes; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11019 $as_echo "yes; using Lucid toolkit" >&6; }
11020 USE_X_TOOLKIT=LUCID
11021 HAVE_XAW3D=yes
11022 LUCID_LIBW=-lXaw3d
11023
11024 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11025
11026 else
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028 $as_echo "no" >&6; }
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11030 $as_echo_n "checking for libXaw... " >&6; }
11031 if ${emacs_cv_xaw+:} false; then :
11032 $as_echo_n "(cached) " >&6
11033 else
11034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11036
11037 #include <X11/Intrinsic.h>
11038 #include <X11/Xaw/Simple.h>
11039 int
11040 main ()
11041 {
11042
11043 ;
11044 return 0;
11045 }
11046 _ACEOF
11047 if ac_fn_c_try_link "$LINENO"; then :
11048 emacs_cv_xaw=yes
11049 else
11050 emacs_cv_xaw=no
11051 fi
11052 rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054 fi
11055
11056 if test $emacs_cv_xaw = yes; then
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11058 $as_echo "yes; using Lucid toolkit" >&6; }
11059 USE_X_TOOLKIT=LUCID
11060 LUCID_LIBW=-lXaw
11061 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11062 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11063 else
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
11065 $as_echo "no; do not use toolkit by default" >&6; }
11066 USE_X_TOOLKIT=none
11067 fi
11068 fi
11069 fi
11070
11071 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11072
11073 LIBXTR6=
11074 if test "${USE_X_TOOLKIT}" != "none"; then
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11076 $as_echo_n "checking X11 toolkit version... " >&6; }
11077 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
11078 $as_echo_n "(cached) " >&6
11079 else
11080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11081 /* end confdefs.h. */
11082 #include <X11/Intrinsic.h>
11083 int
11084 main ()
11085 {
11086 #if XtSpecificationRelease < 6
11087 fail;
11088 #endif
11089
11090 ;
11091 return 0;
11092 }
11093 _ACEOF
11094 if ac_fn_c_try_link "$LINENO"; then :
11095 emacs_cv_x11_toolkit_version_6=yes
11096 else
11097 emacs_cv_x11_toolkit_version_6=no
11098 fi
11099 rm -f core conftest.err conftest.$ac_objext \
11100 conftest$ac_exeext conftest.$ac_ext
11101 fi
11102
11103 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11104 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11106 $as_echo "6 or newer" >&6; }
11107
11108 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11109
11110 LIBXTR6="-lSM -lICE"
11111 case "$opsys" in
11112 ## Use libw.a along with X11R6 Xt.
11113 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11114 esac
11115 else
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11117 $as_echo "before 6" >&6; }
11118 fi
11119
11120 OLDLIBS="$LIBS"
11121 if test x$HAVE_X11XTR6 = xyes; then
11122 LIBS="-lXt -lSM -lICE $LIBS"
11123 else
11124 LIBS="-lXt $LIBS"
11125 fi
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11127 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11128 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
11129 $as_echo_n "(cached) " >&6
11130 else
11131 ac_check_lib_save_LIBS=$LIBS
11132 LIBS="-lXmu $LIBS"
11133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h. */
11135
11136 /* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
11139 #ifdef __cplusplus
11140 extern "C"
11141 #endif
11142 char XmuConvertStandardSelection ();
11143 int
11144 main ()
11145 {
11146 return XmuConvertStandardSelection ();
11147 ;
11148 return 0;
11149 }
11150 _ACEOF
11151 if ac_fn_c_try_link "$LINENO"; then :
11152 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11153 else
11154 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11155 fi
11156 rm -f core conftest.err conftest.$ac_objext \
11157 conftest$ac_exeext conftest.$ac_ext
11158 LIBS=$ac_check_lib_save_LIBS
11159 fi
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11161 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11162 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
11163 cat >>confdefs.h <<_ACEOF
11164 #define HAVE_LIBXMU 1
11165 _ACEOF
11166
11167 LIBS="-lXmu $LIBS"
11168
11169 fi
11170
11171 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11172 fi
11173
11174
11175 LIBXMU=-lXmu
11176 case $opsys in
11177 ## These systems don't supply Xmu.
11178 hpux* | aix4-2 )
11179 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11180 ;;
11181 esac
11182
11183
11184 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11185 if test "${HAVE_X11}" = "yes"; then
11186 if test "${USE_X_TOOLKIT}" != "none"; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11188 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11189 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
11190 $as_echo_n "(cached) " >&6
11191 else
11192 ac_check_lib_save_LIBS=$LIBS
11193 LIBS="-lXext $LIBS"
11194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11195 /* end confdefs.h. */
11196
11197 /* Override any GCC internal prototype to avoid an error.
11198 Use char because int might match the return type of a GCC
11199 builtin and then its argument prototype would still apply. */
11200 #ifdef __cplusplus
11201 extern "C"
11202 #endif
11203 char XShapeQueryExtension ();
11204 int
11205 main ()
11206 {
11207 return XShapeQueryExtension ();
11208 ;
11209 return 0;
11210 }
11211 _ACEOF
11212 if ac_fn_c_try_link "$LINENO"; then :
11213 ac_cv_lib_Xext_XShapeQueryExtension=yes
11214 else
11215 ac_cv_lib_Xext_XShapeQueryExtension=no
11216 fi
11217 rm -f core conftest.err conftest.$ac_objext \
11218 conftest$ac_exeext conftest.$ac_ext
11219 LIBS=$ac_check_lib_save_LIBS
11220 fi
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11222 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11223 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
11224 cat >>confdefs.h <<_ACEOF
11225 #define HAVE_LIBXEXT 1
11226 _ACEOF
11227
11228 LIBS="-lXext $LIBS"
11229
11230 fi
11231
11232 fi
11233 fi
11234
11235 LIBXP=
11236 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11238 $as_echo_n "checking for Motif version 2.1... " >&6; }
11239 if ${emacs_cv_motif_version_2_1+:} false; then :
11240 $as_echo_n "(cached) " >&6
11241 else
11242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11243 /* end confdefs.h. */
11244 #include <Xm/Xm.h>
11245 int
11246 main ()
11247 {
11248 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11249 int x = 5;
11250 #else
11251 Motif version prior to 2.1.
11252 #endif
11253 ;
11254 return 0;
11255 }
11256 _ACEOF
11257 if ac_fn_c_try_compile "$LINENO"; then :
11258 emacs_cv_motif_version_2_1=yes
11259 else
11260 emacs_cv_motif_version_2_1=no
11261 fi
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11263 fi
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11265 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11266 if test $emacs_cv_motif_version_2_1 = yes; then
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11268 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11269 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
11270 $as_echo_n "(cached) " >&6
11271 else
11272 ac_check_lib_save_LIBS=$LIBS
11273 LIBS="-lXp $LIBS"
11274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11276
11277 /* Override any GCC internal prototype to avoid an error.
11278 Use char because int might match the return type of a GCC
11279 builtin and then its argument prototype would still apply. */
11280 #ifdef __cplusplus
11281 extern "C"
11282 #endif
11283 char XpCreateContext ();
11284 int
11285 main ()
11286 {
11287 return XpCreateContext ();
11288 ;
11289 return 0;
11290 }
11291 _ACEOF
11292 if ac_fn_c_try_link "$LINENO"; then :
11293 ac_cv_lib_Xp_XpCreateContext=yes
11294 else
11295 ac_cv_lib_Xp_XpCreateContext=no
11296 fi
11297 rm -f core conftest.err conftest.$ac_objext \
11298 conftest$ac_exeext conftest.$ac_ext
11299 LIBS=$ac_check_lib_save_LIBS
11300 fi
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11302 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11303 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
11304 LIBXP=-lXp
11305 fi
11306
11307 else
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11309 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11310 if ${emacs_cv_lesstif+:} false; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313 # We put this in CFLAGS temporarily to precede other -I options
11314 # that might be in CFLAGS temporarily.
11315 # We put this in CPPFLAGS where it precedes the other -I options.
11316 OLD_CPPFLAGS=$CPPFLAGS
11317 OLD_CFLAGS=$CFLAGS
11318 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11319 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11322 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11323 int
11324 main ()
11325 {
11326 int x = 5;
11327 ;
11328 return 0;
11329 }
11330 _ACEOF
11331 if ac_fn_c_try_compile "$LINENO"; then :
11332 emacs_cv_lesstif=yes
11333 else
11334 emacs_cv_lesstif=no
11335 fi
11336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11337 fi
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11339 $as_echo "$emacs_cv_lesstif" >&6; }
11340 if test $emacs_cv_lesstif = yes; then
11341 # Make sure this -I option remains in CPPFLAGS after it is set
11342 # back to REAL_CPPFLAGS.
11343 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11344 # have those other -I options anyway. Ultimately, having this
11345 # directory ultimately in CPPFLAGS will be enough.
11346 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11347 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11348 else
11349 CFLAGS=$OLD_CFLAGS
11350 CPPFLAGS=$OLD_CPPFLAGS
11351 fi
11352 fi
11353 fi
11354
11355
11356 USE_TOOLKIT_SCROLL_BARS=no
11357 if test "${with_toolkit_scroll_bars}" != "no"; then
11358 if test "${USE_X_TOOLKIT}" != "none"; then
11359 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11360 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11361
11362 HAVE_XAW3D=no
11363 USE_TOOLKIT_SCROLL_BARS=yes
11364 elif test "${HAVE_XAW3D}" = "yes"; then
11365 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11366
11367 USE_TOOLKIT_SCROLL_BARS=yes
11368 fi
11369 elif test "${HAVE_GTK}" = "yes"; then
11370 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11371
11372 USE_TOOLKIT_SCROLL_BARS=yes
11373 elif test "${HAVE_NS}" = "yes"; then
11374 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11375
11376 USE_TOOLKIT_SCROLL_BARS=yes
11377 fi
11378 fi
11379
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382
11383 #include <X11/Xlib.h>
11384 #include <X11/Xresource.h>
11385 int
11386 main ()
11387 {
11388 XIMProc callback;
11389 ;
11390 return 0;
11391 }
11392 _ACEOF
11393 if ac_fn_c_try_compile "$LINENO"; then :
11394 HAVE_XIM=yes
11395
11396 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11397
11398 else
11399 HAVE_XIM=no
11400 fi
11401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11402
11403
11404 if test "${with_xim}" != "no"; then
11405
11406 $as_echo "#define USE_XIM 1" >>confdefs.h
11407
11408 fi
11409
11410
11411 if test "${HAVE_XIM}" != "no"; then
11412 late_CFLAGS=$CFLAGS
11413 if test "$GCC" = yes; then
11414 CFLAGS="$CFLAGS --pedantic-errors"
11415 fi
11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11418
11419 #include <X11/Xlib.h>
11420 #include <X11/Xresource.h>
11421 int
11422 main ()
11423 {
11424 Display *display;
11425 XrmDatabase db;
11426 char *res_name;
11427 char *res_class;
11428 XIMProc callback;
11429 XPointer *client_data;
11430 #ifndef __GNUC__
11431 /* If we're not using GCC, it's probably not XFree86, and this is
11432 probably right, but we can't use something like --pedantic-errors. */
11433 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11434 char*, XIMProc, XPointer*);
11435 #endif
11436 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11437 client_data);
11438 ;
11439 return 0;
11440 }
11441 _ACEOF
11442 if ac_fn_c_try_compile "$LINENO"; then :
11443 emacs_cv_arg6_star=yes
11444 fi
11445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11446 if test "$emacs_cv_arg6_star" = yes; then
11447 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11448
11449 else
11450 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11451
11452 fi
11453 CFLAGS=$late_CFLAGS
11454 fi
11455
11456 ### Start of font-backend (under any platform) section.
11457 # (nothing here yet -- this is a placeholder)
11458 ### End of font-backend (under any platform) section.
11459
11460 ### Start of font-backend (under X11) section.
11461 if test "${HAVE_X11}" = "yes"; then
11462
11463 succeeded=no
11464
11465 # Extract the first word of "pkg-config", so it can be a program name with args.
11466 set dummy pkg-config; ac_word=$2
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11468 $as_echo_n "checking for $ac_word... " >&6; }
11469 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11470 $as_echo_n "(cached) " >&6
11471 else
11472 case $PKG_CONFIG in
11473 [\\/]* | ?:[\\/]*)
11474 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11475 ;;
11476 *)
11477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11478 for as_dir in $PATH
11479 do
11480 IFS=$as_save_IFS
11481 test -z "$as_dir" && as_dir=.
11482 for ac_exec_ext in '' $ac_executable_extensions; do
11483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11484 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11486 break 2
11487 fi
11488 done
11489 done
11490 IFS=$as_save_IFS
11491
11492 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11493 ;;
11494 esac
11495 fi
11496 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11497 if test -n "$PKG_CONFIG"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11499 $as_echo "$PKG_CONFIG" >&6; }
11500 else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11503 fi
11504
11505
11506
11507 if test "$PKG_CONFIG" = "no" ; then
11508 HAVE_FC=no
11509 else
11510 PKG_CONFIG_MIN_VERSION=0.9.0
11511 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11513 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11514
11515 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11517 $as_echo "yes" >&6; }
11518 succeeded=yes
11519
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11521 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11522 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11524 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11525
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11527 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11528 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11530 $as_echo "$FONTCONFIG_LIBS" >&6; }
11531 else
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533 $as_echo "no" >&6; }
11534 FONTCONFIG_CFLAGS=""
11535 FONTCONFIG_LIBS=""
11536 ## If we have a custom action on failure, don't print errors, but
11537 ## do set a variable so people can do so.
11538 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11539
11540 fi
11541
11542
11543
11544 else
11545 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11546 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11547 fi
11548 fi
11549
11550 if test $succeeded = yes; then
11551 HAVE_FC=yes
11552 else
11553 HAVE_FC=no
11554 fi
11555
11556
11557 ## Use -lXft if available, unless `--with-xft=no'.
11558 HAVE_XFT=maybe
11559 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11560 with_xft="no";
11561 fi
11562 if test "x${with_xft}" != "xno"; then
11563
11564
11565 succeeded=no
11566
11567 # Extract the first word of "pkg-config", so it can be a program name with args.
11568 set dummy pkg-config; ac_word=$2
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11570 $as_echo_n "checking for $ac_word... " >&6; }
11571 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11572 $as_echo_n "(cached) " >&6
11573 else
11574 case $PKG_CONFIG in
11575 [\\/]* | ?:[\\/]*)
11576 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11577 ;;
11578 *)
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in $PATH
11581 do
11582 IFS=$as_save_IFS
11583 test -z "$as_dir" && as_dir=.
11584 for ac_exec_ext in '' $ac_executable_extensions; do
11585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11586 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11588 break 2
11589 fi
11590 done
11591 done
11592 IFS=$as_save_IFS
11593
11594 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11595 ;;
11596 esac
11597 fi
11598 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11599 if test -n "$PKG_CONFIG"; then
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11601 $as_echo "$PKG_CONFIG" >&6; }
11602 else
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604 $as_echo "no" >&6; }
11605 fi
11606
11607
11608
11609 if test "$PKG_CONFIG" = "no" ; then
11610 HAVE_XFT=no
11611 else
11612 PKG_CONFIG_MIN_VERSION=0.9.0
11613 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11615 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11616
11617 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11619 $as_echo "yes" >&6; }
11620 succeeded=yes
11621
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11623 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11624 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11626 $as_echo "$XFT_CFLAGS" >&6; }
11627
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11629 $as_echo_n "checking XFT_LIBS... " >&6; }
11630 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11632 $as_echo "$XFT_LIBS" >&6; }
11633 else
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635 $as_echo "no" >&6; }
11636 XFT_CFLAGS=""
11637 XFT_LIBS=""
11638 ## If we have a custom action on failure, don't print errors, but
11639 ## do set a variable so people can do so.
11640 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11641
11642 fi
11643
11644
11645
11646 else
11647 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11648 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11649 fi
11650 fi
11651
11652 if test $succeeded = yes; then
11653 :
11654 else
11655 HAVE_XFT=no
11656 fi
11657
11658 ## Because xftfont.c uses XRenderQueryExtension, we also
11659 ## need to link to -lXrender.
11660 HAVE_XRENDER=no
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11662 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11663 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 ac_check_lib_save_LIBS=$LIBS
11667 LIBS="-lXrender $LIBS"
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11670
11671 /* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11674 #ifdef __cplusplus
11675 extern "C"
11676 #endif
11677 char XRenderQueryExtension ();
11678 int
11679 main ()
11680 {
11681 return XRenderQueryExtension ();
11682 ;
11683 return 0;
11684 }
11685 _ACEOF
11686 if ac_fn_c_try_link "$LINENO"; then :
11687 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11688 else
11689 ac_cv_lib_Xrender_XRenderQueryExtension=no
11690 fi
11691 rm -f core conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11693 LIBS=$ac_check_lib_save_LIBS
11694 fi
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11696 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11697 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
11698 HAVE_XRENDER=yes
11699 fi
11700
11701 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11702 OLD_CPPFLAGS="$CPPFLAGS"
11703 OLD_CFLAGS="$CFLAGS"
11704 OLD_LIBS="$LIBS"
11705 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11706 CFLAGS="$CFLAGS $XFT_CFLAGS"
11707 XFT_LIBS="-lXrender $XFT_LIBS"
11708 LIBS="$XFT_LIBS $LIBS"
11709 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11710 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11712 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11713 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
11714 $as_echo_n "(cached) " >&6
11715 else
11716 ac_check_lib_save_LIBS=$LIBS
11717 LIBS="-lXft $XFT_LIBS $LIBS"
11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h. */
11720
11721 /* Override any GCC internal prototype to avoid an error.
11722 Use char because int might match the return type of a GCC
11723 builtin and then its argument prototype would still apply. */
11724 #ifdef __cplusplus
11725 extern "C"
11726 #endif
11727 char XftFontOpen ();
11728 int
11729 main ()
11730 {
11731 return XftFontOpen ();
11732 ;
11733 return 0;
11734 }
11735 _ACEOF
11736 if ac_fn_c_try_link "$LINENO"; then :
11737 ac_cv_lib_Xft_XftFontOpen=yes
11738 else
11739 ac_cv_lib_Xft_XftFontOpen=no
11740 fi
11741 rm -f core conftest.err conftest.$ac_objext \
11742 conftest$ac_exeext conftest.$ac_ext
11743 LIBS=$ac_check_lib_save_LIBS
11744 fi
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11746 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11747 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
11748 HAVE_XFT=yes
11749 fi
11750
11751 fi
11752
11753
11754
11755 if test "${HAVE_XFT}" = "yes"; then
11756
11757 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11758
11759
11760 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11761 else
11762 CPPFLAGS="$OLD_CPPFLAGS"
11763 CFLAGS="$OLD_CFLAGS"
11764 LIBS="$OLD_LIBS"
11765 fi # "${HAVE_XFT}" = "yes"
11766 fi # "$HAVE_XFT" != no
11767 fi # "x${with_xft}" != "xno"
11768
11769 ## We used to allow building with FreeType and without Xft.
11770 ## However, the ftx font backend driver is not in good shape.
11771 if test "$HAVE_XFT" != "yes"; then
11772 HAVE_XFT=no
11773 HAVE_FREETYPE=no
11774 else
11775
11776 succeeded=no
11777
11778 # Extract the first word of "pkg-config", so it can be a program name with args.
11779 set dummy pkg-config; ac_word=$2
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11781 $as_echo_n "checking for $ac_word... " >&6; }
11782 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11783 $as_echo_n "(cached) " >&6
11784 else
11785 case $PKG_CONFIG in
11786 [\\/]* | ?:[\\/]*)
11787 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11788 ;;
11789 *)
11790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791 for as_dir in $PATH
11792 do
11793 IFS=$as_save_IFS
11794 test -z "$as_dir" && as_dir=.
11795 for ac_exec_ext in '' $ac_executable_extensions; do
11796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11797 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11799 break 2
11800 fi
11801 done
11802 done
11803 IFS=$as_save_IFS
11804
11805 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11806 ;;
11807 esac
11808 fi
11809 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11810 if test -n "$PKG_CONFIG"; then
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11812 $as_echo "$PKG_CONFIG" >&6; }
11813 else
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11816 fi
11817
11818
11819
11820 if test "$PKG_CONFIG" = "no" ; then
11821 HAVE_FREETYPE=no
11822 else
11823 PKG_CONFIG_MIN_VERSION=0.9.0
11824 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11826 $as_echo_n "checking for freetype2... " >&6; }
11827
11828 if $PKG_CONFIG --exists "freetype2" 2>&5; then
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11830 $as_echo "yes" >&6; }
11831 succeeded=yes
11832
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
11834 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
11835 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
11837 $as_echo "$FREETYPE_CFLAGS" >&6; }
11838
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
11840 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
11841 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
11843 $as_echo "$FREETYPE_LIBS" >&6; }
11844 else
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11847 FREETYPE_CFLAGS=""
11848 FREETYPE_LIBS=""
11849 ## If we have a custom action on failure, don't print errors, but
11850 ## do set a variable so people can do so.
11851 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11852
11853 fi
11854
11855
11856
11857 else
11858 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11859 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11860 fi
11861 fi
11862
11863 if test $succeeded = yes; then
11864 HAVE_FREETYPE=yes
11865 else
11866 HAVE_FREETYPE=no
11867 fi
11868
11869
11870 test "$HAVE_FREETYPE" = "no" && as_fn_error $? "libxft requires libfreetype" "$LINENO" 5
11871 fi
11872
11873 HAVE_LIBOTF=no
11874 if test "${HAVE_FREETYPE}" = "yes"; then
11875
11876 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11877
11878 if test "${with_libotf}" != "no"; then
11879
11880 succeeded=no
11881
11882 # Extract the first word of "pkg-config", so it can be a program name with args.
11883 set dummy pkg-config; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 case $PKG_CONFIG in
11890 [\\/]* | ?:[\\/]*)
11891 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11892 ;;
11893 *)
11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895 for as_dir in $PATH
11896 do
11897 IFS=$as_save_IFS
11898 test -z "$as_dir" && as_dir=.
11899 for ac_exec_ext in '' $ac_executable_extensions; do
11900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11901 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11903 break 2
11904 fi
11905 done
11906 done
11907 IFS=$as_save_IFS
11908
11909 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11910 ;;
11911 esac
11912 fi
11913 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11914 if test -n "$PKG_CONFIG"; then
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11916 $as_echo "$PKG_CONFIG" >&6; }
11917 else
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919 $as_echo "no" >&6; }
11920 fi
11921
11922
11923
11924 if test "$PKG_CONFIG" = "no" ; then
11925 HAVE_LIBOTF=no
11926 else
11927 PKG_CONFIG_MIN_VERSION=0.9.0
11928 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11930 $as_echo_n "checking for libotf... " >&6; }
11931
11932 if $PKG_CONFIG --exists "libotf" 2>&5; then
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11934 $as_echo "yes" >&6; }
11935 succeeded=yes
11936
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11938 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11939 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11941 $as_echo "$LIBOTF_CFLAGS" >&6; }
11942
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11944 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11945 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11947 $as_echo "$LIBOTF_LIBS" >&6; }
11948 else
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 $as_echo "no" >&6; }
11951 LIBOTF_CFLAGS=""
11952 LIBOTF_LIBS=""
11953 ## If we have a custom action on failure, don't print errors, but
11954 ## do set a variable so people can do so.
11955 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11956
11957 fi
11958
11959
11960
11961 else
11962 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11963 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11964 fi
11965 fi
11966
11967 if test $succeeded = yes; then
11968 HAVE_LIBOTF=yes
11969 else
11970 HAVE_LIBOTF=no
11971 fi
11972
11973 if test "$HAVE_LIBOTF" = "yes"; then
11974
11975 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11976
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11978 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11979 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
11980 $as_echo_n "(cached) " >&6
11981 else
11982 ac_check_lib_save_LIBS=$LIBS
11983 LIBS="-lotf $LIBS"
11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11986
11987 /* Override any GCC internal prototype to avoid an error.
11988 Use char because int might match the return type of a GCC
11989 builtin and then its argument prototype would still apply. */
11990 #ifdef __cplusplus
11991 extern "C"
11992 #endif
11993 char OTF_get_variation_glyphs ();
11994 int
11995 main ()
11996 {
11997 return OTF_get_variation_glyphs ();
11998 ;
11999 return 0;
12000 }
12001 _ACEOF
12002 if ac_fn_c_try_link "$LINENO"; then :
12003 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12004 else
12005 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12006 fi
12007 rm -f core conftest.err conftest.$ac_objext \
12008 conftest$ac_exeext conftest.$ac_ext
12009 LIBS=$ac_check_lib_save_LIBS
12010 fi
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12012 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12013 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
12014 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12015 else
12016 HAVE_OTF_GET_VARIATION_GLYPHS=no
12017 fi
12018
12019 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12020
12021 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12022
12023 fi
12024 fi
12025 fi
12026 fi
12027
12028 HAVE_M17N_FLT=no
12029 if test "${HAVE_LIBOTF}" = yes; then
12030 if test "${with_m17n_flt}" != "no"; then
12031
12032 succeeded=no
12033
12034 # Extract the first word of "pkg-config", so it can be a program name with args.
12035 set dummy pkg-config; ac_word=$2
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037 $as_echo_n "checking for $ac_word... " >&6; }
12038 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12039 $as_echo_n "(cached) " >&6
12040 else
12041 case $PKG_CONFIG in
12042 [\\/]* | ?:[\\/]*)
12043 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12044 ;;
12045 *)
12046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12047 for as_dir in $PATH
12048 do
12049 IFS=$as_save_IFS
12050 test -z "$as_dir" && as_dir=.
12051 for ac_exec_ext in '' $ac_executable_extensions; do
12052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12053 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12055 break 2
12056 fi
12057 done
12058 done
12059 IFS=$as_save_IFS
12060
12061 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12062 ;;
12063 esac
12064 fi
12065 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12066 if test -n "$PKG_CONFIG"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12068 $as_echo "$PKG_CONFIG" >&6; }
12069 else
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12072 fi
12073
12074
12075
12076 if test "$PKG_CONFIG" = "no" ; then
12077 HAVE_M17N_FLT=no
12078 else
12079 PKG_CONFIG_MIN_VERSION=0.9.0
12080 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12082 $as_echo_n "checking for m17n-flt... " >&6; }
12083
12084 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12086 $as_echo "yes" >&6; }
12087 succeeded=yes
12088
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12090 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12091 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12093 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12094
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12096 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12097 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12099 $as_echo "$M17N_FLT_LIBS" >&6; }
12100 else
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12102 $as_echo "no" >&6; }
12103 M17N_FLT_CFLAGS=""
12104 M17N_FLT_LIBS=""
12105 ## If we have a custom action on failure, don't print errors, but
12106 ## do set a variable so people can do so.
12107 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12108
12109 fi
12110
12111
12112
12113 else
12114 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12115 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12116 fi
12117 fi
12118
12119 if test $succeeded = yes; then
12120 HAVE_M17N_FLT=yes
12121 else
12122 HAVE_M17N_FLT=no
12123 fi
12124
12125 if test "$HAVE_M17N_FLT" = "yes"; then
12126
12127 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12128
12129 fi
12130 fi
12131 fi
12132 else
12133 HAVE_XFT=no
12134 HAVE_FREETYPE=no
12135 HAVE_LIBOTF=no
12136 HAVE_M17N_FLT=no
12137 fi
12138
12139 ### End of font-backend (under X11) section.
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150 ### Use -lXpm if available, unless `--with-xpm=no'.
12151 HAVE_XPM=no
12152 LIBXPM=
12153 if test "${HAVE_X11}" = "yes"; then
12154 if test "${with_xpm}" != "no"; then
12155 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12156 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12158 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12159 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
12160 $as_echo_n "(cached) " >&6
12161 else
12162 ac_check_lib_save_LIBS=$LIBS
12163 LIBS="-lXpm -lX11 $LIBS"
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166
12167 /* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12170 #ifdef __cplusplus
12171 extern "C"
12172 #endif
12173 char XpmReadFileToPixmap ();
12174 int
12175 main ()
12176 {
12177 return XpmReadFileToPixmap ();
12178 ;
12179 return 0;
12180 }
12181 _ACEOF
12182 if ac_fn_c_try_link "$LINENO"; then :
12183 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12184 else
12185 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12186 fi
12187 rm -f core conftest.err conftest.$ac_objext \
12188 conftest$ac_exeext conftest.$ac_ext
12189 LIBS=$ac_check_lib_save_LIBS
12190 fi
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12192 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12193 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
12194 HAVE_XPM=yes
12195 fi
12196
12197 fi
12198
12199
12200 if test "${HAVE_XPM}" = "yes"; then
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12202 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h. */
12205 #include "X11/xpm.h"
12206 #ifndef XpmReturnAllocPixels
12207 no_return_alloc_pixels
12208 #endif
12209
12210 _ACEOF
12211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12212 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12213 HAVE_XPM=no
12214 else
12215 HAVE_XPM=yes
12216 fi
12217 rm -f conftest*
12218
12219
12220 if test "${HAVE_XPM}" = "yes"; then
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12222 $as_echo "yes" >&6; }
12223 else
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225 $as_echo "no" >&6; }
12226 fi
12227 fi
12228 fi
12229
12230 if test "${HAVE_XPM}" = "yes"; then
12231
12232 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12233
12234 LIBXPM=-lXpm
12235 fi
12236 fi
12237
12238
12239 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12240 HAVE_JPEG=no
12241 LIBJPEG=
12242 if test "${HAVE_X11}" = "yes"; then
12243 if test "${with_jpeg}" != "no"; then
12244 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12245 if test "x$ac_cv_header_jerror_h" = xyes; then :
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12247 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12248 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
12249 $as_echo_n "(cached) " >&6
12250 else
12251 ac_check_lib_save_LIBS=$LIBS
12252 LIBS="-ljpeg $LIBS"
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12255
12256 /* Override any GCC internal prototype to avoid an error.
12257 Use char because int might match the return type of a GCC
12258 builtin and then its argument prototype would still apply. */
12259 #ifdef __cplusplus
12260 extern "C"
12261 #endif
12262 char jpeg_destroy_compress ();
12263 int
12264 main ()
12265 {
12266 return jpeg_destroy_compress ();
12267 ;
12268 return 0;
12269 }
12270 _ACEOF
12271 if ac_fn_c_try_link "$LINENO"; then :
12272 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12273 else
12274 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12275 fi
12276 rm -f core conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12278 LIBS=$ac_check_lib_save_LIBS
12279 fi
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12281 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12282 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
12283 HAVE_JPEG=yes
12284 fi
12285
12286 fi
12287
12288
12289 fi
12290
12291 if test "${HAVE_JPEG}" = "yes"; then
12292 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12293
12294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12295 /* end confdefs.h. */
12296 #include <jpeglib.h>
12297 version=JPEG_LIB_VERSION
12298
12299 _ACEOF
12300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12301 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12302 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12303
12304 else
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12306 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12307 HAVE_JPEG=no
12308 fi
12309 rm -f conftest*
12310
12311 fi
12312 if test "${HAVE_JPEG}" = "yes"; then
12313 LIBJPEG=-ljpeg
12314 fi
12315 fi
12316
12317
12318 ### Use -lpng if available, unless `--with-png=no'.
12319 HAVE_PNG=no
12320 LIBPNG=
12321 if test "${HAVE_X11}" = "yes"; then
12322 if test "${with_png}" != "no"; then
12323 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12324 # in /usr/include/libpng.
12325 for ac_header in png.h libpng/png.h
12326 do :
12327 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12328 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12329 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12330 cat >>confdefs.h <<_ACEOF
12331 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12332 _ACEOF
12333
12334 fi
12335
12336 done
12337
12338 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12340 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12341 if ${ac_cv_lib_png_png_get_channels+:} false; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 ac_check_lib_save_LIBS=$LIBS
12345 LIBS="-lpng -lz -lm $LIBS"
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12348
12349 /* Override any GCC internal prototype to avoid an error.
12350 Use char because int might match the return type of a GCC
12351 builtin and then its argument prototype would still apply. */
12352 #ifdef __cplusplus
12353 extern "C"
12354 #endif
12355 char png_get_channels ();
12356 int
12357 main ()
12358 {
12359 return png_get_channels ();
12360 ;
12361 return 0;
12362 }
12363 _ACEOF
12364 if ac_fn_c_try_link "$LINENO"; then :
12365 ac_cv_lib_png_png_get_channels=yes
12366 else
12367 ac_cv_lib_png_png_get_channels=no
12368 fi
12369 rm -f core conftest.err conftest.$ac_objext \
12370 conftest$ac_exeext conftest.$ac_ext
12371 LIBS=$ac_check_lib_save_LIBS
12372 fi
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12374 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12375 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
12376 HAVE_PNG=yes
12377 fi
12378
12379 fi
12380 fi
12381
12382 if test "${HAVE_PNG}" = "yes"; then
12383
12384 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12385
12386 LIBPNG="-lpng -lz -lm"
12387 fi
12388 fi
12389
12390
12391 ### Use -ltiff if available, unless `--with-tiff=no'.
12392 HAVE_TIFF=no
12393 LIBTIFF=
12394 if test "${HAVE_X11}" = "yes"; then
12395 if test "${with_tiff}" != "no"; then
12396 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12397 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12398 tifflibs="-lz -lm"
12399 # At least one tiff package requires the jpeg library.
12400 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12402 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12403 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
12404 $as_echo_n "(cached) " >&6
12405 else
12406 ac_check_lib_save_LIBS=$LIBS
12407 LIBS="-ltiff $tifflibs $LIBS"
12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409 /* end confdefs.h. */
12410
12411 /* Override any GCC internal prototype to avoid an error.
12412 Use char because int might match the return type of a GCC
12413 builtin and then its argument prototype would still apply. */
12414 #ifdef __cplusplus
12415 extern "C"
12416 #endif
12417 char TIFFGetVersion ();
12418 int
12419 main ()
12420 {
12421 return TIFFGetVersion ();
12422 ;
12423 return 0;
12424 }
12425 _ACEOF
12426 if ac_fn_c_try_link "$LINENO"; then :
12427 ac_cv_lib_tiff_TIFFGetVersion=yes
12428 else
12429 ac_cv_lib_tiff_TIFFGetVersion=no
12430 fi
12431 rm -f core conftest.err conftest.$ac_objext \
12432 conftest$ac_exeext conftest.$ac_ext
12433 LIBS=$ac_check_lib_save_LIBS
12434 fi
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12436 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12437 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
12438 HAVE_TIFF=yes
12439 fi
12440
12441 fi
12442
12443
12444 fi
12445
12446 if test "${HAVE_TIFF}" = "yes"; then
12447
12448 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12449
12450 LIBTIFF=-ltiff
12451 fi
12452 fi
12453
12454
12455 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12456 HAVE_GIF=no
12457 LIBGIF=
12458 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12459 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12460 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
12461 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12462 # Earlier versions can crash Emacs.
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12464 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12465 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
12466 $as_echo_n "(cached) " >&6
12467 else
12468 ac_check_lib_save_LIBS=$LIBS
12469 LIBS="-lgif $LIBS"
12470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12471 /* end confdefs.h. */
12472
12473 /* Override any GCC internal prototype to avoid an error.
12474 Use char because int might match the return type of a GCC
12475 builtin and then its argument prototype would still apply. */
12476 #ifdef __cplusplus
12477 extern "C"
12478 #endif
12479 char EGifPutExtensionLast ();
12480 int
12481 main ()
12482 {
12483 return EGifPutExtensionLast ();
12484 ;
12485 return 0;
12486 }
12487 _ACEOF
12488 if ac_fn_c_try_link "$LINENO"; then :
12489 ac_cv_lib_gif_EGifPutExtensionLast=yes
12490 else
12491 ac_cv_lib_gif_EGifPutExtensionLast=no
12492 fi
12493 rm -f core conftest.err conftest.$ac_objext \
12494 conftest$ac_exeext conftest.$ac_ext
12495 LIBS=$ac_check_lib_save_LIBS
12496 fi
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12498 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12499 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
12500 HAVE_GIF=yes
12501 else
12502 HAVE_GIF=maybe
12503 fi
12504
12505 fi
12506
12507
12508
12509 if test "$HAVE_GIF" = yes; then
12510 LIBGIF=-lgif
12511 elif test "$HAVE_GIF" = maybe; then
12512 # If gif_lib.h but no libgif, try libungif.
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12514 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12515 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
12516 $as_echo_n "(cached) " >&6
12517 else
12518 ac_check_lib_save_LIBS=$LIBS
12519 LIBS="-lungif $LIBS"
12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521 /* end confdefs.h. */
12522
12523 /* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
12526 #ifdef __cplusplus
12527 extern "C"
12528 #endif
12529 char EGifPutExtensionLast ();
12530 int
12531 main ()
12532 {
12533 return EGifPutExtensionLast ();
12534 ;
12535 return 0;
12536 }
12537 _ACEOF
12538 if ac_fn_c_try_link "$LINENO"; then :
12539 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12540 else
12541 ac_cv_lib_ungif_EGifPutExtensionLast=no
12542 fi
12543 rm -f core conftest.err conftest.$ac_objext \
12544 conftest$ac_exeext conftest.$ac_ext
12545 LIBS=$ac_check_lib_save_LIBS
12546 fi
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12548 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12549 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
12550 HAVE_GIF=yes
12551 else
12552 HAVE_GIF=no
12553 fi
12554
12555 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12556 fi
12557
12558 if test "${HAVE_GIF}" = "yes"; then
12559
12560 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12561
12562 fi
12563 fi
12564
12565
12566 if test "${HAVE_X11}" = "yes"; then
12567 MISSING=""
12568 WITH_NO=""
12569 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12570 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12571 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12572 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12573 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12574 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12575 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12576 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12577 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12578 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12579
12580 if test "X${MISSING}" != X; then
12581 as_fn_error $? "The following required libraries were not found:
12582 $MISSING
12583 Maybe some development libraries/packages are missing?
12584 If you don't want to link with them give
12585 $WITH_NO
12586 as options to configure" "$LINENO" 5
12587 fi
12588 fi
12589
12590 ### Use -lgpm if available, unless `--with-gpm=no'.
12591 HAVE_GPM=no
12592 LIBGPM=
12593 MOUSE_SUPPORT=
12594 if test "${with_gpm}" != "no"; then
12595 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12596 if test "x$ac_cv_header_gpm_h" = xyes; then :
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12598 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12599 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
12600 $as_echo_n "(cached) " >&6
12601 else
12602 ac_check_lib_save_LIBS=$LIBS
12603 LIBS="-lgpm $LIBS"
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12606
12607 /* Override any GCC internal prototype to avoid an error.
12608 Use char because int might match the return type of a GCC
12609 builtin and then its argument prototype would still apply. */
12610 #ifdef __cplusplus
12611 extern "C"
12612 #endif
12613 char Gpm_Open ();
12614 int
12615 main ()
12616 {
12617 return Gpm_Open ();
12618 ;
12619 return 0;
12620 }
12621 _ACEOF
12622 if ac_fn_c_try_link "$LINENO"; then :
12623 ac_cv_lib_gpm_Gpm_Open=yes
12624 else
12625 ac_cv_lib_gpm_Gpm_Open=no
12626 fi
12627 rm -f core conftest.err conftest.$ac_objext \
12628 conftest$ac_exeext conftest.$ac_ext
12629 LIBS=$ac_check_lib_save_LIBS
12630 fi
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12632 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12633 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
12634 HAVE_GPM=yes
12635 fi
12636
12637 fi
12638
12639
12640
12641 if test "${HAVE_GPM}" = "yes"; then
12642
12643 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12644
12645 LIBGPM=-lgpm
12646 ## May be reset below.
12647 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12648 fi
12649 fi
12650
12651
12652 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12653 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
12654
12655 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12656
12657 fi
12658
12659
12660
12661 C_SWITCH_X_SYSTEM=
12662 ### Use NeXTstep API to implement GUI.
12663 if test "${HAVE_NS}" = "yes"; then
12664
12665 $as_echo "#define HAVE_NS 1" >>confdefs.h
12666
12667 if test "${NS_IMPL_COCOA}" = "yes"; then
12668
12669 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12670
12671 GNU_OBJC_CFLAGS=
12672 fi
12673 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12674
12675 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12676
12677 # See also .m.o rule in Makefile.in */
12678 # FIXME: are all these flags really needed? Document here why. */
12679 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12680 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12681 fi
12682 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12683
12684 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12685
12686 fi
12687 # We also have mouse menus.
12688 HAVE_MENUS=yes
12689 OTHER_FILES=ns-app
12690 fi
12691
12692
12693 ### Use session management (-lSM -lICE) if available
12694 HAVE_X_SM=no
12695 LIBXSM=
12696 if test "${HAVE_X11}" = "yes"; then
12697 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12698 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12700 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12701 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
12702 $as_echo_n "(cached) " >&6
12703 else
12704 ac_check_lib_save_LIBS=$LIBS
12705 LIBS="-lSM -lICE $LIBS"
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12708
12709 /* Override any GCC internal prototype to avoid an error.
12710 Use char because int might match the return type of a GCC
12711 builtin and then its argument prototype would still apply. */
12712 #ifdef __cplusplus
12713 extern "C"
12714 #endif
12715 char SmcOpenConnection ();
12716 int
12717 main ()
12718 {
12719 return SmcOpenConnection ();
12720 ;
12721 return 0;
12722 }
12723 _ACEOF
12724 if ac_fn_c_try_link "$LINENO"; then :
12725 ac_cv_lib_SM_SmcOpenConnection=yes
12726 else
12727 ac_cv_lib_SM_SmcOpenConnection=no
12728 fi
12729 rm -f core conftest.err conftest.$ac_objext \
12730 conftest$ac_exeext conftest.$ac_ext
12731 LIBS=$ac_check_lib_save_LIBS
12732 fi
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12734 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12735 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
12736 HAVE_X_SM=yes
12737 fi
12738
12739 fi
12740
12741
12742
12743 if test "${HAVE_X_SM}" = "yes"; then
12744
12745 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12746
12747 LIBXSM="-lSM -lICE"
12748 case "$LIBS" in
12749 *-lSM*) ;;
12750 *) LIBS="$LIBXSM $LIBS" ;;
12751 esac
12752 fi
12753 fi
12754
12755
12756 ### Use libxml (-lxml2) if available
12757 if test "${with_xml2}" != "no"; then
12758 ### I'm not sure what the version number should be, so I just guessed.
12759
12760 succeeded=no
12761
12762 # Extract the first word of "pkg-config", so it can be a program name with args.
12763 set dummy pkg-config; ac_word=$2
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12765 $as_echo_n "checking for $ac_word... " >&6; }
12766 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 case $PKG_CONFIG in
12770 [\\/]* | ?:[\\/]*)
12771 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12772 ;;
12773 *)
12774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775 for as_dir in $PATH
12776 do
12777 IFS=$as_save_IFS
12778 test -z "$as_dir" && as_dir=.
12779 for ac_exec_ext in '' $ac_executable_extensions; do
12780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12781 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 break 2
12784 fi
12785 done
12786 done
12787 IFS=$as_save_IFS
12788
12789 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12790 ;;
12791 esac
12792 fi
12793 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12794 if test -n "$PKG_CONFIG"; then
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12796 $as_echo "$PKG_CONFIG" >&6; }
12797 else
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799 $as_echo "no" >&6; }
12800 fi
12801
12802
12803
12804 if test "$PKG_CONFIG" = "no" ; then
12805 HAVE_LIBXML2=no
12806 else
12807 PKG_CONFIG_MIN_VERSION=0.9.0
12808 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12810 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12811
12812 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12814 $as_echo "yes" >&6; }
12815 succeeded=yes
12816
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12818 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12819 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12821 $as_echo "$LIBXML2_CFLAGS" >&6; }
12822
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12824 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12825 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12827 $as_echo "$LIBXML2_LIBS" >&6; }
12828 else
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12831 LIBXML2_CFLAGS=""
12832 LIBXML2_LIBS=""
12833 ## If we have a custom action on failure, don't print errors, but
12834 ## do set a variable so people can do so.
12835 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12836
12837 fi
12838
12839
12840
12841 else
12842 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12843 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12844 fi
12845 fi
12846
12847 if test $succeeded = yes; then
12848 HAVE_LIBXML2=yes
12849 else
12850 HAVE_LIBXML2=no
12851 fi
12852
12853 if test "${HAVE_LIBXML2}" = "yes"; then
12854 LIBS="$LIBXML2_LIBS $LIBS"
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12856 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12857 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
12858 $as_echo_n "(cached) " >&6
12859 else
12860 ac_check_lib_save_LIBS=$LIBS
12861 LIBS="-lxml2 $LIBS"
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12864
12865 /* Override any GCC internal prototype to avoid an error.
12866 Use char because int might match the return type of a GCC
12867 builtin and then its argument prototype would still apply. */
12868 #ifdef __cplusplus
12869 extern "C"
12870 #endif
12871 char htmlReadMemory ();
12872 int
12873 main ()
12874 {
12875 return htmlReadMemory ();
12876 ;
12877 return 0;
12878 }
12879 _ACEOF
12880 if ac_fn_c_try_link "$LINENO"; then :
12881 ac_cv_lib_xml2_htmlReadMemory=yes
12882 else
12883 ac_cv_lib_xml2_htmlReadMemory=no
12884 fi
12885 rm -f core conftest.err conftest.$ac_objext \
12886 conftest$ac_exeext conftest.$ac_ext
12887 LIBS=$ac_check_lib_save_LIBS
12888 fi
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12890 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12891 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
12892 HAVE_LIBXML2=yes
12893 else
12894 HAVE_LIBXML2=no
12895 fi
12896
12897 if test "${HAVE_LIBXML2}" = "yes"; then
12898
12899 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12900
12901 else
12902 LIBXML2_LIBS=""
12903 LIBXML2_CFLAGS=""
12904 fi
12905 fi
12906 fi
12907
12908
12909
12910 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12912 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12913 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
12914 $as_echo_n "(cached) " >&6
12915 else
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h. */
12918 #include <netdb.h>
12919 int
12920 main ()
12921 {
12922 return h_errno;
12923 ;
12924 return 0;
12925 }
12926 _ACEOF
12927 if ac_fn_c_try_link "$LINENO"; then :
12928 emacs_cv_netdb_declares_h_errno=yes
12929 else
12930 emacs_cv_netdb_declares_h_errno=no
12931 fi
12932 rm -f core conftest.err conftest.$ac_objext \
12933 conftest$ac_exeext conftest.$ac_ext
12934 fi
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12936 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12937 if test $emacs_cv_netdb_declares_h_errno = yes; then
12938
12939 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12940
12941 fi
12942
12943 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12944 if test "x$ac_cv_type_size_t" = xyes; then :
12945
12946 else
12947
12948 cat >>confdefs.h <<_ACEOF
12949 #define size_t unsigned int
12950 _ACEOF
12951
12952 fi
12953
12954 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12955 # for constant arguments. Useless!
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12957 $as_echo_n "checking for working alloca.h... " >&6; }
12958 if ${ac_cv_working_alloca_h+:} false; then :
12959 $as_echo_n "(cached) " >&6
12960 else
12961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12962 /* end confdefs.h. */
12963 #include <alloca.h>
12964 int
12965 main ()
12966 {
12967 char *p = (char *) alloca (2 * sizeof (int));
12968 if (p) return 0;
12969 ;
12970 return 0;
12971 }
12972 _ACEOF
12973 if ac_fn_c_try_link "$LINENO"; then :
12974 ac_cv_working_alloca_h=yes
12975 else
12976 ac_cv_working_alloca_h=no
12977 fi
12978 rm -f core conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12980 fi
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12982 $as_echo "$ac_cv_working_alloca_h" >&6; }
12983 if test $ac_cv_working_alloca_h = yes; then
12984
12985 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12986
12987 fi
12988
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12990 $as_echo_n "checking for alloca... " >&6; }
12991 if ${ac_cv_func_alloca_works+:} false; then :
12992 $as_echo_n "(cached) " >&6
12993 else
12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995 /* end confdefs.h. */
12996 #ifdef __GNUC__
12997 # define alloca __builtin_alloca
12998 #else
12999 # ifdef _MSC_VER
13000 # include <malloc.h>
13001 # define alloca _alloca
13002 # else
13003 # ifdef HAVE_ALLOCA_H
13004 # include <alloca.h>
13005 # else
13006 # ifdef _AIX
13007 #pragma alloca
13008 # else
13009 # ifndef alloca /* predefined by HP cc +Olibcalls */
13010 void *alloca (size_t);
13011 # endif
13012 # endif
13013 # endif
13014 # endif
13015 #endif
13016
13017 int
13018 main ()
13019 {
13020 char *p = (char *) alloca (1);
13021 if (p) return 0;
13022 ;
13023 return 0;
13024 }
13025 _ACEOF
13026 if ac_fn_c_try_link "$LINENO"; then :
13027 ac_cv_func_alloca_works=yes
13028 else
13029 ac_cv_func_alloca_works=no
13030 fi
13031 rm -f core conftest.err conftest.$ac_objext \
13032 conftest$ac_exeext conftest.$ac_ext
13033 fi
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13035 $as_echo "$ac_cv_func_alloca_works" >&6; }
13036
13037 if test $ac_cv_func_alloca_works = yes; then
13038
13039 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13040
13041 else
13042 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13043 # that cause trouble. Some versions do not even contain alloca or
13044 # contain a buggy version. If you still want to use their alloca,
13045 # use ar to extract alloca.o from them instead of compiling alloca.c.
13046
13047 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13048
13049 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13050
13051
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13053 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13054 if ${ac_cv_os_cray+:} false; then :
13055 $as_echo_n "(cached) " >&6
13056 else
13057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13058 /* end confdefs.h. */
13059 #if defined CRAY && ! defined CRAY2
13060 webecray
13061 #else
13062 wenotbecray
13063 #endif
13064
13065 _ACEOF
13066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13067 $EGREP "webecray" >/dev/null 2>&1; then :
13068 ac_cv_os_cray=yes
13069 else
13070 ac_cv_os_cray=no
13071 fi
13072 rm -f conftest*
13073
13074 fi
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13076 $as_echo "$ac_cv_os_cray" >&6; }
13077 if test $ac_cv_os_cray = yes; then
13078 for ac_func in _getb67 GETB67 getb67; do
13079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13080 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13081 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13082
13083 cat >>confdefs.h <<_ACEOF
13084 #define CRAY_STACKSEG_END $ac_func
13085 _ACEOF
13086
13087 break
13088 fi
13089
13090 done
13091 fi
13092
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13094 $as_echo_n "checking stack direction for C alloca... " >&6; }
13095 if ${ac_cv_c_stack_direction+:} false; then :
13096 $as_echo_n "(cached) " >&6
13097 else
13098 if test "$cross_compiling" = yes; then :
13099 ac_cv_c_stack_direction=0
13100 else
13101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102 /* end confdefs.h. */
13103 $ac_includes_default
13104 int
13105 find_stack_direction ()
13106 {
13107 static char *addr = 0;
13108 auto char dummy;
13109 if (addr == 0)
13110 {
13111 addr = &dummy;
13112 return find_stack_direction ();
13113 }
13114 else
13115 return (&dummy > addr) ? 1 : -1;
13116 }
13117
13118 int
13119 main ()
13120 {
13121 return find_stack_direction () < 0;
13122 }
13123 _ACEOF
13124 if ac_fn_c_try_run "$LINENO"; then :
13125 ac_cv_c_stack_direction=1
13126 else
13127 ac_cv_c_stack_direction=-1
13128 fi
13129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13130 conftest.$ac_objext conftest.beam conftest.$ac_ext
13131 fi
13132
13133 fi
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13135 $as_echo "$ac_cv_c_stack_direction" >&6; }
13136 cat >>confdefs.h <<_ACEOF
13137 #define STACK_DIRECTION $ac_cv_c_stack_direction
13138 _ACEOF
13139
13140
13141 fi
13142
13143
13144 if test x"$ac_cv_func_alloca_works" != xyes; then
13145 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
13146 fi
13147
13148 # fmod, logb, and frexp are found in -lm on most systems.
13149 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13151 $as_echo_n "checking for sqrt in -lm... " >&6; }
13152 if ${ac_cv_lib_m_sqrt+:} false; then :
13153 $as_echo_n "(cached) " >&6
13154 else
13155 ac_check_lib_save_LIBS=$LIBS
13156 LIBS="-lm $LIBS"
13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h. */
13159
13160 /* Override any GCC internal prototype to avoid an error.
13161 Use char because int might match the return type of a GCC
13162 builtin and then its argument prototype would still apply. */
13163 #ifdef __cplusplus
13164 extern "C"
13165 #endif
13166 char sqrt ();
13167 int
13168 main ()
13169 {
13170 return sqrt ();
13171 ;
13172 return 0;
13173 }
13174 _ACEOF
13175 if ac_fn_c_try_link "$LINENO"; then :
13176 ac_cv_lib_m_sqrt=yes
13177 else
13178 ac_cv_lib_m_sqrt=no
13179 fi
13180 rm -f core conftest.err conftest.$ac_objext \
13181 conftest$ac_exeext conftest.$ac_ext
13182 LIBS=$ac_check_lib_save_LIBS
13183 fi
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13185 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13186 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
13187 cat >>confdefs.h <<_ACEOF
13188 #define HAVE_LIBM 1
13189 _ACEOF
13190
13191 LIBS="-lm $LIBS"
13192
13193 fi
13194
13195
13196 # Check for mail-locking functions in a "mail" library. Probably this should
13197 # have the same check as for liblockfile below.
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13199 $as_echo_n "checking for maillock in -lmail... " >&6; }
13200 if ${ac_cv_lib_mail_maillock+:} false; then :
13201 $as_echo_n "(cached) " >&6
13202 else
13203 ac_check_lib_save_LIBS=$LIBS
13204 LIBS="-lmail $LIBS"
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13207
13208 /* Override any GCC internal prototype to avoid an error.
13209 Use char because int might match the return type of a GCC
13210 builtin and then its argument prototype would still apply. */
13211 #ifdef __cplusplus
13212 extern "C"
13213 #endif
13214 char maillock ();
13215 int
13216 main ()
13217 {
13218 return maillock ();
13219 ;
13220 return 0;
13221 }
13222 _ACEOF
13223 if ac_fn_c_try_link "$LINENO"; then :
13224 ac_cv_lib_mail_maillock=yes
13225 else
13226 ac_cv_lib_mail_maillock=no
13227 fi
13228 rm -f core conftest.err conftest.$ac_objext \
13229 conftest$ac_exeext conftest.$ac_ext
13230 LIBS=$ac_check_lib_save_LIBS
13231 fi
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13233 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13234 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
13235 have_mail=yes
13236 else
13237 have_mail=no
13238 fi
13239
13240 if test $have_mail = yes; then
13241 LIBS_MAIL=-lmail
13242 LIBS="$LIBS_MAIL $LIBS"
13243
13244 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13245
13246 else
13247 LIBS_MAIL=
13248 fi
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13250 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13251 if ${ac_cv_lib_lockfile_maillock+:} false; then :
13252 $as_echo_n "(cached) " >&6
13253 else
13254 ac_check_lib_save_LIBS=$LIBS
13255 LIBS="-llockfile $LIBS"
13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13258
13259 /* Override any GCC internal prototype to avoid an error.
13260 Use char because int might match the return type of a GCC
13261 builtin and then its argument prototype would still apply. */
13262 #ifdef __cplusplus
13263 extern "C"
13264 #endif
13265 char maillock ();
13266 int
13267 main ()
13268 {
13269 return maillock ();
13270 ;
13271 return 0;
13272 }
13273 _ACEOF
13274 if ac_fn_c_try_link "$LINENO"; then :
13275 ac_cv_lib_lockfile_maillock=yes
13276 else
13277 ac_cv_lib_lockfile_maillock=no
13278 fi
13279 rm -f core conftest.err conftest.$ac_objext \
13280 conftest$ac_exeext conftest.$ac_ext
13281 LIBS=$ac_check_lib_save_LIBS
13282 fi
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13284 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13285 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
13286 have_lockfile=yes
13287 else
13288 have_lockfile=no
13289 fi
13290
13291 if test $have_lockfile = yes; then
13292 LIBS_MAIL=-llockfile
13293 LIBS="$LIBS_MAIL $LIBS"
13294
13295 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13296
13297 else
13298 # If we have the shared liblockfile, assume we must use it for mail
13299 # locking (e.g. Debian). If we couldn't link against liblockfile
13300 # (no liblockfile.a installed), ensure that we don't need to.
13301 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13302 set dummy liblockfile.so; ac_word=$2
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13304 $as_echo_n "checking for $ac_word... " >&6; }
13305 if ${ac_cv_prog_liblockfile+:} false; then :
13306 $as_echo_n "(cached) " >&6
13307 else
13308 if test -n "$liblockfile"; then
13309 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13310 else
13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13313 for as_dir in $as_dummy
13314 do
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13319 ac_cv_prog_liblockfile="yes"
13320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13322 fi
13323 done
13324 done
13325 IFS=$as_save_IFS
13326
13327 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13328 fi
13329 fi
13330 liblockfile=$ac_cv_prog_liblockfile
13331 if test -n "$liblockfile"; then
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13333 $as_echo "$liblockfile" >&6; }
13334 else
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336 $as_echo "no" >&6; }
13337 fi
13338
13339
13340 if test $ac_cv_prog_liblockfile = yes; then
13341 as_fn_error $? "Shared liblockfile found but can't link against it.
13342 This probably means that movemail could lose mail.
13343 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13344 fi
13345 fi
13346 for ac_func in touchlock
13347 do :
13348 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13349 if test "x$ac_cv_func_touchlock" = xyes; then :
13350 cat >>confdefs.h <<_ACEOF
13351 #define HAVE_TOUCHLOCK 1
13352 _ACEOF
13353
13354 fi
13355 done
13356
13357 for ac_header in maillock.h
13358 do :
13359 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13360 if test "x$ac_cv_header_maillock_h" = xyes; then :
13361 cat >>confdefs.h <<_ACEOF
13362 #define HAVE_MAILLOCK_H 1
13363 _ACEOF
13364
13365 fi
13366
13367 done
13368
13369
13370
13371 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13372 ## interlock access to the mail spool. The alternative is a lock file named
13373 ## /usr/spool/mail/$USER.lock.
13374 mail_lock=no
13375 case "$opsys" in
13376 aix4-2) mail_lock="lockf" ;;
13377
13378 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13379
13380 ## On GNU/Linux systems, both methods are used by various mail programs.
13381 ## I assume most people are using newer mailers that have heard of flock.
13382 ## Change this if you need to.
13383 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13384 ## configure gets the right answers, and that means *NOT* using flock.
13385 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13386 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13387 ## Debian maintainer hasn't provided a clean fix for Emacs.
13388 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13389 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13390 ## correct logic. -- fx
13391 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13392 ## liblockfile is a Free Software replacement for libmail, used on
13393 ## Debian systems and elsewhere. -rfr.
13394 gnu-*)
13395 mail_lock="flock"
13396 if test $have_mail = yes || test $have_lockfile = yes; then
13397 test $ac_cv_header_maillock_h = yes && mail_lock=no
13398 fi
13399 ;;
13400 esac
13401
13402 BLESSMAIL_TARGET=
13403 case "$mail_lock" in
13404 flock)
13405 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13406 ;;
13407
13408 lockf)
13409 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13410 ;;
13411
13412 *) BLESSMAIL_TARGET="need-blessmail" ;;
13413 esac
13414
13415
13416
13417 for ac_func in gethostname getdomainname dup2 \
13418 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13419 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13420 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13421 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13422 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13423 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13424 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13425 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13426 cfmakeraw cfsetspeed isnan copysign __executable_start
13427 do :
13428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13430 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13431 cat >>confdefs.h <<_ACEOF
13432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13433 _ACEOF
13434
13435 fi
13436 done
13437
13438
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13440 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13441 if ${emacs_cv_func___builtin_unwind_init+:} false; then :
13442 $as_echo_n "(cached) " >&6
13443 else
13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h. */
13446
13447 int
13448 main ()
13449 {
13450 __builtin_unwind_init ();
13451 ;
13452 return 0;
13453 }
13454 _ACEOF
13455 if ac_fn_c_try_link "$LINENO"; then :
13456 emacs_cv_func___builtin_unwind_init=yes
13457 else
13458 emacs_cv_func___builtin_unwind_init=no
13459 fi
13460 rm -f core conftest.err conftest.$ac_objext \
13461 conftest$ac_exeext conftest.$ac_ext
13462 fi
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13464 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13465 if test $emacs_cv_func___builtin_unwind_init = yes; then
13466
13467 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13468
13469 fi
13470
13471 for ac_header in sys/un.h
13472 do :
13473 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13474 if test "x$ac_cv_header_sys_un_h" = xyes; then :
13475 cat >>confdefs.h <<_ACEOF
13476 #define HAVE_SYS_UN_H 1
13477 _ACEOF
13478
13479 fi
13480
13481 done
13482
13483
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13485 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13486 if ${ac_cv_sys_largefile_source+:} false; then :
13487 $as_echo_n "(cached) " >&6
13488 else
13489 while :; do
13490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491 /* end confdefs.h. */
13492 #include <sys/types.h> /* for off_t */
13493 #include <stdio.h>
13494 int
13495 main ()
13496 {
13497 int (*fp) (FILE *, off_t, int) = fseeko;
13498 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13499 ;
13500 return 0;
13501 }
13502 _ACEOF
13503 if ac_fn_c_try_link "$LINENO"; then :
13504 ac_cv_sys_largefile_source=no; break
13505 fi
13506 rm -f core conftest.err conftest.$ac_objext \
13507 conftest$ac_exeext conftest.$ac_ext
13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13510 #define _LARGEFILE_SOURCE 1
13511 #include <sys/types.h> /* for off_t */
13512 #include <stdio.h>
13513 int
13514 main ()
13515 {
13516 int (*fp) (FILE *, off_t, int) = fseeko;
13517 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13518 ;
13519 return 0;
13520 }
13521 _ACEOF
13522 if ac_fn_c_try_link "$LINENO"; then :
13523 ac_cv_sys_largefile_source=1; break
13524 fi
13525 rm -f core conftest.err conftest.$ac_objext \
13526 conftest$ac_exeext conftest.$ac_ext
13527 ac_cv_sys_largefile_source=unknown
13528 break
13529 done
13530 fi
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13532 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13533 case $ac_cv_sys_largefile_source in #(
13534 no | unknown) ;;
13535 *)
13536 cat >>confdefs.h <<_ACEOF
13537 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13538 _ACEOF
13539 ;;
13540 esac
13541 rm -rf conftest*
13542
13543 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13544 # in glibc 2.1.3, but that breaks too many other things.
13545 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13546 if test $ac_cv_sys_largefile_source != unknown; then
13547
13548 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13549
13550 fi
13551
13552
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13554 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13555 if ${ac_cv_func_getpgrp_void+:} false; then :
13556 $as_echo_n "(cached) " >&6
13557 else
13558 # Use it with a single arg.
13559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h. */
13561 $ac_includes_default
13562 int
13563 main ()
13564 {
13565 getpgrp (0);
13566 ;
13567 return 0;
13568 }
13569 _ACEOF
13570 if ac_fn_c_try_compile "$LINENO"; then :
13571 ac_cv_func_getpgrp_void=no
13572 else
13573 ac_cv_func_getpgrp_void=yes
13574 fi
13575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13576
13577 fi
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13579 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13580 if test $ac_cv_func_getpgrp_void = yes; then
13581
13582 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13583
13584 fi
13585
13586
13587 # Configure gnulib.
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598 LIBC_FATAL_STDERR_=1
13599 export LIBC_FATAL_STDERR_
13600
13601
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13603 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13604 if ${ac_cv_c_bigendian+:} false; then :
13605 $as_echo_n "(cached) " >&6
13606 else
13607 ac_cv_c_bigendian=unknown
13608 # See if we're dealing with a universal compiler.
13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610 /* end confdefs.h. */
13611 #ifndef __APPLE_CC__
13612 not a universal capable compiler
13613 #endif
13614 typedef int dummy;
13615
13616 _ACEOF
13617 if ac_fn_c_try_compile "$LINENO"; then :
13618
13619 # Check for potential -arch flags. It is not universal unless
13620 # there are at least two -arch flags with different values.
13621 ac_arch=
13622 ac_prev=
13623 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13624 if test -n "$ac_prev"; then
13625 case $ac_word in
13626 i?86 | x86_64 | ppc | ppc64)
13627 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13628 ac_arch=$ac_word
13629 else
13630 ac_cv_c_bigendian=universal
13631 break
13632 fi
13633 ;;
13634 esac
13635 ac_prev=
13636 elif test "x$ac_word" = "x-arch"; then
13637 ac_prev=arch
13638 fi
13639 done
13640 fi
13641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13642 if test $ac_cv_c_bigendian = unknown; then
13643 # See if sys/param.h defines the BYTE_ORDER macro.
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13646 #include <sys/types.h>
13647 #include <sys/param.h>
13648
13649 int
13650 main ()
13651 {
13652 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13653 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13654 && LITTLE_ENDIAN)
13655 bogus endian macros
13656 #endif
13657
13658 ;
13659 return 0;
13660 }
13661 _ACEOF
13662 if ac_fn_c_try_compile "$LINENO"; then :
13663 # It does; now see whether it defined to BIG_ENDIAN or not.
13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h. */
13666 #include <sys/types.h>
13667 #include <sys/param.h>
13668
13669 int
13670 main ()
13671 {
13672 #if BYTE_ORDER != BIG_ENDIAN
13673 not big endian
13674 #endif
13675
13676 ;
13677 return 0;
13678 }
13679 _ACEOF
13680 if ac_fn_c_try_compile "$LINENO"; then :
13681 ac_cv_c_bigendian=yes
13682 else
13683 ac_cv_c_bigendian=no
13684 fi
13685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13686 fi
13687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13688 fi
13689 if test $ac_cv_c_bigendian = unknown; then
13690 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13693 #include <limits.h>
13694
13695 int
13696 main ()
13697 {
13698 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13699 bogus endian macros
13700 #endif
13701
13702 ;
13703 return 0;
13704 }
13705 _ACEOF
13706 if ac_fn_c_try_compile "$LINENO"; then :
13707 # It does; now see whether it defined to _BIG_ENDIAN or not.
13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13710 #include <limits.h>
13711
13712 int
13713 main ()
13714 {
13715 #ifndef _BIG_ENDIAN
13716 not big endian
13717 #endif
13718
13719 ;
13720 return 0;
13721 }
13722 _ACEOF
13723 if ac_fn_c_try_compile "$LINENO"; then :
13724 ac_cv_c_bigendian=yes
13725 else
13726 ac_cv_c_bigendian=no
13727 fi
13728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13729 fi
13730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13731 fi
13732 if test $ac_cv_c_bigendian = unknown; then
13733 # Compile a test program.
13734 if test "$cross_compiling" = yes; then :
13735 # Try to guess by grepping values from an object file.
13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h. */
13738 short int ascii_mm[] =
13739 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13740 short int ascii_ii[] =
13741 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13742 int use_ascii (int i) {
13743 return ascii_mm[i] + ascii_ii[i];
13744 }
13745 short int ebcdic_ii[] =
13746 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13747 short int ebcdic_mm[] =
13748 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13749 int use_ebcdic (int i) {
13750 return ebcdic_mm[i] + ebcdic_ii[i];
13751 }
13752 extern int foo;
13753
13754 int
13755 main ()
13756 {
13757 return use_ascii (foo) == use_ebcdic (foo);
13758 ;
13759 return 0;
13760 }
13761 _ACEOF
13762 if ac_fn_c_try_compile "$LINENO"; then :
13763 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13764 ac_cv_c_bigendian=yes
13765 fi
13766 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13767 if test "$ac_cv_c_bigendian" = unknown; then
13768 ac_cv_c_bigendian=no
13769 else
13770 # finding both strings is unlikely to happen, but who knows?
13771 ac_cv_c_bigendian=unknown
13772 fi
13773 fi
13774 fi
13775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13776 else
13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h. */
13779 $ac_includes_default
13780 int
13781 main ()
13782 {
13783
13784 /* Are we little or big endian? From Harbison&Steele. */
13785 union
13786 {
13787 long int l;
13788 char c[sizeof (long int)];
13789 } u;
13790 u.l = 1;
13791 return u.c[sizeof (long int) - 1] == 1;
13792
13793 ;
13794 return 0;
13795 }
13796 _ACEOF
13797 if ac_fn_c_try_run "$LINENO"; then :
13798 ac_cv_c_bigendian=no
13799 else
13800 ac_cv_c_bigendian=yes
13801 fi
13802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13803 conftest.$ac_objext conftest.beam conftest.$ac_ext
13804 fi
13805
13806 fi
13807 fi
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13809 $as_echo "$ac_cv_c_bigendian" >&6; }
13810 case $ac_cv_c_bigendian in #(
13811 yes)
13812 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13813 ;; #(
13814 no)
13815 ;; #(
13816 universal)
13817
13818 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13819
13820 ;; #(
13821 *)
13822 as_fn_error $? "unknown endianness
13823 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13824 esac
13825
13826
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13828 $as_echo_n "checking for inline... " >&6; }
13829 if ${ac_cv_c_inline+:} false; then :
13830 $as_echo_n "(cached) " >&6
13831 else
13832 ac_cv_c_inline=no
13833 for ac_kw in inline __inline__ __inline; do
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h. */
13836 #ifndef __cplusplus
13837 typedef int foo_t;
13838 static $ac_kw foo_t static_foo () {return 0; }
13839 $ac_kw foo_t foo () {return 0; }
13840 #endif
13841
13842 _ACEOF
13843 if ac_fn_c_try_compile "$LINENO"; then :
13844 ac_cv_c_inline=$ac_kw
13845 fi
13846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13847 test "$ac_cv_c_inline" != no && break
13848 done
13849
13850 fi
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13852 $as_echo "$ac_cv_c_inline" >&6; }
13853
13854 case $ac_cv_c_inline in
13855 inline | yes) ;;
13856 *)
13857 case $ac_cv_c_inline in
13858 no) ac_val=;;
13859 *) ac_val=$ac_cv_c_inline;;
13860 esac
13861 cat >>confdefs.h <<_ACEOF
13862 #ifndef __cplusplus
13863 #define inline $ac_val
13864 #endif
13865 _ACEOF
13866 ;;
13867 esac
13868
13869
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13871 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13872 if ${gl_cv_func_c99_strtold+:} false; then :
13873 $as_echo_n "(cached) " >&6
13874 else
13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13877 /* On HP-UX before 11.23, strtold returns a struct instead of
13878 long double. Reject implementations like that, by requiring
13879 compatibility with the C99 prototype. */
13880 #include <stdlib.h>
13881 static long double (*p) (char const *, char **) = strtold;
13882 static long double
13883 test (char const *nptr, char **endptr)
13884 {
13885 long double r;
13886 r = strtold (nptr, endptr);
13887 return r;
13888 }
13889 int
13890 main ()
13891 {
13892 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13893 ;
13894 return 0;
13895 }
13896 _ACEOF
13897 if ac_fn_c_try_link "$LINENO"; then :
13898 gl_cv_func_c99_strtold=yes
13899 else
13900 gl_cv_func_c99_strtold=no
13901 fi
13902 rm -f core conftest.err conftest.$ac_objext \
13903 conftest$ac_exeext conftest.$ac_ext
13904 fi
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13906 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13907 if test $gl_cv_func_c99_strtold = yes; then
13908
13909 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13910
13911 fi
13912
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13914 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13915 if ${ac_cv_struct_st_dm_mode+:} false; then :
13916 $as_echo_n "(cached) " >&6
13917 else
13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13920
13921 #include <sys/types.h>
13922 #include <sys/stat.h>
13923 int
13924 main ()
13925 {
13926 struct stat s; s.st_dm_mode;
13927 ;
13928 return 0;
13929 }
13930 _ACEOF
13931 if ac_fn_c_try_compile "$LINENO"; then :
13932 ac_cv_struct_st_dm_mode=yes
13933 else
13934 ac_cv_struct_st_dm_mode=no
13935 fi
13936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13937 fi
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13939 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13940
13941 if test $ac_cv_struct_st_dm_mode = yes; then
13942
13943 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13944
13945 fi
13946
13947
13948 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13949 if test "x$ac_cv_have_decl_strmode" = xyes; then :
13950 ac_have_decl=1
13951 else
13952 ac_have_decl=0
13953 fi
13954
13955 cat >>confdefs.h <<_ACEOF
13956 #define HAVE_DECL_STRMODE $ac_have_decl
13957 _ACEOF
13958
13959
13960 GNULIB__EXIT=0;
13961 GNULIB_ATOLL=0;
13962 GNULIB_CALLOC_POSIX=0;
13963 GNULIB_CANONICALIZE_FILE_NAME=0;
13964 GNULIB_GETLOADAVG=0;
13965 GNULIB_GETSUBOPT=0;
13966 GNULIB_GRANTPT=0;
13967 GNULIB_MALLOC_POSIX=0;
13968 GNULIB_MBTOWC=0;
13969 GNULIB_MKDTEMP=0;
13970 GNULIB_MKOSTEMP=0;
13971 GNULIB_MKOSTEMPS=0;
13972 GNULIB_MKSTEMP=0;
13973 GNULIB_MKSTEMPS=0;
13974 GNULIB_PTSNAME=0;
13975 GNULIB_PUTENV=0;
13976 GNULIB_RANDOM_R=0;
13977 GNULIB_REALLOC_POSIX=0;
13978 GNULIB_REALPATH=0;
13979 GNULIB_RPMATCH=0;
13980 GNULIB_SETENV=0;
13981 GNULIB_STRTOD=0;
13982 GNULIB_STRTOLL=0;
13983 GNULIB_STRTOULL=0;
13984 GNULIB_SYSTEM_POSIX=0;
13985 GNULIB_UNLOCKPT=0;
13986 GNULIB_UNSETENV=0;
13987 GNULIB_WCTOMB=0;
13988 HAVE__EXIT=1;
13989 HAVE_ATOLL=1;
13990 HAVE_CANONICALIZE_FILE_NAME=1;
13991 HAVE_DECL_GETLOADAVG=1;
13992 HAVE_GETSUBOPT=1;
13993 HAVE_GRANTPT=1;
13994 HAVE_MKDTEMP=1;
13995 HAVE_MKOSTEMP=1;
13996 HAVE_MKOSTEMPS=1;
13997 HAVE_MKSTEMP=1;
13998 HAVE_MKSTEMPS=1;
13999 HAVE_PTSNAME=1;
14000 HAVE_RANDOM_H=1;
14001 HAVE_RANDOM_R=1;
14002 HAVE_REALPATH=1;
14003 HAVE_RPMATCH=1;
14004 HAVE_SETENV=1;
14005 HAVE_DECL_SETENV=1;
14006 HAVE_STRTOD=1;
14007 HAVE_STRTOLL=1;
14008 HAVE_STRTOULL=1;
14009 HAVE_STRUCT_RANDOM_DATA=1;
14010 HAVE_SYS_LOADAVG_H=0;
14011 HAVE_UNLOCKPT=1;
14012 HAVE_DECL_UNSETENV=1;
14013 REPLACE_CALLOC=0;
14014 REPLACE_CANONICALIZE_FILE_NAME=0;
14015 REPLACE_MALLOC=0;
14016 REPLACE_MBTOWC=0;
14017 REPLACE_MKSTEMP=0;
14018 REPLACE_PUTENV=0;
14019 REPLACE_REALLOC=0;
14020 REPLACE_REALPATH=0;
14021 REPLACE_SETENV=0;
14022 REPLACE_STRTOD=0;
14023 REPLACE_UNSETENV=0;
14024 REPLACE_WCTOMB=0;
14025
14026
14027 GNULIB_CHOWN=0;
14028 GNULIB_CLOSE=0;
14029 GNULIB_DUP2=0;
14030 GNULIB_DUP3=0;
14031 GNULIB_ENVIRON=0;
14032 GNULIB_EUIDACCESS=0;
14033 GNULIB_FACCESSAT=0;
14034 GNULIB_FCHDIR=0;
14035 GNULIB_FCHOWNAT=0;
14036 GNULIB_FSYNC=0;
14037 GNULIB_FTRUNCATE=0;
14038 GNULIB_GETCWD=0;
14039 GNULIB_GETDOMAINNAME=0;
14040 GNULIB_GETDTABLESIZE=0;
14041 GNULIB_GETGROUPS=0;
14042 GNULIB_GETHOSTNAME=0;
14043 GNULIB_GETLOGIN=0;
14044 GNULIB_GETLOGIN_R=0;
14045 GNULIB_GETPAGESIZE=0;
14046 GNULIB_GETUSERSHELL=0;
14047 GNULIB_LCHOWN=0;
14048 GNULIB_LINK=0;
14049 GNULIB_LINKAT=0;
14050 GNULIB_LSEEK=0;
14051 GNULIB_PIPE=0;
14052 GNULIB_PIPE2=0;
14053 GNULIB_PREAD=0;
14054 GNULIB_PWRITE=0;
14055 GNULIB_READLINK=0;
14056 GNULIB_READLINKAT=0;
14057 GNULIB_RMDIR=0;
14058 GNULIB_SLEEP=0;
14059 GNULIB_SYMLINK=0;
14060 GNULIB_SYMLINKAT=0;
14061 GNULIB_TTYNAME_R=0;
14062 GNULIB_UNISTD_H_GETOPT=0;
14063 GNULIB_UNISTD_H_SIGPIPE=0;
14064 GNULIB_UNLINK=0;
14065 GNULIB_UNLINKAT=0;
14066 GNULIB_USLEEP=0;
14067 GNULIB_WRITE=0;
14068 HAVE_CHOWN=1;
14069 HAVE_DUP2=1;
14070 HAVE_DUP3=1;
14071 HAVE_EUIDACCESS=1;
14072 HAVE_FACCESSAT=1;
14073 HAVE_FCHDIR=1;
14074 HAVE_FCHOWNAT=1;
14075 HAVE_FSYNC=1;
14076 HAVE_FTRUNCATE=1;
14077 HAVE_GETDTABLESIZE=1;
14078 HAVE_GETGROUPS=1;
14079 HAVE_GETHOSTNAME=1;
14080 HAVE_GETLOGIN=1;
14081 HAVE_GETPAGESIZE=1;
14082 HAVE_LCHOWN=1;
14083 HAVE_LINK=1;
14084 HAVE_LINKAT=1;
14085 HAVE_PIPE=1;
14086 HAVE_PIPE2=1;
14087 HAVE_PREAD=1;
14088 HAVE_PWRITE=1;
14089 HAVE_READLINK=1;
14090 HAVE_READLINKAT=1;
14091 HAVE_SLEEP=1;
14092 HAVE_SYMLINK=1;
14093 HAVE_SYMLINKAT=1;
14094 HAVE_UNLINKAT=1;
14095 HAVE_USLEEP=1;
14096 HAVE_DECL_ENVIRON=1;
14097 HAVE_DECL_FCHDIR=1;
14098 HAVE_DECL_GETDOMAINNAME=1;
14099 HAVE_DECL_GETLOGIN_R=1;
14100 HAVE_DECL_GETPAGESIZE=1;
14101 HAVE_DECL_GETUSERSHELL=1;
14102 HAVE_DECL_TTYNAME_R=1;
14103 HAVE_OS_H=0;
14104 HAVE_SYS_PARAM_H=0;
14105 REPLACE_CHOWN=0;
14106 REPLACE_CLOSE=0;
14107 REPLACE_DUP=0;
14108 REPLACE_DUP2=0;
14109 REPLACE_FCHOWNAT=0;
14110 REPLACE_GETCWD=0;
14111 REPLACE_GETDOMAINNAME=0;
14112 REPLACE_GETLOGIN_R=0;
14113 REPLACE_GETGROUPS=0;
14114 REPLACE_GETPAGESIZE=0;
14115 REPLACE_LCHOWN=0;
14116 REPLACE_LINK=0;
14117 REPLACE_LINKAT=0;
14118 REPLACE_LSEEK=0;
14119 REPLACE_PREAD=0;
14120 REPLACE_PWRITE=0;
14121 REPLACE_READLINK=0;
14122 REPLACE_RMDIR=0;
14123 REPLACE_SLEEP=0;
14124 REPLACE_SYMLINK=0;
14125 REPLACE_TTYNAME_R=0;
14126 REPLACE_UNLINK=0;
14127 REPLACE_UNLINKAT=0;
14128 REPLACE_USLEEP=0;
14129 REPLACE_WRITE=0;
14130 UNISTD_H_HAVE_WINSOCK2_H=0;
14131 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
14132
14133
14134
14135
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14137 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14138 if ${gl_cv_have_include_next+:} false; then :
14139 $as_echo_n "(cached) " >&6
14140 else
14141 rm -rf conftestd1a conftestd1b conftestd2
14142 mkdir conftestd1a conftestd1b conftestd2
14143 cat <<EOF > conftestd1a/conftest.h
14144 #define DEFINED_IN_CONFTESTD1
14145 #include_next <conftest.h>
14146 #ifdef DEFINED_IN_CONFTESTD2
14147 int foo;
14148 #else
14149 #error "include_next doesn't work"
14150 #endif
14151 EOF
14152 cat <<EOF > conftestd1b/conftest.h
14153 #define DEFINED_IN_CONFTESTD1
14154 #include <stdio.h>
14155 #include_next <conftest.h>
14156 #ifdef DEFINED_IN_CONFTESTD2
14157 int foo;
14158 #else
14159 #error "include_next doesn't work"
14160 #endif
14161 EOF
14162 cat <<EOF > conftestd2/conftest.h
14163 #ifndef DEFINED_IN_CONFTESTD1
14164 #error "include_next test doesn't work"
14165 #endif
14166 #define DEFINED_IN_CONFTESTD2
14167 EOF
14168 gl_save_CPPFLAGS="$CPPFLAGS"
14169 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14171 /* end confdefs.h. */
14172 #include <conftest.h>
14173 _ACEOF
14174 if ac_fn_c_try_compile "$LINENO"; then :
14175 gl_cv_have_include_next=yes
14176 else
14177 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179 /* end confdefs.h. */
14180 #include <conftest.h>
14181 _ACEOF
14182 if ac_fn_c_try_compile "$LINENO"; then :
14183 gl_cv_have_include_next=buggy
14184 else
14185 gl_cv_have_include_next=no
14186 fi
14187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14188
14189 fi
14190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14191 CPPFLAGS="$gl_save_CPPFLAGS"
14192 rm -rf conftestd1a conftestd1b conftestd2
14193
14194 fi
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14196 $as_echo "$gl_cv_have_include_next" >&6; }
14197 PRAGMA_SYSTEM_HEADER=
14198 if test $gl_cv_have_include_next = yes; then
14199 INCLUDE_NEXT=include_next
14200 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14201 if test -n "$GCC"; then
14202 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14203 fi
14204 else
14205 if test $gl_cv_have_include_next = buggy; then
14206 INCLUDE_NEXT=include
14207 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14208 else
14209 INCLUDE_NEXT=include
14210 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14211 fi
14212 fi
14213
14214
14215
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14217 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14218 if ${gl_cv_pragma_columns+:} false; then :
14219 $as_echo_n "(cached) " >&6
14220 else
14221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222 /* end confdefs.h. */
14223
14224 #ifdef __TANDEM
14225 choke me
14226 #endif
14227
14228 _ACEOF
14229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14230 $EGREP "choke me" >/dev/null 2>&1; then :
14231 gl_cv_pragma_columns=yes
14232 else
14233 gl_cv_pragma_columns=no
14234 fi
14235 rm -f conftest*
14236
14237
14238 fi
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14240 $as_echo "$gl_cv_pragma_columns" >&6; }
14241 if test $gl_cv_pragma_columns = yes; then
14242 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14243 else
14244 PRAGMA_COLUMNS=
14245 fi
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263 if test $gl_cv_have_include_next = yes; then
14264 gl_cv_next_getopt_h='<'getopt.h'>'
14265 else
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14267 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14268 if ${gl_cv_next_getopt_h+:} false; then :
14269 $as_echo_n "(cached) " >&6
14270 else
14271
14272 if test $ac_cv_header_getopt_h = yes; then
14273
14274
14275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h. */
14277 #include <getopt.h>
14278
14279 _ACEOF
14280 case "$host_os" in
14281 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14282 *) gl_absname_cpp="$ac_cpp" ;;
14283 esac
14284 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14285 sed -n '\#/getopt.h#{
14286 s#.*"\(.*/getopt.h\)".*#\1#
14287 s#^/[^/]#//&#
14288 p
14289 q
14290 }'`'"'
14291 else
14292 gl_cv_next_getopt_h='<'getopt.h'>'
14293 fi
14294
14295
14296 fi
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14298 $as_echo "$gl_cv_next_getopt_h" >&6; }
14299 fi
14300 NEXT_GETOPT_H=$gl_cv_next_getopt_h
14301
14302 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14303 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14304 gl_next_as_first_directive='<'getopt.h'>'
14305 else
14306 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14307 gl_next_as_first_directive=$gl_cv_next_getopt_h
14308 fi
14309 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14310
14311
14312
14313
14314 if test $ac_cv_header_getopt_h = yes; then
14315 HAVE_GETOPT_H=1
14316 else
14317 HAVE_GETOPT_H=0
14318 fi
14319
14320
14321 gl_replace_getopt=
14322
14323 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14324 for ac_header in getopt.h
14325 do :
14326 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14327 if test "x$ac_cv_header_getopt_h" = xyes; then :
14328 cat >>confdefs.h <<_ACEOF
14329 #define HAVE_GETOPT_H 1
14330 _ACEOF
14331
14332 else
14333 gl_replace_getopt=yes
14334 fi
14335
14336 done
14337
14338 fi
14339
14340 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14341 for ac_func in getopt_long_only
14342 do :
14343 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14344 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
14345 cat >>confdefs.h <<_ACEOF
14346 #define HAVE_GETOPT_LONG_ONLY 1
14347 _ACEOF
14348
14349 else
14350 gl_replace_getopt=yes
14351 fi
14352 done
14353
14354 fi
14355
14356 if test -z "$gl_replace_getopt"; then
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14358 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14359 if ${gl_cv_func_getopt_posix+:} false; then :
14360 $as_echo_n "(cached) " >&6
14361 else
14362
14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h. */
14365 #include <unistd.h>
14366 int
14367 main ()
14368 {
14369 int *p = &optreset; return optreset;
14370 ;
14371 return 0;
14372 }
14373 _ACEOF
14374 if ac_fn_c_try_compile "$LINENO"; then :
14375 gl_optind_min=1
14376 else
14377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14379 #include <getopt.h>
14380 int
14381 main ()
14382 {
14383 return !getopt_clip;
14384 ;
14385 return 0;
14386 }
14387 _ACEOF
14388 if ac_fn_c_try_compile "$LINENO"; then :
14389 gl_optind_min=1
14390 else
14391 gl_optind_min=0
14392 fi
14393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14394 fi
14395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14396
14397 gl_save_CPPFLAGS=$CPPFLAGS
14398 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14399 if test "$cross_compiling" = yes; then :
14400 case "$host_os" in
14401 mingw*) gl_cv_func_getopt_posix="guessing no";;
14402 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14403 *) gl_cv_func_getopt_posix="guessing yes";;
14404 esac
14405
14406 else
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14409
14410 #include <unistd.h>
14411 #include <stdlib.h>
14412 #include <string.h>
14413
14414 int
14415 main ()
14416 {
14417 {
14418 int argc = 0;
14419 char *argv[10];
14420 int c;
14421
14422 argv[argc++] = "program";
14423 argv[argc++] = "-a";
14424 argv[argc++] = "foo";
14425 argv[argc++] = "bar";
14426 argv[argc] = NULL;
14427 optind = OPTIND_MIN;
14428 opterr = 0;
14429
14430 c = getopt (argc, argv, "ab");
14431 if (!(c == 'a'))
14432 return 1;
14433 c = getopt (argc, argv, "ab");
14434 if (!(c == -1))
14435 return 2;
14436 if (!(optind == 2))
14437 return 3;
14438 }
14439 /* Some internal state exists at this point. */
14440 {
14441 int argc = 0;
14442 char *argv[10];
14443 int c;
14444
14445 argv[argc++] = "program";
14446 argv[argc++] = "donald";
14447 argv[argc++] = "-p";
14448 argv[argc++] = "billy";
14449 argv[argc++] = "duck";
14450 argv[argc++] = "-a";
14451 argv[argc++] = "bar";
14452 argv[argc] = NULL;
14453 optind = OPTIND_MIN;
14454 opterr = 0;
14455
14456 c = getopt (argc, argv, "+abp:q:");
14457 if (!(c == -1))
14458 return 4;
14459 if (!(strcmp (argv[0], "program") == 0))
14460 return 5;
14461 if (!(strcmp (argv[1], "donald") == 0))
14462 return 6;
14463 if (!(strcmp (argv[2], "-p") == 0))
14464 return 7;
14465 if (!(strcmp (argv[3], "billy") == 0))
14466 return 8;
14467 if (!(strcmp (argv[4], "duck") == 0))
14468 return 9;
14469 if (!(strcmp (argv[5], "-a") == 0))
14470 return 10;
14471 if (!(strcmp (argv[6], "bar") == 0))
14472 return 11;
14473 if (!(optind == 1))
14474 return 12;
14475 }
14476 /* Detect MacOS 10.5, AIX 7.1 bug. */
14477 {
14478 char *argv[3] = { "program", "-ab", NULL };
14479 optind = OPTIND_MIN;
14480 opterr = 0;
14481 if (getopt (2, argv, "ab:") != 'a')
14482 return 13;
14483 if (getopt (2, argv, "ab:") != '?')
14484 return 14;
14485 if (optopt != 'b')
14486 return 15;
14487 if (optind != 2)
14488 return 16;
14489 }
14490
14491 return 0;
14492 }
14493
14494 _ACEOF
14495 if ac_fn_c_try_run "$LINENO"; then :
14496 gl_cv_func_getopt_posix=yes
14497 else
14498 gl_cv_func_getopt_posix=no
14499 fi
14500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14501 conftest.$ac_objext conftest.beam conftest.$ac_ext
14502 fi
14503
14504 CPPFLAGS=$gl_save_CPPFLAGS
14505
14506 fi
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14508 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14509 case "$gl_cv_func_getopt_posix" in
14510 *no) gl_replace_getopt=yes ;;
14511 esac
14512 fi
14513
14514 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14516 $as_echo_n "checking for working GNU getopt function... " >&6; }
14517 if ${gl_cv_func_getopt_gnu+:} false; then :
14518 $as_echo_n "(cached) " >&6
14519 else
14520 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14521 # optstring is necessary for programs like m4 that have POSIX-mandated
14522 # semantics for supporting options interspersed with files.
14523 # Also, since getopt_long is a GNU extension, we require optind=0.
14524 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14525 # so take care to revert to the correct (non-)export state.
14526 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14527 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14528 xx) gl_had_POSIXLY_CORRECT=exported ;;
14529 x) gl_had_POSIXLY_CORRECT=yes ;;
14530 *) gl_had_POSIXLY_CORRECT= ;;
14531 esac
14532 POSIXLY_CORRECT=1
14533 export POSIXLY_CORRECT
14534 if test "$cross_compiling" = yes; then :
14535 case $host_os:$ac_cv_have_decl_optreset in
14536 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14537 *:yes) gl_cv_func_getopt_gnu=no;;
14538 *) gl_cv_func_getopt_gnu=yes;;
14539 esac
14540
14541 else
14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14544 #include <getopt.h>
14545 #include <stddef.h>
14546 #include <string.h>
14547
14548 int
14549 main ()
14550 {
14551
14552 int result = 0;
14553 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14554 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14555 OSF/1 5.1, Solaris 10. */
14556 {
14557 char *myargv[3];
14558 myargv[0] = "conftest";
14559 myargv[1] = "-+";
14560 myargv[2] = 0;
14561 opterr = 0;
14562 if (getopt (2, myargv, "+a") != '?')
14563 result |= 1;
14564 }
14565 /* This code succeeds on glibc 2.8, mingw,
14566 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14567 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14568 {
14569 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14570
14571 optind = 1;
14572 if (getopt (4, argv, "p::") != 'p')
14573 result |= 2;
14574 else if (optarg != NULL)
14575 result |= 4;
14576 else if (getopt (4, argv, "p::") != -1)
14577 result |= 6;
14578 else if (optind != 2)
14579 result |= 8;
14580 }
14581 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14582 {
14583 char *argv[] = { "program", "foo", "-p", NULL };
14584 optind = 0;
14585 if (getopt (3, argv, "-p") != 1)
14586 result |= 16;
14587 else if (getopt (3, argv, "-p") != 'p')
14588 result |= 32;
14589 }
14590 /* This code fails on glibc 2.11. */
14591 {
14592 char *argv[] = { "program", "-b", "-a", NULL };
14593 optind = opterr = 0;
14594 if (getopt (3, argv, "+:a:b") != 'b')
14595 result |= 64;
14596 else if (getopt (3, argv, "+:a:b") != ':')
14597 result |= 64;
14598 }
14599 return result;
14600
14601 ;
14602 return 0;
14603 }
14604 _ACEOF
14605 if ac_fn_c_try_run "$LINENO"; then :
14606 gl_cv_func_getopt_gnu=yes
14607 else
14608 gl_cv_func_getopt_gnu=no
14609 fi
14610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14611 conftest.$ac_objext conftest.beam conftest.$ac_ext
14612 fi
14613
14614 case $gl_had_POSIXLY_CORRECT in
14615 exported) ;;
14616 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14617 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14618 esac
14619
14620 fi
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14622 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14623 if test "$gl_cv_func_getopt_gnu" = "no"; then
14624 gl_replace_getopt=yes
14625 fi
14626 fi
14627
14628 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14629 if test "x$ac_cv_have_decl_getenv" = xyes; then :
14630 ac_have_decl=1
14631 else
14632 ac_have_decl=0
14633 fi
14634
14635 cat >>confdefs.h <<_ACEOF
14636 #define HAVE_DECL_GETENV $ac_have_decl
14637 _ACEOF
14638
14639
14640
14641
14642
14643
14644 if test -n "$gl_replace_getopt"; then :
14645
14646
14647
14648 GETOPT_H=getopt.h
14649
14650 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14651
14652
14653
14654 GNULIB_UNISTD_H_GETOPT=1
14655
14656
14657
14658
14659
14660
14661
14662
14663 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14674
14675
14676
14677
14678
14679
14680 fi
14681
14682
14683
14684 GNULIB_FCHMODAT=0;
14685 GNULIB_FSTATAT=0;
14686 GNULIB_FUTIMENS=0;
14687 GNULIB_LCHMOD=0;
14688 GNULIB_LSTAT=0;
14689 GNULIB_MKDIRAT=0;
14690 GNULIB_MKFIFO=0;
14691 GNULIB_MKFIFOAT=0;
14692 GNULIB_MKNOD=0;
14693 GNULIB_MKNODAT=0;
14694 GNULIB_STAT=0;
14695 GNULIB_UTIMENSAT=0;
14696 HAVE_FCHMODAT=1;
14697 HAVE_FSTATAT=1;
14698 HAVE_FUTIMENS=1;
14699 HAVE_LCHMOD=1;
14700 HAVE_LSTAT=1;
14701 HAVE_MKDIRAT=1;
14702 HAVE_MKFIFO=1;
14703 HAVE_MKFIFOAT=1;
14704 HAVE_MKNOD=1;
14705 HAVE_MKNODAT=1;
14706 HAVE_UTIMENSAT=1;
14707 REPLACE_FSTAT=0;
14708 REPLACE_FSTATAT=0;
14709 REPLACE_FUTIMENS=0;
14710 REPLACE_LSTAT=0;
14711 REPLACE_MKDIR=0;
14712 REPLACE_MKFIFO=0;
14713 REPLACE_MKNOD=0;
14714 REPLACE_STAT=0;
14715 REPLACE_UTIMENSAT=0;
14716
14717
14718
14719
14720 for ac_func in $ac_func_list
14721 do :
14722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14723 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14724 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14725 cat >>confdefs.h <<_ACEOF
14726 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14727 _ACEOF
14728
14729 fi
14730 done
14731
14732
14733
14734
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14736 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14737 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
14738 $as_echo_n "(cached) " >&6
14739 else
14740 rm -f conftest.sym conftest.file
14741 echo >conftest.file
14742 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14743 if test "$cross_compiling" = yes; then :
14744 # When cross-compiling, be pessimistic so we will end up using the
14745 # replacement version of lstat that checks for trailing slashes and
14746 # calls lstat a second time when necessary.
14747 ac_cv_func_lstat_dereferences_slashed_symlink=no
14748
14749 else
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14752 $ac_includes_default
14753 int
14754 main ()
14755 {
14756 struct stat sbuf;
14757 /* Linux will dereference the symlink and fail, as required by
14758 POSIX. That is better in the sense that it means we will not
14759 have to compile and use the lstat wrapper. */
14760 return lstat ("conftest.sym/", &sbuf) == 0;
14761
14762 ;
14763 return 0;
14764 }
14765 _ACEOF
14766 if ac_fn_c_try_run "$LINENO"; then :
14767 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14768 else
14769 ac_cv_func_lstat_dereferences_slashed_symlink=no
14770 fi
14771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14772 conftest.$ac_objext conftest.beam conftest.$ac_ext
14773 fi
14774
14775 else
14776 # If the 'ln -s' command failed, then we probably don't even
14777 # have an lstat function.
14778 ac_cv_func_lstat_dereferences_slashed_symlink=no
14779 fi
14780 rm -f conftest.sym conftest.file
14781
14782 fi
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14784 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14785 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14786
14787 cat >>confdefs.h <<_ACEOF
14788 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14789 _ACEOF
14790
14791 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
14792
14793
14794
14795
14796
14797
14798
14799
14800 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14801
14802 fi
14803
14804
14805 GNULIB_MKTIME=0;
14806 GNULIB_NANOSLEEP=0;
14807 GNULIB_STRPTIME=0;
14808 GNULIB_TIMEGM=0;
14809 GNULIB_TIME_R=0;
14810 HAVE_DECL_LOCALTIME_R=1;
14811 HAVE_NANOSLEEP=1;
14812 HAVE_STRPTIME=1;
14813 HAVE_TIMEGM=1;
14814 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14815 REPLACE_MKTIME=GNULIB_PORTCHECK;
14816 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14817 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14818
14819
14820
14821
14822 gl_cv_c_multiarch=no
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14825 #ifndef __APPLE_CC__
14826 not a universal capable compiler
14827 #endif
14828 typedef int dummy;
14829
14830 _ACEOF
14831 if ac_fn_c_try_compile "$LINENO"; then :
14832
14833 arch=
14834 prev=
14835 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14836 if test -n "$prev"; then
14837 case $word in
14838 i?86 | x86_64 | ppc | ppc64)
14839 if test -z "$arch" || test "$arch" = "$word"; then
14840 arch="$word"
14841 else
14842 gl_cv_c_multiarch=yes
14843 fi
14844 ;;
14845 esac
14846 prev=
14847 else
14848 if test "x$word" = "x-arch"; then
14849 prev=arch
14850 fi
14851 fi
14852 done
14853
14854 fi
14855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14856 if test $gl_cv_c_multiarch = yes; then
14857 APPLE_UNIVERSAL_BUILD=1
14858 else
14859 APPLE_UNIVERSAL_BUILD=0
14860 fi
14861
14862
14863
14864
14865
14866
14867
14868 if test $ac_cv_header_sys_socket_h = no; then
14869 for ac_header in ws2tcpip.h
14870 do :
14871 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14872 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
14873 cat >>confdefs.h <<_ACEOF
14874 #define HAVE_WS2TCPIP_H 1
14875 _ACEOF
14876
14877 fi
14878
14879 done
14880
14881 fi
14882
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14884 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14885 if ${ac_cv_header_stdbool_h+:} false; then :
14886 $as_echo_n "(cached) " >&6
14887 else
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14890
14891 #include <stdbool.h>
14892 #ifndef bool
14893 "error: bool is not defined"
14894 #endif
14895 #ifndef false
14896 "error: false is not defined"
14897 #endif
14898 #if false
14899 "error: false is not 0"
14900 #endif
14901 #ifndef true
14902 "error: true is not defined"
14903 #endif
14904 #if true != 1
14905 "error: true is not 1"
14906 #endif
14907 #ifndef __bool_true_false_are_defined
14908 "error: __bool_true_false_are_defined is not defined"
14909 #endif
14910
14911 struct s { _Bool s: 1; _Bool t; } s;
14912
14913 char a[true == 1 ? 1 : -1];
14914 char b[false == 0 ? 1 : -1];
14915 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14916 char d[(bool) 0.5 == true ? 1 : -1];
14917 /* See body of main program for 'e'. */
14918 char f[(_Bool) 0.0 == false ? 1 : -1];
14919 char g[true];
14920 char h[sizeof (_Bool)];
14921 char i[sizeof s.t];
14922 enum { j = false, k = true, l = false * true, m = true * 256 };
14923 /* The following fails for
14924 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14925 _Bool n[m];
14926 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14927 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14928 /* Catch a bug in an HP-UX C compiler. See
14929 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14930 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14931 */
14932 _Bool q = true;
14933 _Bool *pq = &q;
14934
14935 int
14936 main ()
14937 {
14938
14939 bool e = &s;
14940 *pq |= q;
14941 *pq |= ! q;
14942 /* Refer to every declared value, to avoid compiler optimizations. */
14943 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14944 + !m + !n + !o + !p + !q + !pq);
14945
14946 ;
14947 return 0;
14948 }
14949 _ACEOF
14950 if ac_fn_c_try_compile "$LINENO"; then :
14951 ac_cv_header_stdbool_h=yes
14952 else
14953 ac_cv_header_stdbool_h=no
14954 fi
14955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14956 fi
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14958 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14959 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14960 if test "x$ac_cv_type__Bool" = xyes; then :
14961
14962 cat >>confdefs.h <<_ACEOF
14963 #define HAVE__BOOL 1
14964 _ACEOF
14965
14966
14967 fi
14968
14969
14970
14971 REPLACE_NULL=0;
14972 HAVE_WCHAR_T=1;
14973 STDDEF_H='';
14974
14975
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14977 $as_echo_n "checking for wchar_t... " >&6; }
14978 if ${gt_cv_c_wchar_t+:} false; then :
14979 $as_echo_n "(cached) " >&6
14980 else
14981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14982 /* end confdefs.h. */
14983 #include <stddef.h>
14984 wchar_t foo = (wchar_t)'\0';
14985 int
14986 main ()
14987 {
14988
14989 ;
14990 return 0;
14991 }
14992 _ACEOF
14993 if ac_fn_c_try_compile "$LINENO"; then :
14994 gt_cv_c_wchar_t=yes
14995 else
14996 gt_cv_c_wchar_t=no
14997 fi
14998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14999 fi
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
15001 $as_echo "$gt_cv_c_wchar_t" >&6; }
15002 if test $gt_cv_c_wchar_t = yes; then
15003
15004 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
15005
15006 fi
15007
15008
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
15010 $as_echo_n "checking for unsigned long long int... " >&6; }
15011 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
15012 $as_echo_n "(cached) " >&6
15013 else
15014 ac_cv_type_unsigned_long_long_int=yes
15015 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15017 /* end confdefs.h. */
15018
15019 /* For now, do not test the preprocessor; as of 2007 there are too many
15020 implementations with broken preprocessors. Perhaps this can
15021 be revisited in 2012. In the meantime, code should not expect
15022 #if to work with literals wider than 32 bits. */
15023 /* Test literals. */
15024 long long int ll = 9223372036854775807ll;
15025 long long int nll = -9223372036854775807LL;
15026 unsigned long long int ull = 18446744073709551615ULL;
15027 /* Test constant expressions. */
15028 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15029 ? 1 : -1)];
15030 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15031 ? 1 : -1)];
15032 int i = 63;
15033 int
15034 main ()
15035 {
15036 /* Test availability of runtime routines for shift and division. */
15037 long long int llmax = 9223372036854775807ll;
15038 unsigned long long int ullmax = 18446744073709551615ull;
15039 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15040 | (llmax / ll) | (llmax % ll)
15041 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15042 | (ullmax / ull) | (ullmax % ull));
15043 ;
15044 return 0;
15045 }
15046
15047 _ACEOF
15048 if ac_fn_c_try_link "$LINENO"; then :
15049
15050 else
15051 ac_cv_type_unsigned_long_long_int=no
15052 fi
15053 rm -f core conftest.err conftest.$ac_objext \
15054 conftest$ac_exeext conftest.$ac_ext
15055 fi
15056 fi
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15058 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15059 if test $ac_cv_type_unsigned_long_long_int = yes; then
15060
15061 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15062
15063 fi
15064
15065
15066
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15068 $as_echo_n "checking for long long int... " >&6; }
15069 if ${ac_cv_type_long_long_int+:} false; then :
15070 $as_echo_n "(cached) " >&6
15071 else
15072 ac_cv_type_long_long_int=yes
15073 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15074 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
15075 if test $ac_cv_type_long_long_int = yes; then
15076 if test "$cross_compiling" = yes; then :
15077 :
15078 else
15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h. */
15081 #include <limits.h>
15082 #ifndef LLONG_MAX
15083 # define HALF \
15084 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15085 # define LLONG_MAX (HALF - 1 + HALF)
15086 #endif
15087 int
15088 main ()
15089 {
15090 long long int n = 1;
15091 int i;
15092 for (i = 0; ; i++)
15093 {
15094 long long int m = n << i;
15095 if (m >> i != n)
15096 return 1;
15097 if (LLONG_MAX / 2 < m)
15098 break;
15099 }
15100 return 0;
15101 ;
15102 return 0;
15103 }
15104 _ACEOF
15105 if ac_fn_c_try_run "$LINENO"; then :
15106
15107 else
15108 ac_cv_type_long_long_int=no
15109 fi
15110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15111 conftest.$ac_objext conftest.beam conftest.$ac_ext
15112 fi
15113
15114 fi
15115 fi
15116 fi
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15118 $as_echo "$ac_cv_type_long_long_int" >&6; }
15119 if test $ac_cv_type_long_long_int = yes; then
15120
15121 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15122
15123 fi
15124
15125
15126
15127
15128
15129
15130 GNULIB_DPRINTF=0;
15131 GNULIB_FCLOSE=0;
15132 GNULIB_FFLUSH=0;
15133 GNULIB_FOPEN=0;
15134 GNULIB_FPRINTF=0;
15135 GNULIB_FPRINTF_POSIX=0;
15136 GNULIB_FPURGE=0;
15137 GNULIB_FPUTC=0;
15138 GNULIB_FPUTS=0;
15139 GNULIB_FREOPEN=0;
15140 GNULIB_FSEEK=0;
15141 GNULIB_FSEEKO=0;
15142 GNULIB_FTELL=0;
15143 GNULIB_FTELLO=0;
15144 GNULIB_FWRITE=0;
15145 GNULIB_GETDELIM=0;
15146 GNULIB_GETLINE=0;
15147 GNULIB_OBSTACK_PRINTF=0;
15148 GNULIB_OBSTACK_PRINTF_POSIX=0;
15149 GNULIB_PERROR=0;
15150 GNULIB_POPEN=0;
15151 GNULIB_PRINTF=0;
15152 GNULIB_PRINTF_POSIX=0;
15153 GNULIB_PUTC=0;
15154 GNULIB_PUTCHAR=0;
15155 GNULIB_PUTS=0;
15156 GNULIB_REMOVE=0;
15157 GNULIB_RENAME=0;
15158 GNULIB_RENAMEAT=0;
15159 GNULIB_SNPRINTF=0;
15160 GNULIB_SPRINTF_POSIX=0;
15161 GNULIB_STDIO_H_SIGPIPE=0;
15162 GNULIB_TMPFILE=0;
15163 GNULIB_VASPRINTF=0;
15164 GNULIB_VDPRINTF=0;
15165 GNULIB_VFPRINTF=0;
15166 GNULIB_VFPRINTF_POSIX=0;
15167 GNULIB_VPRINTF=0;
15168 GNULIB_VPRINTF_POSIX=0;
15169 GNULIB_VSNPRINTF=0;
15170 GNULIB_VSPRINTF_POSIX=0;
15171 HAVE_DECL_FPURGE=1;
15172 HAVE_DECL_FSEEKO=1;
15173 HAVE_DECL_FTELLO=1;
15174 HAVE_DECL_GETDELIM=1;
15175 HAVE_DECL_GETLINE=1;
15176 HAVE_DECL_OBSTACK_PRINTF=1;
15177 HAVE_DECL_SNPRINTF=1;
15178 HAVE_DECL_VSNPRINTF=1;
15179 HAVE_DPRINTF=1;
15180 HAVE_FSEEKO=1;
15181 HAVE_FTELLO=1;
15182 HAVE_RENAMEAT=1;
15183 HAVE_VASPRINTF=1;
15184 HAVE_VDPRINTF=1;
15185 REPLACE_DPRINTF=0;
15186 REPLACE_FCLOSE=0;
15187 REPLACE_FFLUSH=0;
15188 REPLACE_FOPEN=0;
15189 REPLACE_FPRINTF=0;
15190 REPLACE_FPURGE=0;
15191 REPLACE_FREOPEN=0;
15192 REPLACE_FSEEK=0;
15193 REPLACE_FSEEKO=0;
15194 REPLACE_FTELL=0;
15195 REPLACE_FTELLO=0;
15196 REPLACE_GETDELIM=0;
15197 REPLACE_GETLINE=0;
15198 REPLACE_OBSTACK_PRINTF=0;
15199 REPLACE_PERROR=0;
15200 REPLACE_POPEN=0;
15201 REPLACE_PRINTF=0;
15202 REPLACE_REMOVE=0;
15203 REPLACE_RENAME=0;
15204 REPLACE_RENAMEAT=0;
15205 REPLACE_SNPRINTF=0;
15206 REPLACE_SPRINTF=0;
15207 REPLACE_STDIO_WRITE_FUNCS=0;
15208 REPLACE_TMPFILE=0;
15209 REPLACE_VASPRINTF=0;
15210 REPLACE_VDPRINTF=0;
15211 REPLACE_VFPRINTF=0;
15212 REPLACE_VPRINTF=0;
15213 REPLACE_VSNPRINTF=0;
15214 REPLACE_VSPRINTF=0;
15215
15216
15217 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
15218 "
15219 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
15220
15221 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15222
15223 fi
15224
15225
15226
15227
15228
15229
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15231 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15232 if ${ac_cv_header_stat_broken+:} false; then :
15233 $as_echo_n "(cached) " >&6
15234 else
15235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15236 /* end confdefs.h. */
15237 #include <sys/types.h>
15238 #include <sys/stat.h>
15239
15240 #if defined S_ISBLK && defined S_IFDIR
15241 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15242 #endif
15243
15244 #if defined S_ISBLK && defined S_IFCHR
15245 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15246 #endif
15247
15248 #if defined S_ISLNK && defined S_IFREG
15249 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15250 #endif
15251
15252 #if defined S_ISSOCK && defined S_IFREG
15253 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15254 #endif
15255
15256 _ACEOF
15257 if ac_fn_c_try_compile "$LINENO"; then :
15258 ac_cv_header_stat_broken=no
15259 else
15260 ac_cv_header_stat_broken=yes
15261 fi
15262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15263 fi
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15265 $as_echo "$ac_cv_header_stat_broken" >&6; }
15266 if test $ac_cv_header_stat_broken = yes; then
15267
15268 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15269
15270 fi
15271
15272
15273
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15275 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15276 if ${ac_cv_c_restrict+:} false; then :
15277 $as_echo_n "(cached) " >&6
15278 else
15279 ac_cv_c_restrict=no
15280 # The order here caters to the fact that C++ does not require restrict.
15281 for ac_kw in __restrict __restrict__ _Restrict restrict; do
15282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283 /* end confdefs.h. */
15284 typedef int * int_ptr;
15285 int foo (int_ptr $ac_kw ip) {
15286 return ip[0];
15287 }
15288 int
15289 main ()
15290 {
15291 int s[1];
15292 int * $ac_kw t = s;
15293 t[0] = 0;
15294 return foo(t)
15295 ;
15296 return 0;
15297 }
15298 _ACEOF
15299 if ac_fn_c_try_compile "$LINENO"; then :
15300 ac_cv_c_restrict=$ac_kw
15301 fi
15302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15303 test "$ac_cv_c_restrict" != no && break
15304 done
15305
15306 fi
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15308 $as_echo "$ac_cv_c_restrict" >&6; }
15309
15310 case $ac_cv_c_restrict in
15311 restrict) ;;
15312 no) $as_echo "#define restrict /**/" >>confdefs.h
15313 ;;
15314 *) cat >>confdefs.h <<_ACEOF
15315 #define restrict $ac_cv_c_restrict
15316 _ACEOF
15317 ;;
15318 esac
15319
15320
15321
15322
15323
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15325 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15326 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
15327 $as_echo_n "(cached) " >&6
15328 else
15329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15330 /* end confdefs.h. */
15331 #include <time.h>
15332
15333 int
15334 main ()
15335 {
15336 static struct timespec x; x.tv_sec = x.tv_nsec;
15337 ;
15338 return 0;
15339 }
15340 _ACEOF
15341 if ac_fn_c_try_compile "$LINENO"; then :
15342 gl_cv_sys_struct_timespec_in_time_h=yes
15343 else
15344 gl_cv_sys_struct_timespec_in_time_h=no
15345 fi
15346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15347 fi
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15349 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15350
15351 TIME_H_DEFINES_STRUCT_TIMESPEC=0
15352 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
15353 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
15354 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15355 TIME_H_DEFINES_STRUCT_TIMESPEC=1
15356 else
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15358 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15359 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
15360 $as_echo_n "(cached) " >&6
15361 else
15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h. */
15364 #include <sys/time.h>
15365
15366 int
15367 main ()
15368 {
15369 static struct timespec x; x.tv_sec = x.tv_nsec;
15370 ;
15371 return 0;
15372 }
15373 _ACEOF
15374 if ac_fn_c_try_compile "$LINENO"; then :
15375 gl_cv_sys_struct_timespec_in_sys_time_h=yes
15376 else
15377 gl_cv_sys_struct_timespec_in_sys_time_h=no
15378 fi
15379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15380 fi
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15382 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15383 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15384 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15385 else
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15387 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15388 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
15389 $as_echo_n "(cached) " >&6
15390 else
15391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h. */
15393 #include <pthread.h>
15394
15395 int
15396 main ()
15397 {
15398 static struct timespec x; x.tv_sec = x.tv_nsec;
15399 ;
15400 return 0;
15401 }
15402 _ACEOF
15403 if ac_fn_c_try_compile "$LINENO"; then :
15404 gl_cv_sys_struct_timespec_in_pthread_h=yes
15405 else
15406 gl_cv_sys_struct_timespec_in_pthread_h=no
15407 fi
15408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15409 fi
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15411 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15412 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15413 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
15414 fi
15415 fi
15416 fi
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432 if test $gl_cv_have_include_next = yes; then
15433 gl_cv_next_time_h='<'time.h'>'
15434 else
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15436 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15437 if ${gl_cv_next_time_h+:} false; then :
15438 $as_echo_n "(cached) " >&6
15439 else
15440
15441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15442 /* end confdefs.h. */
15443 #include <time.h>
15444
15445 _ACEOF
15446 case "$host_os" in
15447 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15448 *) gl_absname_cpp="$ac_cpp" ;;
15449 esac
15450 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15451 sed -n '\#/time.h#{
15452 s#.*"\(.*/time.h\)".*#\1#
15453 s#^/[^/]#//&#
15454 p
15455 q
15456 }'`'"'
15457
15458
15459 fi
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15461 $as_echo "$gl_cv_next_time_h" >&6; }
15462 fi
15463 NEXT_TIME_H=$gl_cv_next_time_h
15464
15465 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15466 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15467 gl_next_as_first_directive='<'time.h'>'
15468 else
15469 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15470 gl_next_as_first_directive=$gl_cv_next_time_h
15471 fi
15472 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
15473
15474
15475
15476
15477
15478
15479 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15480 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
15481 ac_have_decl=1
15482 else
15483 ac_have_decl=0
15484 fi
15485
15486 cat >>confdefs.h <<_ACEOF
15487 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15488 _ACEOF
15489
15490
15491
15492
15493 if false; then
15494 GL_COND_LIBTOOL_TRUE=
15495 GL_COND_LIBTOOL_FALSE='#'
15496 else
15497 GL_COND_LIBTOOL_TRUE='#'
15498 GL_COND_LIBTOOL_FALSE=
15499 fi
15500
15501 gl_cond_libtool=false
15502 gl_libdeps=
15503 gl_ltlibdeps=
15504 gl_m4_base='m4'
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514 gl_source_base='lib'
15515 # Code from module arg-nonnull:
15516 # Code from module c++defs:
15517 # Code from module crypto/md5:
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
15528
15529
15530
15531
15532 :
15533
15534 # Code from module dosname:
15535 # Code from module dtoastr:
15536
15537 # Code from module extensions:
15538 # Code from module filemode:
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549 gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
15550
15551
15552
15553 # Code from module getloadavg:
15554
15555
15556 # Persuade glibc <stdlib.h> to declare getloadavg().
15557
15558
15559 # Make sure getloadavg.c is where it belongs, at configure-time.
15560 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15561 as_fn_error $? "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15562
15563 gl_save_LIBS=$LIBS
15564
15565 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15566 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15567 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15568 if test "x$ac_cv_func_getloadavg" = xyes; then :
15569
15570 else
15571 gl_have_func=no
15572
15573 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15574 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15575 # to get the right answer into the cache.
15576 # For kstat on solaris, we need to test for libelf and libkvm to force the
15577 # definition of SVR4 below.
15578 if test $gl_have_func = no; then
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15580 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15581 if ${ac_cv_lib_elf_elf_begin+:} false; then :
15582 $as_echo_n "(cached) " >&6
15583 else
15584 ac_check_lib_save_LIBS=$LIBS
15585 LIBS="-lelf $LIBS"
15586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h. */
15588
15589 /* Override any GCC internal prototype to avoid an error.
15590 Use char because int might match the return type of a GCC
15591 builtin and then its argument prototype would still apply. */
15592 #ifdef __cplusplus
15593 extern "C"
15594 #endif
15595 char elf_begin ();
15596 int
15597 main ()
15598 {
15599 return elf_begin ();
15600 ;
15601 return 0;
15602 }
15603 _ACEOF
15604 if ac_fn_c_try_link "$LINENO"; then :
15605 ac_cv_lib_elf_elf_begin=yes
15606 else
15607 ac_cv_lib_elf_elf_begin=no
15608 fi
15609 rm -f core conftest.err conftest.$ac_objext \
15610 conftest$ac_exeext conftest.$ac_ext
15611 LIBS=$ac_check_lib_save_LIBS
15612 fi
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15614 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15615 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
15616 LIBS="-lelf $LIBS"
15617 fi
15618
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15620 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15621 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
15622 $as_echo_n "(cached) " >&6
15623 else
15624 ac_check_lib_save_LIBS=$LIBS
15625 LIBS="-lkvm $LIBS"
15626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15627 /* end confdefs.h. */
15628
15629 /* Override any GCC internal prototype to avoid an error.
15630 Use char because int might match the return type of a GCC
15631 builtin and then its argument prototype would still apply. */
15632 #ifdef __cplusplus
15633 extern "C"
15634 #endif
15635 char kvm_open ();
15636 int
15637 main ()
15638 {
15639 return kvm_open ();
15640 ;
15641 return 0;
15642 }
15643 _ACEOF
15644 if ac_fn_c_try_link "$LINENO"; then :
15645 ac_cv_lib_kvm_kvm_open=yes
15646 else
15647 ac_cv_lib_kvm_kvm_open=no
15648 fi
15649 rm -f core conftest.err conftest.$ac_objext \
15650 conftest$ac_exeext conftest.$ac_ext
15651 LIBS=$ac_check_lib_save_LIBS
15652 fi
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15654 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15655 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
15656 LIBS="-lkvm $LIBS"
15657 fi
15658
15659 # Check for the 4.4BSD definition of getloadavg.
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15661 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15662 if ${ac_cv_lib_util_getloadavg+:} false; then :
15663 $as_echo_n "(cached) " >&6
15664 else
15665 ac_check_lib_save_LIBS=$LIBS
15666 LIBS="-lutil $LIBS"
15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15669
15670 /* Override any GCC internal prototype to avoid an error.
15671 Use char because int might match the return type of a GCC
15672 builtin and then its argument prototype would still apply. */
15673 #ifdef __cplusplus
15674 extern "C"
15675 #endif
15676 char getloadavg ();
15677 int
15678 main ()
15679 {
15680 return getloadavg ();
15681 ;
15682 return 0;
15683 }
15684 _ACEOF
15685 if ac_fn_c_try_link "$LINENO"; then :
15686 ac_cv_lib_util_getloadavg=yes
15687 else
15688 ac_cv_lib_util_getloadavg=no
15689 fi
15690 rm -f core conftest.err conftest.$ac_objext \
15691 conftest$ac_exeext conftest.$ac_ext
15692 LIBS=$ac_check_lib_save_LIBS
15693 fi
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15695 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15696 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
15697 LIBS="-lutil $LIBS" gl_have_func=yes
15698 fi
15699
15700 fi
15701
15702 if test $gl_have_func = no; then
15703 # There is a commonly available library for RS/6000 AIX.
15704 # Since it is not a standard part of AIX, it might be installed locally.
15705 gl_getloadavg_LIBS=$LIBS
15706 LIBS="-L/usr/local/lib $LIBS"
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15708 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15709 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
15710 $as_echo_n "(cached) " >&6
15711 else
15712 ac_check_lib_save_LIBS=$LIBS
15713 LIBS="-lgetloadavg $LIBS"
15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715 /* end confdefs.h. */
15716
15717 /* Override any GCC internal prototype to avoid an error.
15718 Use char because int might match the return type of a GCC
15719 builtin and then its argument prototype would still apply. */
15720 #ifdef __cplusplus
15721 extern "C"
15722 #endif
15723 char getloadavg ();
15724 int
15725 main ()
15726 {
15727 return getloadavg ();
15728 ;
15729 return 0;
15730 }
15731 _ACEOF
15732 if ac_fn_c_try_link "$LINENO"; then :
15733 ac_cv_lib_getloadavg_getloadavg=yes
15734 else
15735 ac_cv_lib_getloadavg_getloadavg=no
15736 fi
15737 rm -f core conftest.err conftest.$ac_objext \
15738 conftest$ac_exeext conftest.$ac_ext
15739 LIBS=$ac_check_lib_save_LIBS
15740 fi
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15742 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15743 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
15744 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
15745 else
15746 LIBS=$gl_getloadavg_LIBS
15747 fi
15748
15749 fi
15750
15751 # Set up the replacement function if necessary.
15752 if test $gl_have_func = no; then
15753
15754
15755
15756
15757
15758
15759
15760
15761 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
15762
15763
15764 # Figure out what our getloadavg.c needs.
15765
15766 # Solaris has libkstat which does not require root.
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15768 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15769 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
15770 $as_echo_n "(cached) " >&6
15771 else
15772 ac_check_lib_save_LIBS=$LIBS
15773 LIBS="-lkstat $LIBS"
15774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15775 /* end confdefs.h. */
15776
15777 /* Override any GCC internal prototype to avoid an error.
15778 Use char because int might match the return type of a GCC
15779 builtin and then its argument prototype would still apply. */
15780 #ifdef __cplusplus
15781 extern "C"
15782 #endif
15783 char kstat_open ();
15784 int
15785 main ()
15786 {
15787 return kstat_open ();
15788 ;
15789 return 0;
15790 }
15791 _ACEOF
15792 if ac_fn_c_try_link "$LINENO"; then :
15793 ac_cv_lib_kstat_kstat_open=yes
15794 else
15795 ac_cv_lib_kstat_kstat_open=no
15796 fi
15797 rm -f core conftest.err conftest.$ac_objext \
15798 conftest$ac_exeext conftest.$ac_ext
15799 LIBS=$ac_check_lib_save_LIBS
15800 fi
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15802 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15803 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
15804 cat >>confdefs.h <<_ACEOF
15805 #define HAVE_LIBKSTAT 1
15806 _ACEOF
15807
15808 LIBS="-lkstat $LIBS"
15809
15810 fi
15811
15812 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
15813
15814 # On HPUX9, an unprivileged user can get load averages this way.
15815 if test $gl_have_func = no; then
15816 for ac_func in pstat_getdynamic
15817 do :
15818 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15819 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
15820 cat >>confdefs.h <<_ACEOF
15821 #define HAVE_PSTAT_GETDYNAMIC 1
15822 _ACEOF
15823 gl_have_func=yes
15824 fi
15825 done
15826
15827 fi
15828
15829 # AIX has libperfstat which does not require root
15830 if test $gl_have_func = no; then
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15832 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15833 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
15834 $as_echo_n "(cached) " >&6
15835 else
15836 ac_check_lib_save_LIBS=$LIBS
15837 LIBS="-lperfstat $LIBS"
15838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839 /* end confdefs.h. */
15840
15841 /* Override any GCC internal prototype to avoid an error.
15842 Use char because int might match the return type of a GCC
15843 builtin and then its argument prototype would still apply. */
15844 #ifdef __cplusplus
15845 extern "C"
15846 #endif
15847 char perfstat_cpu_total ();
15848 int
15849 main ()
15850 {
15851 return perfstat_cpu_total ();
15852 ;
15853 return 0;
15854 }
15855 _ACEOF
15856 if ac_fn_c_try_link "$LINENO"; then :
15857 ac_cv_lib_perfstat_perfstat_cpu_total=yes
15858 else
15859 ac_cv_lib_perfstat_perfstat_cpu_total=no
15860 fi
15861 rm -f core conftest.err conftest.$ac_objext \
15862 conftest$ac_exeext conftest.$ac_ext
15863 LIBS=$ac_check_lib_save_LIBS
15864 fi
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15866 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15867 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
15868 cat >>confdefs.h <<_ACEOF
15869 #define HAVE_LIBPERFSTAT 1
15870 _ACEOF
15871
15872 LIBS="-lperfstat $LIBS"
15873
15874 fi
15875
15876 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
15877 fi
15878
15879 if test $gl_have_func = no; then
15880 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15881 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
15882 gl_have_func=yes
15883
15884 $as_echo "#define DGUX 1" >>confdefs.h
15885
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15887 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15888 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
15889 $as_echo_n "(cached) " >&6
15890 else
15891 ac_check_lib_save_LIBS=$LIBS
15892 LIBS="-ldgc $LIBS"
15893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894 /* end confdefs.h. */
15895
15896 /* Override any GCC internal prototype to avoid an error.
15897 Use char because int might match the return type of a GCC
15898 builtin and then its argument prototype would still apply. */
15899 #ifdef __cplusplus
15900 extern "C"
15901 #endif
15902 char dg_sys_info ();
15903 int
15904 main ()
15905 {
15906 return dg_sys_info ();
15907 ;
15908 return 0;
15909 }
15910 _ACEOF
15911 if ac_fn_c_try_link "$LINENO"; then :
15912 ac_cv_lib_dgc_dg_sys_info=yes
15913 else
15914 ac_cv_lib_dgc_dg_sys_info=no
15915 fi
15916 rm -f core conftest.err conftest.$ac_objext \
15917 conftest$ac_exeext conftest.$ac_ext
15918 LIBS=$ac_check_lib_save_LIBS
15919 fi
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15921 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15922 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
15923 cat >>confdefs.h <<_ACEOF
15924 #define HAVE_LIBDGC 1
15925 _ACEOF
15926
15927 LIBS="-ldgc $LIBS"
15928
15929 fi
15930
15931 fi
15932
15933
15934 fi
15935
15936 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15937 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15938 # Irix 4.0.5F has the header but not the library.
15939 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
15940 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15941 gl_have_func=yes
15942
15943 $as_echo "#define SVR4 1" >>confdefs.h
15944
15945 fi
15946
15947 if test $gl_have_func = no; then
15948 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15949 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
15950 gl_have_func=yes
15951
15952 $as_echo "#define UMAX 1" >>confdefs.h
15953
15954
15955 $as_echo "#define UMAX4_3 1" >>confdefs.h
15956
15957 fi
15958
15959
15960 fi
15961
15962 if test $gl_have_func = no; then
15963 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15964 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
15965 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
15966
15967 fi
15968
15969
15970 fi
15971
15972 if test $gl_have_func = no; then
15973 for ac_header in mach/mach.h
15974 do :
15975 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15976 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
15977 cat >>confdefs.h <<_ACEOF
15978 #define HAVE_MACH_MACH_H 1
15979 _ACEOF
15980
15981 fi
15982
15983 done
15984
15985 fi
15986
15987 for ac_header in nlist.h
15988 do :
15989 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15990 if test "x$ac_cv_header_nlist_h" = xyes; then :
15991 cat >>confdefs.h <<_ACEOF
15992 #define HAVE_NLIST_H 1
15993 _ACEOF
15994 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15995 "
15996 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
15997
15998 cat >>confdefs.h <<_ACEOF
15999 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16000 _ACEOF
16001
16002
16003 fi
16004
16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h. */
16007 #include <nlist.h>
16008 int
16009 main ()
16010 {
16011 struct nlist x;
16012 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
16013 x.n_un.n_name = "";
16014 #else
16015 x.n_name = "";
16016 #endif
16017 ;
16018 return 0;
16019 }
16020 _ACEOF
16021 if ac_fn_c_try_link "$LINENO"; then :
16022
16023 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
16024
16025 fi
16026 rm -f core conftest.err conftest.$ac_objext \
16027 conftest$ac_exeext conftest.$ac_ext
16028
16029 fi
16030
16031 done
16032
16033 fi
16034 fi
16035
16036
16037 if test "x$gl_save_LIBS" = x; then
16038 GETLOADAVG_LIBS=$LIBS
16039 else
16040 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
16041 fi
16042 LIBS=$gl_save_LIBS
16043
16044
16045 # Test whether the system declares getloadavg. Solaris has the function
16046 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
16047 for ac_header in sys/loadavg.h
16048 do :
16049 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
16050 if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
16051 cat >>confdefs.h <<_ACEOF
16052 #define HAVE_SYS_LOADAVG_H 1
16053 _ACEOF
16054
16055 fi
16056
16057 done
16058
16059 if test $ac_cv_header_sys_loadavg_h = yes; then
16060 HAVE_SYS_LOADAVG_H=1
16061 else
16062 HAVE_SYS_LOADAVG_H=0
16063 fi
16064 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
16065 # include <sys/loadavg.h>
16066 #endif
16067 #include <stdlib.h>
16068 "
16069 if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
16070
16071 else
16072 HAVE_DECL_GETLOADAVG=0
16073 fi
16074
16075
16076
16077
16078
16079 GNULIB_GETLOADAVG=1
16080
16081
16082
16083 # Code from module getopt-gnu:
16084
16085
16086
16087
16088
16089
16090 # Code from module getopt-posix:
16091
16092
16093
16094
16095
16096 if test -n "$gl_replace_getopt"; then :
16097
16098
16099
16100 GETOPT_H=getopt.h
16101
16102 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16103
16104
16105
16106 GNULIB_UNISTD_H_GETOPT=1
16107
16108
16109
16110
16111
16112
16113
16114
16115 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
16126
16127
16128
16129
16130
16131
16132 fi
16133
16134
16135 # Code from module gettext-h:
16136
16137
16138 # Code from module ignore-value:
16139
16140 # Code from module include_next:
16141 # Code from module intprops:
16142 # Code from module lstat:
16143
16144
16145
16146 if test $ac_cv_func_lstat = yes; then
16147
16148 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
16149 REPLACE_LSTAT=1
16150 fi
16151 # Prerequisites of lib/lstat.c.
16152
16153 else
16154 HAVE_LSTAT=0
16155 fi
16156
16157
16158
16159
16160 GNULIB_LSTAT=1
16161
16162
16163
16164 # Code from module mktime:
16165
16166
16167
16168
16169
16170 if test $APPLE_UNIVERSAL_BUILD = 1; then
16171 # A universal build on Apple MacOS X platforms.
16172 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
16173 # But we need a configuration result that is valid in both modes.
16174 ac_cv_func_working_mktime=no
16175 fi
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
16177 $as_echo_n "checking for working mktime... " >&6; }
16178 if ${ac_cv_func_working_mktime+:} false; then :
16179 $as_echo_n "(cached) " >&6
16180 else
16181 if test "$cross_compiling" = yes; then :
16182 ac_cv_func_working_mktime=no
16183 else
16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h. */
16186 /* Test program from Paul Eggert and Tony Leneis. */
16187 #include <limits.h>
16188 #include <stdlib.h>
16189 #include <time.h>
16190
16191 #ifdef HAVE_UNISTD_H
16192 # include <unistd.h>
16193 #endif
16194
16195 #ifndef HAVE_ALARM
16196 # define alarm(X) /* empty */
16197 #endif
16198
16199 /* Work around redefinition to rpl_putenv by other config tests. */
16200 #undef putenv
16201
16202 static time_t time_t_max;
16203 static time_t time_t_min;
16204
16205 /* Values we'll use to set the TZ environment variable. */
16206 static char *tz_strings[] = {
16207 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16208 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16209 };
16210 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16211
16212 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16213 Based on a problem report from Andreas Jaeger. */
16214 static int
16215 spring_forward_gap ()
16216 {
16217 /* glibc (up to about 1998-10-07) failed this test. */
16218 struct tm tm;
16219
16220 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16221 instead of "TZ=America/Vancouver" in order to detect the bug even
16222 on systems that don't support the Olson extension, or don't have the
16223 full zoneinfo tables installed. */
16224 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16225
16226 tm.tm_year = 98;
16227 tm.tm_mon = 3;
16228 tm.tm_mday = 5;
16229 tm.tm_hour = 2;
16230 tm.tm_min = 0;
16231 tm.tm_sec = 0;
16232 tm.tm_isdst = -1;
16233 return mktime (&tm) != (time_t) -1;
16234 }
16235
16236 static int
16237 mktime_test1 (time_t now)
16238 {
16239 struct tm *lt;
16240 return ! (lt = localtime (&now)) || mktime (lt) == now;
16241 }
16242
16243 static int
16244 mktime_test (time_t now)
16245 {
16246 return (mktime_test1 (now)
16247 && mktime_test1 ((time_t) (time_t_max - now))
16248 && mktime_test1 ((time_t) (time_t_min + now)));
16249 }
16250
16251 static int
16252 irix_6_4_bug ()
16253 {
16254 /* Based on code from Ariel Faigon. */
16255 struct tm tm;
16256 tm.tm_year = 96;
16257 tm.tm_mon = 3;
16258 tm.tm_mday = 0;
16259 tm.tm_hour = 0;
16260 tm.tm_min = 0;
16261 tm.tm_sec = 0;
16262 tm.tm_isdst = -1;
16263 mktime (&tm);
16264 return tm.tm_mon == 2 && tm.tm_mday == 31;
16265 }
16266
16267 static int
16268 bigtime_test (int j)
16269 {
16270 struct tm tm;
16271 time_t now;
16272 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16273 now = mktime (&tm);
16274 if (now != (time_t) -1)
16275 {
16276 struct tm *lt = localtime (&now);
16277 if (! (lt
16278 && lt->tm_year == tm.tm_year
16279 && lt->tm_mon == tm.tm_mon
16280 && lt->tm_mday == tm.tm_mday
16281 && lt->tm_hour == tm.tm_hour
16282 && lt->tm_min == tm.tm_min
16283 && lt->tm_sec == tm.tm_sec
16284 && lt->tm_yday == tm.tm_yday
16285 && lt->tm_wday == tm.tm_wday
16286 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16287 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16288 return 0;
16289 }
16290 return 1;
16291 }
16292
16293 static int
16294 year_2050_test ()
16295 {
16296 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16297 ignoring leap seconds. */
16298 unsigned long int answer = 2527315200UL;
16299
16300 struct tm tm;
16301 time_t t;
16302 tm.tm_year = 2050 - 1900;
16303 tm.tm_mon = 2 - 1;
16304 tm.tm_mday = 1;
16305 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16306 tm.tm_isdst = -1;
16307
16308 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16309 instead of "TZ=America/Vancouver" in order to detect the bug even
16310 on systems that don't support the Olson extension, or don't have the
16311 full zoneinfo tables installed. */
16312 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16313
16314 t = mktime (&tm);
16315
16316 /* Check that the result is either a failure, or close enough
16317 to the correct answer that we can assume the discrepancy is
16318 due to leap seconds. */
16319 return (t == (time_t) -1
16320 || (0 < t && answer - 120 <= t && t <= answer + 120));
16321 }
16322
16323 int
16324 main ()
16325 {
16326 int result = 0;
16327 time_t t, delta;
16328 int i, j;
16329 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
16330 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
16331
16332 /* This test makes some buggy mktime implementations loop.
16333 Give up after 60 seconds; a mktime slower than that
16334 isn't worth using anyway. */
16335 alarm (60);
16336
16337 time_t_max = (! time_t_signed
16338 ? (time_t) -1
16339 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
16340 * 2 + 1));
16341 time_t_min = (! time_t_signed
16342 ? (time_t) 0
16343 : time_t_signed_magnitude
16344 ? ~ (time_t) 0
16345 : ~ time_t_max);
16346
16347 delta = time_t_max / 997; /* a suitable prime number */
16348 for (i = 0; i < N_STRINGS; i++)
16349 {
16350 if (tz_strings[i])
16351 putenv (tz_strings[i]);
16352
16353 for (t = 0; t <= time_t_max - delta; t += delta)
16354 if (! mktime_test (t))
16355 result |= 1;
16356 if (! (mktime_test ((time_t) 1)
16357 && mktime_test ((time_t) (60 * 60))
16358 && mktime_test ((time_t) (60 * 60 * 24))))
16359 result |= 2;
16360
16361 for (j = 1; ; j <<= 1)
16362 if (! bigtime_test (j))
16363 result |= 4;
16364 else if (INT_MAX / 2 < j)
16365 break;
16366 if (! bigtime_test (INT_MAX))
16367 result |= 8;
16368 }
16369 if (! irix_6_4_bug ())
16370 result |= 16;
16371 if (! spring_forward_gap ())
16372 result |= 32;
16373 if (! year_2050_test ())
16374 result |= 64;
16375 return result;
16376 }
16377 _ACEOF
16378 if ac_fn_c_try_run "$LINENO"; then :
16379 ac_cv_func_working_mktime=yes
16380 else
16381 ac_cv_func_working_mktime=no
16382 fi
16383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16384 conftest.$ac_objext conftest.beam conftest.$ac_ext
16385 fi
16386
16387 fi
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16389 $as_echo "$ac_cv_func_working_mktime" >&6; }
16390 if test $ac_cv_func_working_mktime = no; then
16391
16392
16393
16394
16395
16396
16397
16398
16399 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
16400
16401 fi
16402
16403 if test $ac_cv_func_working_mktime = no; then
16404 REPLACE_MKTIME=1
16405
16406
16407
16408 else
16409 REPLACE_MKTIME=0
16410 fi
16411
16412
16413
16414
16415 GNULIB_MKTIME=1
16416
16417
16418
16419 # Code from module multiarch:
16420
16421 # Code from module readlink:
16422
16423
16424
16425 if test $ac_cv_func_readlink = no; then
16426 HAVE_READLINK=0
16427
16428
16429
16430
16431
16432
16433
16434
16435 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16436
16437
16438 :
16439
16440 else
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16442 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16443 if ${gl_cv_decl_readlink_works+:} false; then :
16444 $as_echo_n "(cached) " >&6
16445 else
16446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16447 /* end confdefs.h. */
16448 #include <unistd.h>
16449 /* Cause compilation failure if original declaration has wrong type. */
16450 ssize_t readlink (const char *, char *, size_t);
16451 int
16452 main ()
16453 {
16454
16455 ;
16456 return 0;
16457 }
16458 _ACEOF
16459 if ac_fn_c_try_compile "$LINENO"; then :
16460 gl_cv_decl_readlink_works=yes
16461 else
16462 gl_cv_decl_readlink_works=no
16463 fi
16464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16465 fi
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16467 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16469 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16470 if ${gl_cv_func_readlink_works+:} false; then :
16471 $as_echo_n "(cached) " >&6
16472 else
16473 # We have readlink, so assume ln -s works.
16474 ln -s conftest.no-such conftest.link
16475 ln -s conftest.link conftest.lnk2
16476 if test "$cross_compiling" = yes; then :
16477 gl_cv_func_readlink_works="guessing no"
16478 else
16479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16480 /* end confdefs.h. */
16481 #include <unistd.h>
16482
16483 int
16484 main ()
16485 {
16486 char buf[20];
16487 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16488 ;
16489 return 0;
16490 }
16491 _ACEOF
16492 if ac_fn_c_try_run "$LINENO"; then :
16493 gl_cv_func_readlink_works=yes
16494 else
16495 gl_cv_func_readlink_works=no
16496 fi
16497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16498 conftest.$ac_objext conftest.beam conftest.$ac_ext
16499 fi
16500
16501 rm -f conftest.link conftest.lnk2
16502 fi
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16504 $as_echo "$gl_cv_func_readlink_works" >&6; }
16505 if test "$gl_cv_func_readlink_works" != yes; then
16506
16507 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16508
16509 REPLACE_READLINK=1
16510
16511
16512
16513
16514
16515
16516
16517
16518 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16519
16520 elif test "$gl_cv_decl_readlink_works" != yes; then
16521 REPLACE_READLINK=1
16522
16523
16524
16525
16526
16527
16528
16529
16530 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16531
16532 fi
16533 fi
16534
16535
16536
16537
16538 GNULIB_READLINK=1
16539
16540
16541
16542 # Code from module socklen:
16543 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16544 /* <sys/types.h> is not needed according to POSIX, but the
16545 <sys/socket.h> in i386-unknown-freebsd4.10 and
16546 powerpc-apple-darwin5.5 required it. */
16547 #include <sys/types.h>
16548 #if HAVE_SYS_SOCKET_H
16549 # include <sys/socket.h>
16550 #elif HAVE_WS2TCPIP_H
16551 # include <ws2tcpip.h>
16552 #endif
16553
16554 "
16555 if test "x$ac_cv_type_socklen_t" = xyes; then :
16556
16557 else
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
16559 $as_echo_n "checking for socklen_t equivalent... " >&6; }
16560 if ${gl_cv_socklen_t_equiv+:} false; then :
16561 $as_echo_n "(cached) " >&6
16562 else
16563 # Systems have either "struct sockaddr *" or
16564 # "void *" as the second argument to getpeername
16565 gl_cv_socklen_t_equiv=
16566 for arg2 in "struct sockaddr" void; do
16567 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
16568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16569 /* end confdefs.h. */
16570 #include <sys/types.h>
16571 #include <sys/socket.h>
16572
16573 int getpeername (int, $arg2 *, $t *);
16574 int
16575 main ()
16576 {
16577 $t len;
16578 getpeername (0, 0, &len);
16579 ;
16580 return 0;
16581 }
16582 _ACEOF
16583 if ac_fn_c_try_compile "$LINENO"; then :
16584 gl_cv_socklen_t_equiv="$t"
16585 fi
16586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16587 test "$gl_cv_socklen_t_equiv" != "" && break
16588 done
16589 test "$gl_cv_socklen_t_equiv" != "" && break
16590 done
16591
16592 fi
16593
16594 if test "$gl_cv_socklen_t_equiv" = ""; then
16595 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
16596 fi
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
16598 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
16599
16600 cat >>confdefs.h <<_ACEOF
16601 #define socklen_t $gl_cv_socklen_t_equiv
16602 _ACEOF
16603
16604 fi
16605
16606 # Code from module stat:
16607
16608
16609
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16611 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16612 if ${gl_cv_func_stat_dir_slash+:} false; then :
16613 $as_echo_n "(cached) " >&6
16614 else
16615 if test "$cross_compiling" = yes; then :
16616 case $host_os in
16617 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
16618 *) gl_cv_func_stat_dir_slash="guessing yes";;
16619 esac
16620 else
16621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16622 /* end confdefs.h. */
16623 #include <sys/stat.h>
16624
16625 int
16626 main ()
16627 {
16628 struct stat st; return stat (".", &st) != stat ("./", &st);
16629 ;
16630 return 0;
16631 }
16632 _ACEOF
16633 if ac_fn_c_try_run "$LINENO"; then :
16634 gl_cv_func_stat_dir_slash=yes
16635 else
16636 gl_cv_func_stat_dir_slash=no
16637 fi
16638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16639 conftest.$ac_objext conftest.beam conftest.$ac_ext
16640 fi
16641
16642 fi
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16644 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16646 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16647 if ${gl_cv_func_stat_file_slash+:} false; then :
16648 $as_echo_n "(cached) " >&6
16649 else
16650 touch conftest.tmp
16651 # Assume that if we have lstat, we can also check symlinks.
16652 if test $ac_cv_func_lstat = yes; then
16653 ln -s conftest.tmp conftest.lnk
16654 fi
16655 if test "$cross_compiling" = yes; then :
16656 gl_cv_func_stat_file_slash="guessing no"
16657 else
16658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16659 /* end confdefs.h. */
16660 #include <sys/stat.h>
16661
16662 int
16663 main ()
16664 {
16665 int result = 0;
16666 struct stat st;
16667 if (!stat ("conftest.tmp/", &st))
16668 result |= 1;
16669 #if HAVE_LSTAT
16670 if (!stat ("conftest.lnk/", &st))
16671 result |= 2;
16672 #endif
16673 return result;
16674
16675 ;
16676 return 0;
16677 }
16678 _ACEOF
16679 if ac_fn_c_try_run "$LINENO"; then :
16680 gl_cv_func_stat_file_slash=yes
16681 else
16682 gl_cv_func_stat_file_slash=no
16683 fi
16684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16685 conftest.$ac_objext conftest.beam conftest.$ac_ext
16686 fi
16687
16688 rm -f conftest.tmp conftest.lnk
16689 fi
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16691 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16692 case $gl_cv_func_stat_dir_slash in
16693 *no) REPLACE_STAT=1
16694
16695 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16696 ;;
16697 esac
16698 case $gl_cv_func_stat_file_slash in
16699 *no) REPLACE_STAT=1
16700
16701 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16702 ;;
16703 esac
16704 if test $REPLACE_STAT = 1; then
16705
16706
16707
16708
16709
16710
16711
16712
16713 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16714
16715
16716 fi
16717
16718
16719
16720
16721 GNULIB_STAT=1
16722
16723
16724
16725 # Code from module stdbool:
16726
16727
16728
16729 # Define two additional variables used in the Makefile substitution.
16730
16731 if test "$ac_cv_header_stdbool_h" = yes; then
16732 STDBOOL_H=''
16733 else
16734 STDBOOL_H='stdbool.h'
16735 fi
16736
16737
16738 if test "$ac_cv_type__Bool" = yes; then
16739 HAVE__BOOL=1
16740 else
16741 HAVE__BOOL=0
16742 fi
16743
16744
16745 # Code from module stddef:
16746
16747
16748
16749 if test $gt_cv_c_wchar_t = no; then
16750 HAVE_WCHAR_T=0
16751 STDDEF_H=stddef.h
16752 fi
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16754 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16755 if ${gl_cv_decl_null_works+:} false; then :
16756 $as_echo_n "(cached) " >&6
16757 else
16758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16759 /* end confdefs.h. */
16760 #include <stddef.h>
16761 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16762
16763 int
16764 main ()
16765 {
16766
16767 ;
16768 return 0;
16769 }
16770 _ACEOF
16771 if ac_fn_c_try_compile "$LINENO"; then :
16772 gl_cv_decl_null_works=yes
16773 else
16774 gl_cv_decl_null_works=no
16775 fi
16776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16777 fi
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16779 $as_echo "$gl_cv_decl_null_works" >&6; }
16780 if test $gl_cv_decl_null_works = no; then
16781 REPLACE_NULL=1
16782 STDDEF_H=stddef.h
16783 fi
16784 if test -n "$STDDEF_H"; then
16785
16786
16787
16788
16789
16790
16791
16792
16793 if test $gl_cv_have_include_next = yes; then
16794 gl_cv_next_stddef_h='<'stddef.h'>'
16795 else
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16797 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16798 if ${gl_cv_next_stddef_h+:} false; then :
16799 $as_echo_n "(cached) " >&6
16800 else
16801
16802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16803 /* end confdefs.h. */
16804 #include <stddef.h>
16805
16806 _ACEOF
16807 case "$host_os" in
16808 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16809 *) gl_absname_cpp="$ac_cpp" ;;
16810 esac
16811 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16812 sed -n '\#/stddef.h#{
16813 s#.*"\(.*/stddef.h\)".*#\1#
16814 s#^/[^/]#//&#
16815 p
16816 q
16817 }'`'"'
16818
16819
16820 fi
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16822 $as_echo "$gl_cv_next_stddef_h" >&6; }
16823 fi
16824 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16825
16826 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16827 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16828 gl_next_as_first_directive='<'stddef.h'>'
16829 else
16830 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16831 gl_next_as_first_directive=$gl_cv_next_stddef_h
16832 fi
16833 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16834
16835
16836
16837
16838 fi
16839
16840 # Code from module stdint:
16841
16842
16843
16844 if test $ac_cv_type_long_long_int = yes; then
16845 HAVE_LONG_LONG_INT=1
16846 else
16847 HAVE_LONG_LONG_INT=0
16848 fi
16849
16850
16851 if test $ac_cv_type_unsigned_long_long_int = yes; then
16852 HAVE_UNSIGNED_LONG_LONG_INT=1
16853 else
16854 HAVE_UNSIGNED_LONG_LONG_INT=0
16855 fi
16856
16857
16858
16859 if test $ac_cv_header_wchar_h = yes; then
16860 HAVE_WCHAR_H=1
16861 else
16862 HAVE_WCHAR_H=0
16863 fi
16864
16865
16866 if test $ac_cv_header_inttypes_h = yes; then
16867 HAVE_INTTYPES_H=1
16868 else
16869 HAVE_INTTYPES_H=0
16870 fi
16871
16872
16873 if test $ac_cv_header_sys_types_h = yes; then
16874 HAVE_SYS_TYPES_H=1
16875 else
16876 HAVE_SYS_TYPES_H=0
16877 fi
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889 if test $gl_cv_have_include_next = yes; then
16890 gl_cv_next_stdint_h='<'stdint.h'>'
16891 else
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16893 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16894 if ${gl_cv_next_stdint_h+:} false; then :
16895 $as_echo_n "(cached) " >&6
16896 else
16897
16898 if test $ac_cv_header_stdint_h = yes; then
16899
16900
16901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902 /* end confdefs.h. */
16903 #include <stdint.h>
16904
16905 _ACEOF
16906 case "$host_os" in
16907 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16908 *) gl_absname_cpp="$ac_cpp" ;;
16909 esac
16910 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16911 sed -n '\#/stdint.h#{
16912 s#.*"\(.*/stdint.h\)".*#\1#
16913 s#^/[^/]#//&#
16914 p
16915 q
16916 }'`'"'
16917 else
16918 gl_cv_next_stdint_h='<'stdint.h'>'
16919 fi
16920
16921
16922 fi
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16924 $as_echo "$gl_cv_next_stdint_h" >&6; }
16925 fi
16926 NEXT_STDINT_H=$gl_cv_next_stdint_h
16927
16928 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16929 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16930 gl_next_as_first_directive='<'stdint.h'>'
16931 else
16932 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16933 gl_next_as_first_directive=$gl_cv_next_stdint_h
16934 fi
16935 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16936
16937
16938
16939
16940 if test $ac_cv_header_stdint_h = yes; then
16941 HAVE_STDINT_H=1
16942 else
16943 HAVE_STDINT_H=0
16944 fi
16945
16946
16947 if test $ac_cv_header_stdint_h = yes; then
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16949 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16950 if ${gl_cv_header_working_stdint_h+:} false; then :
16951 $as_echo_n "(cached) " >&6
16952 else
16953 gl_cv_header_working_stdint_h=no
16954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955 /* end confdefs.h. */
16956
16957
16958 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16959 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16960 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16961 #include <stdint.h>
16962 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16963 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16964 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16965 #endif
16966
16967
16968 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16969 included before <wchar.h>. */
16970 #include <stddef.h>
16971 #include <signal.h>
16972 #if HAVE_WCHAR_H
16973 # include <stdio.h>
16974 # include <time.h>
16975 # include <wchar.h>
16976 #endif
16977
16978
16979 #ifdef INT8_MAX
16980 int8_t a1 = INT8_MAX;
16981 int8_t a1min = INT8_MIN;
16982 #endif
16983 #ifdef INT16_MAX
16984 int16_t a2 = INT16_MAX;
16985 int16_t a2min = INT16_MIN;
16986 #endif
16987 #ifdef INT32_MAX
16988 int32_t a3 = INT32_MAX;
16989 int32_t a3min = INT32_MIN;
16990 #endif
16991 #ifdef INT64_MAX
16992 int64_t a4 = INT64_MAX;
16993 int64_t a4min = INT64_MIN;
16994 #endif
16995 #ifdef UINT8_MAX
16996 uint8_t b1 = UINT8_MAX;
16997 #else
16998 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16999 #endif
17000 #ifdef UINT16_MAX
17001 uint16_t b2 = UINT16_MAX;
17002 #endif
17003 #ifdef UINT32_MAX
17004 uint32_t b3 = UINT32_MAX;
17005 #endif
17006 #ifdef UINT64_MAX
17007 uint64_t b4 = UINT64_MAX;
17008 #endif
17009 int_least8_t c1 = INT8_C (0x7f);
17010 int_least8_t c1max = INT_LEAST8_MAX;
17011 int_least8_t c1min = INT_LEAST8_MIN;
17012 int_least16_t c2 = INT16_C (0x7fff);
17013 int_least16_t c2max = INT_LEAST16_MAX;
17014 int_least16_t c2min = INT_LEAST16_MIN;
17015 int_least32_t c3 = INT32_C (0x7fffffff);
17016 int_least32_t c3max = INT_LEAST32_MAX;
17017 int_least32_t c3min = INT_LEAST32_MIN;
17018 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17019 int_least64_t c4max = INT_LEAST64_MAX;
17020 int_least64_t c4min = INT_LEAST64_MIN;
17021 uint_least8_t d1 = UINT8_C (0xff);
17022 uint_least8_t d1max = UINT_LEAST8_MAX;
17023 uint_least16_t d2 = UINT16_C (0xffff);
17024 uint_least16_t d2max = UINT_LEAST16_MAX;
17025 uint_least32_t d3 = UINT32_C (0xffffffff);
17026 uint_least32_t d3max = UINT_LEAST32_MAX;
17027 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17028 uint_least64_t d4max = UINT_LEAST64_MAX;
17029 int_fast8_t e1 = INT_FAST8_MAX;
17030 int_fast8_t e1min = INT_FAST8_MIN;
17031 int_fast16_t e2 = INT_FAST16_MAX;
17032 int_fast16_t e2min = INT_FAST16_MIN;
17033 int_fast32_t e3 = INT_FAST32_MAX;
17034 int_fast32_t e3min = INT_FAST32_MIN;
17035 int_fast64_t e4 = INT_FAST64_MAX;
17036 int_fast64_t e4min = INT_FAST64_MIN;
17037 uint_fast8_t f1 = UINT_FAST8_MAX;
17038 uint_fast16_t f2 = UINT_FAST16_MAX;
17039 uint_fast32_t f3 = UINT_FAST32_MAX;
17040 uint_fast64_t f4 = UINT_FAST64_MAX;
17041 #ifdef INTPTR_MAX
17042 intptr_t g = INTPTR_MAX;
17043 intptr_t gmin = INTPTR_MIN;
17044 #endif
17045 #ifdef UINTPTR_MAX
17046 uintptr_t h = UINTPTR_MAX;
17047 #endif
17048 intmax_t i = INTMAX_MAX;
17049 uintmax_t j = UINTMAX_MAX;
17050
17051 #include <limits.h> /* for CHAR_BIT */
17052 #define TYPE_MINIMUM(t) \
17053 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17054 #define TYPE_MAXIMUM(t) \
17055 ((t) ((t) 0 < (t) -1 \
17056 ? (t) -1 \
17057 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17058 struct s {
17059 int check_PTRDIFF:
17060 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17061 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17062 ? 1 : -1;
17063 /* Detect bug in FreeBSD 6.0 / ia64. */
17064 int check_SIG_ATOMIC:
17065 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17066 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17067 ? 1 : -1;
17068 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17069 int check_WCHAR:
17070 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17071 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17072 ? 1 : -1;
17073 /* Detect bug in mingw. */
17074 int check_WINT:
17075 WINT_MIN == TYPE_MINIMUM (wint_t)
17076 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17077 ? 1 : -1;
17078
17079 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17080 int check_UINT8_C:
17081 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17082 int check_UINT16_C:
17083 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17084
17085 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17086 #ifdef UINT8_MAX
17087 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17088 #endif
17089 #ifdef UINT16_MAX
17090 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17091 #endif
17092 #ifdef UINT32_MAX
17093 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17094 #endif
17095 #ifdef UINT64_MAX
17096 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17097 #endif
17098 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17099 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17100 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17101 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17102 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17103 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17104 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17105 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17106 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17107 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17108 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17109 };
17110
17111 int
17112 main ()
17113 {
17114
17115 ;
17116 return 0;
17117 }
17118 _ACEOF
17119 if ac_fn_c_try_compile "$LINENO"; then :
17120 if test "$cross_compiling" = yes; then :
17121 gl_cv_header_working_stdint_h=yes
17122
17123 else
17124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17125 /* end confdefs.h. */
17126
17127
17128 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17129 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17130 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17131 #include <stdint.h>
17132
17133
17134 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17135 included before <wchar.h>. */
17136 #include <stddef.h>
17137 #include <signal.h>
17138 #if HAVE_WCHAR_H
17139 # include <stdio.h>
17140 # include <time.h>
17141 # include <wchar.h>
17142 #endif
17143
17144
17145 #include <stdio.h>
17146 #include <string.h>
17147 #define MVAL(macro) MVAL1(macro)
17148 #define MVAL1(expression) #expression
17149 static const char *macro_values[] =
17150 {
17151 #ifdef INT8_MAX
17152 MVAL (INT8_MAX),
17153 #endif
17154 #ifdef INT16_MAX
17155 MVAL (INT16_MAX),
17156 #endif
17157 #ifdef INT32_MAX
17158 MVAL (INT32_MAX),
17159 #endif
17160 #ifdef INT64_MAX
17161 MVAL (INT64_MAX),
17162 #endif
17163 #ifdef UINT8_MAX
17164 MVAL (UINT8_MAX),
17165 #endif
17166 #ifdef UINT16_MAX
17167 MVAL (UINT16_MAX),
17168 #endif
17169 #ifdef UINT32_MAX
17170 MVAL (UINT32_MAX),
17171 #endif
17172 #ifdef UINT64_MAX
17173 MVAL (UINT64_MAX),
17174 #endif
17175 NULL
17176 };
17177
17178 int
17179 main ()
17180 {
17181
17182 const char **mv;
17183 for (mv = macro_values; *mv != NULL; mv++)
17184 {
17185 const char *value = *mv;
17186 /* Test whether it looks like a cast expression. */
17187 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17188 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17189 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17190 || strncmp (value, "((int)"/*)*/, 6) == 0
17191 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17192 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17193 return mv - macro_values + 1;
17194 }
17195 return 0;
17196
17197 ;
17198 return 0;
17199 }
17200 _ACEOF
17201 if ac_fn_c_try_run "$LINENO"; then :
17202 gl_cv_header_working_stdint_h=yes
17203 fi
17204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17205 conftest.$ac_objext conftest.beam conftest.$ac_ext
17206 fi
17207
17208
17209 fi
17210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17211
17212 fi
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17214 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17215 fi
17216 if test "$gl_cv_header_working_stdint_h" = yes; then
17217 STDINT_H=
17218 else
17219 for ac_header in sys/inttypes.h sys/bitypes.h
17220 do :
17221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17222 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17223 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17224 cat >>confdefs.h <<_ACEOF
17225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17226 _ACEOF
17227
17228 fi
17229
17230 done
17231
17232 if test $ac_cv_header_sys_inttypes_h = yes; then
17233 HAVE_SYS_INTTYPES_H=1
17234 else
17235 HAVE_SYS_INTTYPES_H=0
17236 fi
17237
17238 if test $ac_cv_header_sys_bitypes_h = yes; then
17239 HAVE_SYS_BITYPES_H=1
17240 else
17241 HAVE_SYS_BITYPES_H=0
17242 fi
17243
17244
17245
17246
17247 if test $APPLE_UNIVERSAL_BUILD = 0; then
17248
17249
17250 for gltype in ptrdiff_t size_t ; do
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17252 $as_echo_n "checking for bit size of $gltype... " >&6; }
17253 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
17254 $as_echo_n "(cached) " >&6
17255 else
17256 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17257 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17258 included before <wchar.h>. */
17259 #include <stddef.h>
17260 #include <signal.h>
17261 #if HAVE_WCHAR_H
17262 # include <stdio.h>
17263 # include <time.h>
17264 # include <wchar.h>
17265 #endif
17266
17267 #include <limits.h>"; then :
17268
17269 else
17270 result=unknown
17271 fi
17272
17273 eval gl_cv_bitsizeof_${gltype}=\$result
17274
17275 fi
17276 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17278 $as_echo "$ac_res" >&6; }
17279 eval result=\$gl_cv_bitsizeof_${gltype}
17280 if test $result = unknown; then
17281 result=0
17282 fi
17283 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17284 cat >>confdefs.h <<_ACEOF
17285 #define BITSIZEOF_${GLTYPE} $result
17286 _ACEOF
17287
17288 eval BITSIZEOF_${GLTYPE}=\$result
17289 done
17290
17291
17292 fi
17293
17294
17295 for gltype in sig_atomic_t wchar_t wint_t ; do
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17297 $as_echo_n "checking for bit size of $gltype... " >&6; }
17298 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
17299 $as_echo_n "(cached) " >&6
17300 else
17301 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17302 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17303 included before <wchar.h>. */
17304 #include <stddef.h>
17305 #include <signal.h>
17306 #if HAVE_WCHAR_H
17307 # include <stdio.h>
17308 # include <time.h>
17309 # include <wchar.h>
17310 #endif
17311
17312 #include <limits.h>"; then :
17313
17314 else
17315 result=unknown
17316 fi
17317
17318 eval gl_cv_bitsizeof_${gltype}=\$result
17319
17320 fi
17321 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17323 $as_echo "$ac_res" >&6; }
17324 eval result=\$gl_cv_bitsizeof_${gltype}
17325 if test $result = unknown; then
17326 result=0
17327 fi
17328 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17329 cat >>confdefs.h <<_ACEOF
17330 #define BITSIZEOF_${GLTYPE} $result
17331 _ACEOF
17332
17333 eval BITSIZEOF_${GLTYPE}=\$result
17334 done
17335
17336
17337
17338
17339 for gltype in sig_atomic_t wchar_t wint_t ; do
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17341 $as_echo_n "checking whether $gltype is signed... " >&6; }
17342 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
17343 $as_echo_n "(cached) " >&6
17344 else
17345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h. */
17347
17348 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17349 included before <wchar.h>. */
17350 #include <stddef.h>
17351 #include <signal.h>
17352 #if HAVE_WCHAR_H
17353 # include <stdio.h>
17354 # include <time.h>
17355 # include <wchar.h>
17356 #endif
17357
17358 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17359 int
17360 main ()
17361 {
17362
17363 ;
17364 return 0;
17365 }
17366 _ACEOF
17367 if ac_fn_c_try_compile "$LINENO"; then :
17368 result=yes
17369 else
17370 result=no
17371 fi
17372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17373 eval gl_cv_type_${gltype}_signed=\$result
17374
17375 fi
17376 eval ac_res=\$gl_cv_type_${gltype}_signed
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17378 $as_echo "$ac_res" >&6; }
17379 eval result=\$gl_cv_type_${gltype}_signed
17380 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17381 if test "$result" = yes; then
17382 cat >>confdefs.h <<_ACEOF
17383 #define HAVE_SIGNED_${GLTYPE} 1
17384 _ACEOF
17385
17386 eval HAVE_SIGNED_${GLTYPE}=1
17387 else
17388 eval HAVE_SIGNED_${GLTYPE}=0
17389 fi
17390 done
17391
17392
17393 gl_cv_type_ptrdiff_t_signed=yes
17394 gl_cv_type_size_t_signed=no
17395 if test $APPLE_UNIVERSAL_BUILD = 0; then
17396
17397
17398 for gltype in ptrdiff_t size_t ; do
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17400 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17401 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
17402 $as_echo_n "(cached) " >&6
17403 else
17404 eval gl_cv_type_${gltype}_suffix=no
17405 eval result=\$gl_cv_type_${gltype}_signed
17406 if test "$result" = yes; then
17407 glsufu=
17408 else
17409 glsufu=u
17410 fi
17411 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17412 case $glsuf in
17413 '') gltype1='int';;
17414 l) gltype1='long int';;
17415 ll) gltype1='long long int';;
17416 i64) gltype1='__int64';;
17417 u) gltype1='unsigned int';;
17418 ul) gltype1='unsigned long int';;
17419 ull) gltype1='unsigned long long int';;
17420 ui64)gltype1='unsigned __int64';;
17421 esac
17422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17423 /* end confdefs.h. */
17424
17425 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17426 included before <wchar.h>. */
17427 #include <stddef.h>
17428 #include <signal.h>
17429 #if HAVE_WCHAR_H
17430 # include <stdio.h>
17431 # include <time.h>
17432 # include <wchar.h>
17433 #endif
17434
17435 extern $gltype foo;
17436 extern $gltype1 foo;
17437 int
17438 main ()
17439 {
17440
17441 ;
17442 return 0;
17443 }
17444 _ACEOF
17445 if ac_fn_c_try_compile "$LINENO"; then :
17446 eval gl_cv_type_${gltype}_suffix=\$glsuf
17447 fi
17448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17449 eval result=\$gl_cv_type_${gltype}_suffix
17450 test "$result" != no && break
17451 done
17452 fi
17453 eval ac_res=\$gl_cv_type_${gltype}_suffix
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17455 $as_echo "$ac_res" >&6; }
17456 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17457 eval result=\$gl_cv_type_${gltype}_suffix
17458 test "$result" = no && result=
17459 eval ${GLTYPE}_SUFFIX=\$result
17460 cat >>confdefs.h <<_ACEOF
17461 #define ${GLTYPE}_SUFFIX $result
17462 _ACEOF
17463
17464 done
17465
17466
17467 fi
17468
17469
17470 for gltype in sig_atomic_t wchar_t wint_t ; do
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17472 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17473 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
17474 $as_echo_n "(cached) " >&6
17475 else
17476 eval gl_cv_type_${gltype}_suffix=no
17477 eval result=\$gl_cv_type_${gltype}_signed
17478 if test "$result" = yes; then
17479 glsufu=
17480 else
17481 glsufu=u
17482 fi
17483 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17484 case $glsuf in
17485 '') gltype1='int';;
17486 l) gltype1='long int';;
17487 ll) gltype1='long long int';;
17488 i64) gltype1='__int64';;
17489 u) gltype1='unsigned int';;
17490 ul) gltype1='unsigned long int';;
17491 ull) gltype1='unsigned long long int';;
17492 ui64)gltype1='unsigned __int64';;
17493 esac
17494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17495 /* end confdefs.h. */
17496
17497 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17498 included before <wchar.h>. */
17499 #include <stddef.h>
17500 #include <signal.h>
17501 #if HAVE_WCHAR_H
17502 # include <stdio.h>
17503 # include <time.h>
17504 # include <wchar.h>
17505 #endif
17506
17507 extern $gltype foo;
17508 extern $gltype1 foo;
17509 int
17510 main ()
17511 {
17512
17513 ;
17514 return 0;
17515 }
17516 _ACEOF
17517 if ac_fn_c_try_compile "$LINENO"; then :
17518 eval gl_cv_type_${gltype}_suffix=\$glsuf
17519 fi
17520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17521 eval result=\$gl_cv_type_${gltype}_suffix
17522 test "$result" != no && break
17523 done
17524 fi
17525 eval ac_res=\$gl_cv_type_${gltype}_suffix
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17527 $as_echo "$ac_res" >&6; }
17528 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17529 eval result=\$gl_cv_type_${gltype}_suffix
17530 test "$result" = no && result=
17531 eval ${GLTYPE}_SUFFIX=\$result
17532 cat >>confdefs.h <<_ACEOF
17533 #define ${GLTYPE}_SUFFIX $result
17534 _ACEOF
17535
17536 done
17537
17538
17539
17540 STDINT_H=stdint.h
17541 fi
17542
17543
17544 # Code from module stdio:
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556 if test $gl_cv_have_include_next = yes; then
17557 gl_cv_next_stdio_h='<'stdio.h'>'
17558 else
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17560 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17561 if ${gl_cv_next_stdio_h+:} false; then :
17562 $as_echo_n "(cached) " >&6
17563 else
17564
17565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17566 /* end confdefs.h. */
17567 #include <stdio.h>
17568
17569 _ACEOF
17570 case "$host_os" in
17571 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17572 *) gl_absname_cpp="$ac_cpp" ;;
17573 esac
17574 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17575 sed -n '\#/stdio.h#{
17576 s#.*"\(.*/stdio.h\)".*#\1#
17577 s#^/[^/]#//&#
17578 p
17579 q
17580 }'`'"'
17581
17582
17583 fi
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17585 $as_echo "$gl_cv_next_stdio_h" >&6; }
17586 fi
17587 NEXT_STDIO_H=$gl_cv_next_stdio_h
17588
17589 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17590 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17591 gl_next_as_first_directive='<'stdio.h'>'
17592 else
17593 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17594 gl_next_as_first_directive=$gl_cv_next_stdio_h
17595 fi
17596 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17597
17598
17599
17600
17601 GNULIB_FPRINTF=1
17602 GNULIB_PRINTF=1
17603 GNULIB_VFPRINTF=1
17604 GNULIB_VPRINTF=1
17605 GNULIB_FPUTC=1
17606 GNULIB_PUTC=1
17607 GNULIB_PUTCHAR=1
17608 GNULIB_FPUTS=1
17609 GNULIB_PUTS=1
17610 GNULIB_FWRITE=1
17611
17612
17613
17614
17615 # Code from module stdlib:
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626 if test $gl_cv_have_include_next = yes; then
17627 gl_cv_next_stdlib_h='<'stdlib.h'>'
17628 else
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17630 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17631 if ${gl_cv_next_stdlib_h+:} false; then :
17632 $as_echo_n "(cached) " >&6
17633 else
17634
17635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17636 /* end confdefs.h. */
17637 #include <stdlib.h>
17638
17639 _ACEOF
17640 case "$host_os" in
17641 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17642 *) gl_absname_cpp="$ac_cpp" ;;
17643 esac
17644 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17645 sed -n '\#/stdlib.h#{
17646 s#.*"\(.*/stdlib.h\)".*#\1#
17647 s#^/[^/]#//&#
17648 p
17649 q
17650 }'`'"'
17651
17652
17653 fi
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17655 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17656 fi
17657 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17658
17659 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17660 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17661 gl_next_as_first_directive='<'stdlib.h'>'
17662 else
17663 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17664 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17665 fi
17666 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17667
17668
17669
17670
17671
17672
17673
17674 # Code from module strftime:
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
17686
17687
17688 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17689
17690
17691
17692
17693
17694
17695
17696 $as_echo "#define my_strftime nstrftime" >>confdefs.h
17697
17698
17699
17700 # Code from module symlink:
17701
17702
17703
17704 if test $ac_cv_func_symlink = no; then
17705 HAVE_SYMLINK=0
17706
17707
17708
17709
17710
17711
17712
17713
17714 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17715
17716 else
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
17718 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
17719 if ${gl_cv_func_symlink_works+:} false; then :
17720 $as_echo_n "(cached) " >&6
17721 else
17722 if test "$cross_compiling" = yes; then :
17723 gl_cv_func_symlink_works="guessing no"
17724 else
17725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17726 /* end confdefs.h. */
17727 #include <unistd.h>
17728
17729 int
17730 main ()
17731 {
17732 int result = 0;
17733 if (!symlink ("a", "conftest.link/"))
17734 result |= 1;
17735 if (symlink ("conftest.f", "conftest.lnk2"))
17736 result |= 2;
17737 else if (!symlink ("a", "conftest.lnk2/"))
17738 result |= 4;
17739 return result;
17740
17741 ;
17742 return 0;
17743 }
17744 _ACEOF
17745 if ac_fn_c_try_run "$LINENO"; then :
17746 gl_cv_func_symlink_works=yes
17747 else
17748 gl_cv_func_symlink_works=no
17749 fi
17750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17751 conftest.$ac_objext conftest.beam conftest.$ac_ext
17752 fi
17753
17754 rm -f conftest.f conftest.link conftest.lnk2
17755 fi
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
17757 $as_echo "$gl_cv_func_symlink_works" >&6; }
17758 if test "$gl_cv_func_symlink_works" != yes; then
17759 REPLACE_SYMLINK=1
17760
17761
17762
17763
17764
17765
17766
17767
17768 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17769
17770 fi
17771 fi
17772
17773
17774
17775
17776 GNULIB_SYMLINK=1
17777
17778
17779
17780 # Code from module sys_stat:
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797 if test $gl_cv_have_include_next = yes; then
17798 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17799 else
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17801 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17802 if ${gl_cv_next_sys_stat_h+:} false; then :
17803 $as_echo_n "(cached) " >&6
17804 else
17805
17806 if test $ac_cv_header_sys_stat_h = yes; then
17807
17808
17809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17810 /* end confdefs.h. */
17811 #include <sys/stat.h>
17812
17813 _ACEOF
17814 case "$host_os" in
17815 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17816 *) gl_absname_cpp="$ac_cpp" ;;
17817 esac
17818 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17819 sed -n '\#/sys/stat.h#{
17820 s#.*"\(.*/sys/stat.h\)".*#\1#
17821 s#^/[^/]#//&#
17822 p
17823 q
17824 }'`'"'
17825 else
17826 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17827 fi
17828
17829
17830 fi
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17832 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17833 fi
17834 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17835
17836 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17837 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17838 gl_next_as_first_directive='<'sys/stat.h'>'
17839 else
17840 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17841 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17842 fi
17843 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17844
17845
17846
17847
17848
17849 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17850 #include <sys/stat.h>
17851 "
17852 if test "x$ac_cv_type_nlink_t" = xyes; then :
17853
17854 else
17855
17856 $as_echo "#define nlink_t int" >>confdefs.h
17857
17858 fi
17859
17860
17861
17862
17863
17864 # Code from module time:
17865
17866
17867
17868 # Code from module time_r:
17869
17870
17871
17872
17873
17874
17875
17876 if test $ac_cv_have_decl_localtime_r = no; then
17877 HAVE_DECL_LOCALTIME_R=0
17878 fi
17879
17880
17881 if test $ac_cv_func_localtime_r = yes; then
17882 HAVE_LOCALTIME_R=1
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17884 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
17885 if ${gl_cv_time_r_posix+:} false; then :
17886 $as_echo_n "(cached) " >&6
17887 else
17888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17889 /* end confdefs.h. */
17890 #include <time.h>
17891 int
17892 main ()
17893 {
17894 /* We don't need to append 'restrict's to the argument types,
17895 even though the POSIX signature has the 'restrict's,
17896 since C99 says they can't affect type compatibility. */
17897 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17898 if (ptr) return 0;
17899 /* Check the return type is a pointer.
17900 On HP-UX 10 it is 'int'. */
17901 *localtime_r (0, 0);
17902 ;
17903 return 0;
17904 }
17905
17906 _ACEOF
17907 if ac_fn_c_try_compile "$LINENO"; then :
17908 gl_cv_time_r_posix=yes
17909 else
17910 gl_cv_time_r_posix=no
17911 fi
17912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17913
17914 fi
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17916 $as_echo "$gl_cv_time_r_posix" >&6; }
17917 if test $gl_cv_time_r_posix = yes; then
17918 REPLACE_LOCALTIME_R=0
17919 else
17920 REPLACE_LOCALTIME_R=1
17921 fi
17922 else
17923 HAVE_LOCALTIME_R=0
17924 fi
17925 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
17926
17927
17928
17929
17930
17931
17932
17933
17934 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
17935
17936
17937 :
17938
17939 fi
17940
17941
17942
17943
17944 GNULIB_TIME_R=1
17945
17946
17947
17948 # Code from module unistd:
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962 if test $gl_cv_have_include_next = yes; then
17963 gl_cv_next_unistd_h='<'unistd.h'>'
17964 else
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17966 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17967 if ${gl_cv_next_unistd_h+:} false; then :
17968 $as_echo_n "(cached) " >&6
17969 else
17970
17971 if test $ac_cv_header_unistd_h = yes; then
17972
17973
17974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975 /* end confdefs.h. */
17976 #include <unistd.h>
17977
17978 _ACEOF
17979 case "$host_os" in
17980 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17981 *) gl_absname_cpp="$ac_cpp" ;;
17982 esac
17983 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17984 sed -n '\#/unistd.h#{
17985 s#.*"\(.*/unistd.h\)".*#\1#
17986 s#^/[^/]#//&#
17987 p
17988 q
17989 }'`'"'
17990 else
17991 gl_cv_next_unistd_h='<'unistd.h'>'
17992 fi
17993
17994
17995 fi
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17997 $as_echo "$gl_cv_next_unistd_h" >&6; }
17998 fi
17999 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18000
18001 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18002 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18003 gl_next_as_first_directive='<'unistd.h'>'
18004 else
18005 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18006 gl_next_as_first_directive=$gl_cv_next_unistd_h
18007 fi
18008 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18009
18010
18011
18012
18013 if test $ac_cv_header_unistd_h = yes; then
18014 HAVE_UNISTD_H=1
18015 else
18016 HAVE_UNISTD_H=0
18017 fi
18018
18019
18020
18021
18022 # Code from module warn-on-use:
18023 # End of code from modules
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033 gltests_libdeps=
18034 gltests_ltlibdeps=
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044 gl_source_base='tests'
18045 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
18046
18047 gl_module_indicator_condition=$gltests_WITNESS
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057 LIBGNU_LIBDEPS="$gl_libdeps"
18058
18059 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
18060
18061
18062
18063 # UNIX98 PTYs.
18064 for ac_func in grantpt
18065 do :
18066 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
18067 if test "x$ac_cv_func_grantpt" = xyes; then :
18068 cat >>confdefs.h <<_ACEOF
18069 #define HAVE_GRANTPT 1
18070 _ACEOF
18071
18072 fi
18073 done
18074
18075
18076 # PTY-related GNU extensions.
18077 for ac_func in getpt
18078 do :
18079 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
18080 if test "x$ac_cv_func_getpt" = xyes; then :
18081 cat >>confdefs.h <<_ACEOF
18082 #define HAVE_GETPT 1
18083 _ACEOF
18084
18085 fi
18086 done
18087
18088
18089 # Check this now, so that we will NOT find the above functions in ncurses.
18090 # That is because we have not set up to link ncurses in lib-src.
18091 # It's better to believe a function is not available
18092 # than to expect to find it in ncurses.
18093 # Also we need tputs and friends to be able to build at all.
18094 have_tputs_et_al=true
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
18096 $as_echo_n "checking for library containing tputs... " >&6; }
18097 if ${ac_cv_search_tputs+:} false; then :
18098 $as_echo_n "(cached) " >&6
18099 else
18100 ac_func_search_save_LIBS=$LIBS
18101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18102 /* end confdefs.h. */
18103
18104 /* Override any GCC internal prototype to avoid an error.
18105 Use char because int might match the return type of a GCC
18106 builtin and then its argument prototype would still apply. */
18107 #ifdef __cplusplus
18108 extern "C"
18109 #endif
18110 char tputs ();
18111 int
18112 main ()
18113 {
18114 return tputs ();
18115 ;
18116 return 0;
18117 }
18118 _ACEOF
18119 for ac_lib in '' ncurses terminfo termcap; do
18120 if test -z "$ac_lib"; then
18121 ac_res="none required"
18122 else
18123 ac_res=-l$ac_lib
18124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18125 fi
18126 if ac_fn_c_try_link "$LINENO"; then :
18127 ac_cv_search_tputs=$ac_res
18128 fi
18129 rm -f core conftest.err conftest.$ac_objext \
18130 conftest$ac_exeext
18131 if ${ac_cv_search_tputs+:} false; then :
18132 break
18133 fi
18134 done
18135 if ${ac_cv_search_tputs+:} false; then :
18136
18137 else
18138 ac_cv_search_tputs=no
18139 fi
18140 rm conftest.$ac_ext
18141 LIBS=$ac_func_search_save_LIBS
18142 fi
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
18144 $as_echo "$ac_cv_search_tputs" >&6; }
18145 ac_res=$ac_cv_search_tputs
18146 if test "$ac_res" != no; then :
18147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18148
18149 else
18150 have_tputs_et_al=false
18151 fi
18152
18153 if test "$have_tputs_et_al" != true; then
18154 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
18155 Maybe some development libraries/packages are missing? Try installing
18156 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
18157 fi
18158 # Must define this when any termcap library is found.
18159
18160 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
18161
18162 ## FIXME This was the cpp logic, but I am not sure it is right.
18163 ## The above test has not necessarily found libncurses.
18164 HAVE_LIBNCURSES=yes
18165
18166 ## Use terminfo instead of termcap?
18167 ## Note only system files NOT using terminfo are:
18168 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
18169 ## darwin|gnu without ncurses.
18170 TERMINFO=no
18171 LIBS_TERMCAP=
18172 case "$opsys" in
18173 ## cygwin: Fewer environment variables to go wrong, more terminal types.
18174 ## hpux10-20: Use the system provided termcap(3) library.
18175 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
18176 ## is necessary. Otherwise Emacs dumps core when run -nw.
18177 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
18178
18179 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
18180 ## The ncurses library has been moved out of the System framework in
18181 ## Mac OS X 10.2. So if configure detects it, set the command-line
18182 ## option to use it.
18183 darwin|gnu*)
18184 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
18185 if test "x$HAVE_LIBNCURSES" = "xyes"; then
18186 TERMINFO=yes
18187 LIBS_TERMCAP="-lncurses"
18188 fi
18189 ;;
18190
18191 freebsd)
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
18193 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
18194 if ${emacs_cv_freebsd_terminfo+:} false; then :
18195 $as_echo_n "(cached) " >&6
18196 else
18197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h. */
18199 #include <osreldate.h>
18200 int
18201 main ()
18202 {
18203 #if __FreeBSD_version < 400000
18204 fail;
18205 #endif
18206
18207 ;
18208 return 0;
18209 }
18210 _ACEOF
18211 if ac_fn_c_try_link "$LINENO"; then :
18212 emacs_cv_freebsd_terminfo=yes
18213 else
18214 emacs_cv_freebsd_terminfo=no
18215 fi
18216 rm -f core conftest.err conftest.$ac_objext \
18217 conftest$ac_exeext conftest.$ac_ext
18218 fi
18219
18220
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
18222 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
18223
18224 if test $emacs_cv_freebsd_terminfo = yes; then
18225 TERMINFO=yes
18226 LIBS_TERMCAP="-lncurses"
18227 else
18228 LIBS_TERMCAP="-ltermcap"
18229 fi
18230 ;;
18231
18232 netbsd)
18233 if test $ac_cv_search_tputs = -lterminfo; then
18234 TERMINFO=yes
18235 LIBS_TERMCAP="-lterminfo"
18236 else
18237 LIBS_TERMCAP="-ltermcap"
18238 fi
18239 ;;
18240
18241 esac
18242
18243 case "$opsys" in
18244 ## hpux: Make sure we get select from libc rather than from libcurses
18245 ## because libcurses on HPUX 10.10 has a broken version of select.
18246 ## We used to use -lc -lcurses, but this may be cleaner.
18247 hpux*) LIBS_TERMCAP="-ltermcap" ;;
18248
18249 openbsd) LIBS_TERMCAP="-lncurses" ;;
18250
18251 ## Must use system termcap, if we use any termcap. It does special things.
18252 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
18253 esac
18254
18255 TERMCAP_OBJ=tparam.o
18256 if test $TERMINFO = yes; then
18257
18258 $as_echo "#define TERMINFO 1" >>confdefs.h
18259
18260
18261 ## Default used to be -ltermcap. Add a case above if need something else.
18262 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
18263
18264 TERMCAP_OBJ=terminfo.o
18265 fi
18266
18267
18268
18269
18270 # Do we have res_init, for detecting changes in /etc/resolv.conf?
18271 resolv=no
18272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18273 /* end confdefs.h. */
18274 #include <netinet/in.h>
18275 #include <arpa/nameser.h>
18276 #include <resolv.h>
18277 int
18278 main ()
18279 {
18280 return res_init();
18281 ;
18282 return 0;
18283 }
18284 _ACEOF
18285 if ac_fn_c_try_link "$LINENO"; then :
18286 have_res_init=yes
18287 else
18288 have_res_init=no
18289 fi
18290 rm -f core conftest.err conftest.$ac_objext \
18291 conftest$ac_exeext conftest.$ac_ext
18292 if test "$have_res_init" = no; then
18293 OLIBS="$LIBS"
18294 LIBS="$LIBS -lresolv"
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
18296 $as_echo_n "checking for res_init with -lresolv... " >&6; }
18297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18298 /* end confdefs.h. */
18299 #include <netinet/in.h>
18300 #include <arpa/nameser.h>
18301 #include <resolv.h>
18302 int
18303 main ()
18304 {
18305 return res_init();
18306 ;
18307 return 0;
18308 }
18309 _ACEOF
18310 if ac_fn_c_try_link "$LINENO"; then :
18311 have_res_init=yes
18312 else
18313 have_res_init=no
18314 fi
18315 rm -f core conftest.err conftest.$ac_objext \
18316 conftest$ac_exeext conftest.$ac_ext
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
18318 $as_echo "$have_res_init" >&6; }
18319 if test "$have_res_init" = yes ; then
18320 resolv=yes
18321 fi
18322 LIBS="$OLIBS"
18323 fi
18324
18325 if test "$have_res_init" = yes; then
18326
18327 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
18328
18329 fi
18330
18331 # Do we need the Hesiod library to provide the support routines?
18332 LIBHESIOD=
18333 if test "$with_hesiod" != no ; then
18334 # Don't set $LIBS here -- see comments above. FIXME which comments?
18335 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
18336 if test "x$ac_cv_func_res_send" = xyes; then :
18337
18338 else
18339 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
18340 if test "x$ac_cv_func___res_send" = xyes; then :
18341
18342 else
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
18344 $as_echo_n "checking for res_send in -lresolv... " >&6; }
18345 if ${ac_cv_lib_resolv_res_send+:} false; then :
18346 $as_echo_n "(cached) " >&6
18347 else
18348 ac_check_lib_save_LIBS=$LIBS
18349 LIBS="-lresolv $LIBS"
18350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351 /* end confdefs.h. */
18352
18353 /* Override any GCC internal prototype to avoid an error.
18354 Use char because int might match the return type of a GCC
18355 builtin and then its argument prototype would still apply. */
18356 #ifdef __cplusplus
18357 extern "C"
18358 #endif
18359 char res_send ();
18360 int
18361 main ()
18362 {
18363 return res_send ();
18364 ;
18365 return 0;
18366 }
18367 _ACEOF
18368 if ac_fn_c_try_link "$LINENO"; then :
18369 ac_cv_lib_resolv_res_send=yes
18370 else
18371 ac_cv_lib_resolv_res_send=no
18372 fi
18373 rm -f core conftest.err conftest.$ac_objext \
18374 conftest$ac_exeext conftest.$ac_ext
18375 LIBS=$ac_check_lib_save_LIBS
18376 fi
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
18378 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
18379 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
18380 resolv=yes
18381 else
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
18383 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
18384 if ${ac_cv_lib_resolv___res_send+:} false; then :
18385 $as_echo_n "(cached) " >&6
18386 else
18387 ac_check_lib_save_LIBS=$LIBS
18388 LIBS="-lresolv $LIBS"
18389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18390 /* end confdefs.h. */
18391
18392 /* Override any GCC internal prototype to avoid an error.
18393 Use char because int might match the return type of a GCC
18394 builtin and then its argument prototype would still apply. */
18395 #ifdef __cplusplus
18396 extern "C"
18397 #endif
18398 char __res_send ();
18399 int
18400 main ()
18401 {
18402 return __res_send ();
18403 ;
18404 return 0;
18405 }
18406 _ACEOF
18407 if ac_fn_c_try_link "$LINENO"; then :
18408 ac_cv_lib_resolv___res_send=yes
18409 else
18410 ac_cv_lib_resolv___res_send=no
18411 fi
18412 rm -f core conftest.err conftest.$ac_objext \
18413 conftest$ac_exeext conftest.$ac_ext
18414 LIBS=$ac_check_lib_save_LIBS
18415 fi
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
18417 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
18418 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
18419 resolv=yes
18420 fi
18421
18422 fi
18423
18424 fi
18425
18426 fi
18427
18428 if test "$resolv" = yes ; then
18429 RESOLVLIB=-lresolv
18430 else
18431 RESOLVLIB=
18432 fi
18433 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
18434 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
18435
18436 else
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
18438 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
18439 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
18440 $as_echo_n "(cached) " >&6
18441 else
18442 ac_check_lib_save_LIBS=$LIBS
18443 LIBS="-lhesiod $RESOLVLIB $LIBS"
18444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18445 /* end confdefs.h. */
18446
18447 /* Override any GCC internal prototype to avoid an error.
18448 Use char because int might match the return type of a GCC
18449 builtin and then its argument prototype would still apply. */
18450 #ifdef __cplusplus
18451 extern "C"
18452 #endif
18453 char hes_getmailhost ();
18454 int
18455 main ()
18456 {
18457 return hes_getmailhost ();
18458 ;
18459 return 0;
18460 }
18461 _ACEOF
18462 if ac_fn_c_try_link "$LINENO"; then :
18463 ac_cv_lib_hesiod_hes_getmailhost=yes
18464 else
18465 ac_cv_lib_hesiod_hes_getmailhost=no
18466 fi
18467 rm -f core conftest.err conftest.$ac_objext \
18468 conftest$ac_exeext conftest.$ac_ext
18469 LIBS=$ac_check_lib_save_LIBS
18470 fi
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18472 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
18473 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
18474 hesiod=yes
18475 else
18476 :
18477 fi
18478
18479 fi
18480
18481
18482 if test x"$hesiod" = xyes; then
18483
18484 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
18485
18486 LIBHESIOD=-lhesiod
18487 fi
18488 fi
18489
18490
18491 # Do we need libresolv (due to res_init or Hesiod)?
18492 if test "$resolv" = yes ; then
18493
18494 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
18495
18496 LIBRESOLV=-lresolv
18497 else
18498 LIBRESOLV=
18499 fi
18500
18501
18502 # These tell us which Kerberos-related libraries to use.
18503 COM_ERRLIB=
18504 CRYPTOLIB=
18505 KRB5LIB=
18506 DESLIB=
18507 KRB4LIB=
18508
18509 if test "${with_kerberos}" != no; then
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
18511 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
18512 if ${ac_cv_lib_com_err_com_err+:} false; then :
18513 $as_echo_n "(cached) " >&6
18514 else
18515 ac_check_lib_save_LIBS=$LIBS
18516 LIBS="-lcom_err $LIBS"
18517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h. */
18519
18520 /* Override any GCC internal prototype to avoid an error.
18521 Use char because int might match the return type of a GCC
18522 builtin and then its argument prototype would still apply. */
18523 #ifdef __cplusplus
18524 extern "C"
18525 #endif
18526 char com_err ();
18527 int
18528 main ()
18529 {
18530 return com_err ();
18531 ;
18532 return 0;
18533 }
18534 _ACEOF
18535 if ac_fn_c_try_link "$LINENO"; then :
18536 ac_cv_lib_com_err_com_err=yes
18537 else
18538 ac_cv_lib_com_err_com_err=no
18539 fi
18540 rm -f core conftest.err conftest.$ac_objext \
18541 conftest$ac_exeext conftest.$ac_ext
18542 LIBS=$ac_check_lib_save_LIBS
18543 fi
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
18545 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
18546 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
18547 have_com_err=yes
18548 else
18549 have_com_err=no
18550 fi
18551
18552 if test $have_com_err = yes; then
18553 COM_ERRLIB=-lcom_err
18554 LIBS="$COM_ERRLIB $LIBS"
18555
18556 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
18557
18558 fi
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18560 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
18561 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
18562 $as_echo_n "(cached) " >&6
18563 else
18564 ac_check_lib_save_LIBS=$LIBS
18565 LIBS="-lcrypto $LIBS"
18566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18567 /* end confdefs.h. */
18568
18569 /* Override any GCC internal prototype to avoid an error.
18570 Use char because int might match the return type of a GCC
18571 builtin and then its argument prototype would still apply. */
18572 #ifdef __cplusplus
18573 extern "C"
18574 #endif
18575 char mit_des_cbc_encrypt ();
18576 int
18577 main ()
18578 {
18579 return mit_des_cbc_encrypt ();
18580 ;
18581 return 0;
18582 }
18583 _ACEOF
18584 if ac_fn_c_try_link "$LINENO"; then :
18585 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18586 else
18587 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18588 fi
18589 rm -f core conftest.err conftest.$ac_objext \
18590 conftest$ac_exeext conftest.$ac_ext
18591 LIBS=$ac_check_lib_save_LIBS
18592 fi
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18594 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
18595 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
18596 have_crypto=yes
18597 else
18598 have_crypto=no
18599 fi
18600
18601 if test $have_crypto = yes; then
18602 CRYPTOLIB=-lcrypto
18603 LIBS="$CRYPTOLIB $LIBS"
18604
18605 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
18606
18607 fi
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18609 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
18610 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
18611 $as_echo_n "(cached) " >&6
18612 else
18613 ac_check_lib_save_LIBS=$LIBS
18614 LIBS="-lk5crypto $LIBS"
18615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18616 /* end confdefs.h. */
18617
18618 /* Override any GCC internal prototype to avoid an error.
18619 Use char because int might match the return type of a GCC
18620 builtin and then its argument prototype would still apply. */
18621 #ifdef __cplusplus
18622 extern "C"
18623 #endif
18624 char mit_des_cbc_encrypt ();
18625 int
18626 main ()
18627 {
18628 return mit_des_cbc_encrypt ();
18629 ;
18630 return 0;
18631 }
18632 _ACEOF
18633 if ac_fn_c_try_link "$LINENO"; then :
18634 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18635 else
18636 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18637 fi
18638 rm -f core conftest.err conftest.$ac_objext \
18639 conftest$ac_exeext conftest.$ac_ext
18640 LIBS=$ac_check_lib_save_LIBS
18641 fi
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18643 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
18644 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
18645 have_k5crypto=yes
18646 else
18647 have_k5crypto=no
18648 fi
18649
18650 if test $have_k5crypto = yes; then
18651 CRYPTOLIB=-lk5crypto
18652 LIBS="$CRYPTOLIB $LIBS"
18653
18654 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
18655
18656 fi
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18658 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
18659 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
18660 $as_echo_n "(cached) " >&6
18661 else
18662 ac_check_lib_save_LIBS=$LIBS
18663 LIBS="-lkrb5 $LIBS"
18664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18665 /* end confdefs.h. */
18666
18667 /* Override any GCC internal prototype to avoid an error.
18668 Use char because int might match the return type of a GCC
18669 builtin and then its argument prototype would still apply. */
18670 #ifdef __cplusplus
18671 extern "C"
18672 #endif
18673 char krb5_init_context ();
18674 int
18675 main ()
18676 {
18677 return krb5_init_context ();
18678 ;
18679 return 0;
18680 }
18681 _ACEOF
18682 if ac_fn_c_try_link "$LINENO"; then :
18683 ac_cv_lib_krb5_krb5_init_context=yes
18684 else
18685 ac_cv_lib_krb5_krb5_init_context=no
18686 fi
18687 rm -f core conftest.err conftest.$ac_objext \
18688 conftest$ac_exeext conftest.$ac_ext
18689 LIBS=$ac_check_lib_save_LIBS
18690 fi
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18692 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
18693 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
18694 have_krb5=yes
18695 else
18696 have_krb5=no
18697 fi
18698
18699 if test $have_krb5=yes; then
18700 KRB5LIB=-lkrb5
18701 LIBS="$KRB5LIB $LIBS"
18702
18703 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
18704
18705 fi
18706 if test "${with_kerberos5}" = no; then
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18708 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
18709 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
18710 $as_echo_n "(cached) " >&6
18711 else
18712 ac_check_lib_save_LIBS=$LIBS
18713 LIBS="-ldes425 $LIBS"
18714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715 /* end confdefs.h. */
18716
18717 /* Override any GCC internal prototype to avoid an error.
18718 Use char because int might match the return type of a GCC
18719 builtin and then its argument prototype would still apply. */
18720 #ifdef __cplusplus
18721 extern "C"
18722 #endif
18723 char des_cbc_encrypt ();
18724 int
18725 main ()
18726 {
18727 return des_cbc_encrypt ();
18728 ;
18729 return 0;
18730 }
18731 _ACEOF
18732 if ac_fn_c_try_link "$LINENO"; then :
18733 ac_cv_lib_des425_des_cbc_encrypt=yes
18734 else
18735 ac_cv_lib_des425_des_cbc_encrypt=no
18736 fi
18737 rm -f core conftest.err conftest.$ac_objext \
18738 conftest$ac_exeext conftest.$ac_ext
18739 LIBS=$ac_check_lib_save_LIBS
18740 fi
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18742 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
18743 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
18744 have_des425=yes
18745 else
18746 have_des425=no
18747 fi
18748
18749 if test $have_des425 = yes; then
18750 DESLIB=-ldes425
18751 LIBS="$DESLIB $LIBS"
18752
18753 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
18754
18755 else
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18757 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18758 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
18759 $as_echo_n "(cached) " >&6
18760 else
18761 ac_check_lib_save_LIBS=$LIBS
18762 LIBS="-ldes $LIBS"
18763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18764 /* end confdefs.h. */
18765
18766 /* Override any GCC internal prototype to avoid an error.
18767 Use char because int might match the return type of a GCC
18768 builtin and then its argument prototype would still apply. */
18769 #ifdef __cplusplus
18770 extern "C"
18771 #endif
18772 char des_cbc_encrypt ();
18773 int
18774 main ()
18775 {
18776 return des_cbc_encrypt ();
18777 ;
18778 return 0;
18779 }
18780 _ACEOF
18781 if ac_fn_c_try_link "$LINENO"; then :
18782 ac_cv_lib_des_des_cbc_encrypt=yes
18783 else
18784 ac_cv_lib_des_des_cbc_encrypt=no
18785 fi
18786 rm -f core conftest.err conftest.$ac_objext \
18787 conftest$ac_exeext conftest.$ac_ext
18788 LIBS=$ac_check_lib_save_LIBS
18789 fi
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18791 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18792 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
18793 have_des=yes
18794 else
18795 have_des=no
18796 fi
18797
18798 if test $have_des = yes; then
18799 DESLIB=-ldes
18800 LIBS="$DESLIB $LIBS"
18801
18802 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
18803
18804 fi
18805 fi
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
18807 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
18808 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
18809 $as_echo_n "(cached) " >&6
18810 else
18811 ac_check_lib_save_LIBS=$LIBS
18812 LIBS="-lkrb4 $LIBS"
18813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18814 /* end confdefs.h. */
18815
18816 /* Override any GCC internal prototype to avoid an error.
18817 Use char because int might match the return type of a GCC
18818 builtin and then its argument prototype would still apply. */
18819 #ifdef __cplusplus
18820 extern "C"
18821 #endif
18822 char krb_get_cred ();
18823 int
18824 main ()
18825 {
18826 return krb_get_cred ();
18827 ;
18828 return 0;
18829 }
18830 _ACEOF
18831 if ac_fn_c_try_link "$LINENO"; then :
18832 ac_cv_lib_krb4_krb_get_cred=yes
18833 else
18834 ac_cv_lib_krb4_krb_get_cred=no
18835 fi
18836 rm -f core conftest.err conftest.$ac_objext \
18837 conftest$ac_exeext conftest.$ac_ext
18838 LIBS=$ac_check_lib_save_LIBS
18839 fi
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18841 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
18842 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
18843 have_krb4=yes
18844 else
18845 have_krb4=no
18846 fi
18847
18848 if test $have_krb4 = yes; then
18849 KRB4LIB=-lkrb4
18850 LIBS="$KRB4LIB $LIBS"
18851
18852 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18853
18854 else
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18856 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
18857 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
18858 $as_echo_n "(cached) " >&6
18859 else
18860 ac_check_lib_save_LIBS=$LIBS
18861 LIBS="-lkrb $LIBS"
18862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18863 /* end confdefs.h. */
18864
18865 /* Override any GCC internal prototype to avoid an error.
18866 Use char because int might match the return type of a GCC
18867 builtin and then its argument prototype would still apply. */
18868 #ifdef __cplusplus
18869 extern "C"
18870 #endif
18871 char krb_get_cred ();
18872 int
18873 main ()
18874 {
18875 return krb_get_cred ();
18876 ;
18877 return 0;
18878 }
18879 _ACEOF
18880 if ac_fn_c_try_link "$LINENO"; then :
18881 ac_cv_lib_krb_krb_get_cred=yes
18882 else
18883 ac_cv_lib_krb_krb_get_cred=no
18884 fi
18885 rm -f core conftest.err conftest.$ac_objext \
18886 conftest$ac_exeext conftest.$ac_ext
18887 LIBS=$ac_check_lib_save_LIBS
18888 fi
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18890 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
18891 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
18892 have_krb=yes
18893 else
18894 have_krb=no
18895 fi
18896
18897 if test $have_krb = yes; then
18898 KRB4LIB=-lkrb
18899 LIBS="$KRB4LIB $LIBS"
18900
18901 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18902
18903 fi
18904 fi
18905 fi
18906
18907 if test "${with_kerberos5}" != no; then
18908 for ac_header in krb5.h
18909 do :
18910 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
18911 if test "x$ac_cv_header_krb5_h" = xyes; then :
18912 cat >>confdefs.h <<_ACEOF
18913 #define HAVE_KRB5_H 1
18914 _ACEOF
18915 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18916 "
18917 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
18918
18919 cat >>confdefs.h <<_ACEOF
18920 #define HAVE_KRB5_ERROR_TEXT 1
18921 _ACEOF
18922
18923
18924 fi
18925 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18926 "
18927 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
18928
18929 cat >>confdefs.h <<_ACEOF
18930 #define HAVE_KRB5_ERROR_E_TEXT 1
18931 _ACEOF
18932
18933
18934 fi
18935
18936 fi
18937
18938 done
18939
18940 else
18941 for ac_header in des.h
18942 do :
18943 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18944 if test "x$ac_cv_header_des_h" = xyes; then :
18945 cat >>confdefs.h <<_ACEOF
18946 #define HAVE_DES_H 1
18947 _ACEOF
18948
18949 else
18950 for ac_header in kerberosIV/des.h
18951 do :
18952 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
18953 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
18954 cat >>confdefs.h <<_ACEOF
18955 #define HAVE_KERBEROSIV_DES_H 1
18956 _ACEOF
18957
18958 else
18959 for ac_header in kerberos/des.h
18960 do :
18961 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
18962 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
18963 cat >>confdefs.h <<_ACEOF
18964 #define HAVE_KERBEROS_DES_H 1
18965 _ACEOF
18966
18967 fi
18968
18969 done
18970
18971 fi
18972
18973 done
18974
18975 fi
18976
18977 done
18978
18979 for ac_header in krb.h
18980 do :
18981 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18982 if test "x$ac_cv_header_krb_h" = xyes; then :
18983 cat >>confdefs.h <<_ACEOF
18984 #define HAVE_KRB_H 1
18985 _ACEOF
18986
18987 else
18988 for ac_header in kerberosIV/krb.h
18989 do :
18990 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
18991 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
18992 cat >>confdefs.h <<_ACEOF
18993 #define HAVE_KERBEROSIV_KRB_H 1
18994 _ACEOF
18995
18996 else
18997 for ac_header in kerberos/krb.h
18998 do :
18999 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
19000 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
19001 cat >>confdefs.h <<_ACEOF
19002 #define HAVE_KERBEROS_KRB_H 1
19003 _ACEOF
19004
19005 fi
19006
19007 done
19008
19009 fi
19010
19011 done
19012
19013 fi
19014
19015 done
19016
19017 fi
19018 for ac_header in com_err.h
19019 do :
19020 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
19021 if test "x$ac_cv_header_com_err_h" = xyes; then :
19022 cat >>confdefs.h <<_ACEOF
19023 #define HAVE_COM_ERR_H 1
19024 _ACEOF
19025
19026 fi
19027
19028 done
19029
19030 fi
19031
19032
19033
19034
19035
19036
19037
19038 # Solaris requires -lintl if you want strerror (which calls dgettext)
19039 # to return localized messages.
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19041 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19042 if ${ac_cv_lib_intl_dgettext+:} false; then :
19043 $as_echo_n "(cached) " >&6
19044 else
19045 ac_check_lib_save_LIBS=$LIBS
19046 LIBS="-lintl $LIBS"
19047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19048 /* end confdefs.h. */
19049
19050 /* Override any GCC internal prototype to avoid an error.
19051 Use char because int might match the return type of a GCC
19052 builtin and then its argument prototype would still apply. */
19053 #ifdef __cplusplus
19054 extern "C"
19055 #endif
19056 char dgettext ();
19057 int
19058 main ()
19059 {
19060 return dgettext ();
19061 ;
19062 return 0;
19063 }
19064 _ACEOF
19065 if ac_fn_c_try_link "$LINENO"; then :
19066 ac_cv_lib_intl_dgettext=yes
19067 else
19068 ac_cv_lib_intl_dgettext=no
19069 fi
19070 rm -f core conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
19072 LIBS=$ac_check_lib_save_LIBS
19073 fi
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19075 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19076 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
19077 cat >>confdefs.h <<_ACEOF
19078 #define HAVE_LIBINTL 1
19079 _ACEOF
19080
19081 LIBS="-lintl $LIBS"
19082
19083 fi
19084
19085
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
19087 $as_echo_n "checking whether localtime caches TZ... " >&6; }
19088 if ${emacs_cv_localtime_cache+:} false; then :
19089 $as_echo_n "(cached) " >&6
19090 else
19091 if test x$ac_cv_func_tzset = xyes; then
19092 if test "$cross_compiling" = yes; then :
19093 # If we have tzset, assume the worst when cross-compiling.
19094 emacs_cv_localtime_cache=yes
19095 else
19096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19097 /* end confdefs.h. */
19098 #include <time.h>
19099 char TZ_GMT0[] = "TZ=GMT0";
19100 char TZ_PST8[] = "TZ=PST8";
19101 main()
19102 {
19103 time_t now = time ((time_t *) 0);
19104 int hour_GMT0, hour_unset;
19105 if (putenv (TZ_GMT0) != 0)
19106 exit (1);
19107 hour_GMT0 = localtime (&now)->tm_hour;
19108 unsetenv("TZ");
19109 hour_unset = localtime (&now)->tm_hour;
19110 if (putenv (TZ_PST8) != 0)
19111 exit (1);
19112 if (localtime (&now)->tm_hour == hour_GMT0)
19113 exit (1);
19114 unsetenv("TZ");
19115 if (localtime (&now)->tm_hour != hour_unset)
19116 exit (1);
19117 exit (0);
19118 }
19119 _ACEOF
19120 if ac_fn_c_try_run "$LINENO"; then :
19121 emacs_cv_localtime_cache=no
19122 else
19123 emacs_cv_localtime_cache=yes
19124 fi
19125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19126 conftest.$ac_objext conftest.beam conftest.$ac_ext
19127 fi
19128
19129 else
19130 # If we lack tzset, report that localtime does not cache TZ,
19131 # since we can't invalidate the cache if we don't have tzset.
19132 emacs_cv_localtime_cache=no
19133 fi
19134 fi
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
19136 $as_echo "$emacs_cv_localtime_cache" >&6; }
19137 if test $emacs_cv_localtime_cache = yes; then
19138
19139 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
19140
19141 fi
19142
19143 if test "x$HAVE_TIMEVAL" = xyes; then
19144 for ac_func in gettimeofday
19145 do :
19146 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
19147 if test "x$ac_cv_func_gettimeofday" = xyes; then :
19148 cat >>confdefs.h <<_ACEOF
19149 #define HAVE_GETTIMEOFDAY 1
19150 _ACEOF
19151
19152 fi
19153 done
19154
19155 if test $ac_cv_func_gettimeofday = yes; then
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
19157 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
19158 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
19159 $as_echo_n "(cached) " >&6
19160 else
19161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19162 /* end confdefs.h. */
19163
19164 #ifdef TIME_WITH_SYS_TIME
19165 #include <sys/time.h>
19166 #include <time.h>
19167 #else
19168 #ifdef HAVE_SYS_TIME_H
19169 #include <sys/time.h>
19170 #else
19171 #include <time.h>
19172 #endif
19173 #endif
19174 int
19175 main ()
19176 {
19177 struct timeval time;
19178 gettimeofday (&time, 0);
19179 ;
19180 return 0;
19181 }
19182 _ACEOF
19183 if ac_fn_c_try_compile "$LINENO"; then :
19184 emacs_cv_gettimeofday_two_arguments=yes
19185 else
19186 emacs_cv_gettimeofday_two_arguments=no
19187 fi
19188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19189 fi
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
19191 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
19192 if test $emacs_cv_gettimeofday_two_arguments = no; then
19193
19194 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
19195
19196 fi
19197 fi
19198 fi
19199
19200 ok_so_far=yes
19201 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
19202 if test "x$ac_cv_func_socket" = xyes; then :
19203
19204 else
19205 ok_so_far=no
19206 fi
19207
19208 if test $ok_so_far = yes; then
19209 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
19210 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
19211
19212 else
19213 ok_so_far=no
19214 fi
19215
19216
19217 fi
19218 if test $ok_so_far = yes; then
19219 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
19220 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
19221
19222 else
19223 ok_so_far=no
19224 fi
19225
19226
19227 fi
19228 if test $ok_so_far = yes; then
19229
19230 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
19231
19232 fi
19233
19234 if test -f /usr/lpp/X11/bin/smt.exp; then
19235
19236 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
19237
19238 fi
19239
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
19241 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
19242 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19244 $as_echo "yes" >&6; }
19245
19246 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
19247
19248 else
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19250 $as_echo "no" >&6; }
19251 fi
19252
19253 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19254 if test "x$ac_cv_type_pid_t" = xyes; then :
19255
19256 else
19257
19258 cat >>confdefs.h <<_ACEOF
19259 #define pid_t int
19260 _ACEOF
19261
19262 fi
19263
19264 for ac_header in vfork.h
19265 do :
19266 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19267 if test "x$ac_cv_header_vfork_h" = xyes; then :
19268 cat >>confdefs.h <<_ACEOF
19269 #define HAVE_VFORK_H 1
19270 _ACEOF
19271
19272 fi
19273
19274 done
19275
19276 for ac_func in fork vfork
19277 do :
19278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19279 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19280 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19281 cat >>confdefs.h <<_ACEOF
19282 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19283 _ACEOF
19284
19285 fi
19286 done
19287
19288 if test "x$ac_cv_func_fork" = xyes; then
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19290 $as_echo_n "checking for working fork... " >&6; }
19291 if ${ac_cv_func_fork_works+:} false; then :
19292 $as_echo_n "(cached) " >&6
19293 else
19294 if test "$cross_compiling" = yes; then :
19295 ac_cv_func_fork_works=cross
19296 else
19297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19298 /* end confdefs.h. */
19299 $ac_includes_default
19300 int
19301 main ()
19302 {
19303
19304 /* By Ruediger Kuhlmann. */
19305 return fork () < 0;
19306
19307 ;
19308 return 0;
19309 }
19310 _ACEOF
19311 if ac_fn_c_try_run "$LINENO"; then :
19312 ac_cv_func_fork_works=yes
19313 else
19314 ac_cv_func_fork_works=no
19315 fi
19316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19317 conftest.$ac_objext conftest.beam conftest.$ac_ext
19318 fi
19319
19320 fi
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19322 $as_echo "$ac_cv_func_fork_works" >&6; }
19323
19324 else
19325 ac_cv_func_fork_works=$ac_cv_func_fork
19326 fi
19327 if test "x$ac_cv_func_fork_works" = xcross; then
19328 case $host in
19329 *-*-amigaos* | *-*-msdosdjgpp*)
19330 # Override, as these systems have only a dummy fork() stub
19331 ac_cv_func_fork_works=no
19332 ;;
19333 *)
19334 ac_cv_func_fork_works=yes
19335 ;;
19336 esac
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19338 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19339 fi
19340 ac_cv_func_vfork_works=$ac_cv_func_vfork
19341 if test "x$ac_cv_func_vfork" = xyes; then
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19343 $as_echo_n "checking for working vfork... " >&6; }
19344 if ${ac_cv_func_vfork_works+:} false; then :
19345 $as_echo_n "(cached) " >&6
19346 else
19347 if test "$cross_compiling" = yes; then :
19348 ac_cv_func_vfork_works=cross
19349 else
19350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19351 /* end confdefs.h. */
19352 /* Thanks to Paul Eggert for this test. */
19353 $ac_includes_default
19354 #include <sys/wait.h>
19355 #ifdef HAVE_VFORK_H
19356 # include <vfork.h>
19357 #endif
19358 /* On some sparc systems, changes by the child to local and incoming
19359 argument registers are propagated back to the parent. The compiler
19360 is told about this with #include <vfork.h>, but some compilers
19361 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19362 static variable whose address is put into a register that is
19363 clobbered by the vfork. */
19364 static void
19365 #ifdef __cplusplus
19366 sparc_address_test (int arg)
19367 # else
19368 sparc_address_test (arg) int arg;
19369 #endif
19370 {
19371 static pid_t child;
19372 if (!child) {
19373 child = vfork ();
19374 if (child < 0) {
19375 perror ("vfork");
19376 _exit(2);
19377 }
19378 if (!child) {
19379 arg = getpid();
19380 write(-1, "", 0);
19381 _exit (arg);
19382 }
19383 }
19384 }
19385
19386 int
19387 main ()
19388 {
19389 pid_t parent = getpid ();
19390 pid_t child;
19391
19392 sparc_address_test (0);
19393
19394 child = vfork ();
19395
19396 if (child == 0) {
19397 /* Here is another test for sparc vfork register problems. This
19398 test uses lots of local variables, at least as many local
19399 variables as main has allocated so far including compiler
19400 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19401 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19402 reuse the register of parent for one of the local variables,
19403 since it will think that parent can't possibly be used any more
19404 in this routine. Assigning to the local variable will thus
19405 munge parent in the parent process. */
19406 pid_t
19407 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19408 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19409 /* Convince the compiler that p..p7 are live; otherwise, it might
19410 use the same hardware register for all 8 local variables. */
19411 if (p != p1 || p != p2 || p != p3 || p != p4
19412 || p != p5 || p != p6 || p != p7)
19413 _exit(1);
19414
19415 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19416 from child file descriptors. If the child closes a descriptor
19417 before it execs or exits, this munges the parent's descriptor
19418 as well. Test for this by closing stdout in the child. */
19419 _exit(close(fileno(stdout)) != 0);
19420 } else {
19421 int status;
19422 struct stat st;
19423
19424 while (wait(&status) != child)
19425 ;
19426 return (
19427 /* Was there some problem with vforking? */
19428 child < 0
19429
19430 /* Did the child fail? (This shouldn't happen.) */
19431 || status
19432
19433 /* Did the vfork/compiler bug occur? */
19434 || parent != getpid()
19435
19436 /* Did the file descriptor bug occur? */
19437 || fstat(fileno(stdout), &st) != 0
19438 );
19439 }
19440 }
19441 _ACEOF
19442 if ac_fn_c_try_run "$LINENO"; then :
19443 ac_cv_func_vfork_works=yes
19444 else
19445 ac_cv_func_vfork_works=no
19446 fi
19447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19448 conftest.$ac_objext conftest.beam conftest.$ac_ext
19449 fi
19450
19451 fi
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19453 $as_echo "$ac_cv_func_vfork_works" >&6; }
19454
19455 fi;
19456 if test "x$ac_cv_func_fork_works" = xcross; then
19457 ac_cv_func_vfork_works=$ac_cv_func_vfork
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19459 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19460 fi
19461
19462 if test "x$ac_cv_func_vfork_works" = xyes; then
19463
19464 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19465
19466 else
19467
19468 $as_echo "#define vfork fork" >>confdefs.h
19469
19470 fi
19471 if test "x$ac_cv_func_fork_works" = xyes; then
19472
19473 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19474
19475 fi
19476
19477
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19479 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19480 if ${emacs_cv_langinfo_codeset+:} false; then :
19481 $as_echo_n "(cached) " >&6
19482 else
19483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19484 /* end confdefs.h. */
19485 #include <langinfo.h>
19486 int
19487 main ()
19488 {
19489 char* cs = nl_langinfo(CODESET);
19490 ;
19491 return 0;
19492 }
19493 _ACEOF
19494 if ac_fn_c_try_link "$LINENO"; then :
19495 emacs_cv_langinfo_codeset=yes
19496 else
19497 emacs_cv_langinfo_codeset=no
19498 fi
19499 rm -f core conftest.err conftest.$ac_objext \
19500 conftest$ac_exeext conftest.$ac_ext
19501
19502 fi
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
19504 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
19505 if test $emacs_cv_langinfo_codeset = yes; then
19506
19507 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19508
19509 fi
19510
19511 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19512 if test "x$ac_cv_type_size_t" = xyes; then :
19513
19514 cat >>confdefs.h <<_ACEOF
19515 #define HAVE_SIZE_T 1
19516 _ACEOF
19517
19518
19519 fi
19520
19521
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
19523 $as_echo_n "checking for mbstate_t... " >&6; }
19524 if ${ac_cv_type_mbstate_t+:} false; then :
19525 $as_echo_n "(cached) " >&6
19526 else
19527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19528 /* end confdefs.h. */
19529 $ac_includes_default
19530 # include <wchar.h>
19531 int
19532 main ()
19533 {
19534 mbstate_t x; return sizeof x;
19535 ;
19536 return 0;
19537 }
19538 _ACEOF
19539 if ac_fn_c_try_compile "$LINENO"; then :
19540 ac_cv_type_mbstate_t=yes
19541 else
19542 ac_cv_type_mbstate_t=no
19543 fi
19544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19545 fi
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
19547 $as_echo "$ac_cv_type_mbstate_t" >&6; }
19548 if test $ac_cv_type_mbstate_t = yes; then
19549
19550 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
19551
19552 else
19553
19554 $as_echo "#define mbstate_t int" >>confdefs.h
19555
19556 fi
19557
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
19559 $as_echo_n "checking for C restricted array declarations... " >&6; }
19560 if ${emacs_cv_c_restrict_arr+:} false; then :
19561 $as_echo_n "(cached) " >&6
19562 else
19563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19564 /* end confdefs.h. */
19565 void fred (int x[__restrict]);
19566 int
19567 main ()
19568 {
19569
19570 ;
19571 return 0;
19572 }
19573 _ACEOF
19574 if ac_fn_c_try_compile "$LINENO"; then :
19575 emacs_cv_c_restrict_arr=yes
19576 else
19577 emacs_cv_c_restrict_arr=no
19578 fi
19579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19580 fi
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
19582 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
19583 if test "$emacs_cv_c_restrict_arr" = yes; then
19584
19585 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
19586
19587 fi
19588
19589
19590
19591 # Set up the CFLAGS for real compilation, so we can substitute it.
19592 CFLAGS="$REAL_CFLAGS"
19593 CPPFLAGS="$REAL_CPPFLAGS"
19594
19595 ## Hack to detect a buggy GCC version.
19596 if test "x$GCC" = xyes \
19597 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
19598 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
19599 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
19600 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
19601 fi
19602
19603 version=$PACKAGE_VERSION
19604
19605 ### Specify what sort of things we'll be editing into Makefile and config.h.
19606 ### Use configuration here uncanonicalized to avoid exceeding size limits.
19607
19608
19609 ## Unused?
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
19631 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
19632 ## end of LIBX_BASE, but nothing ever set it.
19633
19634
19635
19636
19637 ## Used in lwlib/Makefile.in.
19638
19639 if test -n "${machfile}"; then
19640 M_FILE="\$(srcdir)/${machfile}"
19641 else
19642 M_FILE=
19643 fi
19644 S_FILE="\$(srcdir)/${opsysfile}"
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655 cat >>confdefs.h <<_ACEOF
19656 #define EMACS_CONFIGURATION "${canonical}"
19657 _ACEOF
19658
19659
19660 cat >>confdefs.h <<_ACEOF
19661 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19662 _ACEOF
19663
19664 if test -n "$machfile"; then
19665
19666 cat >>confdefs.h <<_ACEOF
19667 #define config_machfile "${machfile}"
19668 _ACEOF
19669
19670 fi
19671
19672 cat >>confdefs.h <<_ACEOF
19673 #define config_opsysfile "${opsysfile}"
19674 _ACEOF
19675
19676
19677 XMENU_OBJ=
19678 XOBJ=
19679 FONT_OBJ=
19680 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19681
19682 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
19683
19684 XMENU_OBJ=xmenu.o
19685 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
19686 FONT_OBJ=xfont.o
19687 if test "$HAVE_XFT" = "yes"; then
19688 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
19689 elif test "$HAVE_FREETYPE" = "yes"; then
19690 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
19691 fi
19692
19693 fi
19694
19695
19696
19697
19698 WIDGET_OBJ=
19699 MOTIF_LIBW=
19700 if test "${USE_X_TOOLKIT}" != "none" ; then
19701 WIDGET_OBJ=widget.o
19702
19703 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
19704
19705 if test "${USE_X_TOOLKIT}" = "LUCID"; then
19706
19707 $as_echo "#define USE_LUCID 1" >>confdefs.h
19708
19709 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
19710
19711 $as_echo "#define USE_MOTIF 1" >>confdefs.h
19712
19713 MOTIF_LIBW=-lXm
19714 case "$opsys" in
19715 gnu-linux)
19716 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
19717 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
19718 ;;
19719
19720 unixware)
19721 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
19722 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
19723 MOTIF_LIBW="MOTIF_LIBW -lXimp"
19724 ;;
19725
19726 aix4-2)
19727 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
19728 MOTIF_LIBW="$MOTIF_LIBW -li18n"
19729 ;;
19730 esac
19731 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
19732 fi
19733 fi
19734
19735
19736 TOOLKIT_LIBW=
19737 case "$USE_X_TOOLKIT" in
19738 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
19739 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
19740 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
19741 esac
19742
19743
19744 if test "$USE_X_TOOLKIT" = "none"; then
19745 LIBXT_OTHER="\$(LIBXSM)"
19746 OLDXMENU_TARGET="really-oldXMenu"
19747 else
19748 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
19749 OLDXMENU_TARGET="really-lwlib"
19750 fi
19751
19752
19753 ## The X Menu stuff is present in the X10 distribution, but missing
19754 ## from X11. If we have X10, just use the installed library;
19755 ## otherwise, use our own copy.
19756 if test "${HAVE_X11}" = "yes" ; then
19757
19758 $as_echo "#define HAVE_X11 1" >>confdefs.h
19759
19760
19761 if test "$USE_X_TOOLKIT" = "none"; then
19762 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
19763 else
19764 OLDXMENU="\${lwlibdir}/liblw.a"
19765 fi
19766 LIBXMENU="\$(OLDXMENU)"
19767 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
19768 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
19769 else
19770 ## For a syntactically valid Makefile; not actually used for anything.
19771 ## See comments in src/Makefile.in.
19772 OLDXMENU=nothing
19773 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
19774 if test "${HAVE_X_WINDOWS}" = "yes"; then
19775 LIBXMENU="-lXMenu"
19776 else
19777 LIBXMENU=
19778 fi
19779 LIBX_OTHER=
19780 OLDXMENU_DEPS=
19781 fi
19782
19783 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
19784 OLDXMENU_TARGET=
19785 OLDXMENU=nothing
19786 LIBXMENU=
19787 OLDXMENU_DEPS=
19788 fi
19789
19790
19791
19792
19793
19794
19795
19796 if test "${HAVE_MENUS}" = "yes" ; then
19797
19798 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
19799
19800 fi
19801
19802 if test "${GNU_MALLOC}" = "yes" ; then
19803
19804 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
19805
19806 fi
19807
19808 RALLOC_OBJ=
19809 if test "${REL_ALLOC}" = "yes" ; then
19810
19811 $as_echo "#define REL_ALLOC 1" >>confdefs.h
19812
19813
19814 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
19815 fi
19816
19817
19818 if test "$opsys" = "cygwin"; then
19819 CYGWIN_OBJ="sheap.o"
19820 ## Cygwin differs because of its unexec().
19821 PRE_ALLOC_OBJ=
19822 POST_ALLOC_OBJ=lastfile.o
19823 else
19824 CYGWIN_OBJ=
19825 PRE_ALLOC_OBJ=lastfile.o
19826 POST_ALLOC_OBJ=
19827 fi
19828
19829
19830
19831
19832
19833 case "$opsys" in
19834 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
19835
19836 darwin)
19837 ## The -headerpad option tells ld (see man page) to leave room at the
19838 ## end of the header for adding load commands. Needed for dumping.
19839 ## 0x690 is the total size of 30 segment load commands (at 56
19840 ## each); under Cocoa 31 commands are required.
19841 if test "$HAVE_NS" = "yes"; then
19842 libs_nsgui="-framework AppKit"
19843 headerpad_extra=6C8
19844 else
19845 libs_nsgui=
19846 headerpad_extra=690
19847 fi
19848 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19849
19850 ## This is here because src/Makefile.in did some extra fiddling around
19851 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19852 ## #ifndef LD_SWITCH_SYSTEM
19853 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19854 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19855 ## not using gcc, darwin system not on an alpha (ie darwin, since
19856 ## darwin + alpha does not occur).
19857 ## Because this was done in src/Makefile.in, the resulting part of
19858 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19859 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19860 ## rather than LD_SWITCH_SYSTEM.
19861 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19862 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
19863 ;;
19864
19865 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19866 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19867 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19868 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19869 ## had different values in configure (in ac_link) and src/Makefile.in.
19870 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19871 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
19872
19873 *) LD_SWITCH_SYSTEM_TEMACS= ;;
19874 esac
19875
19876 if test "$NS_IMPL_GNUSTEP" = "yes"; then
19877 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19878 fi
19879
19880
19881
19882
19883 LD_FIRSTFLAG=
19884 ORDINARY_LINK=
19885 case "$opsys" in
19886 ## gnu: GNU needs its own crt0.
19887 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
19888
19889 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19890 ## library search parth, i.e. it won't search /usr/lib for libc and
19891 ## friends. Using -nostartfiles instead avoids this problem, and
19892 ## will also work on earlier NetBSD releases.
19893 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
19894
19895 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19896 ## MkLinux/LinuxPPC needs this.
19897 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19898 gnu-*)
19899 case "$machine" in
19900 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
19901 esac
19902 ;;
19903 esac
19904
19905
19906 if test "x$ORDINARY_LINK" = "xyes"; then
19907
19908 LD_FIRSTFLAG=""
19909
19910 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19911
19912
19913 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19914 ## freebsd, gnu-* not on macppc|ibms390x.
19915 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19916
19917 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19918 ## places that are difficult to figure out at make time. Fortunately,
19919 ## these same versions allow you to pass arbitrary flags on to the
19920 ## linker, so there is no reason not to use it as a linker.
19921 ##
19922 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19923 ## searching for libraries in its internal directories, so we have to
19924 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19925 LD_FIRSTFLAG="-nostdlib"
19926 fi
19927
19928 ## FIXME? What setting of EDIT_LDFLAGS should this have?
19929 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
19930
19931
19932
19933
19934 ## FIXME? The logic here is not precisely the same as that above.
19935 ## There is no check here for a pre-defined LD_FIRSTFLAG.
19936 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19937 LIB_GCC=
19938 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19939
19940 case "$opsys" in
19941 freebsd|netbsd|openbsd) LIB_GCC= ;;
19942
19943 gnu-*)
19944 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19945 ## build on ARM EABI under GNU/Linux. (Bug#5518)
19946 case $host_cpu in
19947 arm*)
19948 LIB_GCC="-lgcc_s"
19949 ;;
19950 *)
19951 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19952 ## immediately undefine it again and redefine it to empty.
19953 ## Was the C_SWITCH_X_SITE part really necessary?
19954 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19955 LIB_GCC=
19956 ;;
19957 esac
19958 ;;
19959
19960 ## Ask GCC where to find libgcc.a.
19961 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19962 esac
19963 fi
19964
19965
19966 TOOLTIP_SUPPORT=
19967 WINDOW_SUPPORT=
19968 ## If we're using X11/GNUstep, define some consequences.
19969 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
19970
19971 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19972
19973
19974 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19975
19976 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
19977 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
19978
19979 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
19980 test "$HAVE_X_WINDOWS" = "yes" && \
19981 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19982
19983 fi
19984
19985
19986
19987
19988
19989
19990
19991 #### Report on what we decided to do.
19992 #### Report GTK as a toolkit, even if it doesn't use Xt.
19993 #### It makes printing result more understandable as using GTK sets
19994 #### toolkit_scroll_bars to yes by default.
19995 if test "${HAVE_GTK}" = "yes"; then
19996 USE_X_TOOLKIT=GTK
19997 fi
19998
19999 and_machfile=
20000 if test -n "$machfile"; then
20001 and_machfile=" and \`${machfile}'"
20002 fi
20003
20004 echo "
20005 Configured for \`${canonical}'.
20006
20007 Where should the build process find the source code? ${srcdir}
20008 What operating system and machine description files should Emacs use?
20009 \`${opsysfile}'${and_machfile}
20010 What compiler should emacs be built with? ${CC} ${CFLAGS}
20011 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
20012 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
20013 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
20014 What window system should Emacs use? ${window_system}
20015 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
20016
20017 if test -n "${x_includes}"; then
20018 echo " Where do we find X Windows header files? ${x_includes}"
20019 else
20020 echo " Where do we find X Windows header files? Standard dirs"
20021 fi
20022 if test -n "${x_libraries}"; then
20023 echo " Where do we find X Windows libraries? ${x_libraries}"
20024 else
20025 echo " Where do we find X Windows libraries? Standard dirs"
20026 fi
20027
20028 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
20029 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
20030 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
20031 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
20032 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
20033 echo " Does Emacs use -lpng? ${HAVE_PNG}"
20034 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
20035 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
20036
20037 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
20038 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
20039 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
20040 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
20041 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
20042 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
20043
20044 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
20045 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
20046 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
20047 echo " Does Emacs use -lxft? ${HAVE_XFT}"
20048
20049 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
20050 echo
20051
20052 if test $USE_XASSERTS = yes; then
20053 echo " Compiling with asserts turned on."
20054 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
20055 fi
20056
20057 echo
20058
20059 if test "$HAVE_NS" = "yes"; then
20060 echo
20061 echo "You must run \"make install\" in order to test the built application.
20062 The installed application will go to nextstep/Emacs.app and can be
20063 run or moved from there."
20064 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
20065 echo "The application will be fully self-contained."
20066 else
20067 echo "The lisp resources for the application will be installed under ${prefix}.
20068 You may need to run \"make install\" with sudo. The application will fail
20069 to run if these resources are not installed."
20070 fi
20071 echo
20072 fi
20073
20074
20075 # Remove any trailing slashes in these variables.
20076 test "${prefix}" != NONE &&
20077 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
20078 test "${exec_prefix}" != NONE &&
20079 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
20080
20081 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 test/automated/Makefile"
20082
20083
20084 ac_config_commands="$ac_config_commands mkdirs"
20085
20086
20087 ac_config_commands="$ac_config_commands epaths"
20088
20089
20090 ac_config_commands="$ac_config_commands gdbinit"
20091
20092
20093 cat >confcache <<\_ACEOF
20094 # This file is a shell script that caches the results of configure
20095 # tests run on this system so they can be shared between configure
20096 # scripts and configure runs, see configure's option --config-cache.
20097 # It is not useful on other systems. If it contains results you don't
20098 # want to keep, you may remove or edit it.
20099 #
20100 # config.status only pays attention to the cache file if you give it
20101 # the --recheck option to rerun configure.
20102 #
20103 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20104 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20105 # following values.
20106
20107 _ACEOF
20108
20109 # The following way of writing the cache mishandles newlines in values,
20110 # but we know of no workaround that is simple, portable, and efficient.
20111 # So, we kill variables containing newlines.
20112 # Ultrix sh set writes to stderr and can't be redirected directly,
20113 # and sets the high bit in the cache file unless we assign to the vars.
20114 (
20115 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20116 eval ac_val=\$$ac_var
20117 case $ac_val in #(
20118 *${as_nl}*)
20119 case $ac_var in #(
20120 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20121 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20122 esac
20123 case $ac_var in #(
20124 _ | IFS | as_nl) ;; #(
20125 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20126 *) { eval $ac_var=; unset $ac_var;} ;;
20127 esac ;;
20128 esac
20129 done
20130
20131 (set) 2>&1 |
20132 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20133 *${as_nl}ac_space=\ *)
20134 # `set' does not quote correctly, so add quotes: double-quote
20135 # substitution turns \\\\ into \\, and sed turns \\ into \.
20136 sed -n \
20137 "s/'/'\\\\''/g;
20138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20139 ;; #(
20140 *)
20141 # `set' quotes correctly as required by POSIX, so do not add quotes.
20142 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20143 ;;
20144 esac |
20145 sort
20146 ) |
20147 sed '
20148 /^ac_cv_env_/b end
20149 t clear
20150 :clear
20151 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20152 t end
20153 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20154 :end' >>confcache
20155 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20156 if test -w "$cache_file"; then
20157 if test "x$cache_file" != "x/dev/null"; then
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20159 $as_echo "$as_me: updating cache $cache_file" >&6;}
20160 if test ! -f "$cache_file" || test -h "$cache_file"; then
20161 cat confcache >"$cache_file"
20162 else
20163 case $cache_file in #(
20164 */* | ?:*)
20165 mv -f confcache "$cache_file"$$ &&
20166 mv -f "$cache_file"$$ "$cache_file" ;; #(
20167 *)
20168 mv -f confcache "$cache_file" ;;
20169 esac
20170 fi
20171 fi
20172 else
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20174 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20175 fi
20176 fi
20177 rm -f confcache
20178
20179 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20180 # Let make expand exec_prefix.
20181 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20182
20183 DEFS=-DHAVE_CONFIG_H
20184
20185 ac_libobjs=
20186 ac_ltlibobjs=
20187 U=
20188 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20189 # 1. Remove the extension, and $U if already installed.
20190 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20191 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20192 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20193 # will be set to the directory where LIBOBJS objects are built.
20194 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20195 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20196 done
20197 LIBOBJS=$ac_libobjs
20198
20199 LTLIBOBJS=$ac_ltlibobjs
20200
20201
20202 if test -n "$EXEEXT"; then
20203 am__EXEEXT_TRUE=
20204 am__EXEEXT_FALSE='#'
20205 else
20206 am__EXEEXT_TRUE='#'
20207 am__EXEEXT_FALSE=
20208 fi
20209
20210 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20211 as_fn_error $? "conditional \"AMDEP\" was never defined.
20212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20213 fi
20214 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20215 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20217 fi
20218
20219 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
20220 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
20221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20222 fi
20223
20224
20225 gl_libobjs=
20226 gl_ltlibobjs=
20227 if test -n "$gl_LIBOBJS"; then
20228 # Remove the extension.
20229 sed_drop_objext='s/\.o$//;s/\.obj$//'
20230 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20231 gl_libobjs="$gl_libobjs $i.$ac_objext"
20232 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
20233 done
20234 fi
20235 gl_LIBOBJS=$gl_libobjs
20236
20237 gl_LTLIBOBJS=$gl_ltlibobjs
20238
20239
20240
20241 gltests_libobjs=
20242 gltests_ltlibobjs=
20243 if test -n "$gltests_LIBOBJS"; then
20244 # Remove the extension.
20245 sed_drop_objext='s/\.o$//;s/\.obj$//'
20246 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20247 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
20248 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
20249 done
20250 fi
20251 gltests_LIBOBJS=$gltests_libobjs
20252
20253 gltests_LTLIBOBJS=$gltests_ltlibobjs
20254
20255
20256
20257 : "${CONFIG_STATUS=./config.status}"
20258 ac_write_fail=0
20259 ac_clean_files_save=$ac_clean_files
20260 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20262 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20263 as_write_fail=0
20264 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20265 #! $SHELL
20266 # Generated by $as_me.
20267 # Run this file to recreate the current configuration.
20268 # Compiler output produced by configure, useful for debugging
20269 # configure, is in config.log if it exists.
20270
20271 debug=false
20272 ac_cs_recheck=false
20273 ac_cs_silent=false
20274
20275 SHELL=\${CONFIG_SHELL-$SHELL}
20276 export SHELL
20277 _ASEOF
20278 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20279 ## -------------------- ##
20280 ## M4sh Initialization. ##
20281 ## -------------------- ##
20282
20283 # Be more Bourne compatible
20284 DUALCASE=1; export DUALCASE # for MKS sh
20285 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20286 emulate sh
20287 NULLCMD=:
20288 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20289 # is contrary to our usage. Disable this feature.
20290 alias -g '${1+"$@"}'='"$@"'
20291 setopt NO_GLOB_SUBST
20292 else
20293 case `(set -o) 2>/dev/null` in #(
20294 *posix*) :
20295 set -o posix ;; #(
20296 *) :
20297 ;;
20298 esac
20299 fi
20300
20301
20302 as_nl='
20303 '
20304 export as_nl
20305 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20306 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20307 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20308 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20309 # Prefer a ksh shell builtin over an external printf program on Solaris,
20310 # but without wasting forks for bash or zsh.
20311 if test -z "$BASH_VERSION$ZSH_VERSION" \
20312 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20313 as_echo='print -r --'
20314 as_echo_n='print -rn --'
20315 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20316 as_echo='printf %s\n'
20317 as_echo_n='printf %s'
20318 else
20319 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20320 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20321 as_echo_n='/usr/ucb/echo -n'
20322 else
20323 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20324 as_echo_n_body='eval
20325 arg=$1;
20326 case $arg in #(
20327 *"$as_nl"*)
20328 expr "X$arg" : "X\\(.*\\)$as_nl";
20329 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20330 esac;
20331 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20332 '
20333 export as_echo_n_body
20334 as_echo_n='sh -c $as_echo_n_body as_echo'
20335 fi
20336 export as_echo_body
20337 as_echo='sh -c $as_echo_body as_echo'
20338 fi
20339
20340 # The user is always right.
20341 if test "${PATH_SEPARATOR+set}" != set; then
20342 PATH_SEPARATOR=:
20343 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20344 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20345 PATH_SEPARATOR=';'
20346 }
20347 fi
20348
20349
20350 # IFS
20351 # We need space, tab and new line, in precisely that order. Quoting is
20352 # there to prevent editors from complaining about space-tab.
20353 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20354 # splitting by setting IFS to empty value.)
20355 IFS=" "" $as_nl"
20356
20357 # Find who we are. Look in the path if we contain no directory separator.
20358 as_myself=
20359 case $0 in #((
20360 *[\\/]* ) as_myself=$0 ;;
20361 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20362 for as_dir in $PATH
20363 do
20364 IFS=$as_save_IFS
20365 test -z "$as_dir" && as_dir=.
20366 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20367 done
20368 IFS=$as_save_IFS
20369
20370 ;;
20371 esac
20372 # We did not find ourselves, most probably we were run as `sh COMMAND'
20373 # in which case we are not to be found in the path.
20374 if test "x$as_myself" = x; then
20375 as_myself=$0
20376 fi
20377 if test ! -f "$as_myself"; then
20378 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20379 exit 1
20380 fi
20381
20382 # Unset variables that we do not need and which cause bugs (e.g. in
20383 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20384 # suppresses any "Segmentation fault" message there. '((' could
20385 # trigger a bug in pdksh 5.2.14.
20386 for as_var in BASH_ENV ENV MAIL MAILPATH
20387 do eval test x\${$as_var+set} = xset \
20388 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20389 done
20390 PS1='$ '
20391 PS2='> '
20392 PS4='+ '
20393
20394 # NLS nuisances.
20395 LC_ALL=C
20396 export LC_ALL
20397 LANGUAGE=C
20398 export LANGUAGE
20399
20400 # CDPATH.
20401 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20402
20403
20404 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20405 # ----------------------------------------
20406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20408 # script with STATUS, using 1 if that was 0.
20409 as_fn_error ()
20410 {
20411 as_status=$1; test $as_status -eq 0 && as_status=1
20412 if test "$4"; then
20413 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20415 fi
20416 $as_echo "$as_me: error: $2" >&2
20417 as_fn_exit $as_status
20418 } # as_fn_error
20419
20420
20421 # as_fn_set_status STATUS
20422 # -----------------------
20423 # Set $? to STATUS, without forking.
20424 as_fn_set_status ()
20425 {
20426 return $1
20427 } # as_fn_set_status
20428
20429 # as_fn_exit STATUS
20430 # -----------------
20431 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20432 as_fn_exit ()
20433 {
20434 set +e
20435 as_fn_set_status $1
20436 exit $1
20437 } # as_fn_exit
20438
20439 # as_fn_unset VAR
20440 # ---------------
20441 # Portably unset VAR.
20442 as_fn_unset ()
20443 {
20444 { eval $1=; unset $1;}
20445 }
20446 as_unset=as_fn_unset
20447 # as_fn_append VAR VALUE
20448 # ----------------------
20449 # Append the text in VALUE to the end of the definition contained in VAR. Take
20450 # advantage of any shell optimizations that allow amortized linear growth over
20451 # repeated appends, instead of the typical quadratic growth present in naive
20452 # implementations.
20453 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20454 eval 'as_fn_append ()
20455 {
20456 eval $1+=\$2
20457 }'
20458 else
20459 as_fn_append ()
20460 {
20461 eval $1=\$$1\$2
20462 }
20463 fi # as_fn_append
20464
20465 # as_fn_arith ARG...
20466 # ------------------
20467 # Perform arithmetic evaluation on the ARGs, and store the result in the
20468 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20469 # must be portable across $(()) and expr.
20470 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20471 eval 'as_fn_arith ()
20472 {
20473 as_val=$(( $* ))
20474 }'
20475 else
20476 as_fn_arith ()
20477 {
20478 as_val=`expr "$@" || test $? -eq 1`
20479 }
20480 fi # as_fn_arith
20481
20482
20483 if expr a : '\(a\)' >/dev/null 2>&1 &&
20484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20485 as_expr=expr
20486 else
20487 as_expr=false
20488 fi
20489
20490 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20491 as_basename=basename
20492 else
20493 as_basename=false
20494 fi
20495
20496 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20497 as_dirname=dirname
20498 else
20499 as_dirname=false
20500 fi
20501
20502 as_me=`$as_basename -- "$0" ||
20503 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20504 X"$0" : 'X\(//\)$' \| \
20505 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20506 $as_echo X/"$0" |
20507 sed '/^.*\/\([^/][^/]*\)\/*$/{
20508 s//\1/
20509 q
20510 }
20511 /^X\/\(\/\/\)$/{
20512 s//\1/
20513 q
20514 }
20515 /^X\/\(\/\).*/{
20516 s//\1/
20517 q
20518 }
20519 s/.*/./; q'`
20520
20521 # Avoid depending upon Character Ranges.
20522 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20523 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20524 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20525 as_cr_digits='0123456789'
20526 as_cr_alnum=$as_cr_Letters$as_cr_digits
20527
20528 ECHO_C= ECHO_N= ECHO_T=
20529 case `echo -n x` in #(((((
20530 -n*)
20531 case `echo 'xy\c'` in
20532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20533 xy) ECHO_C='\c';;
20534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20535 ECHO_T=' ';;
20536 esac;;
20537 *)
20538 ECHO_N='-n';;
20539 esac
20540
20541 rm -f conf$$ conf$$.exe conf$$.file
20542 if test -d conf$$.dir; then
20543 rm -f conf$$.dir/conf$$.file
20544 else
20545 rm -f conf$$.dir
20546 mkdir conf$$.dir 2>/dev/null
20547 fi
20548 if (echo >conf$$.file) 2>/dev/null; then
20549 if ln -s conf$$.file conf$$ 2>/dev/null; then
20550 as_ln_s='ln -s'
20551 # ... but there are two gotchas:
20552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20554 # In both cases, we have to default to `cp -p'.
20555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20556 as_ln_s='cp -p'
20557 elif ln conf$$.file conf$$ 2>/dev/null; then
20558 as_ln_s=ln
20559 else
20560 as_ln_s='cp -p'
20561 fi
20562 else
20563 as_ln_s='cp -p'
20564 fi
20565 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20566 rmdir conf$$.dir 2>/dev/null
20567
20568
20569 # as_fn_mkdir_p
20570 # -------------
20571 # Create "$as_dir" as a directory, including parents if necessary.
20572 as_fn_mkdir_p ()
20573 {
20574
20575 case $as_dir in #(
20576 -*) as_dir=./$as_dir;;
20577 esac
20578 test -d "$as_dir" || eval $as_mkdir_p || {
20579 as_dirs=
20580 while :; do
20581 case $as_dir in #(
20582 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20583 *) as_qdir=$as_dir;;
20584 esac
20585 as_dirs="'$as_qdir' $as_dirs"
20586 as_dir=`$as_dirname -- "$as_dir" ||
20587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20588 X"$as_dir" : 'X\(//\)[^/]' \| \
20589 X"$as_dir" : 'X\(//\)$' \| \
20590 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20591 $as_echo X"$as_dir" |
20592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20593 s//\1/
20594 q
20595 }
20596 /^X\(\/\/\)[^/].*/{
20597 s//\1/
20598 q
20599 }
20600 /^X\(\/\/\)$/{
20601 s//\1/
20602 q
20603 }
20604 /^X\(\/\).*/{
20605 s//\1/
20606 q
20607 }
20608 s/.*/./; q'`
20609 test -d "$as_dir" && break
20610 done
20611 test -z "$as_dirs" || eval "mkdir $as_dirs"
20612 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20613
20614
20615 } # as_fn_mkdir_p
20616 if mkdir -p . 2>/dev/null; then
20617 as_mkdir_p='mkdir -p "$as_dir"'
20618 else
20619 test -d ./-p && rmdir ./-p
20620 as_mkdir_p=false
20621 fi
20622
20623 if test -x / >/dev/null 2>&1; then
20624 as_test_x='test -x'
20625 else
20626 if ls -dL / >/dev/null 2>&1; then
20627 as_ls_L_option=L
20628 else
20629 as_ls_L_option=
20630 fi
20631 as_test_x='
20632 eval sh -c '\''
20633 if test -d "$1"; then
20634 test -d "$1/.";
20635 else
20636 case $1 in #(
20637 -*)set "./$1";;
20638 esac;
20639 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20640 ???[sx]*):;;*)false;;esac;fi
20641 '\'' sh
20642 '
20643 fi
20644 as_executable_p=$as_test_x
20645
20646 # Sed expression to map a string onto a valid CPP name.
20647 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20648
20649 # Sed expression to map a string onto a valid variable name.
20650 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20651
20652
20653 exec 6>&1
20654 ## ----------------------------------- ##
20655 ## Main body of $CONFIG_STATUS script. ##
20656 ## ----------------------------------- ##
20657 _ASEOF
20658 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20659
20660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20661 # Save the log message, to keep $0 and so on meaningful, and to
20662 # report actual input values of CONFIG_FILES etc. instead of their
20663 # values after options handling.
20664 ac_log="
20665 This file was extended by emacs $as_me 24.0.50, which was
20666 generated by GNU Autoconf 2.68. Invocation command line was
20667
20668 CONFIG_FILES = $CONFIG_FILES
20669 CONFIG_HEADERS = $CONFIG_HEADERS
20670 CONFIG_LINKS = $CONFIG_LINKS
20671 CONFIG_COMMANDS = $CONFIG_COMMANDS
20672 $ $0 $@
20673
20674 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20675 "
20676
20677 _ACEOF
20678
20679 case $ac_config_files in *"
20680 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20681 esac
20682
20683 case $ac_config_headers in *"
20684 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20685 esac
20686
20687
20688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20689 # Files that config.status was made for.
20690 config_files="$ac_config_files"
20691 config_headers="$ac_config_headers"
20692 config_commands="$ac_config_commands"
20693
20694 _ACEOF
20695
20696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20697 ac_cs_usage="\
20698 \`$as_me' instantiates files and other configuration actions
20699 from templates according to the current configuration. Unless the files
20700 and actions are specified as TAGs, all are instantiated by default.
20701
20702 Usage: $0 [OPTION]... [TAG]...
20703
20704 -h, --help print this help, then exit
20705 -V, --version print version number and configuration settings, then exit
20706 --config print configuration, then exit
20707 -q, --quiet, --silent
20708 do not print progress messages
20709 -d, --debug don't remove temporary files
20710 --recheck update $as_me by reconfiguring in the same conditions
20711 --file=FILE[:TEMPLATE]
20712 instantiate the configuration file FILE
20713 --header=FILE[:TEMPLATE]
20714 instantiate the configuration header FILE
20715
20716 Configuration files:
20717 $config_files
20718
20719 Configuration headers:
20720 $config_headers
20721
20722 Configuration commands:
20723 $config_commands
20724
20725 Report bugs to the package provider."
20726
20727 _ACEOF
20728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20729 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20730 ac_cs_version="\\
20731 emacs config.status 24.0.50
20732 configured by $0, generated by GNU Autoconf 2.68,
20733 with options \\"\$ac_cs_config\\"
20734
20735 Copyright (C) 2010 Free Software Foundation, Inc.
20736 This config.status script is free software; the Free Software Foundation
20737 gives unlimited permission to copy, distribute and modify it."
20738
20739 ac_pwd='$ac_pwd'
20740 srcdir='$srcdir'
20741 INSTALL='$INSTALL'
20742 MKDIR_P='$MKDIR_P'
20743 AWK='$AWK'
20744 test -n "\$AWK" || AWK=awk
20745 _ACEOF
20746
20747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20748 # The default lists apply if the user does not specify any file.
20749 ac_need_defaults=:
20750 while test $# != 0
20751 do
20752 case $1 in
20753 --*=?*)
20754 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20755 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20756 ac_shift=:
20757 ;;
20758 --*=)
20759 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20760 ac_optarg=
20761 ac_shift=:
20762 ;;
20763 *)
20764 ac_option=$1
20765 ac_optarg=$2
20766 ac_shift=shift
20767 ;;
20768 esac
20769
20770 case $ac_option in
20771 # Handling of the options.
20772 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20773 ac_cs_recheck=: ;;
20774 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20775 $as_echo "$ac_cs_version"; exit ;;
20776 --config | --confi | --conf | --con | --co | --c )
20777 $as_echo "$ac_cs_config"; exit ;;
20778 --debug | --debu | --deb | --de | --d | -d )
20779 debug=: ;;
20780 --file | --fil | --fi | --f )
20781 $ac_shift
20782 case $ac_optarg in
20783 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20784 '') as_fn_error $? "missing file argument" ;;
20785 esac
20786 as_fn_append CONFIG_FILES " '$ac_optarg'"
20787 ac_need_defaults=false;;
20788 --header | --heade | --head | --hea )
20789 $ac_shift
20790 case $ac_optarg in
20791 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20792 esac
20793 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20794 ac_need_defaults=false;;
20795 --he | --h)
20796 # Conflict between --help and --header
20797 as_fn_error $? "ambiguous option: \`$1'
20798 Try \`$0 --help' for more information.";;
20799 --help | --hel | -h )
20800 $as_echo "$ac_cs_usage"; exit ;;
20801 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20802 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20803 ac_cs_silent=: ;;
20804
20805 # This is an error.
20806 -*) as_fn_error $? "unrecognized option: \`$1'
20807 Try \`$0 --help' for more information." ;;
20808
20809 *) as_fn_append ac_config_targets " $1"
20810 ac_need_defaults=false ;;
20811
20812 esac
20813 shift
20814 done
20815
20816 ac_configure_extra_args=
20817
20818 if $ac_cs_silent; then
20819 exec 6>/dev/null
20820 ac_configure_extra_args="$ac_configure_extra_args --silent"
20821 fi
20822
20823 _ACEOF
20824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20825 if \$ac_cs_recheck; then
20826 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20827 shift
20828 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20829 CONFIG_SHELL='$SHELL'
20830 export CONFIG_SHELL
20831 exec "\$@"
20832 fi
20833
20834 _ACEOF
20835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20836 exec 5>>config.log
20837 {
20838 echo
20839 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20840 ## Running $as_me. ##
20841 _ASBOX
20842 $as_echo "$ac_log"
20843 } >&5
20844
20845 _ACEOF
20846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20847 #
20848 # INIT-COMMANDS
20849 #
20850 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20851 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20852
20853 _ACEOF
20854
20855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20856
20857 # Handling of arguments.
20858 for ac_config_target in $ac_config_targets
20859 do
20860 case $ac_config_target in
20861 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20862 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20863 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20864 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20865 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
20866 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
20867 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
20868 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
20869 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
20870 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
20871 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20872 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
20873 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
20874 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
20875 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
20876 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
20877 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
20878 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
20879
20880 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20881 esac
20882 done
20883
20884
20885 # If the user did not use the arguments to specify the items to instantiate,
20886 # then the envvar interface is used. Set only those that are not.
20887 # We use the long form for the default assignment because of an extremely
20888 # bizarre bug on SunOS 4.1.3.
20889 if $ac_need_defaults; then
20890 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20891 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20892 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20893 fi
20894
20895 # Have a temporary directory for convenience. Make it in the build tree
20896 # simply because there is no reason against having it here, and in addition,
20897 # creating and moving files from /tmp can sometimes cause problems.
20898 # Hook for its removal unless debugging.
20899 # Note that there is a small window in which the directory will not be cleaned:
20900 # after its creation but before its name has been assigned to `$tmp'.
20901 $debug ||
20902 {
20903 tmp= ac_tmp=
20904 trap 'exit_status=$?
20905 : "${ac_tmp:=$tmp}"
20906 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20907 ' 0
20908 trap 'as_fn_exit 1' 1 2 13 15
20909 }
20910 # Create a (secure) tmp directory for tmp files.
20911
20912 {
20913 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20914 test -d "$tmp"
20915 } ||
20916 {
20917 tmp=./conf$$-$RANDOM
20918 (umask 077 && mkdir "$tmp")
20919 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20920 ac_tmp=$tmp
20921
20922 # Set up the scripts for CONFIG_FILES section.
20923 # No need to generate them if there are no CONFIG_FILES.
20924 # This happens for instance with `./config.status config.h'.
20925 if test -n "$CONFIG_FILES"; then
20926
20927 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20928 ac_cs_awk_getline=:
20929 ac_cs_awk_pipe_init=
20930 ac_cs_awk_read_file='
20931 while ((getline aline < (F[key])) > 0)
20932 print(aline)
20933 close(F[key])'
20934 ac_cs_awk_pipe_fini=
20935 else
20936 ac_cs_awk_getline=false
20937 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20938 ac_cs_awk_read_file='
20939 print "|#_!!_#|"
20940 print "cat " F[key] " &&"
20941 '$ac_cs_awk_pipe_init
20942 # The final `:' finishes the AND list.
20943 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20944 fi
20945 ac_cr=`echo X | tr X '\015'`
20946 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20947 # But we know of no other shell where ac_cr would be empty at this
20948 # point, so we can use a bashism as a fallback.
20949 if test "x$ac_cr" = x; then
20950 eval ac_cr=\$\'\\r\'
20951 fi
20952 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20953 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20954 ac_cs_awk_cr='\\r'
20955 else
20956 ac_cs_awk_cr=$ac_cr
20957 fi
20958
20959 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20960 _ACEOF
20961
20962 # Create commands to substitute file output variables.
20963 {
20964 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20965 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20966 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20967 echo "_ACAWK" &&
20968 echo "_ACEOF"
20969 } >conf$$files.sh &&
20970 . ./conf$$files.sh ||
20971 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20972 rm -f conf$$files.sh
20973
20974 {
20975 echo "cat >conf$$subs.awk <<_ACEOF" &&
20976 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20977 echo "_ACEOF"
20978 } >conf$$subs.sh ||
20979 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20980 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20981 ac_delim='%!_!# '
20982 for ac_last_try in false false false false false :; do
20983 . ./conf$$subs.sh ||
20984 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20985
20986 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20987 if test $ac_delim_n = $ac_delim_num; then
20988 break
20989 elif $ac_last_try; then
20990 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20991 else
20992 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20993 fi
20994 done
20995 rm -f conf$$subs.sh
20996
20997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20998 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20999 _ACEOF
21000 sed -n '
21001 h
21002 s/^/S["/; s/!.*/"]=/
21003 p
21004 g
21005 s/^[^!]*!//
21006 :repl
21007 t repl
21008 s/'"$ac_delim"'$//
21009 t delim
21010 :nl
21011 h
21012 s/\(.\{148\}\)..*/\1/
21013 t more1
21014 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21015 p
21016 n
21017 b repl
21018 :more1
21019 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21020 p
21021 g
21022 s/.\{148\}//
21023 t nl
21024 :delim
21025 h
21026 s/\(.\{148\}\)..*/\1/
21027 t more2
21028 s/["\\]/\\&/g; s/^/"/; s/$/"/
21029 p
21030 b
21031 :more2
21032 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21033 p
21034 g
21035 s/.\{148\}//
21036 t delim
21037 ' <conf$$subs.awk | sed '
21038 /^[^""]/{
21039 N
21040 s/\n//
21041 }
21042 ' >>$CONFIG_STATUS || ac_write_fail=1
21043 rm -f conf$$subs.awk
21044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21045 _ACAWK
21046 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21047 for (key in S) S_is_set[key] = 1
21048 FS = "\a"
21049 \$ac_cs_awk_pipe_init
21050 }
21051 {
21052 line = $ 0
21053 nfields = split(line, field, "@")
21054 substed = 0
21055 len = length(field[1])
21056 for (i = 2; i < nfields; i++) {
21057 key = field[i]
21058 keylen = length(key)
21059 if (S_is_set[key]) {
21060 value = S[key]
21061 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21062 len += length(value) + length(field[++i])
21063 substed = 1
21064 } else
21065 len += 1 + keylen
21066 }
21067 if (nfields == 3 && !substed) {
21068 key = field[2]
21069 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
21070 \$ac_cs_awk_read_file
21071 next
21072 }
21073 }
21074 print line
21075 }
21076 \$ac_cs_awk_pipe_fini
21077 _ACAWK
21078 _ACEOF
21079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21080 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21081 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21082 else
21083 cat
21084 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21085 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21086 _ACEOF
21087
21088 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21089 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21090 # trailing colons and then remove the whole line if VPATH becomes empty
21091 # (actually we leave an empty line to preserve line numbers).
21092 if test "x$srcdir" = x.; then
21093 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21094 h
21095 s///
21096 s/^/:/
21097 s/[ ]*$/:/
21098 s/:\$(srcdir):/:/g
21099 s/:\${srcdir}:/:/g
21100 s/:@srcdir@:/:/g
21101 s/^:*//
21102 s/:*$//
21103 x
21104 s/\(=[ ]*\).*/\1/
21105 G
21106 s/\n//
21107 s/^[^=]*=[ ]*$//
21108 }'
21109 fi
21110
21111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21112 fi # test -n "$CONFIG_FILES"
21113
21114 # Set up the scripts for CONFIG_HEADERS section.
21115 # No need to generate them if there are no CONFIG_HEADERS.
21116 # This happens for instance with `./config.status Makefile'.
21117 if test -n "$CONFIG_HEADERS"; then
21118 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21119 BEGIN {
21120 _ACEOF
21121
21122 # Transform confdefs.h into an awk script `defines.awk', embedded as
21123 # here-document in config.status, that substitutes the proper values into
21124 # config.h.in to produce config.h.
21125
21126 # Create a delimiter string that does not exist in confdefs.h, to ease
21127 # handling of long lines.
21128 ac_delim='%!_!# '
21129 for ac_last_try in false false :; do
21130 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21131 if test -z "$ac_tt"; then
21132 break
21133 elif $ac_last_try; then
21134 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21135 else
21136 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21137 fi
21138 done
21139
21140 # For the awk script, D is an array of macro values keyed by name,
21141 # likewise P contains macro parameters if any. Preserve backslash
21142 # newline sequences.
21143
21144 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21145 sed -n '
21146 s/.\{148\}/&'"$ac_delim"'/g
21147 t rset
21148 :rset
21149 s/^[ ]*#[ ]*define[ ][ ]*/ /
21150 t def
21151 d
21152 :def
21153 s/\\$//
21154 t bsnl
21155 s/["\\]/\\&/g
21156 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21157 D["\1"]=" \3"/p
21158 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21159 d
21160 :bsnl
21161 s/["\\]/\\&/g
21162 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21163 D["\1"]=" \3\\\\\\n"\\/p
21164 t cont
21165 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21166 t cont
21167 d
21168 :cont
21169 n
21170 s/.\{148\}/&'"$ac_delim"'/g
21171 t clear
21172 :clear
21173 s/\\$//
21174 t bsnlc
21175 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21176 d
21177 :bsnlc
21178 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21179 b cont
21180 ' <confdefs.h | sed '
21181 s/'"$ac_delim"'/"\\\
21182 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21183
21184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21185 for (key in D) D_is_set[key] = 1
21186 FS = "\a"
21187 }
21188 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21189 line = \$ 0
21190 split(line, arg, " ")
21191 if (arg[1] == "#") {
21192 defundef = arg[2]
21193 mac1 = arg[3]
21194 } else {
21195 defundef = substr(arg[1], 2)
21196 mac1 = arg[2]
21197 }
21198 split(mac1, mac2, "(") #)
21199 macro = mac2[1]
21200 prefix = substr(line, 1, index(line, defundef) - 1)
21201 if (D_is_set[macro]) {
21202 # Preserve the white space surrounding the "#".
21203 print prefix "define", macro P[macro] D[macro]
21204 next
21205 } else {
21206 # Replace #undef with comments. This is necessary, for example,
21207 # in the case of _POSIX_SOURCE, which is predefined and required
21208 # on some systems where configure will not decide to define it.
21209 if (defundef == "undef") {
21210 print "/*", prefix defundef, macro, "*/"
21211 next
21212 }
21213 }
21214 }
21215 { print }
21216 _ACAWK
21217 _ACEOF
21218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21219 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21220 fi # test -n "$CONFIG_HEADERS"
21221
21222
21223 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21224 shift
21225 for ac_tag
21226 do
21227 case $ac_tag in
21228 :[FHLC]) ac_mode=$ac_tag; continue;;
21229 esac
21230 case $ac_mode$ac_tag in
21231 :[FHL]*:*);;
21232 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21233 :[FH]-) ac_tag=-:-;;
21234 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21235 esac
21236 ac_save_IFS=$IFS
21237 IFS=:
21238 set x $ac_tag
21239 IFS=$ac_save_IFS
21240 shift
21241 ac_file=$1
21242 shift
21243
21244 case $ac_mode in
21245 :L) ac_source=$1;;
21246 :[FH])
21247 ac_file_inputs=
21248 for ac_f
21249 do
21250 case $ac_f in
21251 -) ac_f="$ac_tmp/stdin";;
21252 *) # Look for the file first in the build tree, then in the source tree
21253 # (if the path is not absolute). The absolute path cannot be DOS-style,
21254 # because $ac_f cannot contain `:'.
21255 test -f "$ac_f" ||
21256 case $ac_f in
21257 [\\/$]*) false;;
21258 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21259 esac ||
21260 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21261 esac
21262 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21263 as_fn_append ac_file_inputs " '$ac_f'"
21264 done
21265
21266 # Let's still pretend it is `configure' which instantiates (i.e., don't
21267 # use $as_me), people would be surprised to read:
21268 # /* config.h. Generated by config.status. */
21269 configure_input='Generated from '`
21270 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21271 `' by configure.'
21272 if test x"$ac_file" != x-; then
21273 configure_input="$ac_file. $configure_input"
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21275 $as_echo "$as_me: creating $ac_file" >&6;}
21276 fi
21277 # Neutralize special characters interpreted by sed in replacement strings.
21278 case $configure_input in #(
21279 *\&* | *\|* | *\\* )
21280 ac_sed_conf_input=`$as_echo "$configure_input" |
21281 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21282 *) ac_sed_conf_input=$configure_input;;
21283 esac
21284
21285 case $ac_tag in
21286 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21288 esac
21289 ;;
21290 esac
21291
21292 ac_dir=`$as_dirname -- "$ac_file" ||
21293 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21294 X"$ac_file" : 'X\(//\)[^/]' \| \
21295 X"$ac_file" : 'X\(//\)$' \| \
21296 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21297 $as_echo X"$ac_file" |
21298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21299 s//\1/
21300 q
21301 }
21302 /^X\(\/\/\)[^/].*/{
21303 s//\1/
21304 q
21305 }
21306 /^X\(\/\/\)$/{
21307 s//\1/
21308 q
21309 }
21310 /^X\(\/\).*/{
21311 s//\1/
21312 q
21313 }
21314 s/.*/./; q'`
21315 as_dir="$ac_dir"; as_fn_mkdir_p
21316 ac_builddir=.
21317
21318 case "$ac_dir" in
21319 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21320 *)
21321 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21322 # A ".." for each directory in $ac_dir_suffix.
21323 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21324 case $ac_top_builddir_sub in
21325 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21326 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21327 esac ;;
21328 esac
21329 ac_abs_top_builddir=$ac_pwd
21330 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21331 # for backward compatibility:
21332 ac_top_builddir=$ac_top_build_prefix
21333
21334 case $srcdir in
21335 .) # We are building in place.
21336 ac_srcdir=.
21337 ac_top_srcdir=$ac_top_builddir_sub
21338 ac_abs_top_srcdir=$ac_pwd ;;
21339 [\\/]* | ?:[\\/]* ) # Absolute name.
21340 ac_srcdir=$srcdir$ac_dir_suffix;
21341 ac_top_srcdir=$srcdir
21342 ac_abs_top_srcdir=$srcdir ;;
21343 *) # Relative name.
21344 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21345 ac_top_srcdir=$ac_top_build_prefix$srcdir
21346 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21347 esac
21348 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21349
21350
21351 case $ac_mode in
21352 :F)
21353 #
21354 # CONFIG_FILE
21355 #
21356
21357 case $INSTALL in
21358 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21359 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21360 esac
21361 ac_MKDIR_P=$MKDIR_P
21362 case $MKDIR_P in
21363 [\\/$]* | ?:[\\/]* ) ;;
21364 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21365 esac
21366 _ACEOF
21367
21368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21369 # If the template does not know about datarootdir, expand it.
21370 # FIXME: This hack should be removed a few years after 2.60.
21371 ac_datarootdir_hack=; ac_datarootdir_seen=
21372 ac_sed_dataroot='
21373 /datarootdir/ {
21374 p
21375 q
21376 }
21377 /@datadir@/p
21378 /@docdir@/p
21379 /@infodir@/p
21380 /@localedir@/p
21381 /@mandir@/p'
21382 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21383 *datarootdir*) ac_datarootdir_seen=yes;;
21384 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21386 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21387 _ACEOF
21388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21389 ac_datarootdir_hack='
21390 s&@datadir@&$datadir&g
21391 s&@docdir@&$docdir&g
21392 s&@infodir@&$infodir&g
21393 s&@localedir@&$localedir&g
21394 s&@mandir@&$mandir&g
21395 s&\\\${datarootdir}&$datarootdir&g' ;;
21396 esac
21397 _ACEOF
21398
21399 # Neutralize VPATH when `$srcdir' = `.'.
21400 # Shell code in configure.ac might set extrasub.
21401 # FIXME: do we really want to maintain this feature?
21402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21403 ac_sed_extra="$ac_vpsub
21404 $extrasub
21405 _ACEOF
21406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21407 :t
21408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21409 s|@configure_input@|$ac_sed_conf_input|;t t
21410 s&@top_builddir@&$ac_top_builddir_sub&;t t
21411 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21412 s&@srcdir@&$ac_srcdir&;t t
21413 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21414 s&@top_srcdir@&$ac_top_srcdir&;t t
21415 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21416 s&@builddir@&$ac_builddir&;t t
21417 s&@abs_builddir@&$ac_abs_builddir&;t t
21418 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21419 s&@INSTALL@&$ac_INSTALL&;t t
21420 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21421 $ac_datarootdir_hack
21422 "
21423 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21424 if $ac_cs_awk_getline; then
21425 $AWK -f "$ac_tmp/subs.awk"
21426 else
21427 $AWK -f "$ac_tmp/subs.awk" | $SHELL
21428 fi \
21429 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21430
21431 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21432 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21433 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21434 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21436 which seems to be undefined. Please make sure it is defined" >&5
21437 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21438 which seems to be undefined. Please make sure it is defined" >&2;}
21439
21440 rm -f "$ac_tmp/stdin"
21441 case $ac_file in
21442 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21443 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21444 esac \
21445 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21446 ;;
21447 :H)
21448 #
21449 # CONFIG_HEADER
21450 #
21451 if test x"$ac_file" != x-; then
21452 {
21453 $as_echo "/* $configure_input */" \
21454 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21455 } >"$ac_tmp/config.h" \
21456 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21457 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21459 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21460 else
21461 rm -f "$ac_file"
21462 mv "$ac_tmp/config.h" "$ac_file" \
21463 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21464 fi
21465 else
21466 $as_echo "/* $configure_input */" \
21467 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21468 || as_fn_error $? "could not create -" "$LINENO" 5
21469 fi
21470 # Compute "$ac_file"'s index in $config_headers.
21471 _am_arg="$ac_file"
21472 _am_stamp_count=1
21473 for _am_header in $config_headers :; do
21474 case $_am_header in
21475 $_am_arg | $_am_arg:* )
21476 break ;;
21477 * )
21478 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21479 esac
21480 done
21481 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21482 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21483 X"$_am_arg" : 'X\(//\)[^/]' \| \
21484 X"$_am_arg" : 'X\(//\)$' \| \
21485 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21486 $as_echo X"$_am_arg" |
21487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21488 s//\1/
21489 q
21490 }
21491 /^X\(\/\/\)[^/].*/{
21492 s//\1/
21493 q
21494 }
21495 /^X\(\/\/\)$/{
21496 s//\1/
21497 q
21498 }
21499 /^X\(\/\).*/{
21500 s//\1/
21501 q
21502 }
21503 s/.*/./; q'`/stamp-h$_am_stamp_count
21504 ;;
21505
21506 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21507 $as_echo "$as_me: executing $ac_file commands" >&6;}
21508 ;;
21509 esac
21510
21511
21512 case $ac_file$ac_mode in
21513 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21514 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21515 # are listed without --file. Let's play safe and only enable the eval
21516 # if we detect the quoting.
21517 case $CONFIG_FILES in
21518 *\'*) eval set x "$CONFIG_FILES" ;;
21519 *) set x $CONFIG_FILES ;;
21520 esac
21521 shift
21522 for mf
21523 do
21524 # Strip MF so we end up with the name of the file.
21525 mf=`echo "$mf" | sed -e 's/:.*$//'`
21526 # Check whether this is an Automake generated Makefile or not.
21527 # We used to match only the files named `Makefile.in', but
21528 # some people rename them; so instead we look at the file content.
21529 # Grep'ing the first line is not enough: some people post-process
21530 # each Makefile.in and add a new line on top of each file to say so.
21531 # Grep'ing the whole file is not good either: AIX grep has a line
21532 # limit of 2048, but all sed's we know have understand at least 4000.
21533 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21534 dirpart=`$as_dirname -- "$mf" ||
21535 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21536 X"$mf" : 'X\(//\)[^/]' \| \
21537 X"$mf" : 'X\(//\)$' \| \
21538 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21539 $as_echo X"$mf" |
21540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21541 s//\1/
21542 q
21543 }
21544 /^X\(\/\/\)[^/].*/{
21545 s//\1/
21546 q
21547 }
21548 /^X\(\/\/\)$/{
21549 s//\1/
21550 q
21551 }
21552 /^X\(\/\).*/{
21553 s//\1/
21554 q
21555 }
21556 s/.*/./; q'`
21557 else
21558 continue
21559 fi
21560 # Extract the definition of DEPDIR, am__include, and am__quote
21561 # from the Makefile without running `make'.
21562 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21563 test -z "$DEPDIR" && continue
21564 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21565 test -z "am__include" && continue
21566 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21567 # When using ansi2knr, U may be empty or an underscore; expand it
21568 U=`sed -n 's/^U = //p' < "$mf"`
21569 # Find all dependency output files, they are included files with
21570 # $(DEPDIR) in their names. We invoke sed twice because it is the
21571 # simplest approach to changing $(DEPDIR) to its actual value in the
21572 # expansion.
21573 for file in `sed -n "
21574 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21575 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21576 # Make sure the directory exists.
21577 test -f "$dirpart/$file" && continue
21578 fdir=`$as_dirname -- "$file" ||
21579 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21580 X"$file" : 'X\(//\)[^/]' \| \
21581 X"$file" : 'X\(//\)$' \| \
21582 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21583 $as_echo X"$file" |
21584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21585 s//\1/
21586 q
21587 }
21588 /^X\(\/\/\)[^/].*/{
21589 s//\1/
21590 q
21591 }
21592 /^X\(\/\/\)$/{
21593 s//\1/
21594 q
21595 }
21596 /^X\(\/\).*/{
21597 s//\1/
21598 q
21599 }
21600 s/.*/./; q'`
21601 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21602 # echo "creating $dirpart/$file"
21603 echo '# dummy' > "$dirpart/$file"
21604 done
21605 done
21606 }
21607 ;;
21608 "mkdirs":C)
21609 for dir in etc lisp ; do
21610 test -d ${dir} || mkdir ${dir}
21611 done
21612 ;;
21613 "epaths":C)
21614 echo creating src/epaths.h
21615 ${MAKE-make} epaths-force
21616 ;;
21617 "gdbinit":C)
21618 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
21619 echo creating src/.gdbinit
21620 echo source $srcdir/src/.gdbinit > src/.gdbinit
21621 fi
21622 ;;
21623
21624 esac
21625 done # for ac_tag
21626
21627
21628 as_fn_exit 0
21629 _ACEOF
21630 ac_clean_files=$ac_clean_files_save
21631
21632 test $ac_write_fail = 0 ||
21633 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21634
21635
21636 # configure is writing to config.log, and then calls config.status.
21637 # config.status does its own redirection, appending to config.log.
21638 # Unfortunately, on DOS this fails, as config.log is still kept open
21639 # by configure, so config.status won't be able to write to it; its
21640 # output is simply discarded. So we exec the FD to /dev/null,
21641 # effectively closing config.log, so it can be properly (re)opened and
21642 # appended to by config.status. When coming back to configure, we
21643 # need to make the FD available again.
21644 if test "$no_create" != yes; then
21645 ac_cs_success=:
21646 ac_config_status_args=
21647 test "$silent" = yes &&
21648 ac_config_status_args="$ac_config_status_args --quiet"
21649 exec 5>/dev/null
21650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21651 exec 5>>config.log
21652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21653 # would make configure fail if this is the last instruction.
21654 $ac_cs_success || as_fn_exit 1
21655 fi
21656 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21658 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21659 fi
21660
21661