Regenerated.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_config_libobj_dir=src
595 ac_header_list=
596 ac_func_list=
597 ac_subst_vars='LTLIBOBJS
598 WINDOW_SUPPORT
599 TOOLTIP_SUPPORT
600 MOUSE_SUPPORT
601 LIB_GCC
602 LD_FIRSTFLAG
603 LD_SWITCH_SYSTEM_TEMACS
604 POST_ALLOC_OBJ
605 PRE_ALLOC_OBJ
606 CYGWIN_OBJ
607 RALLOC_OBJ
608 OLDXMENU_DEPS
609 LIBX_OTHER
610 LIBXMENU
611 OLDXMENU
612 OLDXMENU_TARGET
613 LIBXT_OTHER
614 TOOLKIT_LIBW
615 WIDGET_OBJ
616 XOBJ
617 XMENU_OBJ
618 FONT_OBJ
619 OTHER_FILES
620 GNU_OBJC_CFLAGS
621 ns_appsrc
622 ns_appresdir
623 ns_appbindir
624 ns_appdir
625 opsysfile
626 machfile
627 X_TOOLKIT_TYPE
628 C_SWITCH_X_SYSTEM
629 C_SWITCH_X_SITE
630 LD_SWITCH_X_SITE
631 gameuser
632 gamedir
633 bitmapdir
634 archlibdir
635 etcdir
636 x_default_search_path
637 lisppath
638 locallisppath
639 lispdir
640 srcdir
641 canonical
642 configuration
643 version
644 KRB4LIB
645 DESLIB
646 KRB5LIB
647 CRYPTOLIB
648 COM_ERRLIB
649 LIBRESOLV
650 LIBHESIOD
651 TERMCAP_OBJ
652 LIBS_TERMCAP
653 GETOPTOBJS
654 GETOPT_H
655 GETLOADAVG_LIBS
656 KMEM_GROUP
657 NEED_SETGID
658 LIBOBJS
659 BLESSMAIL_TARGET
660 LIBS_MAIL
661 liblockfile
662 ALLOCA
663 LIBXML2_LIBS
664 LIBXML2_CFLAGS
665 LIBXSM
666 LIBGPM
667 LIBGIF
668 LIBTIFF
669 LIBPNG
670 LIBJPEG
671 LIBXPM
672 FREETYPE_LIBS
673 FREETYPE_CFLAGS
674 M17N_FLT_LIBS
675 M17N_FLT_CFLAGS
676 LIBOTF_LIBS
677 LIBOTF_CFLAGS
678 XFT_LIBS
679 XFT_CFLAGS
680 FONTCONFIG_LIBS
681 FONTCONFIG_CFLAGS
682 LIBXMU
683 LIBXTR6
684 LIBGNUTLS_LIBS
685 LIBGNUTLS_CFLAGS
686 LIBSELINUX_LIBS
687 GCONF_LIBS
688 GCONF_CFLAGS
689 DBUS_OBJ
690 DBUS_LIBS
691 DBUS_CFLAGS
692 GTK_OBJ
693 GTK_LIBS
694 GTK_CFLAGS
695 IMAGEMAGICK_LIBS
696 IMAGEMAGICK_CFLAGS
697 RSVG_LIBS
698 RSVG_CFLAGS
699 VMLIMIT_OBJ
700 GMALLOC_OBJ
701 HAVE_XSERVER
702 LIB_STANDARD
703 NS_SUPPORT
704 NS_OBJ
705 TEMACS_LDFLAGS2
706 LD_SWITCH_X_SITE_AUX_RPATH
707 LD_SWITCH_X_SITE_AUX
708 XMKMF
709 DEPFLAGS
710 MKDEPDIR
711 SET_MAKE
712 CFLAGS_SOUND
713 ALSA_LIBS
714 ALSA_CFLAGS
715 PKG_CONFIG
716 LIBSOUND
717 START_FILES
718 LIB_MATH
719 CRT_DIR
720 LIBS_SYSTEM
721 C_SWITCH_SYSTEM
722 UNEXEC_OBJ
723 C_SWITCH_MACHINE
724 LD_SWITCH_SYSTEM
725 CANNOT_DUMP
726 MAKEINFO
727 GZIP_PROG
728 INSTALL_INFO
729 RANLIB
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 C_WARNINGS_SWITCH
734 EGREP
735 GREP
736 CPP
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
743 CC
744 host_os
745 host_vendor
746 host_cpu
747 host
748 build_os
749 build_vendor
750 build_cpu
751 build
752 PROFILING_CFLAGS
753 MAINT
754 GZIP_INFO
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL'
793 ac_subst_files='deps_frag
794 ns_frag'
795 ac_user_opts='
796 enable_option_checking
797 with_pop
798 with_kerberos
799 with_kerberos5
800 with_hesiod
801 with_mmdf
802 with_mail_unlink
803 with_mailhost
804 with_sound
805 with_sync_input
806 with_x_toolkit
807 with_xpm
808 with_jpeg
809 with_tiff
810 with_gif
811 with_png
812 with_rsvg
813 with_xml2
814 with_imagemagick
815 with_xft
816 with_libotf
817 with_m17n_flt
818 with_toolkit_scroll_bars
819 with_xaw3d
820 with_xim
821 with_ns
822 with_gpm
823 with_dbus
824 with_gconf
825 with_selinux
826 with_gnutls
827 with_makeinfo
828 with_compress_info
829 with_pkg_config_prog
830 with_crt_dir
831 with_gnustep_conf
832 enable_ns_self_contained
833 enable_asserts
834 enable_maintainer_mode
835 enable_locallisppath
836 enable_checking
837 enable_use_lisp_union_type
838 enable_profiling
839 enable_autodepend
840 enable_largefile
841 with_x
842 '
843 ac_precious_vars='build_alias
844 host_alias
845 target_alias
846 CC
847 CFLAGS
848 LDFLAGS
849 LIBS
850 CPPFLAGS
851 CPP
852 XMKMF'
853
854
855 # Initialize some variables set by options.
856 ac_init_help=
857 ac_init_version=false
858 ac_unrecognized_opts=
859 ac_unrecognized_sep=
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
862 cache_file=/dev/null
863 exec_prefix=NONE
864 no_create=
865 no_recursion=
866 prefix=NONE
867 program_prefix=NONE
868 program_suffix=NONE
869 program_transform_name=s,x,x,
870 silent=
871 site=
872 srcdir=
873 verbose=
874 x_includes=NONE
875 x_libraries=NONE
876
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
894 infodir='${datarootdir}/info'
895 htmldir='${docdir}'
896 dvidir='${docdir}'
897 pdfdir='${docdir}'
898 psdir='${docdir}'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
902
903 ac_prev=
904 ac_dashdash=
905 for ac_option
906 do
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
910 ac_prev=
911 continue
912 fi
913
914 case $ac_option in
915 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916 *) ac_optarg=yes ;;
917 esac
918
919 # Accept the important Cygnus configure options, so we can diagnose typos.
920
921 case $ac_dashdash$ac_option in
922 --)
923 ac_dashdash=yes ;;
924
925 -bindir | --bindir | --bindi | --bind | --bin | --bi)
926 ac_prev=bindir ;;
927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928 bindir=$ac_optarg ;;
929
930 -build | --build | --buil | --bui | --bu)
931 ac_prev=build_alias ;;
932 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933 build_alias=$ac_optarg ;;
934
935 -cache-file | --cache-file | --cache-fil | --cache-fi \
936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937 ac_prev=cache_file ;;
938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940 cache_file=$ac_optarg ;;
941
942 --config-cache | -C)
943 cache_file=config.cache ;;
944
945 -datadir | --datadir | --datadi | --datad)
946 ac_prev=datadir ;;
947 -datadir=* | --datadir=* | --datadi=* | --datad=*)
948 datadir=$ac_optarg ;;
949
950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951 | --dataroo | --dataro | --datar)
952 ac_prev=datarootdir ;;
953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955 datarootdir=$ac_optarg ;;
956
957 -disable-* | --disable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
965 *"
966 "enable_$ac_useropt"
967 "*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=no ;;
972
973 -docdir | --docdir | --docdi | --doc | --do)
974 ac_prev=docdir ;;
975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976 docdir=$ac_optarg ;;
977
978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979 ac_prev=dvidir ;;
980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981 dvidir=$ac_optarg ;;
982
983 -enable-* | --enable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error "invalid feature name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992 "enable_$ac_useropt"
993 "*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=\$ac_optarg ;;
998
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
1006 exec_prefix=$ac_optarg ;;
1007
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1010 with_gas=yes ;;
1011
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
1018
1019 -host | --host | --hos | --ho)
1020 ac_prev=host_alias ;;
1021 -host=* | --host=* | --hos=* | --ho=*)
1022 host_alias=$ac_optarg ;;
1023
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025 ac_prev=htmldir ;;
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027 | --ht=*)
1028 htmldir=$ac_optarg ;;
1029
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
1035 includedir=$ac_optarg ;;
1036
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1038 ac_prev=infodir ;;
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040 infodir=$ac_optarg ;;
1041
1042 -libdir | --libdir | --libdi | --libd)
1043 ac_prev=libdir ;;
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045 libdir=$ac_optarg ;;
1046
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
1052 libexecdir=$ac_optarg ;;
1053
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1058
1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
1060 | --localstate | --localstat | --localsta | --localst | --locals)
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064 localstatedir=$ac_optarg ;;
1065
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067 ac_prev=mandir ;;
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069 mandir=$ac_optarg ;;
1070
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1073 with_fp=no ;;
1074
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076 | --no-cr | --no-c | -n)
1077 no_create=yes ;;
1078
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081 no_recursion=yes ;;
1082
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090 oldincludedir=$ac_optarg ;;
1091
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093 ac_prev=prefix ;;
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095 prefix=$ac_optarg ;;
1096
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102 program_prefix=$ac_optarg ;;
1103
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109 program_suffix=$ac_optarg ;;
1110
1111 -program-transform-name | --program-transform-name \
1112 | --program-transform-nam | --program-transform-na \
1113 | --program-transform-n | --program-transform- \
1114 | --program-transform | --program-transfor \
1115 | --program-transfo | --program-transf \
1116 | --program-trans | --program-tran \
1117 | --progr-tra | --program-tr | --program-t)
1118 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
1126 program_transform_name=$ac_optarg ;;
1127
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129 ac_prev=pdfdir ;;
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1132
1133 -psdir | --psdir | --psdi | --psd | --ps)
1134 ac_prev=psdir ;;
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136 psdir=$ac_optarg ;;
1137
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1140 silent=yes ;;
1141
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143 ac_prev=sbindir ;;
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145 | --sbi=* | --sb=*)
1146 sbindir=$ac_optarg ;;
1147
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1151 | --sha | --sh)
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156 | --sha=* | --sh=*)
1157 sharedstatedir=$ac_optarg ;;
1158
1159 -site | --site | --sit)
1160 ac_prev=site ;;
1161 -site=* | --site=* | --sit=*)
1162 site=$ac_optarg ;;
1163
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165 ac_prev=srcdir ;;
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1168
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1175
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1180
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182 verbose=yes ;;
1183
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1186
1187 -with-* | --with-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196 "with_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=\$ac_optarg ;;
1202
1203 -without-* | --without-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=no ;;
1218
1219 --x)
1220 # Obsolete; use --with-x.
1221 with_x=yes ;;
1222
1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224 | --x-incl | --x-inc | --x-in | --x-i)
1225 ac_prev=x_includes ;;
1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228 x_includes=$ac_optarg ;;
1229
1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232 ac_prev=x_libraries ;;
1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235 x_libraries=$ac_optarg ;;
1236
1237 -*) as_fn_error "unrecognized option: \`$ac_option'
1238 Try \`$0 --help' for more information."
1239 ;;
1240
1241 *=*)
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 case $ac_envvar in #(
1245 '' | [0-9]* | *[!_$as_cr_alnum]* )
1246 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1247 esac
1248 eval $ac_envvar=\$ac_optarg
1249 export $ac_envvar ;;
1250
1251 *)
1252 # FIXME: should be removed in autoconf 3.0.
1253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1257 ;;
1258
1259 esac
1260 done
1261
1262 if test -n "$ac_prev"; then
1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264 as_fn_error "missing argument to $ac_option"
1265 fi
1266
1267 if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1269 no) ;;
1270 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272 esac
1273 fi
1274
1275 # Check all directory arguments for consistency.
1276 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir
1280 do
1281 eval ac_val=\$$ac_var
1282 # Remove trailing slashes.
1283 case $ac_val in
1284 */ )
1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\$ac_val;;
1287 esac
1288 # Be sure to have absolute directory names.
1289 case $ac_val in
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292 esac
1293 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1294 done
1295
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1299 build=$build_alias
1300 host=$host_alias
1301 target=$target_alias
1302
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1308 If a cross compiler is detected then cross compile mode will be used." >&2
1309 elif test "x$build_alias" != "x$host_alias"; then
1310 cross_compiling=yes
1311 fi
1312 fi
1313
1314 ac_tool_prefix=
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317 test "$silent" = yes && exec 6>/dev/null
1318
1319
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 as_fn_error "working directory cannot be determined"
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 as_fn_error "pwd does not report name of working directory"
1326
1327
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$as_myself" : 'X\(//\)[^/]' \| \
1335 X"$as_myself" : 'X\(//\)$' \| \
1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
1355 srcdir=$ac_confdir
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 srcdir=..
1358 fi
1359 else
1360 ac_srcdir_defaulted=no
1361 fi
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1365 fi
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 ac_abs_confdir=`(
1368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1369 pwd)`
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 srcdir=.
1373 fi
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1377 case $srcdir in
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 esac
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1393 cat <<_ACEOF
1394 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1395
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 [PREFIX]
1419
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1447 _ACEOF
1448
1449 cat <<\_ACEOF
1450
1451 Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455
1456 X features:
1457 --x-includes=DIR X include files are in DIR
1458 --x-libraries=DIR X library files are in DIR
1459
1460 System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 _ACEOF
1464 fi
1465
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1469 esac
1470 cat <<\_ACEOF
1471
1472 Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --disable-ns-self-contained
1477 disable self contained build under NeXTstep
1478 --enable-asserts compile code with asserts enabled
1479 --enable-maintainer-mode
1480 enable make rules and dependencies not useful (and
1481 sometimes confusing) to the casual installer
1482 --enable-locallisppath=PATH
1483 directories Emacs should search for lisp files
1484 specific to this site
1485 --enable-checking[=LIST]
1486 enable expensive run-time checks. With LIST, enable
1487 only specific categories of checks. Categories are:
1488 all,yes,no. Flags are: stringbytes, stringoverrun,
1489 stringfreelist, xmallocoverrun, conslist
1490 --enable-use-lisp-union-type
1491 use a union for the Lisp_Object data type. This is
1492 only useful for development for catching certain
1493 types of bugs.
1494 --enable-profiling build emacs with profiling support. This might not
1495 work on all platforms
1496 --enable-autodepend automatically generate dependencies to .h-files.
1497 Requires GNU Make and Gcc. Enabled if GNU Make and
1498 Gcc is found
1499 --disable-largefile omit support for large files
1500
1501 Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --without-pop don't support POP mail retrieval with movemail
1505 --with-kerberos support Kerberos-authenticated POP
1506 --with-kerberos5 support Kerberos version 5 authenticated POP
1507 --with-hesiod support Hesiod to get the POP server host
1508 --with-mmdf support MMDF mailboxes
1509 --with-mail-unlink unlink, rather than empty, mail spool after reading
1510 --with-mailhost=HOSTNAME
1511 string giving default POP mail host
1512 --without-sound don't compile with sound support
1513 --without-sync-input process async input synchronously
1514 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1515 lucid or athena, motif, no)
1516 --without-xpm don't compile with XPM image support
1517 --without-jpeg don't compile with JPEG image support
1518 --without-tiff don't compile with TIFF image support
1519 --without-gif don't compile with GIF image support
1520 --without-png don't compile with PNG image support
1521 --without-rsvg don't compile with SVG image support
1522 --without-xml2 don't compile with XML parsing support
1523 --without-imagemagick don't compile with ImageMagick image support
1524 --without-xft don't use XFT for anti aliased fonts
1525 --without-libotf don't use libotf for OpenType font support
1526 --without-m17n-flt don't use m17n-flt for text shaping
1527 --without-toolkit-scroll-bars
1528 don't use Motif or Xaw3d scroll bars
1529 --without-xaw3d don't use Xaw3d
1530 --without-xim don't use X11 XIM
1531 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1532 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1533 console
1534 --without-dbus don't compile with D-Bus support
1535 --without-gconf don't compile with GConf support
1536 --without-selinux don't compile with SELinux support
1537 --without-gnutls don't use -lgnutls for SSL/TLS support
1538 --without-makeinfo don't require makeinfo for building manuals
1539 --without-compress-info don't compress the installed Info pages
1540 --with-pkg-config-prog=PATH
1541 path to pkg-config for finding GTK and librsvg
1542 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1543 /usr/lib, or /usr/lib64 on some platforms.
1544 --with-gnustep-conf=PATH
1545 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1546 or /etc/GNUstep/GNUstep.conf
1547 --with-x use the X Window System
1548
1549 Some influential environment variables:
1550 CC C compiler command
1551 CFLAGS C compiler flags
1552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1553 nonstandard directory <lib dir>
1554 LIBS libraries to pass to the linker, e.g. -l<library>
1555 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1556 you have headers in a nonstandard directory <include dir>
1557 CPP C preprocessor
1558 XMKMF Path to xmkmf, Makefile generator for X Window System
1559
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1562
1563 Report bugs to the package provider.
1564 _ACEOF
1565 ac_status=$?
1566 fi
1567
1568 if test "$ac_init_help" = "recursive"; then
1569 # If there are subdirs, report their specific --help.
1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571 test -d "$ac_dir" ||
1572 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1573 continue
1574 ac_builddir=.
1575
1576 case "$ac_dir" in
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 *)
1579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1580 # A ".." for each directory in $ac_dir_suffix.
1581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1582 case $ac_top_builddir_sub in
1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585 esac ;;
1586 esac
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1591
1592 case $srcdir in
1593 .) # We are building in place.
1594 ac_srcdir=.
1595 ac_top_srcdir=$ac_top_builddir_sub
1596 ac_abs_top_srcdir=$ac_pwd ;;
1597 [\\/]* | ?:[\\/]* ) # Absolute name.
1598 ac_srcdir=$srcdir$ac_dir_suffix;
1599 ac_top_srcdir=$srcdir
1600 ac_abs_top_srcdir=$srcdir ;;
1601 *) # Relative name.
1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603 ac_top_srcdir=$ac_top_build_prefix$srcdir
1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605 esac
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607
1608 cd "$ac_dir" || { ac_status=$?; continue; }
1609 # Check for guested configure.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1616 else
1617 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618 fi || ac_status=$?
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1620 done
1621 fi
1622
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1625 cat <<\_ACEOF
1626 emacs configure 24.0.50
1627 generated by GNU Autoconf 2.65
1628
1629 Copyright (C) 2009 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1632 _ACEOF
1633 exit
1634 fi
1635
1636 ## ------------------------ ##
1637 ## Autoconf initialization. ##
1638 ## ------------------------ ##
1639
1640 # ac_fn_c_try_compile LINENO
1641 # --------------------------
1642 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_compile ()
1644 {
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 rm -f conftest.$ac_objext
1647 if { { ac_try="$ac_compile"
1648 case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_compile") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1660 fi
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && {
1663 test -z "$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 } && test -s conftest.$ac_objext; then :
1666 ac_retval=0
1667 else
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672 fi
1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1674 as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_compile
1677
1678 # ac_fn_c_try_link LINENO
1679 # -----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_link ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext conftest$ac_exeext
1685 if { { ac_try="$ac_link"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest$ac_exeext && {
1704 test "$cross_compiling" = yes ||
1705 $as_test_x conftest$ac_exeext
1706 }; then :
1707 ac_retval=0
1708 else
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=1
1713 fi
1714 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716 # interfere with the next link command; also delete a directory that is
1717 # left behind by Apple's compiler. We do this before executing the actions.
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 as_fn_set_status $ac_retval
1721
1722 } # ac_fn_c_try_link
1723
1724 # ac_fn_c_try_cpp LINENO
1725 # ----------------------
1726 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_cpp ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { { ac_try="$ac_cpp conftest.$ac_ext"
1731 case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1738 ac_status=$?
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1743 fi
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } >/dev/null && {
1746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=1
1755 fi
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_cpp
1760
1761 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1764 # the include files in INCLUDES and setting the cache variable VAR
1765 # accordingly.
1766 ac_fn_c_check_header_mongrel ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1773 $as_echo_n "(cached) " >&6
1774 fi
1775 eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 else
1779 # Is the header compilable?
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1781 $as_echo_n "checking $2 usability... " >&6; }
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 $4
1785 #include <$2>
1786 _ACEOF
1787 if ac_fn_c_try_compile "$LINENO"; then :
1788 ac_header_compiler=yes
1789 else
1790 ac_header_compiler=no
1791 fi
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1794 $as_echo "$ac_header_compiler" >&6; }
1795
1796 # Is the header present?
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1798 $as_echo_n "checking $2 presence... " >&6; }
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 #include <$2>
1802 _ACEOF
1803 if ac_fn_c_try_cpp "$LINENO"; then :
1804 ac_header_preproc=yes
1805 else
1806 ac_header_preproc=no
1807 fi
1808 rm -f conftest.err conftest.$ac_ext
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1810 $as_echo "$ac_header_preproc" >&6; }
1811
1812 # So? What about this header?
1813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1814 yes:no: )
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1816 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1818 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1819 ;;
1820 no:yes:* )
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1822 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1824 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1826 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1828 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831 ;;
1832 esac
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1836 $as_echo_n "(cached) " >&6
1837 else
1838 eval "$3=\$ac_header_compiler"
1839 fi
1840 eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 fi
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845
1846 } # ac_fn_c_check_header_mongrel
1847
1848 # ac_fn_c_try_run LINENO
1849 # ----------------------
1850 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1851 # that executables *can* be run.
1852 ac_fn_c_try_run ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_link"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_link") 2>&5
1863 ac_status=$?
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1866 { { case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_try") 2>&5
1873 ac_status=$?
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; }; }; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: program exited with status $ac_status" >&5
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1881
1882 ac_retval=$ac_status
1883 fi
1884 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1886 as_fn_set_status $ac_retval
1887
1888 } # ac_fn_c_try_run
1889
1890 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1891 # -------------------------------------------------------
1892 # Tests whether HEADER exists and can be compiled using the include files in
1893 # INCLUDES, setting the cache variable VAR accordingly.
1894 ac_fn_c_check_header_compile ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 $4
1905 #include <$2>
1906 _ACEOF
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908 eval "$3=yes"
1909 else
1910 eval "$3=no"
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913 fi
1914 eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918
1919 } # ac_fn_c_check_header_compile
1920
1921 # ac_fn_c_check_decl LINENO SYMBOL VAR
1922 # ------------------------------------
1923 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1924 ac_fn_c_check_decl ()
1925 {
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1928 $as_echo_n "checking whether $2 is declared... " >&6; }
1929 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930 $as_echo_n "(cached) " >&6
1931 else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 $4
1935 int
1936 main ()
1937 {
1938 #ifndef $2
1939 (void) $2;
1940 #endif
1941
1942 ;
1943 return 0;
1944 }
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1947 eval "$3=yes"
1948 else
1949 eval "$3=no"
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 fi
1953 eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957
1958 } # ac_fn_c_check_decl
1959
1960 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1961 # ----------------------------------------------
1962 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1963 ac_fn_c_check_header_preproc ()
1964 {
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1969 $as_echo_n "(cached) " >&6
1970 else
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_c_try_cpp "$LINENO"; then :
1976 eval "$3=yes"
1977 else
1978 eval "$3=no"
1979 fi
1980 rm -f conftest.err conftest.$ac_ext
1981 fi
1982 eval ac_res=\$$3
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1986
1987 } # ac_fn_c_check_header_preproc
1988
1989 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1990 # ----------------------------------------------------
1991 # Tries to find if the field MEMBER exists in type AGGR, after including
1992 # INCLUDES, setting cache variable VAR accordingly.
1993 ac_fn_c_check_member ()
1994 {
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1997 $as_echo_n "checking for $2.$3... " >&6; }
1998 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 $5
2004 int
2005 main ()
2006 {
2007 static $2 ac_aggr;
2008 if (ac_aggr.$3)
2009 return 0;
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 eval "$4=yes"
2016 else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 $5
2020 int
2021 main ()
2022 {
2023 static $2 ac_aggr;
2024 if (sizeof ac_aggr.$3)
2025 return 0;
2026 ;
2027 return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 eval "$4=yes"
2032 else
2033 eval "$4=no"
2034 fi
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 eval ac_res=\$$4
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043
2044 } # ac_fn_c_check_member
2045
2046 # ac_fn_c_check_func LINENO FUNC VAR
2047 # ----------------------------------
2048 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2049 ac_fn_c_check_func ()
2050 {
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 $as_echo_n "checking for $2... " >&6; }
2054 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2055 $as_echo_n "(cached) " >&6
2056 else
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2059 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2061 #define $2 innocuous_$2
2062
2063 /* System header to define __stub macros and hopefully few prototypes,
2064 which can conflict with char $2 (); below.
2065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2066 <limits.h> exists even on freestanding compilers. */
2067
2068 #ifdef __STDC__
2069 # include <limits.h>
2070 #else
2071 # include <assert.h>
2072 #endif
2073
2074 #undef $2
2075
2076 /* Override any GCC internal prototype to avoid an error.
2077 Use char because int might match the return type of a GCC
2078 builtin and then its argument prototype would still apply. */
2079 #ifdef __cplusplus
2080 extern "C"
2081 #endif
2082 char $2 ();
2083 /* The GNU C library defines this for functions which it implements
2084 to always fail with ENOSYS. Some functions are actually named
2085 something starting with __ and the normal name is an alias. */
2086 #if defined __stub_$2 || defined __stub___$2
2087 choke me
2088 #endif
2089
2090 int
2091 main ()
2092 {
2093 return $2 ();
2094 ;
2095 return 0;
2096 }
2097 _ACEOF
2098 if ac_fn_c_try_link "$LINENO"; then :
2099 eval "$3=yes"
2100 else
2101 eval "$3=no"
2102 fi
2103 rm -f core conftest.err conftest.$ac_objext \
2104 conftest$ac_exeext conftest.$ac_ext
2105 fi
2106 eval ac_res=\$$3
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110
2111 } # ac_fn_c_check_func
2112
2113 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2114 # -------------------------------------------
2115 # Tests whether TYPE exists after having included INCLUDES, setting cache
2116 # variable VAR accordingly.
2117 ac_fn_c_check_type ()
2118 {
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2121 $as_echo_n "checking for $2... " >&6; }
2122 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2123 $as_echo_n "(cached) " >&6
2124 else
2125 eval "$3=no"
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2128 $4
2129 int
2130 main ()
2131 {
2132 if (sizeof ($2))
2133 return 0;
2134 ;
2135 return 0;
2136 }
2137 _ACEOF
2138 if ac_fn_c_try_compile "$LINENO"; then :
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2141 $4
2142 int
2143 main ()
2144 {
2145 if (sizeof (($2)))
2146 return 0;
2147 ;
2148 return 0;
2149 }
2150 _ACEOF
2151 if ac_fn_c_try_compile "$LINENO"; then :
2152
2153 else
2154 eval "$3=yes"
2155 fi
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 fi
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 fi
2160 eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2164
2165 } # ac_fn_c_check_type
2166 cat >config.log <<_ACEOF
2167 This file contains any messages produced by compilers while
2168 running configure, to aid debugging if configure makes a mistake.
2169
2170 It was created by emacs $as_me 24.0.50, which was
2171 generated by GNU Autoconf 2.65. Invocation command line was
2172
2173 $ $0 $@
2174
2175 _ACEOF
2176 exec 5>>config.log
2177 {
2178 cat <<_ASUNAME
2179 ## --------- ##
2180 ## Platform. ##
2181 ## --------- ##
2182
2183 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2184 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2185 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2186 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2187 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2188
2189 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2190 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2191
2192 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2193 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2194 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2195 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2196 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2197 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2198 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2199
2200 _ASUNAME
2201
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205 IFS=$as_save_IFS
2206 test -z "$as_dir" && as_dir=.
2207 $as_echo "PATH: $as_dir"
2208 done
2209 IFS=$as_save_IFS
2210
2211 } >&5
2212
2213 cat >&5 <<_ACEOF
2214
2215
2216 ## ----------- ##
2217 ## Core tests. ##
2218 ## ----------- ##
2219
2220 _ACEOF
2221
2222
2223 # Keep a trace of the command line.
2224 # Strip out --no-create and --no-recursion so they do not pile up.
2225 # Strip out --silent because we don't want to record it for future runs.
2226 # Also quote any args containing shell meta-characters.
2227 # Make two passes to allow for proper duplicate-argument suppression.
2228 ac_configure_args=
2229 ac_configure_args0=
2230 ac_configure_args1=
2231 ac_must_keep_next=false
2232 for ac_pass in 1 2
2233 do
2234 for ac_arg
2235 do
2236 case $ac_arg in
2237 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2239 | -silent | --silent | --silen | --sile | --sil)
2240 continue ;;
2241 *\'*)
2242 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2243 esac
2244 case $ac_pass in
2245 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2246 2)
2247 as_fn_append ac_configure_args1 " '$ac_arg'"
2248 if test $ac_must_keep_next = true; then
2249 ac_must_keep_next=false # Got value, back to normal.
2250 else
2251 case $ac_arg in
2252 *=* | --config-cache | -C | -disable-* | --disable-* \
2253 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2254 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2255 | -with-* | --with-* | -without-* | --without-* | --x)
2256 case "$ac_configure_args0 " in
2257 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2258 esac
2259 ;;
2260 -* ) ac_must_keep_next=true ;;
2261 esac
2262 fi
2263 as_fn_append ac_configure_args " '$ac_arg'"
2264 ;;
2265 esac
2266 done
2267 done
2268 { ac_configure_args0=; unset ac_configure_args0;}
2269 { ac_configure_args1=; unset ac_configure_args1;}
2270
2271 # When interrupted or exit'd, cleanup temporary files, and complete
2272 # config.log. We remove comments because anyway the quotes in there
2273 # would cause problems or look ugly.
2274 # WARNING: Use '\'' to represent an apostrophe within the trap.
2275 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2276 trap 'exit_status=$?
2277 # Save into config.log some information that might help in debugging.
2278 {
2279 echo
2280
2281 cat <<\_ASBOX
2282 ## ---------------- ##
2283 ## Cache variables. ##
2284 ## ---------------- ##
2285 _ASBOX
2286 echo
2287 # The following way of writing the cache mishandles newlines in values,
2288 (
2289 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2290 eval ac_val=\$$ac_var
2291 case $ac_val in #(
2292 *${as_nl}*)
2293 case $ac_var in #(
2294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2295 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2296 esac
2297 case $ac_var in #(
2298 _ | IFS | as_nl) ;; #(
2299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2300 *) { eval $ac_var=; unset $ac_var;} ;;
2301 esac ;;
2302 esac
2303 done
2304 (set) 2>&1 |
2305 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2306 *${as_nl}ac_space=\ *)
2307 sed -n \
2308 "s/'\''/'\''\\\\'\'''\''/g;
2309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2310 ;; #(
2311 *)
2312 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2313 ;;
2314 esac |
2315 sort
2316 )
2317 echo
2318
2319 cat <<\_ASBOX
2320 ## ----------------- ##
2321 ## Output variables. ##
2322 ## ----------------- ##
2323 _ASBOX
2324 echo
2325 for ac_var in $ac_subst_vars
2326 do
2327 eval ac_val=\$$ac_var
2328 case $ac_val in
2329 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2330 esac
2331 $as_echo "$ac_var='\''$ac_val'\''"
2332 done | sort
2333 echo
2334
2335 if test -n "$ac_subst_files"; then
2336 cat <<\_ASBOX
2337 ## ------------------- ##
2338 ## File substitutions. ##
2339 ## ------------------- ##
2340 _ASBOX
2341 echo
2342 for ac_var in $ac_subst_files
2343 do
2344 eval ac_val=\$$ac_var
2345 case $ac_val in
2346 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2347 esac
2348 $as_echo "$ac_var='\''$ac_val'\''"
2349 done | sort
2350 echo
2351 fi
2352
2353 if test -s confdefs.h; then
2354 cat <<\_ASBOX
2355 ## ----------- ##
2356 ## confdefs.h. ##
2357 ## ----------- ##
2358 _ASBOX
2359 echo
2360 cat confdefs.h
2361 echo
2362 fi
2363 test "$ac_signal" != 0 &&
2364 $as_echo "$as_me: caught signal $ac_signal"
2365 $as_echo "$as_me: exit $exit_status"
2366 } >&5
2367 rm -f core *.core core.conftest.* &&
2368 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2369 exit $exit_status
2370 ' 0
2371 for ac_signal in 1 2 13 15; do
2372 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2373 done
2374 ac_signal=0
2375
2376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2377 rm -f -r conftest* confdefs.h
2378
2379 $as_echo "/* confdefs.h */" > confdefs.h
2380
2381 # Predefined preprocessor variables.
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_NAME "$PACKAGE_NAME"
2385 _ACEOF
2386
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2389 _ACEOF
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2393 _ACEOF
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_STRING "$PACKAGE_STRING"
2397 _ACEOF
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2401 _ACEOF
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_URL "$PACKAGE_URL"
2405 _ACEOF
2406
2407
2408 # Let the site file select an alternate cache file if it wants to.
2409 # Prefer an explicitly selected file to automatically selected ones.
2410 ac_site_file1=NONE
2411 ac_site_file2=NONE
2412 if test -n "$CONFIG_SITE"; then
2413 ac_site_file1=$CONFIG_SITE
2414 elif test "x$prefix" != xNONE; then
2415 ac_site_file1=$prefix/share/config.site
2416 ac_site_file2=$prefix/etc/config.site
2417 else
2418 ac_site_file1=$ac_default_prefix/share/config.site
2419 ac_site_file2=$ac_default_prefix/etc/config.site
2420 fi
2421 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2422 do
2423 test "x$ac_site_file" = xNONE && continue
2424 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2426 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2427 sed 's/^/| /' "$ac_site_file" >&5
2428 . "$ac_site_file"
2429 fi
2430 done
2431
2432 if test -r "$cache_file"; then
2433 # Some versions of bash will fail to source /dev/null (special files
2434 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2435 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2437 $as_echo "$as_me: loading cache $cache_file" >&6;}
2438 case $cache_file in
2439 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2440 *) . "./$cache_file";;
2441 esac
2442 fi
2443 else
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2445 $as_echo "$as_me: creating cache $cache_file" >&6;}
2446 >$cache_file
2447 fi
2448
2449 as_fn_append ac_header_list " stdlib.h"
2450 as_fn_append ac_header_list " unistd.h"
2451 as_fn_append ac_header_list " sys/param.h"
2452 as_fn_append ac_header_list " sys/time.h"
2453 as_fn_append ac_func_list " alarm"
2454 # Check that the precious variables saved in the cache have kept the same
2455 # value.
2456 ac_cache_corrupted=false
2457 for ac_var in $ac_precious_vars; do
2458 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2459 eval ac_new_set=\$ac_env_${ac_var}_set
2460 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2461 eval ac_new_val=\$ac_env_${ac_var}_value
2462 case $ac_old_set,$ac_new_set in
2463 set,)
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2465 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2466 ac_cache_corrupted=: ;;
2467 ,set)
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2469 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2470 ac_cache_corrupted=: ;;
2471 ,);;
2472 *)
2473 if test "x$ac_old_val" != "x$ac_new_val"; then
2474 # differences in whitespace do not lead to failure.
2475 ac_old_val_w=`echo x $ac_old_val`
2476 ac_new_val_w=`echo x $ac_new_val`
2477 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2479 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2480 ac_cache_corrupted=:
2481 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2483 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2484 eval $ac_var=\$ac_old_val
2485 fi
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2487 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2489 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2490 fi;;
2491 esac
2492 # Pass precious variables to config.status.
2493 if test "$ac_new_set" = set; then
2494 case $ac_new_val in
2495 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2496 *) ac_arg=$ac_var=$ac_new_val ;;
2497 esac
2498 case " $ac_configure_args " in
2499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2500 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2501 esac
2502 fi
2503 done
2504 if $ac_cache_corrupted; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2508 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2509 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2510 fi
2511 ## -------------------- ##
2512 ## Main body of script. ##
2513 ## -------------------- ##
2514
2515 ac_ext=c
2516 ac_cpp='$CPP $CPPFLAGS'
2517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2520
2521
2522 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2523
2524
2525
2526 test "$program_prefix" != NONE &&
2527 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2528 # Use a double $ so make ignores it.
2529 test "$program_suffix" != NONE &&
2530 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2531 # Double any \ or $.
2532 # By default was `s,x,x', remove it if useless.
2533 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2534 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2535
2536
2537 lispdir='${datadir}/emacs/${version}/lisp'
2538 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2539 '${datadir}/emacs/site-lisp'
2540 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2541 etcdir='${datadir}/emacs/${version}/etc'
2542 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2543 docdir='${datadir}/emacs/${version}/etc'
2544 gamedir='${localstatedir}/games/emacs'
2545
2546 gameuser=games
2547
2548
2549
2550
2551 # Check whether --with-pop was given.
2552 if test "${with_pop+set}" = set; then :
2553 withval=$with_pop;
2554 else
2555 with_pop=yes
2556 fi
2557
2558 if test "$with_pop" = yes; then
2559 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2560
2561 fi
2562
2563
2564 # Check whether --with-kerberos was given.
2565 if test "${with_kerberos+set}" = set; then :
2566 withval=$with_kerberos;
2567 else
2568 with_kerberos=no
2569 fi
2570
2571 if test "$with_kerberos" != no; then
2572 $as_echo "#define KERBEROS 1" >>confdefs.h
2573
2574 fi
2575
2576
2577 # Check whether --with-kerberos5 was given.
2578 if test "${with_kerberos5+set}" = set; then :
2579 withval=$with_kerberos5;
2580 else
2581 with_kerberos5=no
2582 fi
2583
2584 if test "${with_kerberos5}" != no; then
2585 if test "${with_kerberos}" = no; then
2586 with_kerberos=yes
2587 $as_echo "#define KERBEROS 1" >>confdefs.h
2588
2589 fi
2590
2591 $as_echo "#define KERBEROS5 1" >>confdefs.h
2592
2593 fi
2594
2595
2596 # Check whether --with-hesiod was given.
2597 if test "${with_hesiod+set}" = set; then :
2598 withval=$with_hesiod;
2599 else
2600 with_hesiod=no
2601 fi
2602
2603 if test "$with_hesiod" != no; then
2604
2605 $as_echo "#define HESIOD 1" >>confdefs.h
2606
2607 fi
2608
2609
2610 # Check whether --with-mmdf was given.
2611 if test "${with_mmdf+set}" = set; then :
2612 withval=$with_mmdf;
2613 else
2614 with_mmdf=no
2615 fi
2616
2617 if test "$with_mmdf" != no; then
2618
2619 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2620
2621 fi
2622
2623
2624 # Check whether --with-mail-unlink was given.
2625 if test "${with_mail_unlink+set}" = set; then :
2626 withval=$with_mail_unlink;
2627 else
2628 with_mail_unlink=no
2629 fi
2630
2631 if test "$with_mail_unlink" != no; then
2632
2633 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2634
2635 fi
2636
2637
2638 # Check whether --with-mailhost was given.
2639 if test "${with_mailhost+set}" = set; then :
2640 withval=$with_mailhost;
2641 cat >>confdefs.h <<_ACEOF
2642 #define MAILHOST "$withval"
2643 _ACEOF
2644
2645 fi
2646
2647
2648
2649 # Check whether --with-sound was given.
2650 if test "${with_sound+set}" = set; then :
2651 withval=$with_sound;
2652 else
2653 with_sound=yes
2654 fi
2655
2656
2657
2658 # Check whether --with-sync-input was given.
2659 if test "${with_sync_input+set}" = set; then :
2660 withval=$with_sync_input;
2661 else
2662 with_sync_input=yes
2663 fi
2664
2665 if test "$with_sync_input" = yes; then
2666
2667 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2668
2669 fi
2670
2671
2672 # Check whether --with-x-toolkit was given.
2673 if test "${with_x_toolkit+set}" = set; then :
2674 withval=$with_x_toolkit; case "${withval}" in
2675 y | ye | yes ) val=gtk ;;
2676 n | no ) val=no ;;
2677 l | lu | luc | luci | lucid ) val=lucid ;;
2678 a | at | ath | athe | athen | athena ) val=athena ;;
2679 m | mo | mot | moti | motif ) val=motif ;;
2680 g | gt | gtk ) val=gtk ;;
2681 gtk3 ) val=gtk3 ;;
2682 * )
2683 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2684 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2685 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2686 ;;
2687 esac
2688 with_x_toolkit=$val
2689
2690 fi
2691
2692
2693
2694 # Check whether --with-xpm was given.
2695 if test "${with_xpm+set}" = set; then :
2696 withval=$with_xpm;
2697 else
2698 with_xpm=yes
2699 fi
2700
2701
2702 # Check whether --with-jpeg was given.
2703 if test "${with_jpeg+set}" = set; then :
2704 withval=$with_jpeg;
2705 else
2706 with_jpeg=yes
2707 fi
2708
2709
2710 # Check whether --with-tiff was given.
2711 if test "${with_tiff+set}" = set; then :
2712 withval=$with_tiff;
2713 else
2714 with_tiff=yes
2715 fi
2716
2717
2718 # Check whether --with-gif was given.
2719 if test "${with_gif+set}" = set; then :
2720 withval=$with_gif;
2721 else
2722 with_gif=yes
2723 fi
2724
2725
2726 # Check whether --with-png was given.
2727 if test "${with_png+set}" = set; then :
2728 withval=$with_png;
2729 else
2730 with_png=yes
2731 fi
2732
2733
2734 # Check whether --with-rsvg was given.
2735 if test "${with_rsvg+set}" = set; then :
2736 withval=$with_rsvg;
2737 else
2738 with_rsvg=yes
2739 fi
2740
2741
2742 # Check whether --with-xml2 was given.
2743 if test "${with_xml2+set}" = set; then :
2744 withval=$with_xml2;
2745 else
2746 with_xml2=yes
2747 fi
2748
2749
2750 # Check whether --with-imagemagick was given.
2751 if test "${with_imagemagick+set}" = set; then :
2752 withval=$with_imagemagick;
2753 else
2754 with_imagemagick=yes
2755 fi
2756
2757
2758
2759 # Check whether --with-xft was given.
2760 if test "${with_xft+set}" = set; then :
2761 withval=$with_xft;
2762 else
2763 with_xft=yes
2764 fi
2765
2766
2767 # Check whether --with-libotf was given.
2768 if test "${with_libotf+set}" = set; then :
2769 withval=$with_libotf;
2770 else
2771 with_libotf=yes
2772 fi
2773
2774
2775 # Check whether --with-m17n-flt was given.
2776 if test "${with_m17n_flt+set}" = set; then :
2777 withval=$with_m17n_flt;
2778 else
2779 with_m17n_flt=yes
2780 fi
2781
2782
2783
2784 # Check whether --with-toolkit-scroll-bars was given.
2785 if test "${with_toolkit_scroll_bars+set}" = set; then :
2786 withval=$with_toolkit_scroll_bars;
2787 else
2788 with_toolkit_scroll_bars=yes
2789 fi
2790
2791
2792 # Check whether --with-xaw3d was given.
2793 if test "${with_xaw3d+set}" = set; then :
2794 withval=$with_xaw3d;
2795 else
2796 with_xaw3d=yes
2797 fi
2798
2799
2800 # Check whether --with-xim was given.
2801 if test "${with_xim+set}" = set; then :
2802 withval=$with_xim;
2803 else
2804 with_xim=yes
2805 fi
2806
2807
2808 # Check whether --with-ns was given.
2809 if test "${with_ns+set}" = set; then :
2810 withval=$with_ns;
2811 else
2812 with_ns=no
2813 fi
2814
2815
2816
2817 # Check whether --with-gpm was given.
2818 if test "${with_gpm+set}" = set; then :
2819 withval=$with_gpm;
2820 else
2821 with_gpm=yes
2822 fi
2823
2824
2825 # Check whether --with-dbus was given.
2826 if test "${with_dbus+set}" = set; then :
2827 withval=$with_dbus;
2828 else
2829 with_dbus=yes
2830 fi
2831
2832
2833 # Check whether --with-gconf was given.
2834 if test "${with_gconf+set}" = set; then :
2835 withval=$with_gconf;
2836 else
2837 with_gconf=yes
2838 fi
2839
2840
2841 # Check whether --with-selinux was given.
2842 if test "${with_selinux+set}" = set; then :
2843 withval=$with_selinux;
2844 else
2845 with_selinux=yes
2846 fi
2847
2848
2849 # Check whether --with-gnutls was given.
2850 if test "${with_gnutls+set}" = set; then :
2851 withval=$with_gnutls;
2852 else
2853 with_gnutls=yes
2854 fi
2855
2856
2857 ## For the times when you want to build Emacs but don't have
2858 ## a suitable makeinfo, and can live without the manuals.
2859
2860 # Check whether --with-makeinfo was given.
2861 if test "${with_makeinfo+set}" = set; then :
2862 withval=$with_makeinfo;
2863 else
2864 with_makeinfo=yes
2865 fi
2866
2867
2868 ## This is an option because I do not know if all info/man support
2869 ## compressed files, nor how to test if they do so.
2870
2871 # Check whether --with-compress-info was given.
2872 if test "${with_compress_info+set}" = set; then :
2873 withval=$with_compress_info;
2874 else
2875 with_compress_info=yes
2876 fi
2877
2878 if test $with_compress_info = yes; then
2879 GZIP_INFO=yes
2880 else
2881 GZIP_INFO=
2882 fi
2883
2884
2885
2886 # Check whether --with-pkg-config-prog was given.
2887 if test "${with_pkg_config_prog+set}" = set; then :
2888 withval=$with_pkg_config_prog;
2889 fi
2890
2891 if test "X${with_pkg_config_prog}" != X; then
2892 if test "${with_pkg_config_prog}" != yes; then
2893 PKG_CONFIG="${with_pkg_config_prog}"
2894 fi
2895 fi
2896
2897 CRT_DIR=
2898
2899 # Check whether --with-crt-dir was given.
2900 if test "${with_crt_dir+set}" = set; then :
2901 withval=$with_crt_dir;
2902 fi
2903
2904 CRT_DIR="${with_crt_dir}"
2905
2906
2907 # Check whether --with-gnustep-conf was given.
2908 if test "${with_gnustep_conf+set}" = set; then :
2909 withval=$with_gnustep_conf;
2910 fi
2911
2912 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2913 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2914 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2915 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2916
2917 # Check whether --enable-ns-self-contained was given.
2918 if test "${enable_ns_self_contained+set}" = set; then :
2919 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2920 else
2921 EN_NS_SELF_CONTAINED=yes
2922 fi
2923
2924
2925 # Check whether --enable-asserts was given.
2926 if test "${enable_asserts+set}" = set; then :
2927 enableval=$enable_asserts; USE_XASSERTS=$enableval
2928 else
2929 USE_XASSERTS=no
2930 fi
2931
2932
2933 # Check whether --enable-maintainer-mode was given.
2934 if test "${enable_maintainer_mode+set}" = set; then :
2935 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2936 else
2937 USE_MAINTAINER_MODE=no
2938 fi
2939
2940 if test $USE_MAINTAINER_MODE = yes; then
2941 MAINT=
2942 else
2943 MAINT=#
2944 fi
2945
2946
2947 # Check whether --enable-locallisppath was given.
2948 if test "${enable_locallisppath+set}" = set; then :
2949 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2950 locallisppath=
2951 elif test "${enableval}" != "yes"; then
2952 locallisppath=${enableval}
2953 fi
2954 fi
2955
2956
2957 # Check whether --enable-checking was given.
2958 if test "${enable_checking+set}" = set; then :
2959 enableval=$enable_checking; ac_checking_flags="${enableval}"
2960 fi
2961
2962 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2963 for check in $ac_checking_flags
2964 do
2965 case $check in
2966 # these set all the flags to specific states
2967 yes) ac_enable_checking=1 ;;
2968 no) ac_enable_checking= ;
2969 ac_gc_check_stringbytes= ;
2970 ac_gc_check_string_overrun= ;
2971 ac_gc_check_string_free_list= ;
2972 ac_xmalloc_overrun= ;
2973 ac_gc_check_cons_list= ;;
2974 all) ac_enable_checking=1 ;
2975 ac_gc_check_stringbytes=1 ;
2976 ac_gc_check_string_overrun=1 ;
2977 ac_gc_check_string_free_list=1 ;
2978 ac_xmalloc_overrun=1 ;
2979 ac_gc_check_cons_list=1 ;;
2980 # these enable particular checks
2981 stringbytes) ac_gc_check_stringbytes=1 ;;
2982 stringoverrun) ac_gc_check_string_overrun=1 ;;
2983 stringfreelist) ac_gc_check_string_free_list=1 ;;
2984 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2985 conslist) ac_gc_check_cons_list=1 ;;
2986 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2987 esac
2988 done
2989 IFS="$ac_save_IFS"
2990
2991 if test x$ac_enable_checking != x ; then
2992
2993 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2994
2995 fi
2996 if test x$ac_gc_check_stringbytes != x ; then
2997
2998 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2999
3000 fi
3001 if test x$ac_gc_check_stringoverrun != x ; then
3002
3003 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3004
3005 fi
3006 if test x$ac_gc_check_string_free_list != x ; then
3007
3008 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3009
3010 fi
3011 if test x$ac_xmalloc_overrun != x ; then
3012
3013 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3014
3015 fi
3016 if test x$ac_gc_check_cons_list != x ; then
3017
3018 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3019
3020 fi
3021
3022 # Check whether --enable-use-lisp-union-type was given.
3023 if test "${enable_use_lisp_union_type+set}" = set; then :
3024 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3025
3026 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3027
3028 fi
3029 fi
3030
3031
3032
3033 # Check whether --enable-profiling was given.
3034 if test "${enable_profiling+set}" = set; then :
3035 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3036 fi
3037
3038 if test x$ac_enable_profiling != x ; then
3039 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3040 else
3041 PROFILING_CFLAGS=
3042 fi
3043
3044
3045 # Check whether --enable-autodepend was given.
3046 if test "${enable_autodepend+set}" = set; then :
3047 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3048 else
3049 ac_enable_autodepend=yes
3050 fi
3051
3052
3053 #### Make srcdir absolute, if it isn't already. It's important to
3054 #### avoid running the path through pwd unnecessarily, since pwd can
3055 #### give you automounter prefixes, which can go away. We do all this
3056 #### so Emacs can find its files when run uninstalled.
3057 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3058 unset CDPATH
3059 case "${srcdir}" in
3060 /* ) ;;
3061 . )
3062 ## We may be able to use the $PWD environment variable to make this
3063 ## absolute. But sometimes PWD is inaccurate.
3064 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3065 ## but that tested only for a well-formed and valid PWD,
3066 ## it did not object when PWD was well-formed and valid but just wrong.
3067 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3068 then
3069 srcdir="$PWD"
3070 else
3071 srcdir="`(cd ${srcdir}; pwd)`"
3072 fi
3073 ;;
3074 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3075 esac
3076
3077 #### Check if the source directory already has a configured system in it.
3078 if test `pwd` != `(cd ${srcdir} && pwd)` \
3079 && test -f "${srcdir}/src/config.h" ; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3081 as a build directory right now; it has been configured in its own
3082 right. To configure in another directory as well, you MUST
3083 use GNU make. If you do not have GNU make, then you must
3084 now do \`make distclean' in ${srcdir},
3085 and then run $0 again." >&5
3086 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3087 as a build directory right now; it has been configured in its own
3088 right. To configure in another directory as well, you MUST
3089 use GNU make. If you do not have GNU make, then you must
3090 now do \`make distclean' in ${srcdir},
3091 and then run $0 again." >&2;}
3092 fi
3093
3094 #### Given the configuration name, set machfile and opsysfile to the
3095 #### names of the m/*.h and s/*.h files we should use.
3096
3097 ### Canonicalize the configuration name.
3098
3099 ac_aux_dir=
3100 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3101 for ac_t in install-sh install.sh shtool; do
3102 if test -f "$ac_dir/$ac_t"; then
3103 ac_aux_dir=$ac_dir
3104 ac_install_sh="$ac_aux_dir/$ac_t -c"
3105 break 2
3106 fi
3107 done
3108 done
3109 if test -z "$ac_aux_dir"; then
3110 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3111 fi
3112
3113 # These three variables are undocumented and unsupported,
3114 # and are intended to be withdrawn in a future Autoconf release.
3115 # They can cause serious problems if a builder's source tree is in a directory
3116 # whose full name contains unusual characters.
3117 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3118 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3119 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3120
3121
3122 # Make sure we can run config.sub.
3123 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3124 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3125
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3127 $as_echo_n "checking build system type... " >&6; }
3128 if test "${ac_cv_build+set}" = set; then :
3129 $as_echo_n "(cached) " >&6
3130 else
3131 ac_build_alias=$build_alias
3132 test "x$ac_build_alias" = x &&
3133 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3134 test "x$ac_build_alias" = x &&
3135 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3136 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3137 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3138
3139 fi
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3141 $as_echo "$ac_cv_build" >&6; }
3142 case $ac_cv_build in
3143 *-*-*) ;;
3144 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3145 esac
3146 build=$ac_cv_build
3147 ac_save_IFS=$IFS; IFS='-'
3148 set x $ac_cv_build
3149 shift
3150 build_cpu=$1
3151 build_vendor=$2
3152 shift; shift
3153 # Remember, the first character of IFS is used to create $*,
3154 # except with old shells:
3155 build_os=$*
3156 IFS=$ac_save_IFS
3157 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3158
3159
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3161 $as_echo_n "checking host system type... " >&6; }
3162 if test "${ac_cv_host+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test "x$host_alias" = x; then
3166 ac_cv_host=$ac_cv_build
3167 else
3168 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3169 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3170 fi
3171
3172 fi
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3174 $as_echo "$ac_cv_host" >&6; }
3175 case $ac_cv_host in
3176 *-*-*) ;;
3177 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3178 esac
3179 host=$ac_cv_host
3180 ac_save_IFS=$IFS; IFS='-'
3181 set x $ac_cv_host
3182 shift
3183 host_cpu=$1
3184 host_vendor=$2
3185 shift; shift
3186 # Remember, the first character of IFS is used to create $*,
3187 # except with old shells:
3188 host_os=$*
3189 IFS=$ac_save_IFS
3190 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3191
3192
3193 canonical=$host
3194 configuration=${host_alias-${build_alias-$host}}
3195
3196
3197
3198 ### If you add support for a new configuration, add code to this
3199 ### switch statement to recognize your configuration name and select
3200 ### the appropriate operating system and machine description files.
3201
3202 ### You would hope that you could choose an m/*.h file pretty much
3203 ### based on the machine portion of the configuration name, and an s/*.h
3204 ### file based on the operating system portion. However, it turns out
3205 ### that each m/*.h file is pretty manufacturer-specific - for
3206 ### example mips.h is MIPS
3207 ### So we basically have to have a special case for each
3208 ### configuration name.
3209 ###
3210 ### As far as handling version numbers on operating systems is
3211 ### concerned, make sure things will fail in a fixable way. If
3212 ### /etc/MACHINES doesn't say anything about version numbers, be
3213 ### prepared to handle anything reasonably. If version numbers
3214 ### matter, be sure /etc/MACHINES says something about it.
3215
3216 machine='' opsys='' unported=no
3217 case "${canonical}" in
3218
3219 ## FreeBSD ports
3220 *-*-freebsd* )
3221 opsys=freebsd
3222 case "${canonical}" in
3223 alpha*) machine=alpha ;;
3224 amd64-*|x86_64-*) machine=amdx86-64 ;;
3225 arm*) machine=arm ;;
3226 ia64-*) machine=ia64 ;;
3227 i[3456]86-*) machine=intel386 ;;
3228 powerpc-*) machine=macppc ;;
3229 sparc-*) machine=sparc ;;
3230 sparc64-*) machine=sparc ;;
3231 esac
3232 ;;
3233
3234 ## FreeBSD kernel + glibc based userland
3235 *-*-kfreebsd*gnu* )
3236 opsys=gnu-kfreebsd
3237 case "${canonical}" in
3238 alpha*) machine=alpha ;;
3239 amd64-*|x86_64-*) machine=amdx86-64 ;;
3240 ia64-*) machine=ia64 ;;
3241 i[3456]86-*) machine=intel386 ;;
3242 powerpc-*) machine=macppc ;;
3243 sparc-*) machine=sparc ;;
3244 sparc64-*) machine=sparc ;;
3245 esac
3246 ;;
3247
3248 ## NetBSD ports
3249 *-*-netbsd* )
3250 opsys=netbsd
3251 case "${canonical}" in
3252 alpha*) machine=alpha ;;
3253 x86_64-*) machine=amdx86-64 ;;
3254 arm-*) machine=arm ;;
3255 hppa-*) machine=hp800 ;;
3256 i[3456]86-*) machine=intel386 ;;
3257 m68k-*) machine=m68k ;;
3258 powerpc-*) machine=macppc ;;
3259 mips-*) machine=mips ;;
3260 mipse[bl]-*) machine=mips ;;
3261 sparc*-) machine=sparc ;;
3262 vax-*) machine=vax ;;
3263 esac
3264 ;;
3265
3266 ## OpenBSD ports
3267 *-*-openbsd* )
3268 opsys=openbsd
3269 case "${canonical}" in
3270 alpha*) machine=alpha ;;
3271 x86_64-*) machine=amdx86-64 ;;
3272 arm-*) machine=arm ;;
3273 hppa-*) machine=hp800 ;;
3274 i386-*) machine=intel386 ;;
3275 powerpc-*) machine=macppc ;;
3276 sparc*) machine=sparc ;;
3277 vax-*) machine=vax ;;
3278 esac
3279 ;;
3280
3281 alpha*-*-linux-gnu* )
3282 machine=alpha opsys=gnu-linux
3283 ;;
3284
3285 arm*-*-linux-gnu* )
3286 machine=arm opsys=gnu-linux
3287 ;;
3288
3289 ## Apple Darwin / Mac OS X
3290 *-apple-darwin* )
3291 case "${canonical}" in
3292 i[3456]86-* ) machine=intel386 ;;
3293 powerpc-* ) machine=macppc ;;
3294 x86_64-* ) machine=amdx86-64 ;;
3295 * ) unported=yes ;;
3296 esac
3297 opsys=darwin
3298 # Define CPP as follows to make autoconf work correctly.
3299 CPP="${CC-cc} -E -no-cpp-precomp"
3300 # Use fink packages if available.
3301 if test -d /sw/include && test -d /sw/lib; then
3302 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3303 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3304 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3305 fi
3306 ;;
3307
3308 ## HP 9000 series 700 and 800, running HP/UX
3309 hppa*-hp-hpux10.2* )
3310 machine=hp800 opsys=hpux10-20
3311 ;;
3312 hppa*-hp-hpux1[1-9]* )
3313 machine=hp800 opsys=hpux11
3314 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3315 ;;
3316
3317 hppa*-*-linux-gnu* )
3318 machine=hp800 opsys=gnu-linux
3319 ;;
3320
3321 ## IBM machines
3322 s390-*-linux-gnu* )
3323 machine=ibms390 opsys=gnu-linux
3324 ;;
3325 s390x-*-linux-gnu* )
3326 machine=ibms390x opsys=gnu-linux
3327 ;;
3328 rs6000-ibm-aix4.[23]* )
3329 machine=ibmrs6000 opsys=aix4-2
3330 ;;
3331 powerpc-ibm-aix4.[23]* )
3332 machine=ibmrs6000 opsys=aix4-2
3333 ;;
3334 rs6000-ibm-aix[56]* )
3335 machine=ibmrs6000 opsys=aix4-2
3336 ;;
3337 powerpc-ibm-aix[56]* )
3338 machine=ibmrs6000 opsys=aix4-2
3339 ;;
3340
3341 ## Macintosh PowerPC
3342 powerpc*-*-linux-gnu* )
3343 machine=macppc opsys=gnu-linux
3344 ;;
3345
3346 ## Silicon Graphics machines
3347 ## Iris 4D
3348 mips-sgi-irix6.5 )
3349 machine=iris4d opsys=irix6-5
3350 # Without defining _LANGUAGE_C, things get masked out in the headers
3351 # so that, for instance, grepping for `free' in stdlib.h fails and
3352 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3353 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3354 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3355 ;;
3356
3357 ## Suns
3358 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3359 machine=sparc opsys=gnu-linux
3360 ;;
3361
3362 *-sun-solaris* \
3363 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3364 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3365 case "${canonical}" in
3366 i[3456]86-*-* ) machine=intel386 ;;
3367 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3368 sparc* ) machine=sparc ;;
3369 * ) unported=yes ;;
3370 esac
3371 case "${canonical}" in
3372 *-sunos5.6* | *-solaris2.6* )
3373 opsys=sol2-6
3374 NON_GNU_CPP=/usr/ccs/lib/cpp
3375 RANLIB="ar -ts"
3376 ;;
3377 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3378 opsys=sol2-6
3379 emacs_check_sunpro_c=yes
3380 NON_GNU_CPP=/usr/ccs/lib/cpp
3381 ;;
3382 *-sunos5* | *-solaris* )
3383 opsys=sol2-10
3384 emacs_check_sunpro_c=yes
3385 NON_GNU_CPP=/usr/ccs/lib/cpp
3386 ;;
3387 esac
3388 ## Watch out for a compiler that we know will not work.
3389 case "${canonical}" in
3390 *-solaris* | *-sunos5* )
3391 if [ "x$CC" = x/usr/ucb/cc ]; then
3392 ## /usr/ucb/cc doesn't work;
3393 ## we should find some other compiler that does work.
3394 unset CC
3395 fi
3396 ;;
3397 *) ;;
3398 esac
3399 ;;
3400
3401 ## IA-64
3402 ia64*-*-linux* )
3403 machine=ia64 opsys=gnu-linux
3404 ;;
3405
3406 ## Intel 386 machines where we don't care about the manufacturer.
3407 i[3456]86-*-* )
3408 machine=intel386
3409 case "${canonical}" in
3410 *-cygwin ) opsys=cygwin ;;
3411 *-darwin* ) opsys=darwin
3412 CPP="${CC-cc} -E -no-cpp-precomp"
3413 ;;
3414 *-linux-gnu* ) opsys=gnu-linux ;;
3415 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3416 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3417 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3418 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3419 esac
3420 ;;
3421
3422 ## m68k Linux-based GNU system
3423 m68k-*-linux-gnu* )
3424 machine=m68k opsys=gnu-linux
3425 ;;
3426
3427 ## Mips Linux-based GNU system
3428 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3429 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3430 machine=mips opsys=gnu-linux
3431 ;;
3432
3433 ## AMD x86-64 Linux-based GNU system
3434 x86_64-*-linux-gnu* )
3435 machine=amdx86-64 opsys=gnu-linux
3436 ;;
3437
3438 ## Tensilica Xtensa Linux-based GNU system
3439 xtensa*-*-linux-gnu* )
3440 machine=xtensa opsys=gnu-linux
3441 ;;
3442
3443 ## SuperH Linux-based GNU system
3444 sh[34]*-*-linux-gnu* )
3445 machine=sh3 opsys=gnu-linux
3446 ;;
3447
3448 * )
3449 unported=yes
3450 ;;
3451 esac
3452
3453 ### If the code above didn't choose an operating system, just choose
3454 ### an operating system based on the configuration name. You really
3455 ### only want to use this when you have no idea what the right
3456 ### operating system is; if you know what operating systems a machine
3457 ### runs, it's cleaner to make it explicit in the case statement
3458 ### above.
3459 if test x"${opsys}" = x; then
3460 case "${canonical}" in
3461 *-gnu* ) opsys=gnu ;;
3462 * )
3463 unported=yes
3464 ;;
3465 esac
3466 fi
3467
3468
3469
3470 if test $unported = yes; then
3471 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
3472 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3473 fi
3474
3475 machfile="m/${machine}.h"
3476 opsysfile="s/${opsys}.h"
3477
3478
3479 #### Choose a compiler.
3480 test -n "$CC" && cc_specified=yes
3481
3482 # Save the value of CFLAGS that the user specified.
3483 SPECIFIED_CFLAGS="$CFLAGS"
3484
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 if test -n "$ac_tool_prefix"; then
3491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3492 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if test "${ac_cv_prog_CC+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3511 fi
3512 done
3513 done
3514 IFS=$as_save_IFS
3515
3516 fi
3517 fi
3518 CC=$ac_cv_prog_CC
3519 if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3522 else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3525 fi
3526
3527
3528 fi
3529 if test -z "$ac_cv_prog_CC"; then
3530 ac_ct_CC=$CC
3531 # Extract the first word of "gcc", so it can be a program name with args.
3532 set dummy gcc; ac_word=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548 ac_cv_prog_ac_ct_CC="gcc"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3551 fi
3552 done
3553 done
3554 IFS=$as_save_IFS
3555
3556 fi
3557 fi
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561 $as_echo "$ac_ct_CC" >&6; }
3562 else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3565 fi
3566
3567 if test "x$ac_ct_CC" = x; then
3568 CC=""
3569 else
3570 case $cross_compiling:$ac_tool_warned in
3571 yes:)
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574 ac_tool_warned=yes ;;
3575 esac
3576 CC=$ac_ct_CC
3577 fi
3578 else
3579 CC="$ac_cv_prog_CC"
3580 fi
3581
3582 if test -z "$CC"; then
3583 if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3585 set dummy ${ac_tool_prefix}cc; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if test "${ac_cv_prog_CC+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -n "$CC"; then
3592 ac_cv_prog_CC="$CC" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_CC="${ac_tool_prefix}cc"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3604 fi
3605 done
3606 done
3607 IFS=$as_save_IFS
3608
3609 fi
3610 fi
3611 CC=$ac_cv_prog_CC
3612 if test -n "$CC"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614 $as_echo "$CC" >&6; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3618 fi
3619
3620
3621 fi
3622 fi
3623 if test -z "$CC"; then
3624 # Extract the first word of "cc", so it can be a program name with args.
3625 set dummy cc; ac_word=$2
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if test "${ac_cv_prog_CC+set}" = set; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 if test -n "$CC"; then
3632 ac_cv_prog_CC="$CC" # Let the user override the test.
3633 else
3634 ac_prog_rejected=no
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3643 ac_prog_rejected=yes
3644 continue
3645 fi
3646 ac_cv_prog_CC="cc"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3649 fi
3650 done
3651 done
3652 IFS=$as_save_IFS
3653
3654 if test $ac_prog_rejected = yes; then
3655 # We found a bogon in the path, so make sure we never use it.
3656 set dummy $ac_cv_prog_CC
3657 shift
3658 if test $# != 0; then
3659 # We chose a different compiler from the bogus one.
3660 # However, it has the same basename, so the bogon will be chosen
3661 # first if we set CC to just the basename; use the full file name.
3662 shift
3663 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3664 fi
3665 fi
3666 fi
3667 fi
3668 CC=$ac_cv_prog_CC
3669 if test -n "$CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671 $as_echo "$CC" >&6; }
3672 else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 fi
3676
3677
3678 fi
3679 if test -z "$CC"; then
3680 if test -n "$ac_tool_prefix"; then
3681 for ac_prog in cl.exe
3682 do
3683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3684 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686 $as_echo_n "checking for $ac_word... " >&6; }
3687 if test "${ac_cv_prog_CC+set}" = set; then :
3688 $as_echo_n "(cached) " >&6
3689 else
3690 if test -n "$CC"; then
3691 ac_cv_prog_CC="$CC" # Let the user override the test.
3692 else
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3695 do
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3700 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 break 2
3703 fi
3704 done
3705 done
3706 IFS=$as_save_IFS
3707
3708 fi
3709 fi
3710 CC=$ac_cv_prog_CC
3711 if test -n "$CC"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713 $as_echo "$CC" >&6; }
3714 else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716 $as_echo "no" >&6; }
3717 fi
3718
3719
3720 test -n "$CC" && break
3721 done
3722 fi
3723 if test -z "$CC"; then
3724 ac_ct_CC=$CC
3725 for ac_prog in cl.exe
3726 do
3727 # Extract the first word of "$ac_prog", so it can be a program name with args.
3728 set dummy $ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 if test -n "$ac_ct_CC"; then
3735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3744 ac_cv_prog_ac_ct_CC="$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3747 fi
3748 done
3749 done
3750 IFS=$as_save_IFS
3751
3752 fi
3753 fi
3754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3755 if test -n "$ac_ct_CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3757 $as_echo "$ac_ct_CC" >&6; }
3758 else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3761 fi
3762
3763
3764 test -n "$ac_ct_CC" && break
3765 done
3766
3767 if test "x$ac_ct_CC" = x; then
3768 CC=""
3769 else
3770 case $cross_compiling:$ac_tool_warned in
3771 yes:)
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774 ac_tool_warned=yes ;;
3775 esac
3776 CC=$ac_ct_CC
3777 fi
3778 fi
3779
3780 fi
3781
3782
3783 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error "no acceptable C compiler found in \$PATH
3786 See \`config.log' for more details." "$LINENO" 5; }
3787
3788 # Provide some information about the compiler.
3789 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3790 set X $ac_compile
3791 ac_compiler=$2
3792 for ac_option in --version -v -V -qversion; do
3793 { { ac_try="$ac_compiler $ac_option >&5"
3794 case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797 esac
3798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799 $as_echo "$ac_try_echo"; } >&5
3800 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3801 ac_status=$?
3802 if test -s conftest.err; then
3803 sed '10a\
3804 ... rest of stderr output deleted ...
3805 10q' conftest.err >conftest.er1
3806 cat conftest.er1 >&5
3807 fi
3808 rm -f conftest.er1 conftest.err
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }
3811 done
3812
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3815
3816 int
3817 main ()
3818 {
3819
3820 ;
3821 return 0;
3822 }
3823 _ACEOF
3824 ac_clean_files_save=$ac_clean_files
3825 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3826 # Try to create an executable without -o first, disregard a.out.
3827 # It will help us diagnose broken compilers, and finding out an intuition
3828 # of exeext.
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3830 $as_echo_n "checking whether the C compiler works... " >&6; }
3831 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3832
3833 # The possible output files:
3834 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3835
3836 ac_rmfiles=
3837 for ac_file in $ac_files
3838 do
3839 case $ac_file in
3840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3841 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3842 esac
3843 done
3844 rm -f $ac_rmfiles
3845
3846 if { { ac_try="$ac_link_default"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 $as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_link_default") 2>&5
3854 ac_status=$?
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }; then :
3857 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3858 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3859 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3860 # so that the user can short-circuit this test for compilers unknown to
3861 # Autoconf.
3862 for ac_file in $ac_files ''
3863 do
3864 test -f "$ac_file" || continue
3865 case $ac_file in
3866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3867 ;;
3868 [ab].out )
3869 # We found the default executable, but exeext='' is most
3870 # certainly right.
3871 break;;
3872 *.* )
3873 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3874 then :; else
3875 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3876 fi
3877 # We set ac_cv_exeext here because the later test for it is not
3878 # safe: cross compilers may not add the suffix if given an `-o'
3879 # argument, so we may need to know it at that point already.
3880 # Even if this section looks crufty: it has the advantage of
3881 # actually working.
3882 break;;
3883 * )
3884 break;;
3885 esac
3886 done
3887 test "$ac_cv_exeext" = no && ac_cv_exeext=
3888
3889 else
3890 ac_file=''
3891 fi
3892 if test -z "$ac_file"; then :
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894 $as_echo "no" >&6; }
3895 $as_echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3897
3898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900 { as_fn_set_status 77
3901 as_fn_error "C compiler cannot create executables
3902 See \`config.log' for more details." "$LINENO" 5; }; }
3903 else
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3905 $as_echo "yes" >&6; }
3906 fi
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3908 $as_echo_n "checking for C compiler default output file name... " >&6; }
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3910 $as_echo "$ac_file" >&6; }
3911 ac_exeext=$ac_cv_exeext
3912
3913 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3914 ac_clean_files=$ac_clean_files_save
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3916 $as_echo_n "checking for suffix of executables... " >&6; }
3917 if { { ac_try="$ac_link"
3918 case "(($ac_try" in
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3921 esac
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924 (eval "$ac_link") 2>&5
3925 ac_status=$?
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }; then :
3928 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3929 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3930 # work properly (i.e., refer to `conftest.exe'), while it won't with
3931 # `rm'.
3932 for ac_file in conftest.exe conftest conftest.*; do
3933 test -f "$ac_file" || continue
3934 case $ac_file in
3935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3936 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3937 break;;
3938 * ) break;;
3939 esac
3940 done
3941 else
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error "cannot compute suffix of executables: cannot compile and link
3945 See \`config.log' for more details." "$LINENO" 5; }
3946 fi
3947 rm -f conftest conftest$ac_cv_exeext
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3949 $as_echo "$ac_cv_exeext" >&6; }
3950
3951 rm -f conftest.$ac_ext
3952 EXEEXT=$ac_cv_exeext
3953 ac_exeext=$EXEEXT
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956 #include <stdio.h>
3957 int
3958 main ()
3959 {
3960 FILE *f = fopen ("conftest.out", "w");
3961 return ferror (f) || fclose (f) != 0;
3962
3963 ;
3964 return 0;
3965 }
3966 _ACEOF
3967 ac_clean_files="$ac_clean_files conftest.out"
3968 # Check that the compiler produces executables we can run. If not, either
3969 # the compiler is broken, or we cross compile.
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3971 $as_echo_n "checking whether we are cross compiling... " >&6; }
3972 if test "$cross_compiling" != yes; then
3973 { { ac_try="$ac_link"
3974 case "(($ac_try" in
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3977 esac
3978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979 $as_echo "$ac_try_echo"; } >&5
3980 (eval "$ac_link") 2>&5
3981 ac_status=$?
3982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983 test $ac_status = 0; }
3984 if { ac_try='./conftest$ac_cv_exeext'
3985 { { case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3988 esac
3989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3990 $as_echo "$ac_try_echo"; } >&5
3991 (eval "$ac_try") 2>&5
3992 ac_status=$?
3993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3994 test $ac_status = 0; }; }; then
3995 cross_compiling=no
3996 else
3997 if test "$cross_compiling" = maybe; then
3998 cross_compiling=yes
3999 else
4000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4002 as_fn_error "cannot run C compiled programs.
4003 If you meant to cross compile, use \`--host'.
4004 See \`config.log' for more details." "$LINENO" 5; }
4005 fi
4006 fi
4007 fi
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4009 $as_echo "$cross_compiling" >&6; }
4010
4011 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4012 ac_clean_files=$ac_clean_files_save
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4014 $as_echo_n "checking for suffix of object files... " >&6; }
4015 if test "${ac_cv_objext+set}" = set; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020
4021 int
4022 main ()
4023 {
4024
4025 ;
4026 return 0;
4027 }
4028 _ACEOF
4029 rm -f conftest.o conftest.obj
4030 if { { ac_try="$ac_compile"
4031 case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036 $as_echo "$ac_try_echo"; } >&5
4037 (eval "$ac_compile") 2>&5
4038 ac_status=$?
4039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 test $ac_status = 0; }; then :
4041 for ac_file in conftest.o conftest.obj conftest.*; do
4042 test -f "$ac_file" || continue;
4043 case $ac_file in
4044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4045 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4046 break;;
4047 esac
4048 done
4049 else
4050 $as_echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4055 as_fn_error "cannot compute suffix of object files: cannot compile
4056 See \`config.log' for more details." "$LINENO" 5; }
4057 fi
4058 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4059 fi
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4061 $as_echo "$ac_cv_objext" >&6; }
4062 OBJEXT=$ac_cv_objext
4063 ac_objext=$OBJEXT
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4065 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4066 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071
4072 int
4073 main ()
4074 {
4075 #ifndef __GNUC__
4076 choke me
4077 #endif
4078
4079 ;
4080 return 0;
4081 }
4082 _ACEOF
4083 if ac_fn_c_try_compile "$LINENO"; then :
4084 ac_compiler_gnu=yes
4085 else
4086 ac_compiler_gnu=no
4087 fi
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4090
4091 fi
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4093 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4094 if test $ac_compiler_gnu = yes; then
4095 GCC=yes
4096 else
4097 GCC=
4098 fi
4099 ac_test_CFLAGS=${CFLAGS+set}
4100 ac_save_CFLAGS=$CFLAGS
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4102 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4103 if test "${ac_cv_prog_cc_g+set}" = set; then :
4104 $as_echo_n "(cached) " >&6
4105 else
4106 ac_save_c_werror_flag=$ac_c_werror_flag
4107 ac_c_werror_flag=yes
4108 ac_cv_prog_cc_g=no
4109 CFLAGS="-g"
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112
4113 int
4114 main ()
4115 {
4116
4117 ;
4118 return 0;
4119 }
4120 _ACEOF
4121 if ac_fn_c_try_compile "$LINENO"; then :
4122 ac_cv_prog_cc_g=yes
4123 else
4124 CFLAGS=""
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127
4128 int
4129 main ()
4130 {
4131
4132 ;
4133 return 0;
4134 }
4135 _ACEOF
4136 if ac_fn_c_try_compile "$LINENO"; then :
4137
4138 else
4139 ac_c_werror_flag=$ac_save_c_werror_flag
4140 CFLAGS="-g"
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4143
4144 int
4145 main ()
4146 {
4147
4148 ;
4149 return 0;
4150 }
4151 _ACEOF
4152 if ac_fn_c_try_compile "$LINENO"; then :
4153 ac_cv_prog_cc_g=yes
4154 fi
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 fi
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 fi
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 ac_c_werror_flag=$ac_save_c_werror_flag
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4163 $as_echo "$ac_cv_prog_cc_g" >&6; }
4164 if test "$ac_test_CFLAGS" = set; then
4165 CFLAGS=$ac_save_CFLAGS
4166 elif test $ac_cv_prog_cc_g = yes; then
4167 if test "$GCC" = yes; then
4168 CFLAGS="-g -O2"
4169 else
4170 CFLAGS="-g"
4171 fi
4172 else
4173 if test "$GCC" = yes; then
4174 CFLAGS="-O2"
4175 else
4176 CFLAGS=
4177 fi
4178 fi
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4180 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4181 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4182 $as_echo_n "(cached) " >&6
4183 else
4184 ac_cv_prog_cc_c89=no
4185 ac_save_CC=$CC
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 #include <stdarg.h>
4189 #include <stdio.h>
4190 #include <sys/types.h>
4191 #include <sys/stat.h>
4192 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4193 struct buf { int x; };
4194 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4195 static char *e (p, i)
4196 char **p;
4197 int i;
4198 {
4199 return p[i];
4200 }
4201 static char *f (char * (*g) (char **, int), char **p, ...)
4202 {
4203 char *s;
4204 va_list v;
4205 va_start (v,p);
4206 s = g (p, va_arg (v,int));
4207 va_end (v);
4208 return s;
4209 }
4210
4211 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4212 function prototypes and stuff, but not '\xHH' hex character constants.
4213 These don't provoke an error unfortunately, instead are silently treated
4214 as 'x'. The following induces an error, until -std is added to get
4215 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4216 array size at least. It's necessary to write '\x00'==0 to get something
4217 that's true only with -std. */
4218 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4219
4220 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4221 inside strings and character constants. */
4222 #define FOO(x) 'x'
4223 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4224
4225 int test (int i, double x);
4226 struct s1 {int (*f) (int a);};
4227 struct s2 {int (*f) (double a);};
4228 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4229 int argc;
4230 char **argv;
4231 int
4232 main ()
4233 {
4234 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4235 ;
4236 return 0;
4237 }
4238 _ACEOF
4239 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4240 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4241 do
4242 CC="$ac_save_CC $ac_arg"
4243 if ac_fn_c_try_compile "$LINENO"; then :
4244 ac_cv_prog_cc_c89=$ac_arg
4245 fi
4246 rm -f core conftest.err conftest.$ac_objext
4247 test "x$ac_cv_prog_cc_c89" != "xno" && break
4248 done
4249 rm -f conftest.$ac_ext
4250 CC=$ac_save_CC
4251
4252 fi
4253 # AC_CACHE_VAL
4254 case "x$ac_cv_prog_cc_c89" in
4255 x)
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4257 $as_echo "none needed" >&6; } ;;
4258 xno)
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4260 $as_echo "unsupported" >&6; } ;;
4261 *)
4262 CC="$CC $ac_cv_prog_cc_c89"
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4264 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4265 esac
4266 if test "x$ac_cv_prog_cc_c89" != xno; then :
4267
4268 fi
4269
4270 ac_ext=c
4271 ac_cpp='$CPP $CPPFLAGS'
4272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275
4276
4277 # On Suns, sometimes $CPP names a directory.
4278 if test -n "$CPP" && test -d "$CPP"; then
4279 CPP=
4280 fi
4281
4282 ## If not using gcc, and on Solaris, and no CPP specified, see if
4283 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4284 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4285 test x"$CPP" = x; then
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4287 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4288
4289 if test "${emacs_cv_sunpro_c+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4294
4295 int
4296 main ()
4297 {
4298 #ifndef __SUNPRO_C
4299 fail;
4300 #endif
4301
4302 ;
4303 return 0;
4304 }
4305 _ACEOF
4306 if ac_fn_c_try_link "$LINENO"; then :
4307 emacs_cv_sunpro_c=yes
4308 else
4309 emacs_cv_sunpro_c=no
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext \
4312 conftest$ac_exeext conftest.$ac_ext
4313 fi
4314
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4316 $as_echo "$emacs_cv_sunpro_c" >&6; }
4317
4318 if test x"$emacs_cv_sunpro_c" = xyes; then
4319 NON_GNU_CPP="$CC -E -Xs"
4320 fi
4321 fi
4322
4323 #### Some systems specify a CPP to use unless we are using GCC.
4324 #### Now that we know whether we are using GCC, we can decide whether
4325 #### to use that one.
4326 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4327 then
4328 CPP="$NON_GNU_CPP"
4329 fi
4330
4331 #### Some systems specify a CC to use unless we are using GCC.
4332 #### Now that we know whether we are using GCC, we can decide whether
4333 #### to use that one.
4334 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4335 test x$cc_specified != xyes
4336 then
4337 CC="$NON_GNU_CC"
4338 fi
4339
4340 if test x$GCC = xyes; then
4341 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4342 else
4343 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4344 fi
4345
4346 ac_ext=c
4347 ac_cpp='$CPP $CPPFLAGS'
4348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4352 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4353 # On Suns, sometimes $CPP names a directory.
4354 if test -n "$CPP" && test -d "$CPP"; then
4355 CPP=
4356 fi
4357 if test -z "$CPP"; then
4358 if test "${ac_cv_prog_CPP+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 # Double quotes because CPP needs to be expanded
4362 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4363 do
4364 ac_preproc_ok=false
4365 for ac_c_preproc_warn_flag in '' yes
4366 do
4367 # Use a header file that comes with gcc, so configuring glibc
4368 # with a fresh cross-compiler works.
4369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4370 # <limits.h> exists even on freestanding compilers.
4371 # On the NeXT, cc -E runs the code through the compiler's parser,
4372 # not just through cpp. "Syntax error" is here to catch this case.
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375 #ifdef __STDC__
4376 # include <limits.h>
4377 #else
4378 # include <assert.h>
4379 #endif
4380 Syntax error
4381 _ACEOF
4382 if ac_fn_c_try_cpp "$LINENO"; then :
4383
4384 else
4385 # Broken: fails on valid input.
4386 continue
4387 fi
4388 rm -f conftest.err conftest.$ac_ext
4389
4390 # OK, works on sane cases. Now check whether nonexistent headers
4391 # can be detected and how.
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394 #include <ac_nonexistent.h>
4395 _ACEOF
4396 if ac_fn_c_try_cpp "$LINENO"; then :
4397 # Broken: success on invalid input.
4398 continue
4399 else
4400 # Passes both tests.
4401 ac_preproc_ok=:
4402 break
4403 fi
4404 rm -f conftest.err conftest.$ac_ext
4405
4406 done
4407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4408 rm -f conftest.err conftest.$ac_ext
4409 if $ac_preproc_ok; then :
4410 break
4411 fi
4412
4413 done
4414 ac_cv_prog_CPP=$CPP
4415
4416 fi
4417 CPP=$ac_cv_prog_CPP
4418 else
4419 ac_cv_prog_CPP=$CPP
4420 fi
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4422 $as_echo "$CPP" >&6; }
4423 ac_preproc_ok=false
4424 for ac_c_preproc_warn_flag in '' yes
4425 do
4426 # Use a header file that comes with gcc, so configuring glibc
4427 # with a fresh cross-compiler works.
4428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4429 # <limits.h> exists even on freestanding compilers.
4430 # On the NeXT, cc -E runs the code through the compiler's parser,
4431 # not just through cpp. "Syntax error" is here to catch this case.
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4434 #ifdef __STDC__
4435 # include <limits.h>
4436 #else
4437 # include <assert.h>
4438 #endif
4439 Syntax error
4440 _ACEOF
4441 if ac_fn_c_try_cpp "$LINENO"; then :
4442
4443 else
4444 # Broken: fails on valid input.
4445 continue
4446 fi
4447 rm -f conftest.err conftest.$ac_ext
4448
4449 # OK, works on sane cases. Now check whether nonexistent headers
4450 # can be detected and how.
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4453 #include <ac_nonexistent.h>
4454 _ACEOF
4455 if ac_fn_c_try_cpp "$LINENO"; then :
4456 # Broken: success on invalid input.
4457 continue
4458 else
4459 # Passes both tests.
4460 ac_preproc_ok=:
4461 break
4462 fi
4463 rm -f conftest.err conftest.$ac_ext
4464
4465 done
4466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4467 rm -f conftest.err conftest.$ac_ext
4468 if $ac_preproc_ok; then :
4469
4470 else
4471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4473 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4474 See \`config.log' for more details." "$LINENO" 5; }
4475 fi
4476
4477 ac_ext=c
4478 ac_cpp='$CPP $CPPFLAGS'
4479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4482
4483
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4485 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4486 if test "${ac_cv_path_GREP+set}" = set; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 if test -z "$GREP"; then
4490 ac_path_GREP_found=false
4491 # Loop through the user's path and test for each of PROGNAME-LIST
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4494 do
4495 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4497 for ac_prog in grep ggrep; do
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4500 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4501 # Check for GNU ac_path_GREP and select it if it is found.
4502 # Check for GNU $ac_path_GREP
4503 case `"$ac_path_GREP" --version 2>&1` in
4504 *GNU*)
4505 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4506 *)
4507 ac_count=0
4508 $as_echo_n 0123456789 >"conftest.in"
4509 while :
4510 do
4511 cat "conftest.in" "conftest.in" >"conftest.tmp"
4512 mv "conftest.tmp" "conftest.in"
4513 cp "conftest.in" "conftest.nl"
4514 $as_echo 'GREP' >> "conftest.nl"
4515 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4516 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4517 as_fn_arith $ac_count + 1 && ac_count=$as_val
4518 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4519 # Best one so far, save it but keep looking for a better one
4520 ac_cv_path_GREP="$ac_path_GREP"
4521 ac_path_GREP_max=$ac_count
4522 fi
4523 # 10*(2^10) chars as input seems more than enough
4524 test $ac_count -gt 10 && break
4525 done
4526 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4527 esac
4528
4529 $ac_path_GREP_found && break 3
4530 done
4531 done
4532 done
4533 IFS=$as_save_IFS
4534 if test -z "$ac_cv_path_GREP"; then
4535 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4536 fi
4537 else
4538 ac_cv_path_GREP=$GREP
4539 fi
4540
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4543 $as_echo "$ac_cv_path_GREP" >&6; }
4544 GREP="$ac_cv_path_GREP"
4545
4546
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4548 $as_echo_n "checking for egrep... " >&6; }
4549 if test "${ac_cv_path_EGREP+set}" = set; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4553 then ac_cv_path_EGREP="$GREP -E"
4554 else
4555 if test -z "$EGREP"; then
4556 ac_path_EGREP_found=false
4557 # Loop through the user's path and test for each of PROGNAME-LIST
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4560 do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_prog in egrep; do
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4566 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4567 # Check for GNU ac_path_EGREP and select it if it is found.
4568 # Check for GNU $ac_path_EGREP
4569 case `"$ac_path_EGREP" --version 2>&1` in
4570 *GNU*)
4571 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4572 *)
4573 ac_count=0
4574 $as_echo_n 0123456789 >"conftest.in"
4575 while :
4576 do
4577 cat "conftest.in" "conftest.in" >"conftest.tmp"
4578 mv "conftest.tmp" "conftest.in"
4579 cp "conftest.in" "conftest.nl"
4580 $as_echo 'EGREP' >> "conftest.nl"
4581 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4583 as_fn_arith $ac_count + 1 && ac_count=$as_val
4584 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4585 # Best one so far, save it but keep looking for a better one
4586 ac_cv_path_EGREP="$ac_path_EGREP"
4587 ac_path_EGREP_max=$ac_count
4588 fi
4589 # 10*(2^10) chars as input seems more than enough
4590 test $ac_count -gt 10 && break
4591 done
4592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4593 esac
4594
4595 $ac_path_EGREP_found && break 3
4596 done
4597 done
4598 done
4599 IFS=$as_save_IFS
4600 if test -z "$ac_cv_path_EGREP"; then
4601 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4602 fi
4603 else
4604 ac_cv_path_EGREP=$EGREP
4605 fi
4606
4607 fi
4608 fi
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4610 $as_echo "$ac_cv_path_EGREP" >&6; }
4611 EGREP="$ac_cv_path_EGREP"
4612
4613
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4615 $as_echo_n "checking for ANSI C header files... " >&6; }
4616 if test "${ac_cv_header_stdc+set}" = set; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621 #include <stdlib.h>
4622 #include <stdarg.h>
4623 #include <string.h>
4624 #include <float.h>
4625
4626 int
4627 main ()
4628 {
4629
4630 ;
4631 return 0;
4632 }
4633 _ACEOF
4634 if ac_fn_c_try_compile "$LINENO"; then :
4635 ac_cv_header_stdc=yes
4636 else
4637 ac_cv_header_stdc=no
4638 fi
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640
4641 if test $ac_cv_header_stdc = yes; then
4642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4645 #include <string.h>
4646
4647 _ACEOF
4648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4649 $EGREP "memchr" >/dev/null 2>&1; then :
4650
4651 else
4652 ac_cv_header_stdc=no
4653 fi
4654 rm -f conftest*
4655
4656 fi
4657
4658 if test $ac_cv_header_stdc = yes; then
4659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662 #include <stdlib.h>
4663
4664 _ACEOF
4665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666 $EGREP "free" >/dev/null 2>&1; then :
4667
4668 else
4669 ac_cv_header_stdc=no
4670 fi
4671 rm -f conftest*
4672
4673 fi
4674
4675 if test $ac_cv_header_stdc = yes; then
4676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4677 if test "$cross_compiling" = yes; then :
4678 :
4679 else
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4682 #include <ctype.h>
4683 #include <stdlib.h>
4684 #if ((' ' & 0x0FF) == 0x020)
4685 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4686 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4687 #else
4688 # define ISLOWER(c) \
4689 (('a' <= (c) && (c) <= 'i') \
4690 || ('j' <= (c) && (c) <= 'r') \
4691 || ('s' <= (c) && (c) <= 'z'))
4692 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4693 #endif
4694
4695 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4696 int
4697 main ()
4698 {
4699 int i;
4700 for (i = 0; i < 256; i++)
4701 if (XOR (islower (i), ISLOWER (i))
4702 || toupper (i) != TOUPPER (i))
4703 return 2;
4704 return 0;
4705 }
4706 _ACEOF
4707 if ac_fn_c_try_run "$LINENO"; then :
4708
4709 else
4710 ac_cv_header_stdc=no
4711 fi
4712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4713 conftest.$ac_objext conftest.beam conftest.$ac_ext
4714 fi
4715
4716 fi
4717 fi
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4719 $as_echo "$ac_cv_header_stdc" >&6; }
4720 if test $ac_cv_header_stdc = yes; then
4721
4722 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4723
4724 fi
4725
4726 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4727 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4728 inttypes.h stdint.h unistd.h
4729 do :
4730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4731 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4732 "
4733 eval as_val=\$$as_ac_Header
4734 if test "x$as_val" = x""yes; then :
4735 cat >>confdefs.h <<_ACEOF
4736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4737 _ACEOF
4738
4739 fi
4740
4741 done
4742
4743
4744
4745 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4746 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4747 MINIX=yes
4748 else
4749 MINIX=
4750 fi
4751
4752
4753 if test "$MINIX" = yes; then
4754
4755 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4756
4757
4758 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4759
4760
4761 $as_echo "#define _MINIX 1" >>confdefs.h
4762
4763 fi
4764
4765
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4767 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4768 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773
4774 # define __EXTENSIONS__ 1
4775 $ac_includes_default
4776 int
4777 main ()
4778 {
4779
4780 ;
4781 return 0;
4782 }
4783 _ACEOF
4784 if ac_fn_c_try_compile "$LINENO"; then :
4785 ac_cv_safe_to_define___extensions__=yes
4786 else
4787 ac_cv_safe_to_define___extensions__=no
4788 fi
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 fi
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4792 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4793 test $ac_cv_safe_to_define___extensions__ = yes &&
4794 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4795
4796 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4797
4798 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4799
4800 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4801
4802 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4803
4804
4805
4806 ### Use -Wno-pointer-sign if the compiler supports it
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4808 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4809 SAVE_CFLAGS="$CFLAGS"
4810 CFLAGS="$CFLAGS -Wno-pointer-sign"
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813
4814 int
4815 main ()
4816 {
4817
4818 ;
4819 return 0;
4820 }
4821 _ACEOF
4822 if ac_fn_c_try_compile "$LINENO"; then :
4823 has_option=yes
4824 else
4825 has_option=no
4826 fi
4827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828 if test $has_option = yes; then
4829 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4830 fi
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4832 $as_echo "$has_option" >&6; }
4833 CFLAGS="$SAVE_CFLAGS"
4834 unset has_option
4835 unset SAVE_CFLAGS
4836
4837 ### Use -Wdeclaration-after-statement if the compiler supports it
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4839 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4840 SAVE_CFLAGS="$CFLAGS"
4841 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4844
4845 int
4846 main ()
4847 {
4848
4849 ;
4850 return 0;
4851 }
4852 _ACEOF
4853 if ac_fn_c_try_compile "$LINENO"; then :
4854 has_option=yes
4855 else
4856 has_option=no
4857 fi
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 if test $has_option = yes; then
4860 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4861 fi
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4863 $as_echo "$has_option" >&6; }
4864 CFLAGS="$SAVE_CFLAGS"
4865 unset has_option
4866 unset SAVE_CFLAGS
4867
4868 ### Use -Wold-style-definition if the compiler supports it
4869 # This can be removed when conversion to standard C is finished.
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4871 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4872 SAVE_CFLAGS="$CFLAGS"
4873 CFLAGS="$CFLAGS -Wold-style-definition"
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876
4877 int
4878 main ()
4879 {
4880
4881 ;
4882 return 0;
4883 }
4884 _ACEOF
4885 if ac_fn_c_try_compile "$LINENO"; then :
4886 has_option=yes
4887 else
4888 has_option=no
4889 fi
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 if test $has_option = yes; then
4892 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4895 $as_echo "$has_option" >&6; }
4896 CFLAGS="$SAVE_CFLAGS"
4897 unset has_option
4898 unset SAVE_CFLAGS
4899
4900 ### Use -Wimplicit-function-declaration if the compiler supports it
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4902 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4903 SAVE_CFLAGS="$CFLAGS"
4904 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4907
4908 int
4909 main ()
4910 {
4911
4912 ;
4913 return 0;
4914 }
4915 _ACEOF
4916 if ac_fn_c_try_compile "$LINENO"; then :
4917 has_option=yes
4918 else
4919 has_option=no
4920 fi
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922 if test $has_option = yes; then
4923 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4924 fi
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4926 $as_echo "$has_option" >&6; }
4927 CFLAGS="$SAVE_CFLAGS"
4928 unset has_option
4929 unset SAVE_CFLAGS
4930
4931
4932
4933
4934 #### Some other nice autoconf tests.
4935
4936 ac_ext=c
4937 ac_cpp='$CPP $CPPFLAGS'
4938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4942 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4943 # On Suns, sometimes $CPP names a directory.
4944 if test -n "$CPP" && test -d "$CPP"; then
4945 CPP=
4946 fi
4947 if test -z "$CPP"; then
4948 if test "${ac_cv_prog_CPP+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 # Double quotes because CPP needs to be expanded
4952 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4953 do
4954 ac_preproc_ok=false
4955 for ac_c_preproc_warn_flag in '' yes
4956 do
4957 # Use a header file that comes with gcc, so configuring glibc
4958 # with a fresh cross-compiler works.
4959 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4960 # <limits.h> exists even on freestanding compilers.
4961 # On the NeXT, cc -E runs the code through the compiler's parser,
4962 # not just through cpp. "Syntax error" is here to catch this case.
4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h. */
4965 #ifdef __STDC__
4966 # include <limits.h>
4967 #else
4968 # include <assert.h>
4969 #endif
4970 Syntax error
4971 _ACEOF
4972 if ac_fn_c_try_cpp "$LINENO"; then :
4973
4974 else
4975 # Broken: fails on valid input.
4976 continue
4977 fi
4978 rm -f conftest.err conftest.$ac_ext
4979
4980 # OK, works on sane cases. Now check whether nonexistent headers
4981 # can be detected and how.
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984 #include <ac_nonexistent.h>
4985 _ACEOF
4986 if ac_fn_c_try_cpp "$LINENO"; then :
4987 # Broken: success on invalid input.
4988 continue
4989 else
4990 # Passes both tests.
4991 ac_preproc_ok=:
4992 break
4993 fi
4994 rm -f conftest.err conftest.$ac_ext
4995
4996 done
4997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4998 rm -f conftest.err conftest.$ac_ext
4999 if $ac_preproc_ok; then :
5000 break
5001 fi
5002
5003 done
5004 ac_cv_prog_CPP=$CPP
5005
5006 fi
5007 CPP=$ac_cv_prog_CPP
5008 else
5009 ac_cv_prog_CPP=$CPP
5010 fi
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5012 $as_echo "$CPP" >&6; }
5013 ac_preproc_ok=false
5014 for ac_c_preproc_warn_flag in '' yes
5015 do
5016 # Use a header file that comes with gcc, so configuring glibc
5017 # with a fresh cross-compiler works.
5018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5019 # <limits.h> exists even on freestanding compilers.
5020 # On the NeXT, cc -E runs the code through the compiler's parser,
5021 # not just through cpp. "Syntax error" is here to catch this case.
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5024 #ifdef __STDC__
5025 # include <limits.h>
5026 #else
5027 # include <assert.h>
5028 #endif
5029 Syntax error
5030 _ACEOF
5031 if ac_fn_c_try_cpp "$LINENO"; then :
5032
5033 else
5034 # Broken: fails on valid input.
5035 continue
5036 fi
5037 rm -f conftest.err conftest.$ac_ext
5038
5039 # OK, works on sane cases. Now check whether nonexistent headers
5040 # can be detected and how.
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5043 #include <ac_nonexistent.h>
5044 _ACEOF
5045 if ac_fn_c_try_cpp "$LINENO"; then :
5046 # Broken: success on invalid input.
5047 continue
5048 else
5049 # Passes both tests.
5050 ac_preproc_ok=:
5051 break
5052 fi
5053 rm -f conftest.err conftest.$ac_ext
5054
5055 done
5056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5057 rm -f conftest.err conftest.$ac_ext
5058 if $ac_preproc_ok; then :
5059
5060 else
5061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5063 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5064 See \`config.log' for more details." "$LINENO" 5; }
5065 fi
5066
5067 ac_ext=c
5068 ac_cpp='$CPP $CPPFLAGS'
5069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072
5073 # Find a good install program. We prefer a C program (faster),
5074 # so one script is as good as another. But avoid the broken or
5075 # incompatible versions:
5076 # SysV /etc/install, /usr/sbin/install
5077 # SunOS /usr/etc/install
5078 # IRIX /sbin/install
5079 # AIX /bin/install
5080 # AmigaOS /C/install, which installs bootblocks on floppy discs
5081 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5082 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5083 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5084 # OS/2's system install, which has a completely different semantic
5085 # ./install, which can be erroneously created by make from ./install.sh.
5086 # Reject install programs that cannot install multiple files.
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5088 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5089 if test -z "$INSTALL"; then
5090 if test "${ac_cv_path_install+set}" = set; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 # Account for people who put trailing slashes in PATH elements.
5099 case $as_dir/ in #((
5100 ./ | .// | /[cC]/* | \
5101 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5102 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5103 /usr/ucb/* ) ;;
5104 *)
5105 # OSF1 and SCO ODT 3.0 have their own names for install.
5106 # Don't use installbsd from OSF since it installs stuff as root
5107 # by default.
5108 for ac_prog in ginstall scoinst install; do
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5111 if test $ac_prog = install &&
5112 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5113 # AIX install. It has an incompatible calling convention.
5114 :
5115 elif test $ac_prog = install &&
5116 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5117 # program-specific install script used by HP pwplus--don't use.
5118 :
5119 else
5120 rm -rf conftest.one conftest.two conftest.dir
5121 echo one > conftest.one
5122 echo two > conftest.two
5123 mkdir conftest.dir
5124 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5125 test -s conftest.one && test -s conftest.two &&
5126 test -s conftest.dir/conftest.one &&
5127 test -s conftest.dir/conftest.two
5128 then
5129 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5130 break 3
5131 fi
5132 fi
5133 fi
5134 done
5135 done
5136 ;;
5137 esac
5138
5139 done
5140 IFS=$as_save_IFS
5141
5142 rm -rf conftest.one conftest.two conftest.dir
5143
5144 fi
5145 if test "${ac_cv_path_install+set}" = set; then
5146 INSTALL=$ac_cv_path_install
5147 else
5148 # As a last resort, use the slow shell script. Don't cache a
5149 # value for INSTALL within a source directory, because that will
5150 # break other packages using the cache if that directory is
5151 # removed, or if the value is a relative name.
5152 INSTALL=$ac_install_sh
5153 fi
5154 fi
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5156 $as_echo "$INSTALL" >&6; }
5157
5158 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5159 # It thinks the first close brace ends the variable substitution.
5160 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5161
5162 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5163
5164 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5165
5166 if test "x$RANLIB" = x; then
5167 if test -n "$ac_tool_prefix"; then
5168 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5169 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171 $as_echo_n "checking for $ac_word... " >&6; }
5172 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 if test -n "$RANLIB"; then
5176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5177 else
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 break 2
5188 fi
5189 done
5190 done
5191 IFS=$as_save_IFS
5192
5193 fi
5194 fi
5195 RANLIB=$ac_cv_prog_RANLIB
5196 if test -n "$RANLIB"; then
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5198 $as_echo "$RANLIB" >&6; }
5199 else
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5202 fi
5203
5204
5205 fi
5206 if test -z "$ac_cv_prog_RANLIB"; then
5207 ac_ct_RANLIB=$RANLIB
5208 # Extract the first word of "ranlib", so it can be a program name with args.
5209 set dummy ranlib; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5213 $as_echo_n "(cached) " >&6
5214 else
5215 if test -n "$ac_ct_RANLIB"; then
5216 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225 ac_cv_prog_ac_ct_RANLIB="ranlib"
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5228 fi
5229 done
5230 done
5231 IFS=$as_save_IFS
5232
5233 fi
5234 fi
5235 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5236 if test -n "$ac_ct_RANLIB"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5238 $as_echo "$ac_ct_RANLIB" >&6; }
5239 else
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243
5244 if test "x$ac_ct_RANLIB" = x; then
5245 RANLIB=":"
5246 else
5247 case $cross_compiling:$ac_tool_warned in
5248 yes:)
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5251 ac_tool_warned=yes ;;
5252 esac
5253 RANLIB=$ac_ct_RANLIB
5254 fi
5255 else
5256 RANLIB="$ac_cv_prog_RANLIB"
5257 fi
5258
5259 fi
5260
5261 ## Although we're running on an amd64 kernel, we're actually compiling for
5262 ## the x86 architecture. The user should probably have provided an
5263 ## explicit --build to `configure', but if everything else than the kernel
5264 ## is running in i386 mode, we can help them out.
5265 if test "$machine" = "amdx86-64"; then
5266 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5267 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5268
5269 fi
5270
5271 if test "$ac_cv_have_decl_i386" = "yes"; then
5272 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5273 machine=intel386
5274 machfile="m/${machine}.h"
5275 fi
5276 fi
5277
5278 # Extract the first word of "install-info", so it can be a program name with args.
5279 set dummy install-info; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 case $INSTALL_INFO in
5286 [\\/]* | ?:[\\/]*)
5287 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5288 ;;
5289 *)
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 break 2
5300 fi
5301 done
5302 done
5303 IFS=$as_save_IFS
5304
5305 ;;
5306 esac
5307 fi
5308 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5309 if test -n "$INSTALL_INFO"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5311 $as_echo "$INSTALL_INFO" >&6; }
5312 else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5315 fi
5316
5317
5318 # Extract the first word of "install-info", so it can be a program name with args.
5319 set dummy install-info; ac_word=$2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321 $as_echo_n "checking for $ac_word... " >&6; }
5322 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5323 $as_echo_n "(cached) " >&6
5324 else
5325 case $INSTALL_INFO in
5326 [\\/]* | ?:[\\/]*)
5327 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5328 ;;
5329 *)
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in /usr/sbin
5332 do
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5337 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5340 fi
5341 done
5342 done
5343 IFS=$as_save_IFS
5344
5345 ;;
5346 esac
5347 fi
5348 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5349 if test -n "$INSTALL_INFO"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5351 $as_echo "$INSTALL_INFO" >&6; }
5352 else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5355 fi
5356
5357
5358 # Extract the first word of "install-info", so it can be a program name with args.
5359 set dummy install-info; ac_word=$2
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5361 $as_echo_n "checking for $ac_word... " >&6; }
5362 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 case $INSTALL_INFO in
5366 [\\/]* | ?:[\\/]*)
5367 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5368 ;;
5369 *)
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in /sbin
5372 do
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5377 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5380 fi
5381 done
5382 done
5383 IFS=$as_save_IFS
5384
5385 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5386 ;;
5387 esac
5388 fi
5389 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5390 if test -n "$INSTALL_INFO"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5392 $as_echo "$INSTALL_INFO" >&6; }
5393 else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5396 fi
5397
5398
5399 # Extract the first word of "gzip", so it can be a program name with args.
5400 set dummy gzip; ac_word=$2
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402 $as_echo_n "checking for $ac_word... " >&6; }
5403 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 case $GZIP_PROG in
5407 [\\/]* | ?:[\\/]*)
5408 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5409 ;;
5410 *)
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5413 do
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5421 fi
5422 done
5423 done
5424 IFS=$as_save_IFS
5425
5426 ;;
5427 esac
5428 fi
5429 GZIP_PROG=$ac_cv_path_GZIP_PROG
5430 if test -n "$GZIP_PROG"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5432 $as_echo "$GZIP_PROG" >&6; }
5433 else
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5436 fi
5437
5438
5439
5440
5441 ## Need makeinfo >= 4.6 (?) to build the manuals.
5442 # Extract the first word of "makeinfo", so it can be a program name with args.
5443 set dummy makeinfo; ac_word=$2
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445 $as_echo_n "checking for $ac_word... " >&6; }
5446 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 case $MAKEINFO in
5450 [\\/]* | ?:[\\/]*)
5451 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5452 ;;
5453 *)
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5456 do
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 break 2
5464 fi
5465 done
5466 done
5467 IFS=$as_save_IFS
5468
5469 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5470 ;;
5471 esac
5472 fi
5473 MAKEINFO=$ac_cv_path_MAKEINFO
5474 if test -n "$MAKEINFO"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5476 $as_echo "$MAKEINFO" >&6; }
5477 else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5480 fi
5481
5482
5483 if test "$MAKEINFO" != "no" && \
5484 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
5485 MAKEINFO=no
5486 fi
5487
5488 ## Makeinfo is unusual. For a released Emacs, the manuals are
5489 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5490 ## therefore in the category of "special tools" not normally required, which
5491 ## configure does not have to check for (eg autoconf itself).
5492 ## In a Bazaar checkout on the other hand, the manuals are not included.
5493 ## So makeinfo is a requirement to build from Bazaar, and configure
5494 ## should test for it as it does for any other build requirement.
5495 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5496 ## with pre-built manuals, from a Bazaar checkout.
5497 if test "$MAKEINFO" = "no"; then
5498 if test "x${with_makeinfo}" = "xno"; then
5499 MAKEINFO=off
5500 elif test ! -e $srcdir/info/emacs; then
5501 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5502 source tree does not seem to have pre-built manuals in the \`info' directory.
5503 Either install a suitable version of makeinfo, or re-run configure
5504 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5505 fi
5506 fi
5507
5508
5509 if test x$GCC = xyes; then
5510 test "x$GCC_LINK_TEST_OPTIONS" != x && \
5511 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5512 else
5513 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
5514 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5515 fi
5516
5517
5518 late_LDFLAGS=$LDFLAGS
5519 if test x$GCC = xyes; then
5520 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5521 else
5522 LDFLAGS="$LDFLAGS -znocombreloc"
5523 fi
5524
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5526 $as_echo_n "checking for -znocombreloc... " >&6; }
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 main(){return 0;}
5530 _ACEOF
5531 if ac_fn_c_try_link "$LINENO"; then :
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5533 $as_echo "yes" >&6; }
5534 else
5535 LDFLAGS=$late_LDFLAGS
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5538 fi
5539 rm -f core conftest.err conftest.$ac_objext \
5540 conftest$ac_exeext conftest.$ac_ext
5541
5542
5543 # The value of CPP is a quoted variable reference, so we need to do this
5544 # to get its actual value...
5545 CPP=`eval "echo $CPP"`
5546
5547
5548 CANNOT_DUMP=no
5549 case "$opsys" in
5550 your-opsys-here)
5551 CANNOT_DUMP=yes
5552
5553 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5554
5555 ;;
5556 esac
5557
5558
5559
5560 UNEXEC_OBJ=unexelf.o
5561 case "$opsys" in
5562 # MSDOS uses unexcoff.o
5563 # MSWindows uses unexw32.o
5564 aix4-2)
5565 UNEXEC_OBJ=unexaix.o
5566 ;;
5567 cygwin)
5568 UNEXEC_OBJ=unexcw.o
5569 ;;
5570 darwin)
5571 UNEXEC_OBJ=unexmacosx.o
5572 ;;
5573 hpux10-20 | hpux11)
5574 UNEXEC_OBJ=unexhp9k800.o
5575 ;;
5576 sol2-10)
5577 # Use the Solaris dldump() function, called from unexsol.c, to dump
5578 # emacs, instead of the generic ELF dump code found in unexelf.c.
5579 # The resulting binary has a complete symbol table, and is better
5580 # for debugging and other observability tools (debuggers, pstack, etc).
5581 #
5582 # If you encounter a problem using dldump(), please consider sending
5583 # a message to the OpenSolaris tools-linking mailing list:
5584 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5585 #
5586 # It is likely that dldump() works with older Solaris too, but this has
5587 # not been tested, so for now this change is for Solaris 10 or newer.
5588 UNEXEC_OBJ=unexsol.o
5589 ;;
5590 esac
5591
5592 LD_SWITCH_SYSTEM=
5593 case "$opsys" in
5594 freebsd)
5595 ## Let `ld' find image libs and similar things in /usr/local/lib.
5596 ## The system compiler, GCC, has apparently been modified to not
5597 ## look there, contrary to what a stock GCC would do.
5598 LD_SWITCH_SYSTEM=-L/usr/local/lib
5599 ;;
5600
5601 gnu-linux)
5602 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5603 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5604 ;;
5605
5606 netbsd)
5607 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5608 ;;
5609
5610 openbsd)
5611 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5612 ## otherwise Emacs dumps core on elf systems.
5613 LD_SWITCH_SYSTEM="-Z"
5614 ;;
5615 esac
5616
5617
5618 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5619
5620 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5621 ## which has not been defined yet. When this was handled with cpp,
5622 ## it was expanded to null when configure sourced the s/*.h file.
5623 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5624 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5625 ## (or somesuch), but because it is supposed to go at the _front_
5626 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5627 ## Compare with the gnu-linux case below, which added to the end
5628 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5629 ## LD_SWITCH_SYSTEM_TEMACS.
5630 case "$opsys" in
5631 netbsd|openbsd)
5632 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5633 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5634 esac
5635
5636
5637 C_SWITCH_MACHINE=
5638 if test "$machine" = "alpha"; then
5639 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5640 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5641
5642 fi
5643
5644 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5645 ## With ELF, make sure that all common symbols get allocated to in the
5646 ## data section. Otherwise, the dump of temacs may miss variables in
5647 ## the shared library that have been initialized. For example, with
5648 ## GNU libc, __malloc_initialized would normally be resolved to the
5649 ## shared library's .bss section, which is fatal.
5650 if test "x$GCC" = "xyes"; then
5651 C_SWITCH_MACHINE="-fno-common"
5652 else
5653 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5654 fi
5655 else
5656 UNEXEC_OBJ=unexalpha.o
5657 fi
5658 fi
5659
5660
5661
5662
5663 C_SWITCH_SYSTEM=
5664 ## Some programs in src produce warnings saying certain subprograms
5665 ## are too complex and need a MAXMEM value greater than 2000 for
5666 ## additional optimization. --nils@exp-math.uni-essen.de
5667 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5668 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5669 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5670 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5671
5672
5673
5674 LIBS_SYSTEM=
5675 case "$opsys" in
5676 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5677 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5678
5679 freebsd) LIBS_SYSTEM="-lutil" ;;
5680
5681 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5682
5683 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5684
5685 ## Motif needs -lgen.
5686 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5687 esac
5688
5689
5690
5691 ### Make sure subsequent tests use flags consistent with the build flags.
5692
5693 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5694 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5695 else
5696 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5697 fi
5698
5699
5700
5701 # Check whether --enable-largefile was given.
5702 if test "${enable_largefile+set}" = set; then :
5703 enableval=$enable_largefile;
5704 fi
5705
5706 if test "$enable_largefile" != no; then
5707
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5709 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5710 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 ac_cv_sys_largefile_CC=no
5714 if test "$GCC" != yes; then
5715 ac_save_CC=$CC
5716 while :; do
5717 # IRIX 6.2 and later do not support large files by default,
5718 # so use the C compiler's -n32 option if that helps.
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5721 #include <sys/types.h>
5722 /* Check that off_t can represent 2**63 - 1 correctly.
5723 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5724 since some C++ compilers masquerading as C compilers
5725 incorrectly reject 9223372036854775807. */
5726 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5727 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5728 && LARGE_OFF_T % 2147483647 == 1)
5729 ? 1 : -1];
5730 int
5731 main ()
5732 {
5733
5734 ;
5735 return 0;
5736 }
5737 _ACEOF
5738 if ac_fn_c_try_compile "$LINENO"; then :
5739 break
5740 fi
5741 rm -f core conftest.err conftest.$ac_objext
5742 CC="$CC -n32"
5743 if ac_fn_c_try_compile "$LINENO"; then :
5744 ac_cv_sys_largefile_CC=' -n32'; break
5745 fi
5746 rm -f core conftest.err conftest.$ac_objext
5747 break
5748 done
5749 CC=$ac_save_CC
5750 rm -f conftest.$ac_ext
5751 fi
5752 fi
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5754 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5755 if test "$ac_cv_sys_largefile_CC" != no; then
5756 CC=$CC$ac_cv_sys_largefile_CC
5757 fi
5758
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5760 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5761 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 while :; do
5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5767 #include <sys/types.h>
5768 /* Check that off_t can represent 2**63 - 1 correctly.
5769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5770 since some C++ compilers masquerading as C compilers
5771 incorrectly reject 9223372036854775807. */
5772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5774 && LARGE_OFF_T % 2147483647 == 1)
5775 ? 1 : -1];
5776 int
5777 main ()
5778 {
5779
5780 ;
5781 return 0;
5782 }
5783 _ACEOF
5784 if ac_fn_c_try_compile "$LINENO"; then :
5785 ac_cv_sys_file_offset_bits=no; break
5786 fi
5787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5790 #define _FILE_OFFSET_BITS 64
5791 #include <sys/types.h>
5792 /* Check that off_t can represent 2**63 - 1 correctly.
5793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5794 since some C++ compilers masquerading as C compilers
5795 incorrectly reject 9223372036854775807. */
5796 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5798 && LARGE_OFF_T % 2147483647 == 1)
5799 ? 1 : -1];
5800 int
5801 main ()
5802 {
5803
5804 ;
5805 return 0;
5806 }
5807 _ACEOF
5808 if ac_fn_c_try_compile "$LINENO"; then :
5809 ac_cv_sys_file_offset_bits=64; break
5810 fi
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 ac_cv_sys_file_offset_bits=unknown
5813 break
5814 done
5815 fi
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5817 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5818 case $ac_cv_sys_file_offset_bits in #(
5819 no | unknown) ;;
5820 *)
5821 cat >>confdefs.h <<_ACEOF
5822 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5823 _ACEOF
5824 ;;
5825 esac
5826 rm -rf conftest*
5827 if test $ac_cv_sys_file_offset_bits = unknown; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5829 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5830 if test "${ac_cv_sys_large_files+set}" = set; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 while :; do
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 #include <sys/types.h>
5837 /* Check that off_t can represent 2**63 - 1 correctly.
5838 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5839 since some C++ compilers masquerading as C compilers
5840 incorrectly reject 9223372036854775807. */
5841 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5842 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5843 && LARGE_OFF_T % 2147483647 == 1)
5844 ? 1 : -1];
5845 int
5846 main ()
5847 {
5848
5849 ;
5850 return 0;
5851 }
5852 _ACEOF
5853 if ac_fn_c_try_compile "$LINENO"; then :
5854 ac_cv_sys_large_files=no; break
5855 fi
5856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859 #define _LARGE_FILES 1
5860 #include <sys/types.h>
5861 /* Check that off_t can represent 2**63 - 1 correctly.
5862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5863 since some C++ compilers masquerading as C compilers
5864 incorrectly reject 9223372036854775807. */
5865 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5867 && LARGE_OFF_T % 2147483647 == 1)
5868 ? 1 : -1];
5869 int
5870 main ()
5871 {
5872
5873 ;
5874 return 0;
5875 }
5876 _ACEOF
5877 if ac_fn_c_try_compile "$LINENO"; then :
5878 ac_cv_sys_large_files=1; break
5879 fi
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881 ac_cv_sys_large_files=unknown
5882 break
5883 done
5884 fi
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5886 $as_echo "$ac_cv_sys_large_files" >&6; }
5887 case $ac_cv_sys_large_files in #(
5888 no | unknown) ;;
5889 *)
5890 cat >>confdefs.h <<_ACEOF
5891 #define _LARGE_FILES $ac_cv_sys_large_files
5892 _ACEOF
5893 ;;
5894 esac
5895 rm -rf conftest*
5896 fi
5897 fi
5898
5899
5900
5901 ## If user specified a crt-dir, use that unconditionally.
5902 if test "X$CRT_DIR" = "X"; then
5903
5904 case "$canonical" in
5905 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5906 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5907 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5908 ## For anything else (eg /usr/lib32), it is up the user to specify
5909 ## the location (bug#5655).
5910 ## Test for crtn.o, not just the directory, because sometimes the
5911 ## directory exists but does not have the relevant files (bug#1287).
5912 ## FIXME better to test for binary compatibility somehow.
5913 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5914 ;;
5915
5916 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5917 esac
5918
5919 case "$opsys" in
5920 hpux10-20) CRT_DIR=/lib ;;
5921 esac
5922
5923 ## Default is /usr/lib.
5924 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5925
5926 else
5927
5928 ## Some platforms don't use any of these files, so it is not
5929 ## appropriate to put this test outside the if block.
5930 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5931 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
5932
5933 fi
5934
5935
5936
5937 LIB_MATH=-lm
5938 LIB_STANDARD=
5939 START_FILES=
5940
5941 case $opsys in
5942 cygwin )
5943 LIB_MATH=
5944 START_FILES='pre-crt0.o'
5945 ;;
5946 darwin )
5947 ## Adding -lm confuses the dynamic linker, so omit it.
5948 LIB_MATH=
5949 START_FILES='pre-crt0.o'
5950 ;;
5951 freebsd )
5952 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5953 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5954 ;;
5955 gnu-linux | gnu-kfreebsd )
5956 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5957 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5958 ;;
5959 hpux10-20 | hpux11 )
5960 LIB_STANDARD=-lc
5961 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5962 ;;
5963 netbsd | openbsd )
5964 if test -f $CRT_DIR/crti.o; then
5965 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5966 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5967 else
5968 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5969 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5970 fi
5971 ;;
5972 esac
5973
5974
5975
5976
5977
5978
5979
5980 if test "${with_sound}" != "no"; then
5981 # Sound support for GNU/Linux and the free BSDs.
5982 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5983 do :
5984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5985 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5986 eval as_val=\$$as_ac_Header
5987 if test "x$as_val" = x""yes; then :
5988 cat >>confdefs.h <<_ACEOF
5989 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5990 _ACEOF
5991 have_sound_header=yes
5992 fi
5993
5994 done
5995
5996 # Emulation library used on NetBSD.
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5998 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5999 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 ac_check_lib_save_LIBS=$LIBS
6003 LIBS="-lossaudio $LIBS"
6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h. */
6006
6007 /* Override any GCC internal prototype to avoid an error.
6008 Use char because int might match the return type of a GCC
6009 builtin and then its argument prototype would still apply. */
6010 #ifdef __cplusplus
6011 extern "C"
6012 #endif
6013 char _oss_ioctl ();
6014 int
6015 main ()
6016 {
6017 return _oss_ioctl ();
6018 ;
6019 return 0;
6020 }
6021 _ACEOF
6022 if ac_fn_c_try_link "$LINENO"; then :
6023 ac_cv_lib_ossaudio__oss_ioctl=yes
6024 else
6025 ac_cv_lib_ossaudio__oss_ioctl=no
6026 fi
6027 rm -f core conftest.err conftest.$ac_objext \
6028 conftest$ac_exeext conftest.$ac_ext
6029 LIBS=$ac_check_lib_save_LIBS
6030 fi
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6032 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6033 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
6034 LIBSOUND=-lossaudio
6035 else
6036 LIBSOUND=
6037 fi
6038
6039
6040
6041 ALSA_REQUIRED=1.0.0
6042 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6043
6044 succeeded=no
6045
6046 # Extract the first word of "pkg-config", so it can be a program name with args.
6047 set dummy pkg-config; ac_word=$2
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 $as_echo_n "checking for $ac_word... " >&6; }
6050 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6051 $as_echo_n "(cached) " >&6
6052 else
6053 case $PKG_CONFIG in
6054 [\\/]* | ?:[\\/]*)
6055 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6056 ;;
6057 *)
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6068 fi
6069 done
6070 done
6071 IFS=$as_save_IFS
6072
6073 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6074 ;;
6075 esac
6076 fi
6077 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6078 if test -n "$PKG_CONFIG"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6080 $as_echo "$PKG_CONFIG" >&6; }
6081 else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6084 fi
6085
6086
6087
6088 if test "$PKG_CONFIG" = "no" ; then
6089 HAVE_ALSA=no
6090 else
6091 PKG_CONFIG_MIN_VERSION=0.9.0
6092 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6094 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6095
6096 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6098 $as_echo "yes" >&6; }
6099 succeeded=yes
6100
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6102 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6103 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6105 $as_echo "$ALSA_CFLAGS" >&6; }
6106
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6108 $as_echo_n "checking ALSA_LIBS... " >&6; }
6109 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6111 $as_echo "$ALSA_LIBS" >&6; }
6112 else
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114 $as_echo "no" >&6; }
6115 ALSA_CFLAGS=""
6116 ALSA_LIBS=""
6117 ## If we have a custom action on failure, don't print errors, but
6118 ## do set a variable so people can do so.
6119 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6120
6121 fi
6122
6123
6124
6125 else
6126 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6127 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6128 fi
6129 fi
6130
6131 if test $succeeded = yes; then
6132 HAVE_ALSA=yes
6133 else
6134 HAVE_ALSA=no
6135 fi
6136
6137 if test $HAVE_ALSA = yes; then
6138 SAVE_CFLAGS="$CFLAGS"
6139 SAVE_LDFLAGS="$LDFLAGS"
6140 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6141 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6144 #include <asoundlib.h>
6145 int
6146 main ()
6147 {
6148 snd_lib_error_set_handler (0);
6149 ;
6150 return 0;
6151 }
6152 _ACEOF
6153 if ac_fn_c_try_compile "$LINENO"; then :
6154 emacs_alsa_normal=yes
6155 else
6156 emacs_alsa_normal=no
6157 fi
6158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159 if test "$emacs_alsa_normal" != yes; then
6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6162 #include <alsa/asoundlib.h>
6163 int
6164 main ()
6165 {
6166 snd_lib_error_set_handler (0);
6167 ;
6168 return 0;
6169 }
6170 _ACEOF
6171 if ac_fn_c_try_compile "$LINENO"; then :
6172 emacs_alsa_subdir=yes
6173 else
6174 emacs_alsa_subdir=no
6175 fi
6176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177 if test "$emacs_alsa_subdir" != yes; then
6178 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6179 fi
6180 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6181 fi
6182
6183 CFLAGS="$SAVE_CFLAGS"
6184 LDFLAGS="$SAVE_LDFLAGS"
6185 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6186 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6187
6188 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6189
6190 fi
6191
6192 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6193 case "$opsys" in
6194 gnu-linux|freebsd|netbsd)
6195
6196 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6197
6198 ;;
6199 esac
6200 fi
6201
6202
6203 fi
6204
6205 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6206 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6207 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6208 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6209 sys/utsname.h pwd.h utmp.h dirent.h util.h
6210 do :
6211 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6212 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6213 eval as_val=\$$as_ac_Header
6214 if test "x$as_val" = x""yes; then :
6215 cat >>confdefs.h <<_ACEOF
6216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6217 _ACEOF
6218
6219 fi
6220
6221 done
6222
6223
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6225 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6228 #include <sys/personality.h>
6229 int
6230 main ()
6231 {
6232 personality (PER_LINUX32)
6233 ;
6234 return 0;
6235 }
6236 _ACEOF
6237 if ac_fn_c_try_compile "$LINENO"; then :
6238 emacs_cv_personality_linux32=yes
6239 else
6240 emacs_cv_personality_linux32=no
6241 fi
6242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6244 $as_echo "$emacs_cv_personality_linux32" >&6; }
6245
6246 if test $emacs_cv_personality_linux32 = yes; then
6247
6248 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6249
6250 fi
6251
6252 for ac_header in term.h
6253 do :
6254 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6255 if test "x$ac_cv_header_term_h" = x""yes; then :
6256 cat >>confdefs.h <<_ACEOF
6257 #define HAVE_TERM_H 1
6258 _ACEOF
6259
6260 fi
6261
6262 done
6263
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6265 $as_echo_n "checking for ANSI C header files... " >&6; }
6266 if test "${ac_cv_header_stdc+set}" = set; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 #include <stdlib.h>
6272 #include <stdarg.h>
6273 #include <string.h>
6274 #include <float.h>
6275
6276 int
6277 main ()
6278 {
6279
6280 ;
6281 return 0;
6282 }
6283 _ACEOF
6284 if ac_fn_c_try_compile "$LINENO"; then :
6285 ac_cv_header_stdc=yes
6286 else
6287 ac_cv_header_stdc=no
6288 fi
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290
6291 if test $ac_cv_header_stdc = yes; then
6292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6295 #include <string.h>
6296
6297 _ACEOF
6298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6299 $EGREP "memchr" >/dev/null 2>&1; then :
6300
6301 else
6302 ac_cv_header_stdc=no
6303 fi
6304 rm -f conftest*
6305
6306 fi
6307
6308 if test $ac_cv_header_stdc = yes; then
6309 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6312 #include <stdlib.h>
6313
6314 _ACEOF
6315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6316 $EGREP "free" >/dev/null 2>&1; then :
6317
6318 else
6319 ac_cv_header_stdc=no
6320 fi
6321 rm -f conftest*
6322
6323 fi
6324
6325 if test $ac_cv_header_stdc = yes; then
6326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6327 if test "$cross_compiling" = yes; then :
6328 :
6329 else
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6332 #include <ctype.h>
6333 #include <stdlib.h>
6334 #if ((' ' & 0x0FF) == 0x020)
6335 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6336 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6337 #else
6338 # define ISLOWER(c) \
6339 (('a' <= (c) && (c) <= 'i') \
6340 || ('j' <= (c) && (c) <= 'r') \
6341 || ('s' <= (c) && (c) <= 'z'))
6342 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6343 #endif
6344
6345 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6346 int
6347 main ()
6348 {
6349 int i;
6350 for (i = 0; i < 256; i++)
6351 if (XOR (islower (i), ISLOWER (i))
6352 || toupper (i) != TOUPPER (i))
6353 return 2;
6354 return 0;
6355 }
6356 _ACEOF
6357 if ac_fn_c_try_run "$LINENO"; then :
6358
6359 else
6360 ac_cv_header_stdc=no
6361 fi
6362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6363 conftest.$ac_objext conftest.beam conftest.$ac_ext
6364 fi
6365
6366 fi
6367 fi
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6369 $as_echo "$ac_cv_header_stdc" >&6; }
6370 if test $ac_cv_header_stdc = yes; then
6371
6372 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6373
6374 fi
6375
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6377 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6378 if test "${ac_cv_header_time+set}" = set; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6383 #include <sys/types.h>
6384 #include <sys/time.h>
6385 #include <time.h>
6386
6387 int
6388 main ()
6389 {
6390 if ((struct tm *) 0)
6391 return 0;
6392 ;
6393 return 0;
6394 }
6395 _ACEOF
6396 if ac_fn_c_try_compile "$LINENO"; then :
6397 ac_cv_header_time=yes
6398 else
6399 ac_cv_header_time=no
6400 fi
6401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6402 fi
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6404 $as_echo "$ac_cv_header_time" >&6; }
6405 if test $ac_cv_header_time = yes; then
6406
6407 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6408
6409 fi
6410
6411 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6412 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6413 ac_have_decl=1
6414 else
6415 ac_have_decl=0
6416 fi
6417
6418 cat >>confdefs.h <<_ACEOF
6419 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6420 _ACEOF
6421
6422 if test $ac_cv_have_decl_sys_siglist != yes; then
6423 # For Tru64, at least:
6424 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6425 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6426 ac_have_decl=1
6427 else
6428 ac_have_decl=0
6429 fi
6430
6431 cat >>confdefs.h <<_ACEOF
6432 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6433 _ACEOF
6434
6435 if test $ac_cv_have_decl___sys_siglist = yes; then
6436
6437 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6438
6439 fi
6440 fi
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6442 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6443 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6448 #include <sys/types.h>
6449 #include <sys/wait.h>
6450 #ifndef WEXITSTATUS
6451 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6452 #endif
6453 #ifndef WIFEXITED
6454 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6455 #endif
6456
6457 int
6458 main ()
6459 {
6460 int s;
6461 wait (&s);
6462 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6463 ;
6464 return 0;
6465 }
6466 _ACEOF
6467 if ac_fn_c_try_compile "$LINENO"; then :
6468 ac_cv_header_sys_wait_h=yes
6469 else
6470 ac_cv_header_sys_wait_h=no
6471 fi
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473 fi
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6475 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6476 if test $ac_cv_header_sys_wait_h = yes; then
6477
6478 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6479
6480 fi
6481
6482
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6484 $as_echo_n "checking for struct utimbuf... " >&6; }
6485 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489 /* end confdefs.h. */
6490 #ifdef TIME_WITH_SYS_TIME
6491 #include <sys/time.h>
6492 #include <time.h>
6493 #else
6494 #ifdef HAVE_SYS_TIME_H
6495 #include <sys/time.h>
6496 #else
6497 #include <time.h>
6498 #endif
6499 #endif
6500 #ifdef HAVE_UTIME_H
6501 #include <utime.h>
6502 #endif
6503 int
6504 main ()
6505 {
6506 static struct utimbuf x; x.actime = x.modtime;
6507 ;
6508 return 0;
6509 }
6510 _ACEOF
6511 if ac_fn_c_try_compile "$LINENO"; then :
6512 emacs_cv_struct_utimbuf=yes
6513 else
6514 emacs_cv_struct_utimbuf=no
6515 fi
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517 fi
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6519 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6520 if test $emacs_cv_struct_utimbuf = yes; then
6521
6522 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6523
6524 fi
6525
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6527 $as_echo_n "checking return type of signal handlers... " >&6; }
6528 if test "${ac_cv_type_signal+set}" = set; then :
6529 $as_echo_n "(cached) " >&6
6530 else
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6533 #include <sys/types.h>
6534 #include <signal.h>
6535
6536 int
6537 main ()
6538 {
6539 return *(signal (0, 0)) (0) == 1;
6540 ;
6541 return 0;
6542 }
6543 _ACEOF
6544 if ac_fn_c_try_compile "$LINENO"; then :
6545 ac_cv_type_signal=int
6546 else
6547 ac_cv_type_signal=void
6548 fi
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550 fi
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6552 $as_echo "$ac_cv_type_signal" >&6; }
6553
6554 cat >>confdefs.h <<_ACEOF
6555 #define RETSIGTYPE $ac_cv_type_signal
6556 _ACEOF
6557
6558
6559
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6561 $as_echo_n "checking for speed_t... " >&6; }
6562 if test "${emacs_cv_speed_t+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567 #include <termios.h>
6568 int
6569 main ()
6570 {
6571 speed_t x = 1;
6572 ;
6573 return 0;
6574 }
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"; then :
6577 emacs_cv_speed_t=yes
6578 else
6579 emacs_cv_speed_t=no
6580 fi
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 fi
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6584 $as_echo "$emacs_cv_speed_t" >&6; }
6585 if test $emacs_cv_speed_t = yes; then
6586
6587 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6588
6589 fi
6590
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6592 $as_echo_n "checking for struct timeval... " >&6; }
6593 if test "${emacs_cv_struct_timeval+set}" = set; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598 #ifdef TIME_WITH_SYS_TIME
6599 #include <sys/time.h>
6600 #include <time.h>
6601 #else
6602 #ifdef HAVE_SYS_TIME_H
6603 #include <sys/time.h>
6604 #else
6605 #include <time.h>
6606 #endif
6607 #endif
6608 int
6609 main ()
6610 {
6611 static struct timeval x; x.tv_sec = x.tv_usec;
6612 ;
6613 return 0;
6614 }
6615 _ACEOF
6616 if ac_fn_c_try_compile "$LINENO"; then :
6617 emacs_cv_struct_timeval=yes
6618 else
6619 emacs_cv_struct_timeval=no
6620 fi
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 fi
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6624 $as_echo "$emacs_cv_struct_timeval" >&6; }
6625 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6626 if test $emacs_cv_struct_timeval = yes; then
6627
6628 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6629
6630 fi
6631
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6633 $as_echo_n "checking for struct exception... " >&6; }
6634 if test "${emacs_cv_struct_exception+set}" = set; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639 #include <math.h>
6640 int
6641 main ()
6642 {
6643 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6644 ;
6645 return 0;
6646 }
6647 _ACEOF
6648 if ac_fn_c_try_compile "$LINENO"; then :
6649 emacs_cv_struct_exception=yes
6650 else
6651 emacs_cv_struct_exception=no
6652 fi
6653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654 fi
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6656 $as_echo "$emacs_cv_struct_exception" >&6; }
6657 HAVE_EXCEPTION=$emacs_cv_struct_exception
6658 if test $emacs_cv_struct_exception != yes; then
6659
6660 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6661
6662 fi
6663
6664 for ac_header in sys/socket.h
6665 do :
6666 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6667 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6668 cat >>confdefs.h <<_ACEOF
6669 #define HAVE_SYS_SOCKET_H 1
6670 _ACEOF
6671
6672 fi
6673
6674 done
6675
6676 for ac_header in net/if.h
6677 do :
6678 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6679 #if HAVE_SYS_SOCKET_H
6680 #include <sys/socket.h>
6681 #endif
6682 "
6683 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6684 cat >>confdefs.h <<_ACEOF
6685 #define HAVE_NET_IF_H 1
6686 _ACEOF
6687
6688 fi
6689
6690 done
6691
6692
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6694 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6695 if test "${ac_cv_struct_tm+set}" = set; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6700 #include <sys/types.h>
6701 #include <time.h>
6702
6703 int
6704 main ()
6705 {
6706 struct tm tm;
6707 int *p = &tm.tm_sec;
6708 return !p;
6709 ;
6710 return 0;
6711 }
6712 _ACEOF
6713 if ac_fn_c_try_compile "$LINENO"; then :
6714 ac_cv_struct_tm=time.h
6715 else
6716 ac_cv_struct_tm=sys/time.h
6717 fi
6718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719 fi
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6721 $as_echo "$ac_cv_struct_tm" >&6; }
6722 if test $ac_cv_struct_tm = sys/time.h; then
6723
6724 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6725
6726 fi
6727
6728 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6729 #include <$ac_cv_struct_tm>
6730
6731 "
6732 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6733
6734 cat >>confdefs.h <<_ACEOF
6735 #define HAVE_STRUCT_TM_TM_ZONE 1
6736 _ACEOF
6737
6738
6739 fi
6740
6741 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6742
6743 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6744
6745 else
6746 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6747 "
6748 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6749 ac_have_decl=1
6750 else
6751 ac_have_decl=0
6752 fi
6753
6754 cat >>confdefs.h <<_ACEOF
6755 #define HAVE_DECL_TZNAME $ac_have_decl
6756 _ACEOF
6757
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6759 $as_echo_n "checking for tzname... " >&6; }
6760 if test "${ac_cv_var_tzname+set}" = set; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6765 #include <time.h>
6766 #if !HAVE_DECL_TZNAME
6767 extern char *tzname[];
6768 #endif
6769
6770 int
6771 main ()
6772 {
6773 return tzname[0][0];
6774 ;
6775 return 0;
6776 }
6777 _ACEOF
6778 if ac_fn_c_try_link "$LINENO"; then :
6779 ac_cv_var_tzname=yes
6780 else
6781 ac_cv_var_tzname=no
6782 fi
6783 rm -f core conftest.err conftest.$ac_objext \
6784 conftest$ac_exeext conftest.$ac_ext
6785 fi
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6787 $as_echo "$ac_cv_var_tzname" >&6; }
6788 if test $ac_cv_var_tzname = yes; then
6789
6790 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6791
6792 fi
6793 fi
6794
6795 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6796 "
6797 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6798
6799 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6800
6801 fi
6802
6803 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6804 #if HAVE_SYS_SOCKET_H
6805 #include <sys/socket.h>
6806 #endif
6807 #if HAVE_NET_IF_H
6808 #include <net/if.h>
6809 #endif
6810 "
6811 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6812
6813 cat >>confdefs.h <<_ACEOF
6814 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6815 _ACEOF
6816
6817
6818 fi
6819 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6820 #if HAVE_SYS_SOCKET_H
6821 #include <sys/socket.h>
6822 #endif
6823 #if HAVE_NET_IF_H
6824 #include <net/if.h>
6825 #endif
6826 "
6827 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6828
6829 cat >>confdefs.h <<_ACEOF
6830 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6831 _ACEOF
6832
6833
6834 fi
6835 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6836 #if HAVE_SYS_SOCKET_H
6837 #include <sys/socket.h>
6838 #endif
6839 #if HAVE_NET_IF_H
6840 #include <net/if.h>
6841 #endif
6842 "
6843 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6844
6845 cat >>confdefs.h <<_ACEOF
6846 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6847 _ACEOF
6848
6849
6850 fi
6851 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6852 #if HAVE_SYS_SOCKET_H
6853 #include <sys/socket.h>
6854 #endif
6855 #if HAVE_NET_IF_H
6856 #include <net/if.h>
6857 #endif
6858 "
6859 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6860
6861 cat >>confdefs.h <<_ACEOF
6862 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6863 _ACEOF
6864
6865
6866 fi
6867 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6868 #if HAVE_SYS_SOCKET_H
6869 #include <sys/socket.h>
6870 #endif
6871 #if HAVE_NET_IF_H
6872 #include <net/if.h>
6873 #endif
6874 "
6875 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6876
6877 cat >>confdefs.h <<_ACEOF
6878 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6879 _ACEOF
6880
6881
6882 fi
6883
6884
6885
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6887 $as_echo_n "checking for function prototypes... " >&6; }
6888 if test "$ac_cv_prog_cc_c89" != no; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6890 $as_echo "yes" >&6; }
6891
6892 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6893
6894
6895 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6896
6897 else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6900 fi
6901
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6903 $as_echo_n "checking for working volatile... " >&6; }
6904 if test "${ac_cv_c_volatile+set}" = set; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6909
6910 int
6911 main ()
6912 {
6913
6914 volatile int x;
6915 int * volatile y = (int *) 0;
6916 return !x && !y;
6917 ;
6918 return 0;
6919 }
6920 _ACEOF
6921 if ac_fn_c_try_compile "$LINENO"; then :
6922 ac_cv_c_volatile=yes
6923 else
6924 ac_cv_c_volatile=no
6925 fi
6926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927 fi
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6929 $as_echo "$ac_cv_c_volatile" >&6; }
6930 if test $ac_cv_c_volatile = no; then
6931
6932 $as_echo "#define volatile /**/" >>confdefs.h
6933
6934 fi
6935
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6937 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6938 if test "${ac_cv_c_const+set}" = set; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6942 /* end confdefs.h. */
6943
6944 int
6945 main ()
6946 {
6947 /* FIXME: Include the comments suggested by Paul. */
6948 #ifndef __cplusplus
6949 /* Ultrix mips cc rejects this. */
6950 typedef int charset[2];
6951 const charset cs;
6952 /* SunOS 4.1.1 cc rejects this. */
6953 char const *const *pcpcc;
6954 char **ppc;
6955 /* NEC SVR4.0.2 mips cc rejects this. */
6956 struct point {int x, y;};
6957 static struct point const zero = {0,0};
6958 /* AIX XL C 1.02.0.0 rejects this.
6959 It does not let you subtract one const X* pointer from another in
6960 an arm of an if-expression whose if-part is not a constant
6961 expression */
6962 const char *g = "string";
6963 pcpcc = &g + (g ? g-g : 0);
6964 /* HPUX 7.0 cc rejects these. */
6965 ++pcpcc;
6966 ppc = (char**) pcpcc;
6967 pcpcc = (char const *const *) ppc;
6968 { /* SCO 3.2v4 cc rejects this. */
6969 char *t;
6970 char const *s = 0 ? (char *) 0 : (char const *) 0;
6971
6972 *t++ = 0;
6973 if (s) return 0;
6974 }
6975 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6976 int x[] = {25, 17};
6977 const int *foo = &x[0];
6978 ++foo;
6979 }
6980 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6981 typedef const int *iptr;
6982 iptr p = 0;
6983 ++p;
6984 }
6985 { /* AIX XL C 1.02.0.0 rejects this saying
6986 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6987 struct s { int j; const int *ap[3]; };
6988 struct s *b; b->j = 5;
6989 }
6990 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6991 const int foo = 10;
6992 if (!foo) return 0;
6993 }
6994 return !cs[0] && !zero.x;
6995 #endif
6996
6997 ;
6998 return 0;
6999 }
7000 _ACEOF
7001 if ac_fn_c_try_compile "$LINENO"; then :
7002 ac_cv_c_const=yes
7003 else
7004 ac_cv_c_const=no
7005 fi
7006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7007 fi
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7009 $as_echo "$ac_cv_c_const" >&6; }
7010 if test $ac_cv_c_const = no; then
7011
7012 $as_echo "#define const /**/" >>confdefs.h
7013
7014 fi
7015
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7017 $as_echo_n "checking for void * support... " >&6; }
7018 if test "${emacs_cv_void_star+set}" = set; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7023
7024 int
7025 main ()
7026 {
7027 void * foo;
7028 ;
7029 return 0;
7030 }
7031 _ACEOF
7032 if ac_fn_c_try_compile "$LINENO"; then :
7033 emacs_cv_void_star=yes
7034 else
7035 emacs_cv_void_star=no
7036 fi
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038 fi
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7040 $as_echo "$emacs_cv_void_star" >&6; }
7041 if test $emacs_cv_void_star = yes; then
7042 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7043
7044 else
7045 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7046
7047 fi
7048
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7050 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7051 if test "${ac_cv_c_bigendian+set}" = set; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 ac_cv_c_bigendian=unknown
7055 # See if we're dealing with a universal compiler.
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7058 #ifndef __APPLE_CC__
7059 not a universal capable compiler
7060 #endif
7061 typedef int dummy;
7062
7063 _ACEOF
7064 if ac_fn_c_try_compile "$LINENO"; then :
7065
7066 # Check for potential -arch flags. It is not universal unless
7067 # there are at least two -arch flags with different values.
7068 ac_arch=
7069 ac_prev=
7070 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7071 if test -n "$ac_prev"; then
7072 case $ac_word in
7073 i?86 | x86_64 | ppc | ppc64)
7074 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7075 ac_arch=$ac_word
7076 else
7077 ac_cv_c_bigendian=universal
7078 break
7079 fi
7080 ;;
7081 esac
7082 ac_prev=
7083 elif test "x$ac_word" = "x-arch"; then
7084 ac_prev=arch
7085 fi
7086 done
7087 fi
7088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089 if test $ac_cv_c_bigendian = unknown; then
7090 # See if sys/param.h defines the BYTE_ORDER macro.
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093 #include <sys/types.h>
7094 #include <sys/param.h>
7095
7096 int
7097 main ()
7098 {
7099 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7100 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7101 && LITTLE_ENDIAN)
7102 bogus endian macros
7103 #endif
7104
7105 ;
7106 return 0;
7107 }
7108 _ACEOF
7109 if ac_fn_c_try_compile "$LINENO"; then :
7110 # It does; now see whether it defined to BIG_ENDIAN or not.
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7113 #include <sys/types.h>
7114 #include <sys/param.h>
7115
7116 int
7117 main ()
7118 {
7119 #if BYTE_ORDER != BIG_ENDIAN
7120 not big endian
7121 #endif
7122
7123 ;
7124 return 0;
7125 }
7126 _ACEOF
7127 if ac_fn_c_try_compile "$LINENO"; then :
7128 ac_cv_c_bigendian=yes
7129 else
7130 ac_cv_c_bigendian=no
7131 fi
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 fi
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135 fi
7136 if test $ac_cv_c_bigendian = unknown; then
7137 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7140 #include <limits.h>
7141
7142 int
7143 main ()
7144 {
7145 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7146 bogus endian macros
7147 #endif
7148
7149 ;
7150 return 0;
7151 }
7152 _ACEOF
7153 if ac_fn_c_try_compile "$LINENO"; then :
7154 # It does; now see whether it defined to _BIG_ENDIAN or not.
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7157 #include <limits.h>
7158
7159 int
7160 main ()
7161 {
7162 #ifndef _BIG_ENDIAN
7163 not big endian
7164 #endif
7165
7166 ;
7167 return 0;
7168 }
7169 _ACEOF
7170 if ac_fn_c_try_compile "$LINENO"; then :
7171 ac_cv_c_bigendian=yes
7172 else
7173 ac_cv_c_bigendian=no
7174 fi
7175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 fi
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 fi
7179 if test $ac_cv_c_bigendian = unknown; then
7180 # Compile a test program.
7181 if test "$cross_compiling" = yes; then :
7182 # Try to guess by grepping values from an object file.
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7185 short int ascii_mm[] =
7186 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7187 short int ascii_ii[] =
7188 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7189 int use_ascii (int i) {
7190 return ascii_mm[i] + ascii_ii[i];
7191 }
7192 short int ebcdic_ii[] =
7193 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7194 short int ebcdic_mm[] =
7195 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7196 int use_ebcdic (int i) {
7197 return ebcdic_mm[i] + ebcdic_ii[i];
7198 }
7199 extern int foo;
7200
7201 int
7202 main ()
7203 {
7204 return use_ascii (foo) == use_ebcdic (foo);
7205 ;
7206 return 0;
7207 }
7208 _ACEOF
7209 if ac_fn_c_try_compile "$LINENO"; then :
7210 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7211 ac_cv_c_bigendian=yes
7212 fi
7213 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7214 if test "$ac_cv_c_bigendian" = unknown; then
7215 ac_cv_c_bigendian=no
7216 else
7217 # finding both strings is unlikely to happen, but who knows?
7218 ac_cv_c_bigendian=unknown
7219 fi
7220 fi
7221 fi
7222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 else
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7226 $ac_includes_default
7227 int
7228 main ()
7229 {
7230
7231 /* Are we little or big endian? From Harbison&Steele. */
7232 union
7233 {
7234 long int l;
7235 char c[sizeof (long int)];
7236 } u;
7237 u.l = 1;
7238 return u.c[sizeof (long int) - 1] == 1;
7239
7240 ;
7241 return 0;
7242 }
7243 _ACEOF
7244 if ac_fn_c_try_run "$LINENO"; then :
7245 ac_cv_c_bigendian=no
7246 else
7247 ac_cv_c_bigendian=yes
7248 fi
7249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7250 conftest.$ac_objext conftest.beam conftest.$ac_ext
7251 fi
7252
7253 fi
7254 fi
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7256 $as_echo "$ac_cv_c_bigendian" >&6; }
7257 case $ac_cv_c_bigendian in #(
7258 yes)
7259 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7260 ;; #(
7261 no)
7262 ;; #(
7263 universal)
7264
7265 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7266
7267 ;; #(
7268 *)
7269 as_fn_error "unknown endianness
7270 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7271 esac
7272
7273
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7275 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7276 set x ${MAKE-make}
7277 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7278 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7279 $as_echo_n "(cached) " >&6
7280 else
7281 cat >conftest.make <<\_ACEOF
7282 SHELL = /bin/sh
7283 all:
7284 @echo '@@@%%%=$(MAKE)=@@@%%%'
7285 _ACEOF
7286 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7287 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7288 *@@@%%%=?*=@@@%%%*)
7289 eval ac_cv_prog_make_${ac_make}_set=yes;;
7290 *)
7291 eval ac_cv_prog_make_${ac_make}_set=no;;
7292 esac
7293 rm -f conftest.make
7294 fi
7295 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7297 $as_echo "yes" >&6; }
7298 SET_MAKE=
7299 else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7302 SET_MAKE="MAKE=${MAKE-make}"
7303 fi
7304
7305
7306 DEPFLAGS=
7307 MKDEPDIR=":"
7308 deps_frag=deps.mk
7309 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7311 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7312 HAVE_GNU_MAKE=no
7313 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7314 if test "x$testval" != x; then
7315 HAVE_GNU_MAKE=yes
7316 else
7317 ac_enable_autodepend=no
7318 fi
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7320 $as_echo "$HAVE_GNU_MAKE" >&6; }
7321 if test $HAVE_GNU_MAKE = yes; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7323 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7324 SAVE_CFLAGS="$CFLAGS"
7325 CFLAGS="$CFLAGS -MMD -MF deps.d"
7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327 /* end confdefs.h. */
7328
7329 int
7330 main ()
7331 {
7332
7333 ;
7334 return 0;
7335 }
7336 _ACEOF
7337 if ac_fn_c_try_compile "$LINENO"; then :
7338
7339 else
7340 ac_enable_autodepend=no
7341 fi
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343 CFLAGS="$SAVE_CFLAGS"
7344 test -f deps.d || ac_enable_autodepend=no
7345 rm -rf deps.d
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7347 $as_echo "$ac_enable_autodepend" >&6; }
7348 fi
7349 if test $ac_enable_autodepend = yes; then
7350 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7351 ## In parallel builds, another make might create depdir between
7352 ## the first test and mkdir, so stick another test on the end.
7353 ## Or use mkinstalldirs? mkdir -p is not portable.
7354 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7355 deps_frag=autodeps.mk
7356 fi
7357 fi
7358 deps_frag=$srcdir/src/$deps_frag
7359
7360
7361
7362
7363
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7365 $as_echo_n "checking for long file names... " >&6; }
7366 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7367 $as_echo_n "(cached) " >&6
7368 else
7369 ac_cv_sys_long_file_names=yes
7370 # Test for long file names in all the places we know might matter:
7371 # . the current directory, where building will happen
7372 # $prefix/lib where we will be installing things
7373 # $exec_prefix/lib likewise
7374 # $TMPDIR if set, where it might want to write temporary files
7375 # /tmp where it might want to write temporary files
7376 # /var/tmp likewise
7377 # /usr/tmp likewise
7378 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7379 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7380 # in the usual case where exec_prefix is '${prefix}'.
7381 case $ac_dir in #(
7382 . | /* | ?:[\\/]*) ;; #(
7383 *) continue;;
7384 esac
7385 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7386 ac_xdir=$ac_dir/cf$$
7387 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7388 ac_tf1=$ac_xdir/conftest9012345
7389 ac_tf2=$ac_xdir/conftest9012346
7390 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7391 ac_cv_sys_long_file_names=no
7392 rm -f -r "$ac_xdir" 2>/dev/null
7393 test $ac_cv_sys_long_file_names = no && break
7394 done
7395 fi
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7397 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7398 if test $ac_cv_sys_long_file_names = yes; then
7399
7400 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7401
7402 fi
7403
7404
7405 #### Choose a window system.
7406
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7408 $as_echo_n "checking for X... " >&6; }
7409
7410
7411 # Check whether --with-x was given.
7412 if test "${with_x+set}" = set; then :
7413 withval=$with_x;
7414 fi
7415
7416 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7417 if test "x$with_x" = xno; then
7418 # The user explicitly disabled X.
7419 have_x=disabled
7420 else
7421 case $x_includes,$x_libraries in #(
7422 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7423 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 # One or both of the vars are not set, and there is no cached value.
7427 ac_x_includes=no ac_x_libraries=no
7428 rm -f -r conftest.dir
7429 if mkdir conftest.dir; then
7430 cd conftest.dir
7431 cat >Imakefile <<'_ACEOF'
7432 incroot:
7433 @echo incroot='${INCROOT}'
7434 usrlibdir:
7435 @echo usrlibdir='${USRLIBDIR}'
7436 libdir:
7437 @echo libdir='${LIBDIR}'
7438 _ACEOF
7439 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7440 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7441 for ac_var in incroot usrlibdir libdir; do
7442 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7443 done
7444 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7445 for ac_extension in a so sl dylib la dll; do
7446 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7447 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7448 ac_im_usrlibdir=$ac_im_libdir; break
7449 fi
7450 done
7451 # Screen out bogus values from the imake configuration. They are
7452 # bogus both because they are the default anyway, and because
7453 # using them would break gcc on systems where it needs fixed includes.
7454 case $ac_im_incroot in
7455 /usr/include) ac_x_includes= ;;
7456 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7457 esac
7458 case $ac_im_usrlibdir in
7459 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7460 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7461 esac
7462 fi
7463 cd ..
7464 rm -f -r conftest.dir
7465 fi
7466
7467 # Standard set of common directories for X headers.
7468 # Check X11 before X11Rn because it is often a symlink to the current release.
7469 ac_x_header_dirs='
7470 /usr/X11/include
7471 /usr/X11R7/include
7472 /usr/X11R6/include
7473 /usr/X11R5/include
7474 /usr/X11R4/include
7475
7476 /usr/include/X11
7477 /usr/include/X11R7
7478 /usr/include/X11R6
7479 /usr/include/X11R5
7480 /usr/include/X11R4
7481
7482 /usr/local/X11/include
7483 /usr/local/X11R7/include
7484 /usr/local/X11R6/include
7485 /usr/local/X11R5/include
7486 /usr/local/X11R4/include
7487
7488 /usr/local/include/X11
7489 /usr/local/include/X11R7
7490 /usr/local/include/X11R6
7491 /usr/local/include/X11R5
7492 /usr/local/include/X11R4
7493
7494 /usr/X386/include
7495 /usr/x386/include
7496 /usr/XFree86/include/X11
7497
7498 /usr/include
7499 /usr/local/include
7500 /usr/unsupported/include
7501 /usr/athena/include
7502 /usr/local/x11r5/include
7503 /usr/lpp/Xamples/include
7504
7505 /usr/openwin/include
7506 /usr/openwin/share/include'
7507
7508 if test "$ac_x_includes" = no; then
7509 # Guess where to find include files, by looking for Xlib.h.
7510 # First, try using that file with no special directory specified.
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7513 #include <X11/Xlib.h>
7514 _ACEOF
7515 if ac_fn_c_try_cpp "$LINENO"; then :
7516 # We can compile using X headers with no special include directory.
7517 ac_x_includes=
7518 else
7519 for ac_dir in $ac_x_header_dirs; do
7520 if test -r "$ac_dir/X11/Xlib.h"; then
7521 ac_x_includes=$ac_dir
7522 break
7523 fi
7524 done
7525 fi
7526 rm -f conftest.err conftest.$ac_ext
7527 fi # $ac_x_includes = no
7528
7529 if test "$ac_x_libraries" = no; then
7530 # Check for the libraries.
7531 # See if we find them without any special options.
7532 # Don't add to $LIBS permanently.
7533 ac_save_LIBS=$LIBS
7534 LIBS="-lX11 $LIBS"
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7537 #include <X11/Xlib.h>
7538 int
7539 main ()
7540 {
7541 XrmInitialize ()
7542 ;
7543 return 0;
7544 }
7545 _ACEOF
7546 if ac_fn_c_try_link "$LINENO"; then :
7547 LIBS=$ac_save_LIBS
7548 # We can link X programs with no special library path.
7549 ac_x_libraries=
7550 else
7551 LIBS=$ac_save_LIBS
7552 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7553 do
7554 # Don't even attempt the hair of trying to link an X program!
7555 for ac_extension in a so sl dylib la dll; do
7556 if test -r "$ac_dir/libX11.$ac_extension"; then
7557 ac_x_libraries=$ac_dir
7558 break 2
7559 fi
7560 done
7561 done
7562 fi
7563 rm -f core conftest.err conftest.$ac_objext \
7564 conftest$ac_exeext conftest.$ac_ext
7565 fi # $ac_x_libraries = no
7566
7567 case $ac_x_includes,$ac_x_libraries in #(
7568 no,* | *,no | *\'*)
7569 # Didn't find X, or a directory has "'" in its name.
7570 ac_cv_have_x="have_x=no";; #(
7571 *)
7572 # Record where we found X for the cache.
7573 ac_cv_have_x="have_x=yes\
7574 ac_x_includes='$ac_x_includes'\
7575 ac_x_libraries='$ac_x_libraries'"
7576 esac
7577 fi
7578 ;; #(
7579 *) have_x=yes;;
7580 esac
7581 eval "$ac_cv_have_x"
7582 fi # $with_x != no
7583
7584 if test "$have_x" != yes; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7586 $as_echo "$have_x" >&6; }
7587 no_x=yes
7588 else
7589 # If each of the values was on the command line, it overrides each guess.
7590 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7591 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7592 # Update the cache value to reflect the command line values.
7593 ac_cv_have_x="have_x=yes\
7594 ac_x_includes='$x_includes'\
7595 ac_x_libraries='$x_libraries'"
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7597 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7598 fi
7599
7600 if test "$no_x" = yes; then
7601 window_system=none
7602 else
7603 window_system=x11
7604 fi
7605
7606 ## Workaround for bug in autoconf <= 2.62.
7607 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7608 ## No need to do anything special for these standard directories.
7609 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7610
7611 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7612
7613 fi
7614
7615 LD_SWITCH_X_SITE_AUX=
7616 LD_SWITCH_X_SITE_AUX_RPATH=
7617 if test "${x_libraries}" != NONE; then
7618 if test -n "${x_libraries}"; then
7619 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7620 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7621 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7622 fi
7623 x_default_search_path=""
7624 x_search_path=${x_libraries}
7625 if test -z "${x_search_path}"; then
7626 x_search_path=/usr/lib
7627 fi
7628 for x_library in `echo ${x_search_path}: | \
7629 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7630 x_search_path="\
7631 ${x_library}/X11/%L/%T/%N%C%S:\
7632 ${x_library}/X11/%l/%T/%N%C%S:\
7633 ${x_library}/X11/%T/%N%C%S:\
7634 ${x_library}/X11/%L/%T/%N%S:\
7635 ${x_library}/X11/%l/%T/%N%S:\
7636 ${x_library}/X11/%T/%N%S"
7637 if test x"${x_default_search_path}" = x; then
7638 x_default_search_path=${x_search_path}
7639 else
7640 x_default_search_path="${x_search_path}:${x_default_search_path}"
7641 fi
7642 done
7643 fi
7644
7645
7646
7647 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7648 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7649 fi
7650
7651 if test x"${x_includes}" = x; then
7652 bitmapdir=/usr/include/X11/bitmaps
7653 else
7654 # accumulate include directories that have X11 bitmap subdirectories
7655 bmd_acc="dummyval"
7656 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7657 if test -d "${bmd}/X11/bitmaps"; then
7658 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7659 fi
7660 if test -d "${bmd}/bitmaps"; then
7661 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7662 fi
7663 done
7664 if test ${bmd_acc} != "dummyval"; then
7665 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7666 fi
7667 fi
7668
7669 HAVE_NS=no
7670 NS_IMPL_COCOA=no
7671 NS_IMPL_GNUSTEP=no
7672 tmp_CPPFLAGS="$CPPFLAGS"
7673 tmp_CFLAGS="$CFLAGS"
7674 CPPFLAGS="$CPPFLAGS -x objective-c"
7675 CFLAGS="$CFLAGS -x objective-c"
7676 TEMACS_LDFLAGS2="\${LDFLAGS}"
7677 if test "${with_ns}" != no; then
7678 if test "${opsys}" = darwin; then
7679 NS_IMPL_COCOA=yes
7680 ns_appdir=`pwd`/nextstep/Emacs.app
7681 ns_appbindir=${ns_appdir}/Contents/MacOS/
7682 ns_appresdir=${ns_appdir}/Contents/Resources
7683 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7684 elif test -f $GNUSTEP_CONFIG_FILE; then
7685 NS_IMPL_GNUSTEP=yes
7686 ns_appdir=`pwd`/nextstep/Emacs.app
7687 ns_appbindir=${ns_appdir}
7688 ns_appresdir=${ns_appdir}/Resources
7689 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7690 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7691 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7692 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7693 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7694 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7695 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7696 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7697 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7698 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7699 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7700 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7701 LIB_STANDARD=
7702 START_FILES=
7703 TEMACS_LDFLAGS2=
7704 fi
7705 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7706 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7707 HAVE_NS=yes
7708 else
7709 as_fn_error "\`--with-ns' was specified, but the include
7710 files are missing or cannot be compiled." "$LINENO" 5
7711 fi
7712
7713
7714 NS_HAVE_NSINTEGER=yes
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7717 #include <Foundation/NSObjCRuntime.h>
7718 int
7719 main ()
7720 {
7721 NSInteger i;
7722 ;
7723 return 0;
7724 }
7725 _ACEOF
7726 if ac_fn_c_try_compile "$LINENO"; then :
7727 ns_have_nsinteger=yes
7728 else
7729 ns_have_nsinteger=no
7730 fi
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 if test $ns_have_nsinteger = no; then
7733 NS_HAVE_NSINTEGER=no
7734 fi
7735 fi
7736
7737
7738 ns_frag=/dev/null
7739 NS_OBJ=
7740 NS_SUPPORT=
7741 if test "${HAVE_NS}" = yes; then
7742 window_system=nextstep
7743 with_xft=no
7744 # set up packaging dirs
7745 exec_prefix=${ns_appbindir}
7746 libexecdir=${ns_appbindir}/libexec
7747 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7748 prefix=${ns_appresdir}
7749 fi
7750 ns_frag=$srcdir/src/ns.mk
7751 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7752 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
7753 fi
7754 CFLAGS="$tmp_CFLAGS"
7755 CPPFLAGS="$tmp_CPPFLAGS"
7756
7757
7758
7759
7760
7761 case "${window_system}" in
7762 x11 )
7763 HAVE_X_WINDOWS=yes
7764 HAVE_X11=yes
7765 case "${with_x_toolkit}" in
7766 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7767 motif ) USE_X_TOOLKIT=MOTIF ;;
7768 gtk ) with_gtk=yes
7769 USE_X_TOOLKIT=none ;;
7770 gtk3 ) with_gtk3=yes
7771 USE_X_TOOLKIT=none ;;
7772 no ) USE_X_TOOLKIT=none ;;
7773 * ) USE_X_TOOLKIT=maybe ;;
7774 esac
7775 ;;
7776 nextstep | none )
7777 HAVE_X_WINDOWS=no
7778 HAVE_X11=no
7779 USE_X_TOOLKIT=none
7780 ;;
7781 esac
7782
7783 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7784 # Extract the first word of "X", so it can be a program name with args.
7785 set dummy X; ac_word=$2
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7787 $as_echo_n "checking for $ac_word... " >&6; }
7788 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7789 $as_echo_n "(cached) " >&6
7790 else
7791 if test -n "$HAVE_XSERVER"; then
7792 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7793 else
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH
7796 do
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_prog_HAVE_XSERVER="true"
7802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7804 fi
7805 done
7806 done
7807 IFS=$as_save_IFS
7808
7809 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7810 fi
7811 fi
7812 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7813 if test -n "$HAVE_XSERVER"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7815 $as_echo "$HAVE_XSERVER" >&6; }
7816 else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7819 fi
7820
7821
7822 if test "$HAVE_XSERVER" = true ||
7823 test -n "$DISPLAY" ||
7824 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7825 as_fn_error "You seem to be running X, but no X development libraries
7826 were found. You should install the relevant development files for X
7827 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7828 sure you have development files for image handling, i.e.
7829 tiff, gif, jpeg, png and xpm.
7830 If you are sure you want Emacs compiled without X window support, pass
7831 --without-x
7832 to configure." "$LINENO" 5
7833 fi
7834 fi
7835
7836 ### If we're using X11, we should use the X menu package.
7837 HAVE_MENUS=no
7838 case ${HAVE_X11} in
7839 yes ) HAVE_MENUS=yes ;;
7840 esac
7841
7842 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7843 # Assume not, until told otherwise.
7844 GNU_MALLOC=yes
7845 doug_lea_malloc=yes
7846 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7847 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7848
7849 else
7850 doug_lea_malloc=no
7851 fi
7852
7853 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7854 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7855
7856 else
7857 doug_lea_malloc=no
7858 fi
7859
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7861 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7862 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7863 $as_echo_n "(cached) " >&6
7864 else
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7867 extern void (* __after_morecore_hook)();
7868 int
7869 main ()
7870 {
7871 __after_morecore_hook = 0
7872 ;
7873 return 0;
7874 }
7875 _ACEOF
7876 if ac_fn_c_try_link "$LINENO"; then :
7877 emacs_cv_var___after_morecore_hook=yes
7878 else
7879 emacs_cv_var___after_morecore_hook=no
7880 fi
7881 rm -f core conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
7883 fi
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7885 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7886 if test $emacs_cv_var___after_morecore_hook = no; then
7887 doug_lea_malloc=no
7888 fi
7889
7890
7891 system_malloc=no
7892 case "$opsys" in
7893 ## darwin ld insists on the use of malloc routines in the System framework.
7894 darwin|sol2-10) system_malloc=yes ;;
7895 esac
7896
7897 if test "${system_malloc}" = "yes"; then
7898
7899 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7900
7901 GNU_MALLOC=no
7902 GNU_MALLOC_reason="
7903 (The GNU allocators don't work with this system configuration.)"
7904 GMALLOC_OBJ=
7905 VMLIMIT_OBJ=
7906 else
7907 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7908 VMLIMIT_OBJ=vm-limit.o
7909 fi
7910
7911
7912
7913 if test "$doug_lea_malloc" = "yes" ; then
7914 if test "$GNU_MALLOC" = yes ; then
7915 GNU_MALLOC_reason="
7916 (Using Doug Lea's new malloc from the GNU C Library.)"
7917 fi
7918
7919 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7920
7921
7922 ## Use mmap directly for allocating larger buffers.
7923 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7924 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7925 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7926 case "$opsys" in
7927 gnu*) REL_ALLOC=no ;;
7928 esac
7929 fi
7930
7931 if test x"${REL_ALLOC}" = x; then
7932 REL_ALLOC=${GNU_MALLOC}
7933 fi
7934
7935 use_mmap_for_buffers=no
7936 case "$opsys" in
7937 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7938 esac
7939
7940
7941
7942
7943 for ac_header in $ac_header_list
7944 do :
7945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7946 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7947 "
7948 eval as_val=\$$as_ac_Header
7949 if test "x$as_val" = x""yes; then :
7950 cat >>confdefs.h <<_ACEOF
7951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7952 _ACEOF
7953
7954 fi
7955
7956 done
7957
7958
7959
7960
7961
7962
7963
7964
7965 for ac_func in getpagesize
7966 do :
7967 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7968 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7969 cat >>confdefs.h <<_ACEOF
7970 #define HAVE_GETPAGESIZE 1
7971 _ACEOF
7972
7973 fi
7974 done
7975
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7977 $as_echo_n "checking for working mmap... " >&6; }
7978 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7979 $as_echo_n "(cached) " >&6
7980 else
7981 if test "$cross_compiling" = yes; then :
7982 ac_cv_func_mmap_fixed_mapped=no
7983 else
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 $ac_includes_default
7987 /* malloc might have been renamed as rpl_malloc. */
7988 #undef malloc
7989
7990 /* Thanks to Mike Haertel and Jim Avera for this test.
7991 Here is a matrix of mmap possibilities:
7992 mmap private not fixed
7993 mmap private fixed at somewhere currently unmapped
7994 mmap private fixed at somewhere already mapped
7995 mmap shared not fixed
7996 mmap shared fixed at somewhere currently unmapped
7997 mmap shared fixed at somewhere already mapped
7998 For private mappings, we should verify that changes cannot be read()
7999 back from the file, nor mmap's back from the file at a different
8000 address. (There have been systems where private was not correctly
8001 implemented like the infamous i386 svr4.0, and systems where the
8002 VM page cache was not coherent with the file system buffer cache
8003 like early versions of FreeBSD and possibly contemporary NetBSD.)
8004 For shared mappings, we should conversely verify that changes get
8005 propagated back to all the places they're supposed to be.
8006
8007 Grep wants private fixed already mapped.
8008 The main things grep needs to know about mmap are:
8009 * does it exist and is it safe to write into the mmap'd area
8010 * how to use it (BSD variants) */
8011
8012 #include <fcntl.h>
8013 #include <sys/mman.h>
8014
8015 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8016 char *malloc ();
8017 #endif
8018
8019 /* This mess was copied from the GNU getpagesize.h. */
8020 #ifndef HAVE_GETPAGESIZE
8021 # ifdef _SC_PAGESIZE
8022 # define getpagesize() sysconf(_SC_PAGESIZE)
8023 # else /* no _SC_PAGESIZE */
8024 # ifdef HAVE_SYS_PARAM_H
8025 # include <sys/param.h>
8026 # ifdef EXEC_PAGESIZE
8027 # define getpagesize() EXEC_PAGESIZE
8028 # else /* no EXEC_PAGESIZE */
8029 # ifdef NBPG
8030 # define getpagesize() NBPG * CLSIZE
8031 # ifndef CLSIZE
8032 # define CLSIZE 1
8033 # endif /* no CLSIZE */
8034 # else /* no NBPG */
8035 # ifdef NBPC
8036 # define getpagesize() NBPC
8037 # else /* no NBPC */
8038 # ifdef PAGESIZE
8039 # define getpagesize() PAGESIZE
8040 # endif /* PAGESIZE */
8041 # endif /* no NBPC */
8042 # endif /* no NBPG */
8043 # endif /* no EXEC_PAGESIZE */
8044 # else /* no HAVE_SYS_PARAM_H */
8045 # define getpagesize() 8192 /* punt totally */
8046 # endif /* no HAVE_SYS_PARAM_H */
8047 # endif /* no _SC_PAGESIZE */
8048
8049 #endif /* no HAVE_GETPAGESIZE */
8050
8051 int
8052 main ()
8053 {
8054 char *data, *data2, *data3;
8055 const char *cdata2;
8056 int i, pagesize;
8057 int fd, fd2;
8058
8059 pagesize = getpagesize ();
8060
8061 /* First, make a file with some known garbage in it. */
8062 data = (char *) malloc (pagesize);
8063 if (!data)
8064 return 1;
8065 for (i = 0; i < pagesize; ++i)
8066 *(data + i) = rand ();
8067 umask (0);
8068 fd = creat ("conftest.mmap", 0600);
8069 if (fd < 0)
8070 return 2;
8071 if (write (fd, data, pagesize) != pagesize)
8072 return 3;
8073 close (fd);
8074
8075 /* Next, check that the tail of a page is zero-filled. File must have
8076 non-zero length, otherwise we risk SIGBUS for entire page. */
8077 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8078 if (fd2 < 0)
8079 return 4;
8080 cdata2 = "";
8081 if (write (fd2, cdata2, 1) != 1)
8082 return 5;
8083 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8084 if (data2 == MAP_FAILED)
8085 return 6;
8086 for (i = 0; i < pagesize; ++i)
8087 if (*(data2 + i))
8088 return 7;
8089 close (fd2);
8090 if (munmap (data2, pagesize))
8091 return 8;
8092
8093 /* Next, try to mmap the file at a fixed address which already has
8094 something else allocated at it. If we can, also make sure that
8095 we see the same garbage. */
8096 fd = open ("conftest.mmap", O_RDWR);
8097 if (fd < 0)
8098 return 9;
8099 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8100 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8101 return 10;
8102 for (i = 0; i < pagesize; ++i)
8103 if (*(data + i) != *(data2 + i))
8104 return 11;
8105
8106 /* Finally, make sure that changes to the mapped area do not
8107 percolate back to the file as seen by read(). (This is a bug on
8108 some variants of i386 svr4.0.) */
8109 for (i = 0; i < pagesize; ++i)
8110 *(data2 + i) = *(data2 + i) + 1;
8111 data3 = (char *) malloc (pagesize);
8112 if (!data3)
8113 return 12;
8114 if (read (fd, data3, pagesize) != pagesize)
8115 return 13;
8116 for (i = 0; i < pagesize; ++i)
8117 if (*(data + i) != *(data3 + i))
8118 return 14;
8119 close (fd);
8120 return 0;
8121 }
8122 _ACEOF
8123 if ac_fn_c_try_run "$LINENO"; then :
8124 ac_cv_func_mmap_fixed_mapped=yes
8125 else
8126 ac_cv_func_mmap_fixed_mapped=no
8127 fi
8128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8129 conftest.$ac_objext conftest.beam conftest.$ac_ext
8130 fi
8131
8132 fi
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8134 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8135 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8136
8137 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8138
8139 fi
8140 rm -f conftest.mmap conftest.txt
8141
8142 if test $use_mmap_for_buffers = yes; then
8143
8144 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8145
8146 REL_ALLOC=no
8147 fi
8148
8149 LIBS="$LIBS_SYSTEM $LIBS"
8150
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8152 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8153 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8154 $as_echo_n "(cached) " >&6
8155 else
8156 ac_check_lib_save_LIBS=$LIBS
8157 LIBS="-ldnet $LIBS"
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8160
8161 /* Override any GCC internal prototype to avoid an error.
8162 Use char because int might match the return type of a GCC
8163 builtin and then its argument prototype would still apply. */
8164 #ifdef __cplusplus
8165 extern "C"
8166 #endif
8167 char dnet_ntoa ();
8168 int
8169 main ()
8170 {
8171 return dnet_ntoa ();
8172 ;
8173 return 0;
8174 }
8175 _ACEOF
8176 if ac_fn_c_try_link "$LINENO"; then :
8177 ac_cv_lib_dnet_dnet_ntoa=yes
8178 else
8179 ac_cv_lib_dnet_dnet_ntoa=no
8180 fi
8181 rm -f core conftest.err conftest.$ac_objext \
8182 conftest$ac_exeext conftest.$ac_ext
8183 LIBS=$ac_check_lib_save_LIBS
8184 fi
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8186 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8187 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
8188 cat >>confdefs.h <<_ACEOF
8189 #define HAVE_LIBDNET 1
8190 _ACEOF
8191
8192 LIBS="-ldnet $LIBS"
8193
8194 fi
8195
8196
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8198 $as_echo_n "checking for main in -lXbsd... " >&6; }
8199 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 ac_check_lib_save_LIBS=$LIBS
8203 LIBS="-lXbsd $LIBS"
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8206
8207
8208 int
8209 main ()
8210 {
8211 return main ();
8212 ;
8213 return 0;
8214 }
8215 _ACEOF
8216 if ac_fn_c_try_link "$LINENO"; then :
8217 ac_cv_lib_Xbsd_main=yes
8218 else
8219 ac_cv_lib_Xbsd_main=no
8220 fi
8221 rm -f core conftest.err conftest.$ac_objext \
8222 conftest$ac_exeext conftest.$ac_ext
8223 LIBS=$ac_check_lib_save_LIBS
8224 fi
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8226 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8227 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
8228 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8229 fi
8230
8231
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8233 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8234 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 ac_check_lib_save_LIBS=$LIBS
8238 LIBS="-lpthreads $LIBS"
8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240 /* end confdefs.h. */
8241
8242 /* Override any GCC internal prototype to avoid an error.
8243 Use char because int might match the return type of a GCC
8244 builtin and then its argument prototype would still apply. */
8245 #ifdef __cplusplus
8246 extern "C"
8247 #endif
8248 char cma_open ();
8249 int
8250 main ()
8251 {
8252 return cma_open ();
8253 ;
8254 return 0;
8255 }
8256 _ACEOF
8257 if ac_fn_c_try_link "$LINENO"; then :
8258 ac_cv_lib_pthreads_cma_open=yes
8259 else
8260 ac_cv_lib_pthreads_cma_open=no
8261 fi
8262 rm -f core conftest.err conftest.$ac_objext \
8263 conftest$ac_exeext conftest.$ac_ext
8264 LIBS=$ac_check_lib_save_LIBS
8265 fi
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8267 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8268 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
8269 cat >>confdefs.h <<_ACEOF
8270 #define HAVE_LIBPTHREADS 1
8271 _ACEOF
8272
8273 LIBS="-lpthreads $LIBS"
8274
8275 fi
8276
8277
8278 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8279 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8280 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8281 ## added to LIBS in configure would never contain the pthreads part,
8282 ## but the value used in Makefiles might. FIXME?
8283 ##
8284 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8285 ## be harmless on older versions of X where it happens to exist.
8286 test "$opsys" = "aix4-2" && \
8287 test $ac_cv_lib_pthreads_cma_open = yes && \
8288 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8289
8290
8291 case ${host_os} in
8292 aix*)
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8294 $as_echo_n "checking for -bbigtoc option... " >&6; }
8295 if test "${gdb_cv_bigtoc+set}" = set; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298
8299 case $GCC in
8300 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8301 *) gdb_cv_bigtoc=-bbigtoc ;;
8302 esac
8303
8304 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8307
8308 int
8309 main ()
8310 {
8311 int i;
8312 ;
8313 return 0;
8314 }
8315 _ACEOF
8316 if ac_fn_c_try_link "$LINENO"; then :
8317
8318 else
8319 gdb_cv_bigtoc=
8320 fi
8321 rm -f core conftest.err conftest.$ac_objext \
8322 conftest$ac_exeext conftest.$ac_ext
8323
8324 fi
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8326 $as_echo "$gdb_cv_bigtoc" >&6; }
8327 ;;
8328 esac
8329
8330 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8331 # used for the tests that follow. We set them back to REAL_CFLAGS and
8332 # REAL_CPPFLAGS later on.
8333
8334 REAL_CFLAGS="$CFLAGS"
8335 REAL_CPPFLAGS="$CPPFLAGS"
8336
8337 if test "${HAVE_X11}" = "yes"; then
8338 DEFS="$C_SWITCH_X_SITE $DEFS"
8339 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8340 LIBS="-lX11 $LIBS"
8341 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8342 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8343
8344 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8345 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8346 # but it's more convenient here to set LD_RUN_PATH
8347 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8348 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8349 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8350 export LD_RUN_PATH
8351 fi
8352
8353 if test "${opsys}" = "gnu-linux"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8355 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8358
8359 int
8360 main ()
8361 {
8362 XOpenDisplay ("foo");
8363 ;
8364 return 0;
8365 }
8366 _ACEOF
8367 if ac_fn_c_try_link "$LINENO"; then :
8368 xlinux_first_failure=no
8369 else
8370 xlinux_first_failure=yes
8371 fi
8372 rm -f core conftest.err conftest.$ac_objext \
8373 conftest$ac_exeext conftest.$ac_ext
8374 if test "${xlinux_first_failure}" = "yes"; then
8375 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8376 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8377 OLD_CPPFLAGS="$CPPFLAGS"
8378 OLD_LIBS="$LIBS"
8379 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8380 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8381 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8382 LIBS="$LIBS -b i486-linuxaout"
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8385
8386 int
8387 main ()
8388 {
8389 XOpenDisplay ("foo");
8390 ;
8391 return 0;
8392 }
8393 _ACEOF
8394 if ac_fn_c_try_link "$LINENO"; then :
8395 xlinux_second_failure=no
8396 else
8397 xlinux_second_failure=yes
8398 fi
8399 rm -f core conftest.err conftest.$ac_objext \
8400 conftest$ac_exeext conftest.$ac_ext
8401 if test "${xlinux_second_failure}" = "yes"; then
8402 # If we get the same failure with -b, there is no use adding -b.
8403 # So take it out. This plays safe.
8404 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8405 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8406 CPPFLAGS="$OLD_CPPFLAGS"
8407 LIBS="$OLD_LIBS"
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8410 else
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8412 $as_echo "yes" >&6; }
8413 fi
8414 else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8417 fi
8418 fi
8419
8420 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8421 # header files included from there.
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8423 $as_echo_n "checking for Xkb... " >&6; }
8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425 /* end confdefs.h. */
8426 #include <X11/Xlib.h>
8427 #include <X11/XKBlib.h>
8428 int
8429 main ()
8430 {
8431 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8432 ;
8433 return 0;
8434 }
8435 _ACEOF
8436 if ac_fn_c_try_link "$LINENO"; then :
8437 emacs_xkb=yes
8438 else
8439 emacs_xkb=no
8440 fi
8441 rm -f core conftest.err conftest.$ac_objext \
8442 conftest$ac_exeext conftest.$ac_ext
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8444 $as_echo "$emacs_xkb" >&6; }
8445 if test $emacs_xkb = yes; then
8446
8447 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8448
8449 fi
8450
8451 for ac_func in XrmSetDatabase XScreenResourceString \
8452 XScreenNumberOfScreen XSetWMProtocols
8453 do :
8454 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8455 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8456 eval as_val=\$$as_ac_var
8457 if test "x$as_val" = x""yes; then :
8458 cat >>confdefs.h <<_ACEOF
8459 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8460 _ACEOF
8461
8462 fi
8463 done
8464
8465 fi
8466
8467 if test "${window_system}" = "x11"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8469 $as_echo_n "checking X11 version 6... " >&6; }
8470 if test "${emacs_cv_x11_version_6+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 #include <X11/Xlib.h>
8476 int
8477 main ()
8478 {
8479 #if XlibSpecificationRelease < 6
8480 fail;
8481 #endif
8482
8483 ;
8484 return 0;
8485 }
8486 _ACEOF
8487 if ac_fn_c_try_link "$LINENO"; then :
8488 emacs_cv_x11_version_6=yes
8489 else
8490 emacs_cv_x11_version_6=no
8491 fi
8492 rm -f core conftest.err conftest.$ac_objext \
8493 conftest$ac_exeext conftest.$ac_ext
8494 fi
8495
8496 if test $emacs_cv_x11_version_6 = yes; then
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8498 $as_echo "6 or newer" >&6; }
8499
8500 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8501
8502
8503 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8504
8505 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8506 ## XIM support.
8507 case "$opsys" in
8508 sol2-*) : ;;
8509 *)
8510 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8511
8512 ;;
8513 esac
8514 else
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8516 $as_echo "before 6" >&6; }
8517 fi
8518 fi
8519
8520
8521 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8522 HAVE_RSVG=no
8523 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8524 if test "${with_rsvg}" != "no"; then
8525 RSVG_REQUIRED=2.11.0
8526 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8527
8528
8529 succeeded=no
8530
8531 # Extract the first word of "pkg-config", so it can be a program name with args.
8532 set dummy pkg-config; ac_word=$2
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538 case $PKG_CONFIG in
8539 [\\/]* | ?:[\\/]*)
8540 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8541 ;;
8542 *)
8543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544 for as_dir in $PATH
8545 do
8546 IFS=$as_save_IFS
8547 test -z "$as_dir" && as_dir=.
8548 for ac_exec_ext in '' $ac_executable_extensions; do
8549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8550 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8552 break 2
8553 fi
8554 done
8555 done
8556 IFS=$as_save_IFS
8557
8558 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8559 ;;
8560 esac
8561 fi
8562 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8563 if test -n "$PKG_CONFIG"; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8565 $as_echo "$PKG_CONFIG" >&6; }
8566 else
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8569 fi
8570
8571
8572
8573 if test "$PKG_CONFIG" = "no" ; then
8574 :
8575 else
8576 PKG_CONFIG_MIN_VERSION=0.9.0
8577 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8579 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8580
8581 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8583 $as_echo "yes" >&6; }
8584 succeeded=yes
8585
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8587 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8588 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8590 $as_echo "$RSVG_CFLAGS" >&6; }
8591
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8593 $as_echo_n "checking RSVG_LIBS... " >&6; }
8594 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8596 $as_echo "$RSVG_LIBS" >&6; }
8597 else
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599 $as_echo "no" >&6; }
8600 RSVG_CFLAGS=""
8601 RSVG_LIBS=""
8602 ## If we have a custom action on failure, don't print errors, but
8603 ## do set a variable so people can do so.
8604 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8605
8606 fi
8607
8608
8609
8610 else
8611 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8612 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8613 fi
8614 fi
8615
8616 if test $succeeded = yes; then
8617 HAVE_RSVG=yes
8618 else
8619 :
8620 fi
8621
8622
8623
8624
8625 if test $HAVE_RSVG = yes; then
8626
8627 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8628
8629 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8630 LIBS="$RSVG_LIBS $LIBS"
8631 fi
8632 fi
8633 fi
8634
8635 HAVE_IMAGEMAGICK=no
8636 if test "${HAVE_X11}" = "yes"; then
8637 if test "${with_imagemagick}" != "no"; then
8638 IMAGEMAGICK_MODULE="Wand"
8639
8640 succeeded=no
8641
8642 # Extract the first word of "pkg-config", so it can be a program name with args.
8643 set dummy pkg-config; ac_word=$2
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645 $as_echo_n "checking for $ac_word... " >&6; }
8646 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 case $PKG_CONFIG in
8650 [\\/]* | ?:[\\/]*)
8651 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8652 ;;
8653 *)
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8656 do
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8661 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 break 2
8664 fi
8665 done
8666 done
8667 IFS=$as_save_IFS
8668
8669 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8670 ;;
8671 esac
8672 fi
8673 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8674 if test -n "$PKG_CONFIG"; then
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8676 $as_echo "$PKG_CONFIG" >&6; }
8677 else
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679 $as_echo "no" >&6; }
8680 fi
8681
8682
8683
8684 if test "$PKG_CONFIG" = "no" ; then
8685 :
8686 else
8687 PKG_CONFIG_MIN_VERSION=0.9.0
8688 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8690 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8691
8692 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8694 $as_echo "yes" >&6; }
8695 succeeded=yes
8696
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8698 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8699 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8701 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8702
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8704 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8705 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8707 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8708 else
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 $as_echo "no" >&6; }
8711 IMAGEMAGICK_CFLAGS=""
8712 IMAGEMAGICK_LIBS=""
8713 ## If we have a custom action on failure, don't print errors, but
8714 ## do set a variable so people can do so.
8715 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8716
8717 fi
8718
8719
8720
8721 else
8722 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8723 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8724 fi
8725 fi
8726
8727 if test $succeeded = yes; then
8728 HAVE_IMAGEMAGICK=yes
8729 else
8730 :
8731 fi
8732
8733
8734
8735
8736 if test $HAVE_IMAGEMAGICK = yes; then
8737
8738 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8739
8740 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
8741 LIBS="$IMAGEMAGICK_LIBS $LIBS"
8742 for ac_func in MagickExportImagePixels
8743 do :
8744 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8745 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
8746 cat >>confdefs.h <<_ACEOF
8747 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8748 _ACEOF
8749
8750 fi
8751 done
8752
8753 fi
8754 fi
8755 fi
8756
8757
8758 HAVE_GTK=no
8759 if test "${with_gtk3}" = "yes"; then
8760 GLIB_REQUIRED=2.6
8761 GTK_REQUIRED=2.90
8762 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8763
8764
8765 succeeded=no
8766
8767 # Extract the first word of "pkg-config", so it can be a program name with args.
8768 set dummy pkg-config; ac_word=$2
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8770 $as_echo_n "checking for $ac_word... " >&6; }
8771 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8772 $as_echo_n "(cached) " >&6
8773 else
8774 case $PKG_CONFIG in
8775 [\\/]* | ?:[\\/]*)
8776 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8777 ;;
8778 *)
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780 for as_dir in $PATH
8781 do
8782 IFS=$as_save_IFS
8783 test -z "$as_dir" && as_dir=.
8784 for ac_exec_ext in '' $ac_executable_extensions; do
8785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8786 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8788 break 2
8789 fi
8790 done
8791 done
8792 IFS=$as_save_IFS
8793
8794 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8795 ;;
8796 esac
8797 fi
8798 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8799 if test -n "$PKG_CONFIG"; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8801 $as_echo "$PKG_CONFIG" >&6; }
8802 else
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804 $as_echo "no" >&6; }
8805 fi
8806
8807
8808
8809 if test "$PKG_CONFIG" = "no" ; then
8810 pkg_check_gtk=no
8811 else
8812 PKG_CONFIG_MIN_VERSION=0.9.0
8813 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8815 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8816
8817 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8819 $as_echo "yes" >&6; }
8820 succeeded=yes
8821
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8823 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8824 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8826 $as_echo "$GTK_CFLAGS" >&6; }
8827
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8829 $as_echo_n "checking GTK_LIBS... " >&6; }
8830 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8832 $as_echo "$GTK_LIBS" >&6; }
8833 else
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8836 GTK_CFLAGS=""
8837 GTK_LIBS=""
8838 ## If we have a custom action on failure, don't print errors, but
8839 ## do set a variable so people can do so.
8840 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8841
8842 fi
8843
8844
8845
8846 else
8847 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8848 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8849 fi
8850 fi
8851
8852 if test $succeeded = yes; then
8853 pkg_check_gtk=yes
8854 else
8855 pkg_check_gtk=no
8856 fi
8857
8858 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8859 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8860 fi
8861 fi
8862
8863 if test "$pkg_check_gtk" != "yes"; then
8864 HAVE_GTK=no
8865 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8866 GLIB_REQUIRED=2.6
8867 GTK_REQUIRED=2.6
8868 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8869
8870
8871 succeeded=no
8872
8873 # Extract the first word of "pkg-config", so it can be a program name with args.
8874 set dummy pkg-config; ac_word=$2
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8876 $as_echo_n "checking for $ac_word... " >&6; }
8877 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8878 $as_echo_n "(cached) " >&6
8879 else
8880 case $PKG_CONFIG in
8881 [\\/]* | ?:[\\/]*)
8882 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8883 ;;
8884 *)
8885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886 for as_dir in $PATH
8887 do
8888 IFS=$as_save_IFS
8889 test -z "$as_dir" && as_dir=.
8890 for ac_exec_ext in '' $ac_executable_extensions; do
8891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8892 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8894 break 2
8895 fi
8896 done
8897 done
8898 IFS=$as_save_IFS
8899
8900 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8901 ;;
8902 esac
8903 fi
8904 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8905 if test -n "$PKG_CONFIG"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8907 $as_echo "$PKG_CONFIG" >&6; }
8908 else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8911 fi
8912
8913
8914
8915 if test "$PKG_CONFIG" = "no" ; then
8916 pkg_check_gtk=no
8917 else
8918 PKG_CONFIG_MIN_VERSION=0.9.0
8919 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8921 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8922
8923 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8925 $as_echo "yes" >&6; }
8926 succeeded=yes
8927
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8929 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8930 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8932 $as_echo "$GTK_CFLAGS" >&6; }
8933
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8935 $as_echo_n "checking GTK_LIBS... " >&6; }
8936 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8938 $as_echo "$GTK_LIBS" >&6; }
8939 else
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8941 $as_echo "no" >&6; }
8942 GTK_CFLAGS=""
8943 GTK_LIBS=""
8944 ## If we have a custom action on failure, don't print errors, but
8945 ## do set a variable so people can do so.
8946 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8947
8948 fi
8949
8950
8951
8952 else
8953 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8954 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8955 fi
8956 fi
8957
8958 if test $succeeded = yes; then
8959 pkg_check_gtk=yes
8960 else
8961 pkg_check_gtk=no
8962 fi
8963
8964 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8965 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8966 fi
8967 fi
8968 fi
8969
8970 GTK_OBJ=
8971 if test x"$pkg_check_gtk" = xyes; then
8972
8973
8974
8975 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8976 CFLAGS="$CFLAGS $GTK_CFLAGS"
8977 LIBS="$GTK_LIBS $LIBS"
8978 GTK_COMPILES=no
8979 for ac_func in gtk_main
8980 do :
8981 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8982 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8983 cat >>confdefs.h <<_ACEOF
8984 #define HAVE_GTK_MAIN 1
8985 _ACEOF
8986 GTK_COMPILES=yes
8987 fi
8988 done
8989
8990 if test "${GTK_COMPILES}" != "yes"; then
8991 if test "$USE_X_TOOLKIT" != "maybe"; then
8992 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8993 fi
8994 else
8995 HAVE_GTK=yes
8996
8997 $as_echo "#define USE_GTK 1" >>confdefs.h
8998
8999 GTK_OBJ=gtkutil.o
9000 USE_X_TOOLKIT=none
9001 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
9002 :
9003 else
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
9005 closing open displays. This is no problem if you just use
9006 one display, but if you use more than one and close one of them
9007 Emacs may crash." >&5
9008 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
9009 closing open displays. This is no problem if you just use
9010 one display, but if you use more than one and close one of them
9011 Emacs may crash." >&2;}
9012 sleep 3
9013 fi
9014 fi
9015
9016 fi
9017
9018
9019
9020 if test "${HAVE_GTK}" = "yes"; then
9021
9022 if test "$with_toolkit_scroll_bars" != no; then
9023 with_toolkit_scroll_bars=yes
9024 fi
9025
9026 HAVE_GTK_FILE_SELECTION=no
9027 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9028 #include <gtk/gtk.h>
9029 "
9030 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
9031 HAVE_GTK_FILE_SELECTION=yes
9032 else
9033 HAVE_GTK_FILE_SELECTION=no
9034 fi
9035
9036 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9037 for ac_func in gtk_file_selection_new
9038 do :
9039 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9040 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
9041 cat >>confdefs.h <<_ACEOF
9042 #define HAVE_GTK_FILE_SELECTION_NEW 1
9043 _ACEOF
9044
9045 fi
9046 done
9047
9048 fi
9049
9050 HAVE_GTK_AND_PTHREAD=no
9051 for ac_header in pthread.h
9052 do :
9053 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9054 if test "x$ac_cv_header_pthread_h" = x""yes; then :
9055 cat >>confdefs.h <<_ACEOF
9056 #define HAVE_PTHREAD_H 1
9057 _ACEOF
9058
9059 fi
9060
9061 done
9062
9063 if test "$ac_cv_header_pthread_h"; then
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9065 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9066 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 ac_check_lib_save_LIBS=$LIBS
9070 LIBS="-lpthread $LIBS"
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9073
9074 /* Override any GCC internal prototype to avoid an error.
9075 Use char because int might match the return type of a GCC
9076 builtin and then its argument prototype would still apply. */
9077 #ifdef __cplusplus
9078 extern "C"
9079 #endif
9080 char pthread_self ();
9081 int
9082 main ()
9083 {
9084 return pthread_self ();
9085 ;
9086 return 0;
9087 }
9088 _ACEOF
9089 if ac_fn_c_try_link "$LINENO"; then :
9090 ac_cv_lib_pthread_pthread_self=yes
9091 else
9092 ac_cv_lib_pthread_pthread_self=no
9093 fi
9094 rm -f core conftest.err conftest.$ac_objext \
9095 conftest$ac_exeext conftest.$ac_ext
9096 LIBS=$ac_check_lib_save_LIBS
9097 fi
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9099 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9100 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
9101 HAVE_GTK_AND_PTHREAD=yes
9102 fi
9103
9104 fi
9105 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9106 case "${canonical}" in
9107 *-hpux*) ;;
9108 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
9109 esac
9110
9111 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9112
9113 fi
9114
9115 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
9116 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9117 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9118 gtk_orientable_set_orientation
9119 do :
9120 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9121 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9122 eval as_val=\$$as_ac_var
9123 if test "x$as_val" = x""yes; then :
9124 cat >>confdefs.h <<_ACEOF
9125 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9126 _ACEOF
9127
9128 fi
9129 done
9130
9131
9132 fi
9133
9134 HAVE_DBUS=no
9135 DBUS_OBJ=
9136 if test "${with_dbus}" = "yes"; then
9137
9138 succeeded=no
9139
9140 # Extract the first word of "pkg-config", so it can be a program name with args.
9141 set dummy pkg-config; ac_word=$2
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143 $as_echo_n "checking for $ac_word... " >&6; }
9144 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9145 $as_echo_n "(cached) " >&6
9146 else
9147 case $PKG_CONFIG in
9148 [\\/]* | ?:[\\/]*)
9149 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9150 ;;
9151 *)
9152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9153 for as_dir in $PATH
9154 do
9155 IFS=$as_save_IFS
9156 test -z "$as_dir" && as_dir=.
9157 for ac_exec_ext in '' $ac_executable_extensions; do
9158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9159 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9161 break 2
9162 fi
9163 done
9164 done
9165 IFS=$as_save_IFS
9166
9167 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9168 ;;
9169 esac
9170 fi
9171 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9172 if test -n "$PKG_CONFIG"; then
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9174 $as_echo "$PKG_CONFIG" >&6; }
9175 else
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9177 $as_echo "no" >&6; }
9178 fi
9179
9180
9181
9182 if test "$PKG_CONFIG" = "no" ; then
9183 HAVE_DBUS=no
9184 else
9185 PKG_CONFIG_MIN_VERSION=0.9.0
9186 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9188 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9189
9190 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9192 $as_echo "yes" >&6; }
9193 succeeded=yes
9194
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9196 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9197 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9199 $as_echo "$DBUS_CFLAGS" >&6; }
9200
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9202 $as_echo_n "checking DBUS_LIBS... " >&6; }
9203 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9205 $as_echo "$DBUS_LIBS" >&6; }
9206 else
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9208 $as_echo "no" >&6; }
9209 DBUS_CFLAGS=""
9210 DBUS_LIBS=""
9211 ## If we have a custom action on failure, don't print errors, but
9212 ## do set a variable so people can do so.
9213 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9214
9215 fi
9216
9217
9218
9219 else
9220 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9221 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9222 fi
9223 fi
9224
9225 if test $succeeded = yes; then
9226 HAVE_DBUS=yes
9227 else
9228 HAVE_DBUS=no
9229 fi
9230
9231 if test "$HAVE_DBUS" = yes; then
9232 LIBS="$LIBS $DBUS_LIBS"
9233
9234 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9235
9236 for ac_func in dbus_watch_get_unix_fd
9237 do :
9238 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9239 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
9240 cat >>confdefs.h <<_ACEOF
9241 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9242 _ACEOF
9243
9244 fi
9245 done
9246
9247 DBUS_OBJ=dbusbind.o
9248 fi
9249 fi
9250
9251
9252 HAVE_GCONF=no
9253 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9254
9255 succeeded=no
9256
9257 # Extract the first word of "pkg-config", so it can be a program name with args.
9258 set dummy pkg-config; ac_word=$2
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9260 $as_echo_n "checking for $ac_word... " >&6; }
9261 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9262 $as_echo_n "(cached) " >&6
9263 else
9264 case $PKG_CONFIG in
9265 [\\/]* | ?:[\\/]*)
9266 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9267 ;;
9268 *)
9269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9270 for as_dir in $PATH
9271 do
9272 IFS=$as_save_IFS
9273 test -z "$as_dir" && as_dir=.
9274 for ac_exec_ext in '' $ac_executable_extensions; do
9275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9276 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9278 break 2
9279 fi
9280 done
9281 done
9282 IFS=$as_save_IFS
9283
9284 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9285 ;;
9286 esac
9287 fi
9288 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9289 if test -n "$PKG_CONFIG"; then
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9291 $as_echo "$PKG_CONFIG" >&6; }
9292 else
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9294 $as_echo "no" >&6; }
9295 fi
9296
9297
9298
9299 if test "$PKG_CONFIG" = "no" ; then
9300 HAVE_GCONF=no
9301 else
9302 PKG_CONFIG_MIN_VERSION=0.9.0
9303 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9305 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9306
9307 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9309 $as_echo "yes" >&6; }
9310 succeeded=yes
9311
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9313 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9314 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9316 $as_echo "$GCONF_CFLAGS" >&6; }
9317
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9319 $as_echo_n "checking GCONF_LIBS... " >&6; }
9320 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9322 $as_echo "$GCONF_LIBS" >&6; }
9323 else
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 $as_echo "no" >&6; }
9326 GCONF_CFLAGS=""
9327 GCONF_LIBS=""
9328 ## If we have a custom action on failure, don't print errors, but
9329 ## do set a variable so people can do so.
9330 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9331
9332 fi
9333
9334
9335
9336 else
9337 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9338 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9339 fi
9340 fi
9341
9342 if test $succeeded = yes; then
9343 HAVE_GCONF=yes
9344 else
9345 HAVE_GCONF=no
9346 fi
9347
9348 if test "$HAVE_GCONF" = yes; then
9349
9350 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9351
9352 fi
9353 fi
9354
9355 HAVE_LIBSELINUX=no
9356 LIBSELINUX_LIBS=
9357 if test "${with_selinux}" = "yes"; then
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9359 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9360 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9361 $as_echo_n "(cached) " >&6
9362 else
9363 ac_check_lib_save_LIBS=$LIBS
9364 LIBS="-lselinux $LIBS"
9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h. */
9367
9368 /* Override any GCC internal prototype to avoid an error.
9369 Use char because int might match the return type of a GCC
9370 builtin and then its argument prototype would still apply. */
9371 #ifdef __cplusplus
9372 extern "C"
9373 #endif
9374 char lgetfilecon ();
9375 int
9376 main ()
9377 {
9378 return lgetfilecon ();
9379 ;
9380 return 0;
9381 }
9382 _ACEOF
9383 if ac_fn_c_try_link "$LINENO"; then :
9384 ac_cv_lib_selinux_lgetfilecon=yes
9385 else
9386 ac_cv_lib_selinux_lgetfilecon=no
9387 fi
9388 rm -f core conftest.err conftest.$ac_objext \
9389 conftest$ac_exeext conftest.$ac_ext
9390 LIBS=$ac_check_lib_save_LIBS
9391 fi
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9393 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9394 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
9395 HAVE_LIBSELINUX=yes
9396 else
9397 HAVE_LIBSELINUX=no
9398 fi
9399
9400 if test "$HAVE_LIBSELINUX" = yes; then
9401
9402 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9403
9404 LIBSELINUX_LIBS=-lselinux
9405 fi
9406 fi
9407
9408
9409 HAVE_GNUTLS=no
9410 if test "${with_gnutls}" = "yes" ; then
9411
9412 succeeded=no
9413
9414 # Extract the first word of "pkg-config", so it can be a program name with args.
9415 set dummy pkg-config; ac_word=$2
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9417 $as_echo_n "checking for $ac_word... " >&6; }
9418 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9419 $as_echo_n "(cached) " >&6
9420 else
9421 case $PKG_CONFIG in
9422 [\\/]* | ?:[\\/]*)
9423 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9424 ;;
9425 *)
9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 for as_dir in $PATH
9428 do
9429 IFS=$as_save_IFS
9430 test -z "$as_dir" && as_dir=.
9431 for ac_exec_ext in '' $ac_executable_extensions; do
9432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9433 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9435 break 2
9436 fi
9437 done
9438 done
9439 IFS=$as_save_IFS
9440
9441 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9442 ;;
9443 esac
9444 fi
9445 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9446 if test -n "$PKG_CONFIG"; then
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9448 $as_echo "$PKG_CONFIG" >&6; }
9449 else
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9451 $as_echo "no" >&6; }
9452 fi
9453
9454
9455
9456 if test "$PKG_CONFIG" = "no" ; then
9457 HAVE_GNUTLS=no
9458 else
9459 PKG_CONFIG_MIN_VERSION=0.9.0
9460 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9462 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9463
9464 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9466 $as_echo "yes" >&6; }
9467 succeeded=yes
9468
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9470 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9471 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9473 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9474
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9476 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9477 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9479 $as_echo "$LIBGNUTLS_LIBS" >&6; }
9480 else
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482 $as_echo "no" >&6; }
9483 LIBGNUTLS_CFLAGS=""
9484 LIBGNUTLS_LIBS=""
9485 ## If we have a custom action on failure, don't print errors, but
9486 ## do set a variable so people can do so.
9487 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9488
9489 fi
9490
9491
9492
9493 else
9494 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9495 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9496 fi
9497 fi
9498
9499 if test $succeeded = yes; then
9500 HAVE_GNUTLS=yes
9501 else
9502 HAVE_GNUTLS=no
9503 fi
9504
9505 if test "${HAVE_GNUTLS}" = "yes"; then
9506
9507 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9508
9509 fi
9510 fi
9511
9512
9513
9514 HAVE_XAW3D=no
9515 LUCID_LIBW=
9516 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9517 if test "$with_xaw3d" != no; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9519 $as_echo_n "checking for xaw3d... " >&6; }
9520 if test "${emacs_cv_xaw3d+set}" = set; then :
9521 $as_echo_n "(cached) " >&6
9522 else
9523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h. */
9525
9526 #include <X11/Intrinsic.h>
9527 #include <X11/Xaw3d/Simple.h>
9528 int
9529 main ()
9530 {
9531
9532 ;
9533 return 0;
9534 }
9535 _ACEOF
9536 if ac_fn_c_try_link "$LINENO"; then :
9537 emacs_cv_xaw3d=yes
9538 else
9539 emacs_cv_xaw3d=no
9540 fi
9541 rm -f core conftest.err conftest.$ac_objext \
9542 conftest$ac_exeext conftest.$ac_ext
9543 fi
9544
9545 else
9546 emacs_cv_xaw3d=no
9547 fi
9548 if test $emacs_cv_xaw3d = yes; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9550 $as_echo "yes; using Lucid toolkit" >&6; }
9551 USE_X_TOOLKIT=LUCID
9552 HAVE_XAW3D=yes
9553 LUCID_LIBW=-lXaw3d
9554
9555 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9556
9557 else
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559 $as_echo "no" >&6; }
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9561 $as_echo_n "checking for libXaw... " >&6; }
9562 if test "${emacs_cv_xaw+set}" = set; then :
9563 $as_echo_n "(cached) " >&6
9564 else
9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566 /* end confdefs.h. */
9567
9568 #include <X11/Intrinsic.h>
9569 #include <X11/Xaw/Simple.h>
9570 int
9571 main ()
9572 {
9573
9574 ;
9575 return 0;
9576 }
9577 _ACEOF
9578 if ac_fn_c_try_link "$LINENO"; then :
9579 emacs_cv_xaw=yes
9580 else
9581 emacs_cv_xaw=no
9582 fi
9583 rm -f core conftest.err conftest.$ac_objext \
9584 conftest$ac_exeext conftest.$ac_ext
9585 fi
9586
9587 if test $emacs_cv_xaw = yes; then
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9589 $as_echo "yes; using Lucid toolkit" >&6; }
9590 USE_X_TOOLKIT=LUCID
9591 LUCID_LIBW=-lXaw
9592 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9593 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9594 else
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9596 $as_echo "no; do not use toolkit by default" >&6; }
9597 USE_X_TOOLKIT=none
9598 fi
9599 fi
9600 fi
9601
9602 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9603
9604 LIBXTR6=
9605 if test "${USE_X_TOOLKIT}" != "none"; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9607 $as_echo_n "checking X11 toolkit version... " >&6; }
9608 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9609 $as_echo_n "(cached) " >&6
9610 else
9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9613 #include <X11/Intrinsic.h>
9614 int
9615 main ()
9616 {
9617 #if XtSpecificationRelease < 6
9618 fail;
9619 #endif
9620
9621 ;
9622 return 0;
9623 }
9624 _ACEOF
9625 if ac_fn_c_try_link "$LINENO"; then :
9626 emacs_cv_x11_toolkit_version_6=yes
9627 else
9628 emacs_cv_x11_toolkit_version_6=no
9629 fi
9630 rm -f core conftest.err conftest.$ac_objext \
9631 conftest$ac_exeext conftest.$ac_ext
9632 fi
9633
9634 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9635 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9637 $as_echo "6 or newer" >&6; }
9638
9639 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9640
9641 LIBXTR6="-lSM -lICE"
9642 case "$opsys" in
9643 ## Use libw.a along with X11R6 Xt.
9644 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9645 esac
9646 else
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9648 $as_echo "before 6" >&6; }
9649 fi
9650
9651 OLDLIBS="$LIBS"
9652 if test x$HAVE_X11XTR6 = xyes; then
9653 LIBS="-lXt -lSM -lICE $LIBS"
9654 else
9655 LIBS="-lXt $LIBS"
9656 fi
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9658 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9659 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9660 $as_echo_n "(cached) " >&6
9661 else
9662 ac_check_lib_save_LIBS=$LIBS
9663 LIBS="-lXmu $LIBS"
9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9666
9667 /* Override any GCC internal prototype to avoid an error.
9668 Use char because int might match the return type of a GCC
9669 builtin and then its argument prototype would still apply. */
9670 #ifdef __cplusplus
9671 extern "C"
9672 #endif
9673 char XmuConvertStandardSelection ();
9674 int
9675 main ()
9676 {
9677 return XmuConvertStandardSelection ();
9678 ;
9679 return 0;
9680 }
9681 _ACEOF
9682 if ac_fn_c_try_link "$LINENO"; then :
9683 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9684 else
9685 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9686 fi
9687 rm -f core conftest.err conftest.$ac_objext \
9688 conftest$ac_exeext conftest.$ac_ext
9689 LIBS=$ac_check_lib_save_LIBS
9690 fi
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9692 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9693 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9694 cat >>confdefs.h <<_ACEOF
9695 #define HAVE_LIBXMU 1
9696 _ACEOF
9697
9698 LIBS="-lXmu $LIBS"
9699
9700 fi
9701
9702 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9703 fi
9704
9705
9706 LIBXMU=-lXmu
9707 case "$machine" in
9708 ## These machines don't supply Xmu.
9709 hpux* | aix4-2 )
9710 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9711 ;;
9712 esac
9713
9714
9715 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9716 if test "${HAVE_X11}" = "yes"; then
9717 if test "${USE_X_TOOLKIT}" != "none"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9719 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9720 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9721 $as_echo_n "(cached) " >&6
9722 else
9723 ac_check_lib_save_LIBS=$LIBS
9724 LIBS="-lXext $LIBS"
9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h. */
9727
9728 /* Override any GCC internal prototype to avoid an error.
9729 Use char because int might match the return type of a GCC
9730 builtin and then its argument prototype would still apply. */
9731 #ifdef __cplusplus
9732 extern "C"
9733 #endif
9734 char XShapeQueryExtension ();
9735 int
9736 main ()
9737 {
9738 return XShapeQueryExtension ();
9739 ;
9740 return 0;
9741 }
9742 _ACEOF
9743 if ac_fn_c_try_link "$LINENO"; then :
9744 ac_cv_lib_Xext_XShapeQueryExtension=yes
9745 else
9746 ac_cv_lib_Xext_XShapeQueryExtension=no
9747 fi
9748 rm -f core conftest.err conftest.$ac_objext \
9749 conftest$ac_exeext conftest.$ac_ext
9750 LIBS=$ac_check_lib_save_LIBS
9751 fi
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9753 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9754 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9755 cat >>confdefs.h <<_ACEOF
9756 #define HAVE_LIBXEXT 1
9757 _ACEOF
9758
9759 LIBS="-lXext $LIBS"
9760
9761 fi
9762
9763 fi
9764 fi
9765
9766 LIBXP=
9767 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9769 $as_echo_n "checking for Motif version 2.1... " >&6; }
9770 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9775 #include <Xm/Xm.h>
9776 int
9777 main ()
9778 {
9779 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9780 int x = 5;
9781 #else
9782 Motif version prior to 2.1.
9783 #endif
9784 ;
9785 return 0;
9786 }
9787 _ACEOF
9788 if ac_fn_c_try_compile "$LINENO"; then :
9789 emacs_cv_motif_version_2_1=yes
9790 else
9791 emacs_cv_motif_version_2_1=no
9792 fi
9793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794 fi
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9796 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9797 if test $emacs_cv_motif_version_2_1 = yes; then
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9799 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9800 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 ac_check_lib_save_LIBS=$LIBS
9804 LIBS="-lXp $LIBS"
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9807
9808 /* Override any GCC internal prototype to avoid an error.
9809 Use char because int might match the return type of a GCC
9810 builtin and then its argument prototype would still apply. */
9811 #ifdef __cplusplus
9812 extern "C"
9813 #endif
9814 char XpCreateContext ();
9815 int
9816 main ()
9817 {
9818 return XpCreateContext ();
9819 ;
9820 return 0;
9821 }
9822 _ACEOF
9823 if ac_fn_c_try_link "$LINENO"; then :
9824 ac_cv_lib_Xp_XpCreateContext=yes
9825 else
9826 ac_cv_lib_Xp_XpCreateContext=no
9827 fi
9828 rm -f core conftest.err conftest.$ac_objext \
9829 conftest$ac_exeext conftest.$ac_ext
9830 LIBS=$ac_check_lib_save_LIBS
9831 fi
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9833 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9834 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9835 LIBXP=-lXp
9836 fi
9837
9838 else
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9840 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9841 if test "${emacs_cv_lesstif+set}" = set; then :
9842 $as_echo_n "(cached) " >&6
9843 else
9844 # We put this in CFLAGS temporarily to precede other -I options
9845 # that might be in CFLAGS temporarily.
9846 # We put this in CPPFLAGS where it precedes the other -I options.
9847 OLD_CPPFLAGS=$CPPFLAGS
9848 OLD_CFLAGS=$CFLAGS
9849 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9850 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9853 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9854 int
9855 main ()
9856 {
9857 int x = 5;
9858 ;
9859 return 0;
9860 }
9861 _ACEOF
9862 if ac_fn_c_try_compile "$LINENO"; then :
9863 emacs_cv_lesstif=yes
9864 else
9865 emacs_cv_lesstif=no
9866 fi
9867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9868 fi
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9870 $as_echo "$emacs_cv_lesstif" >&6; }
9871 if test $emacs_cv_lesstif = yes; then
9872 # Make sure this -I option remains in CPPFLAGS after it is set
9873 # back to REAL_CPPFLAGS.
9874 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9875 # have those other -I options anyway. Ultimately, having this
9876 # directory ultimately in CPPFLAGS will be enough.
9877 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9878 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9879 else
9880 CFLAGS=$OLD_CFLAGS
9881 CPPFLAGS=$OLD_CPPFLAGS
9882 fi
9883 fi
9884 fi
9885
9886
9887 USE_TOOLKIT_SCROLL_BARS=no
9888 if test "${with_toolkit_scroll_bars}" != "no"; then
9889 if test "${USE_X_TOOLKIT}" != "none"; then
9890 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9891 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9892
9893 HAVE_XAW3D=no
9894 USE_TOOLKIT_SCROLL_BARS=yes
9895 elif test "${HAVE_XAW3D}" = "yes"; then
9896 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9897
9898 USE_TOOLKIT_SCROLL_BARS=yes
9899 fi
9900 elif test "${HAVE_GTK}" = "yes"; then
9901 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9902
9903 USE_TOOLKIT_SCROLL_BARS=yes
9904 elif test "${HAVE_NS}" = "yes"; then
9905 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9906
9907 USE_TOOLKIT_SCROLL_BARS=yes
9908 fi
9909 fi
9910
9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h. */
9913
9914 #include <X11/Xlib.h>
9915 #include <X11/Xresource.h>
9916 int
9917 main ()
9918 {
9919 XIMProc callback;
9920 ;
9921 return 0;
9922 }
9923 _ACEOF
9924 if ac_fn_c_try_compile "$LINENO"; then :
9925 HAVE_XIM=yes
9926
9927 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9928
9929 else
9930 HAVE_XIM=no
9931 fi
9932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9933
9934
9935 if test "${with_xim}" != "no"; then
9936
9937 $as_echo "#define USE_XIM 1" >>confdefs.h
9938
9939 fi
9940
9941
9942 if test "${HAVE_XIM}" != "no"; then
9943 late_CFLAGS=$CFLAGS
9944 if test "$GCC" = yes; then
9945 CFLAGS="$CFLAGS --pedantic-errors"
9946 fi
9947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948 /* end confdefs.h. */
9949
9950 #include <X11/Xlib.h>
9951 #include <X11/Xresource.h>
9952 int
9953 main ()
9954 {
9955 Display *display;
9956 XrmDatabase db;
9957 char *res_name;
9958 char *res_class;
9959 XIMProc callback;
9960 XPointer *client_data;
9961 #ifndef __GNUC__
9962 /* If we're not using GCC, it's probably not XFree86, and this is
9963 probably right, but we can't use something like --pedantic-errors. */
9964 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9965 char*, XIMProc, XPointer*);
9966 #endif
9967 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9968 client_data);
9969 ;
9970 return 0;
9971 }
9972 _ACEOF
9973 if ac_fn_c_try_compile "$LINENO"; then :
9974 emacs_cv_arg6_star=yes
9975 fi
9976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9977 if test "$emacs_cv_arg6_star" = yes; then
9978 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9979
9980 else
9981 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9982
9983 fi
9984 CFLAGS=$late_CFLAGS
9985 fi
9986
9987 ### Start of font-backend (under any platform) section.
9988 # (nothing here yet -- this is a placeholder)
9989 ### End of font-backend (under any platform) section.
9990
9991 ### Start of font-backend (under X11) section.
9992 if test "${HAVE_X11}" = "yes"; then
9993
9994 succeeded=no
9995
9996 # Extract the first word of "pkg-config", so it can be a program name with args.
9997 set dummy pkg-config; ac_word=$2
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9999 $as_echo_n "checking for $ac_word... " >&6; }
10000 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10001 $as_echo_n "(cached) " >&6
10002 else
10003 case $PKG_CONFIG in
10004 [\\/]* | ?:[\\/]*)
10005 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10006 ;;
10007 *)
10008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009 for as_dir in $PATH
10010 do
10011 IFS=$as_save_IFS
10012 test -z "$as_dir" && as_dir=.
10013 for ac_exec_ext in '' $ac_executable_extensions; do
10014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10015 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10017 break 2
10018 fi
10019 done
10020 done
10021 IFS=$as_save_IFS
10022
10023 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10024 ;;
10025 esac
10026 fi
10027 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10028 if test -n "$PKG_CONFIG"; then
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10030 $as_echo "$PKG_CONFIG" >&6; }
10031 else
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10033 $as_echo "no" >&6; }
10034 fi
10035
10036
10037
10038 if test "$PKG_CONFIG" = "no" ; then
10039 HAVE_FC=no
10040 else
10041 PKG_CONFIG_MIN_VERSION=0.9.0
10042 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10044 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10045
10046 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10048 $as_echo "yes" >&6; }
10049 succeeded=yes
10050
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10052 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10053 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10055 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10056
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10058 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10059 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10061 $as_echo "$FONTCONFIG_LIBS" >&6; }
10062 else
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10064 $as_echo "no" >&6; }
10065 FONTCONFIG_CFLAGS=""
10066 FONTCONFIG_LIBS=""
10067 ## If we have a custom action on failure, don't print errors, but
10068 ## do set a variable so people can do so.
10069 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10070
10071 fi
10072
10073
10074
10075 else
10076 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10077 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10078 fi
10079 fi
10080
10081 if test $succeeded = yes; then
10082 HAVE_FC=yes
10083 else
10084 HAVE_FC=no
10085 fi
10086
10087
10088 ## Use -lXft if available, unless `--with-xft=no'.
10089 HAVE_XFT=maybe
10090 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
10091 with_xft="no";
10092 fi
10093 if test "x${with_xft}" != "xno"; then
10094
10095
10096 succeeded=no
10097
10098 # Extract the first word of "pkg-config", so it can be a program name with args.
10099 set dummy pkg-config; ac_word=$2
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10101 $as_echo_n "checking for $ac_word... " >&6; }
10102 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105 case $PKG_CONFIG in
10106 [\\/]* | ?:[\\/]*)
10107 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10108 ;;
10109 *)
10110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10111 for as_dir in $PATH
10112 do
10113 IFS=$as_save_IFS
10114 test -z "$as_dir" && as_dir=.
10115 for ac_exec_ext in '' $ac_executable_extensions; do
10116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10117 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10119 break 2
10120 fi
10121 done
10122 done
10123 IFS=$as_save_IFS
10124
10125 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10126 ;;
10127 esac
10128 fi
10129 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10130 if test -n "$PKG_CONFIG"; then
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10132 $as_echo "$PKG_CONFIG" >&6; }
10133 else
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135 $as_echo "no" >&6; }
10136 fi
10137
10138
10139
10140 if test "$PKG_CONFIG" = "no" ; then
10141 HAVE_XFT=no
10142 else
10143 PKG_CONFIG_MIN_VERSION=0.9.0
10144 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10146 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10147
10148 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10150 $as_echo "yes" >&6; }
10151 succeeded=yes
10152
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10154 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10155 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10157 $as_echo "$XFT_CFLAGS" >&6; }
10158
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10160 $as_echo_n "checking XFT_LIBS... " >&6; }
10161 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10163 $as_echo "$XFT_LIBS" >&6; }
10164 else
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10166 $as_echo "no" >&6; }
10167 XFT_CFLAGS=""
10168 XFT_LIBS=""
10169 ## If we have a custom action on failure, don't print errors, but
10170 ## do set a variable so people can do so.
10171 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10172
10173 fi
10174
10175
10176
10177 else
10178 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10179 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10180 fi
10181 fi
10182
10183 if test $succeeded = yes; then
10184 :
10185 else
10186 HAVE_XFT=no
10187 fi
10188
10189 ## Because xftfont.c uses XRenderQueryExtension, we also
10190 ## need to link to -lXrender.
10191 HAVE_XRENDER=no
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10193 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10194 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 ac_check_lib_save_LIBS=$LIBS
10198 LIBS="-lXrender $LIBS"
10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200 /* end confdefs.h. */
10201
10202 /* Override any GCC internal prototype to avoid an error.
10203 Use char because int might match the return type of a GCC
10204 builtin and then its argument prototype would still apply. */
10205 #ifdef __cplusplus
10206 extern "C"
10207 #endif
10208 char XRenderQueryExtension ();
10209 int
10210 main ()
10211 {
10212 return XRenderQueryExtension ();
10213 ;
10214 return 0;
10215 }
10216 _ACEOF
10217 if ac_fn_c_try_link "$LINENO"; then :
10218 ac_cv_lib_Xrender_XRenderQueryExtension=yes
10219 else
10220 ac_cv_lib_Xrender_XRenderQueryExtension=no
10221 fi
10222 rm -f core conftest.err conftest.$ac_objext \
10223 conftest$ac_exeext conftest.$ac_ext
10224 LIBS=$ac_check_lib_save_LIBS
10225 fi
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10227 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10228 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
10229 HAVE_XRENDER=yes
10230 fi
10231
10232 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
10233 OLD_CPPFLAGS="$CPPFLAGS"
10234 OLD_CFLAGS="$CFLAGS"
10235 OLD_LIBS="$LIBS"
10236 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
10237 CFLAGS="$CFLAGS $XFT_CFLAGS"
10238 XFT_LIBS="-lXrender $XFT_LIBS"
10239 LIBS="$XFT_LIBS $LIBS"
10240 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10241 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10243 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10244 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
10245 $as_echo_n "(cached) " >&6
10246 else
10247 ac_check_lib_save_LIBS=$LIBS
10248 LIBS="-lXft $XFT_LIBS $LIBS"
10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10251
10252 /* Override any GCC internal prototype to avoid an error.
10253 Use char because int might match the return type of a GCC
10254 builtin and then its argument prototype would still apply. */
10255 #ifdef __cplusplus
10256 extern "C"
10257 #endif
10258 char XftFontOpen ();
10259 int
10260 main ()
10261 {
10262 return XftFontOpen ();
10263 ;
10264 return 0;
10265 }
10266 _ACEOF
10267 if ac_fn_c_try_link "$LINENO"; then :
10268 ac_cv_lib_Xft_XftFontOpen=yes
10269 else
10270 ac_cv_lib_Xft_XftFontOpen=no
10271 fi
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_lib_save_LIBS
10275 fi
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10277 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10278 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
10279 HAVE_XFT=yes
10280 fi
10281
10282 fi
10283
10284
10285
10286 if test "${HAVE_XFT}" = "yes"; then
10287
10288 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10289
10290
10291 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
10292 else
10293 CPPFLAGS="$OLD_CPPFLAGS"
10294 CFLAGS="$OLD_CFLAGS"
10295 LIBS="$OLD_LIBS"
10296 fi # "${HAVE_XFT}" = "yes"
10297 fi # "$HAVE_XFT" != no
10298 fi # "x${with_xft}" != "xno"
10299
10300 if test "$HAVE_XFT" != "yes"; then
10301 HAVE_XFT=no
10302 fi
10303
10304
10305 HAVE_FREETYPE=no
10306 ## We used to allow building with FreeType and without Xft.
10307 ## However, the ftx font backend driver is not in good shape.
10308 if test "${HAVE_XFT}" = "yes"; then
10309 HAVE_FREETYPE=yes
10310 FONTCONFIG_CFLAGS=
10311 FONTCONFIG_LIBS=
10312 fi
10313
10314 HAVE_LIBOTF=no
10315 if test "${HAVE_FREETYPE}" = "yes"; then
10316
10317 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10318
10319 if test "${with_libotf}" != "no"; then
10320
10321 succeeded=no
10322
10323 # Extract the first word of "pkg-config", so it can be a program name with args.
10324 set dummy pkg-config; ac_word=$2
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10326 $as_echo_n "checking for $ac_word... " >&6; }
10327 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10328 $as_echo_n "(cached) " >&6
10329 else
10330 case $PKG_CONFIG in
10331 [\\/]* | ?:[\\/]*)
10332 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10333 ;;
10334 *)
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10337 do
10338 IFS=$as_save_IFS
10339 test -z "$as_dir" && as_dir=.
10340 for ac_exec_ext in '' $ac_executable_extensions; do
10341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10342 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344 break 2
10345 fi
10346 done
10347 done
10348 IFS=$as_save_IFS
10349
10350 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10351 ;;
10352 esac
10353 fi
10354 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10355 if test -n "$PKG_CONFIG"; then
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10357 $as_echo "$PKG_CONFIG" >&6; }
10358 else
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360 $as_echo "no" >&6; }
10361 fi
10362
10363
10364
10365 if test "$PKG_CONFIG" = "no" ; then
10366 HAVE_LIBOTF=no
10367 else
10368 PKG_CONFIG_MIN_VERSION=0.9.0
10369 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10371 $as_echo_n "checking for libotf... " >&6; }
10372
10373 if $PKG_CONFIG --exists "libotf" 2>&5; then
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10375 $as_echo "yes" >&6; }
10376 succeeded=yes
10377
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10379 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10380 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10382 $as_echo "$LIBOTF_CFLAGS" >&6; }
10383
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10385 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10386 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10388 $as_echo "$LIBOTF_LIBS" >&6; }
10389 else
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; }
10392 LIBOTF_CFLAGS=""
10393 LIBOTF_LIBS=""
10394 ## If we have a custom action on failure, don't print errors, but
10395 ## do set a variable so people can do so.
10396 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10397
10398 fi
10399
10400
10401
10402 else
10403 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10404 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10405 fi
10406 fi
10407
10408 if test $succeeded = yes; then
10409 HAVE_LIBOTF=yes
10410 else
10411 HAVE_LIBOTF=no
10412 fi
10413
10414 if test "$HAVE_LIBOTF" = "yes"; then
10415
10416 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10417
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10419 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10420 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10421 $as_echo_n "(cached) " >&6
10422 else
10423 ac_check_lib_save_LIBS=$LIBS
10424 LIBS="-lotf $LIBS"
10425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h. */
10427
10428 /* Override any GCC internal prototype to avoid an error.
10429 Use char because int might match the return type of a GCC
10430 builtin and then its argument prototype would still apply. */
10431 #ifdef __cplusplus
10432 extern "C"
10433 #endif
10434 char OTF_get_variation_glyphs ();
10435 int
10436 main ()
10437 {
10438 return OTF_get_variation_glyphs ();
10439 ;
10440 return 0;
10441 }
10442 _ACEOF
10443 if ac_fn_c_try_link "$LINENO"; then :
10444 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
10445 else
10446 ac_cv_lib_otf_OTF_get_variation_glyphs=no
10447 fi
10448 rm -f core conftest.err conftest.$ac_objext \
10449 conftest$ac_exeext conftest.$ac_ext
10450 LIBS=$ac_check_lib_save_LIBS
10451 fi
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10453 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10454 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
10455 HAVE_OTF_GET_VARIATION_GLYPHS=yes
10456 else
10457 HAVE_OTF_GET_VARIATION_GLYPHS=no
10458 fi
10459
10460 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10461
10462 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10463
10464 fi
10465 fi
10466 fi
10467 fi
10468
10469 HAVE_M17N_FLT=no
10470 if test "${HAVE_LIBOTF}" = yes; then
10471 if test "${with_m17n_flt}" != "no"; then
10472
10473 succeeded=no
10474
10475 # Extract the first word of "pkg-config", so it can be a program name with args.
10476 set dummy pkg-config; ac_word=$2
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10478 $as_echo_n "checking for $ac_word... " >&6; }
10479 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10480 $as_echo_n "(cached) " >&6
10481 else
10482 case $PKG_CONFIG in
10483 [\\/]* | ?:[\\/]*)
10484 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10485 ;;
10486 *)
10487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10488 for as_dir in $PATH
10489 do
10490 IFS=$as_save_IFS
10491 test -z "$as_dir" && as_dir=.
10492 for ac_exec_ext in '' $ac_executable_extensions; do
10493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10494 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10496 break 2
10497 fi
10498 done
10499 done
10500 IFS=$as_save_IFS
10501
10502 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10503 ;;
10504 esac
10505 fi
10506 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10507 if test -n "$PKG_CONFIG"; then
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10509 $as_echo "$PKG_CONFIG" >&6; }
10510 else
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; }
10513 fi
10514
10515
10516
10517 if test "$PKG_CONFIG" = "no" ; then
10518 HAVE_M17N_FLT=no
10519 else
10520 PKG_CONFIG_MIN_VERSION=0.9.0
10521 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10523 $as_echo_n "checking for m17n-flt... " >&6; }
10524
10525 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10527 $as_echo "yes" >&6; }
10528 succeeded=yes
10529
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10531 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10532 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10534 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10535
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10537 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10538 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10540 $as_echo "$M17N_FLT_LIBS" >&6; }
10541 else
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543 $as_echo "no" >&6; }
10544 M17N_FLT_CFLAGS=""
10545 M17N_FLT_LIBS=""
10546 ## If we have a custom action on failure, don't print errors, but
10547 ## do set a variable so people can do so.
10548 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10549
10550 fi
10551
10552
10553
10554 else
10555 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10556 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10557 fi
10558 fi
10559
10560 if test $succeeded = yes; then
10561 HAVE_M17N_FLT=yes
10562 else
10563 HAVE_M17N_FLT=no
10564 fi
10565
10566 if test "$HAVE_M17N_FLT" = "yes"; then
10567
10568 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10569
10570 fi
10571 fi
10572 fi
10573 else
10574 HAVE_XFT=no
10575 HAVE_FREETYPE=no
10576 HAVE_LIBOTF=no
10577 HAVE_M17N_FLT=no
10578 fi
10579
10580 ### End of font-backend (under X11) section.
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591 ### Use -lXpm if available, unless `--with-xpm=no'.
10592 HAVE_XPM=no
10593 LIBXPM=
10594 if test "${HAVE_X11}" = "yes"; then
10595 if test "${with_xpm}" != "no"; then
10596 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10597 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10599 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10600 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10601 $as_echo_n "(cached) " >&6
10602 else
10603 ac_check_lib_save_LIBS=$LIBS
10604 LIBS="-lXpm -lX11 $LIBS"
10605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h. */
10607
10608 /* Override any GCC internal prototype to avoid an error.
10609 Use char because int might match the return type of a GCC
10610 builtin and then its argument prototype would still apply. */
10611 #ifdef __cplusplus
10612 extern "C"
10613 #endif
10614 char XpmReadFileToPixmap ();
10615 int
10616 main ()
10617 {
10618 return XpmReadFileToPixmap ();
10619 ;
10620 return 0;
10621 }
10622 _ACEOF
10623 if ac_fn_c_try_link "$LINENO"; then :
10624 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10625 else
10626 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10627 fi
10628 rm -f core conftest.err conftest.$ac_objext \
10629 conftest$ac_exeext conftest.$ac_ext
10630 LIBS=$ac_check_lib_save_LIBS
10631 fi
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10633 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10634 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10635 HAVE_XPM=yes
10636 fi
10637
10638 fi
10639
10640
10641 if test "${HAVE_XPM}" = "yes"; then
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10643 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10646 #include "X11/xpm.h"
10647 #ifndef XpmReturnAllocPixels
10648 no_return_alloc_pixels
10649 #endif
10650
10651 _ACEOF
10652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10653 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10654 HAVE_XPM=no
10655 else
10656 HAVE_XPM=yes
10657 fi
10658 rm -f conftest*
10659
10660
10661 if test "${HAVE_XPM}" = "yes"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10663 $as_echo "yes" >&6; }
10664 else
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666 $as_echo "no" >&6; }
10667 fi
10668 fi
10669 fi
10670
10671 if test "${HAVE_XPM}" = "yes"; then
10672
10673 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10674
10675 LIBXPM=-lXpm
10676 fi
10677 fi
10678
10679
10680 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10681 HAVE_JPEG=no
10682 LIBJPEG=
10683 if test "${HAVE_X11}" = "yes"; then
10684 if test "${with_jpeg}" != "no"; then
10685 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10686 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10688 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10689 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10690 $as_echo_n "(cached) " >&6
10691 else
10692 ac_check_lib_save_LIBS=$LIBS
10693 LIBS="-ljpeg $LIBS"
10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10696
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10700 #ifdef __cplusplus
10701 extern "C"
10702 #endif
10703 char jpeg_destroy_compress ();
10704 int
10705 main ()
10706 {
10707 return jpeg_destroy_compress ();
10708 ;
10709 return 0;
10710 }
10711 _ACEOF
10712 if ac_fn_c_try_link "$LINENO"; then :
10713 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10714 else
10715 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10716 fi
10717 rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LIBS=$ac_check_lib_save_LIBS
10720 fi
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10722 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10723 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10724 HAVE_JPEG=yes
10725 fi
10726
10727 fi
10728
10729
10730 fi
10731
10732 if test "${HAVE_JPEG}" = "yes"; then
10733 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10734
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10737 #include <jpeglib.h>
10738 version=JPEG_LIB_VERSION
10739
10740 _ACEOF
10741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10742 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10743 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10744
10745 else
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10747 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10748 HAVE_JPEG=no
10749 fi
10750 rm -f conftest*
10751
10752 fi
10753 if test "${HAVE_JPEG}" = "yes"; then
10754 LIBJPEG=-ljpeg
10755 fi
10756 fi
10757
10758
10759 ### Use -lpng if available, unless `--with-png=no'.
10760 HAVE_PNG=no
10761 LIBPNG=
10762 if test "${HAVE_X11}" = "yes"; then
10763 if test "${with_png}" != "no"; then
10764 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10765 # in /usr/include/libpng.
10766 for ac_header in png.h libpng/png.h
10767 do :
10768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10769 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10770 eval as_val=\$$as_ac_Header
10771 if test "x$as_val" = x""yes; then :
10772 cat >>confdefs.h <<_ACEOF
10773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10774 _ACEOF
10775
10776 fi
10777
10778 done
10779
10780 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10782 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10783 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10784 $as_echo_n "(cached) " >&6
10785 else
10786 ac_check_lib_save_LIBS=$LIBS
10787 LIBS="-lpng -lz -lm $LIBS"
10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h. */
10790
10791 /* Override any GCC internal prototype to avoid an error.
10792 Use char because int might match the return type of a GCC
10793 builtin and then its argument prototype would still apply. */
10794 #ifdef __cplusplus
10795 extern "C"
10796 #endif
10797 char png_get_channels ();
10798 int
10799 main ()
10800 {
10801 return png_get_channels ();
10802 ;
10803 return 0;
10804 }
10805 _ACEOF
10806 if ac_fn_c_try_link "$LINENO"; then :
10807 ac_cv_lib_png_png_get_channels=yes
10808 else
10809 ac_cv_lib_png_png_get_channels=no
10810 fi
10811 rm -f core conftest.err conftest.$ac_objext \
10812 conftest$ac_exeext conftest.$ac_ext
10813 LIBS=$ac_check_lib_save_LIBS
10814 fi
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10816 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10817 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10818 HAVE_PNG=yes
10819 fi
10820
10821 fi
10822 fi
10823
10824 if test "${HAVE_PNG}" = "yes"; then
10825
10826 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10827
10828 LIBPNG="-lpng -lz -lm"
10829 fi
10830 fi
10831
10832
10833 ### Use -ltiff if available, unless `--with-tiff=no'.
10834 HAVE_TIFF=no
10835 LIBTIFF=
10836 if test "${HAVE_X11}" = "yes"; then
10837 if test "${with_tiff}" != "no"; then
10838 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10839 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10840 tifflibs="-lz -lm"
10841 # At least one tiff package requires the jpeg library.
10842 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10844 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10845 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10846 $as_echo_n "(cached) " >&6
10847 else
10848 ac_check_lib_save_LIBS=$LIBS
10849 LIBS="-ltiff $tifflibs $LIBS"
10850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851 /* end confdefs.h. */
10852
10853 /* Override any GCC internal prototype to avoid an error.
10854 Use char because int might match the return type of a GCC
10855 builtin and then its argument prototype would still apply. */
10856 #ifdef __cplusplus
10857 extern "C"
10858 #endif
10859 char TIFFGetVersion ();
10860 int
10861 main ()
10862 {
10863 return TIFFGetVersion ();
10864 ;
10865 return 0;
10866 }
10867 _ACEOF
10868 if ac_fn_c_try_link "$LINENO"; then :
10869 ac_cv_lib_tiff_TIFFGetVersion=yes
10870 else
10871 ac_cv_lib_tiff_TIFFGetVersion=no
10872 fi
10873 rm -f core conftest.err conftest.$ac_objext \
10874 conftest$ac_exeext conftest.$ac_ext
10875 LIBS=$ac_check_lib_save_LIBS
10876 fi
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10878 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10879 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10880 HAVE_TIFF=yes
10881 fi
10882
10883 fi
10884
10885
10886 fi
10887
10888 if test "${HAVE_TIFF}" = "yes"; then
10889
10890 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10891
10892 LIBTIFF=-ltiff
10893 fi
10894 fi
10895
10896
10897 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10898 HAVE_GIF=no
10899 LIBGIF=
10900 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10901 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10902 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10903 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10904 # Earlier versions can crash Emacs.
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10906 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10907 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 ac_check_lib_save_LIBS=$LIBS
10911 LIBS="-lgif $LIBS"
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10914
10915 /* Override any GCC internal prototype to avoid an error.
10916 Use char because int might match the return type of a GCC
10917 builtin and then its argument prototype would still apply. */
10918 #ifdef __cplusplus
10919 extern "C"
10920 #endif
10921 char EGifPutExtensionLast ();
10922 int
10923 main ()
10924 {
10925 return EGifPutExtensionLast ();
10926 ;
10927 return 0;
10928 }
10929 _ACEOF
10930 if ac_fn_c_try_link "$LINENO"; then :
10931 ac_cv_lib_gif_EGifPutExtensionLast=yes
10932 else
10933 ac_cv_lib_gif_EGifPutExtensionLast=no
10934 fi
10935 rm -f core conftest.err conftest.$ac_objext \
10936 conftest$ac_exeext conftest.$ac_ext
10937 LIBS=$ac_check_lib_save_LIBS
10938 fi
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10940 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10941 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10942 HAVE_GIF=yes
10943 else
10944 HAVE_GIF=maybe
10945 fi
10946
10947 fi
10948
10949
10950
10951 if test "$HAVE_GIF" = yes; then
10952 LIBGIF=-lgif
10953 elif test "$HAVE_GIF" = maybe; then
10954 # If gif_lib.h but no libgif, try libungif.
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10956 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10957 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10958 $as_echo_n "(cached) " >&6
10959 else
10960 ac_check_lib_save_LIBS=$LIBS
10961 LIBS="-lungif $LIBS"
10962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h. */
10964
10965 /* Override any GCC internal prototype to avoid an error.
10966 Use char because int might match the return type of a GCC
10967 builtin and then its argument prototype would still apply. */
10968 #ifdef __cplusplus
10969 extern "C"
10970 #endif
10971 char EGifPutExtensionLast ();
10972 int
10973 main ()
10974 {
10975 return EGifPutExtensionLast ();
10976 ;
10977 return 0;
10978 }
10979 _ACEOF
10980 if ac_fn_c_try_link "$LINENO"; then :
10981 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10982 else
10983 ac_cv_lib_ungif_EGifPutExtensionLast=no
10984 fi
10985 rm -f core conftest.err conftest.$ac_objext \
10986 conftest$ac_exeext conftest.$ac_ext
10987 LIBS=$ac_check_lib_save_LIBS
10988 fi
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10990 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10991 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10992 HAVE_GIF=yes
10993 else
10994 HAVE_GIF=no
10995 fi
10996
10997 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10998 fi
10999
11000 if test "${HAVE_GIF}" = "yes"; then
11001
11002 $as_echo "#define HAVE_GIF 1" >>confdefs.h
11003
11004 fi
11005 fi
11006
11007
11008 if test "${HAVE_X11}" = "yes"; then
11009 MISSING=""
11010 WITH_NO=""
11011 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11012 MISSING="libXpm" && WITH_NO="--with-xpm=no"
11013 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11014 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
11015 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11016 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
11017 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11018 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
11019 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11020 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
11021
11022 if test "X${MISSING}" != X; then
11023 as_fn_error "The following required libraries were not found:
11024 $MISSING
11025 Maybe some development libraries/packages are missing?
11026 If you don't want to link with them give
11027 $WITH_NO
11028 as options to configure" "$LINENO" 5
11029 fi
11030 fi
11031
11032 ### Use -lgpm if available, unless `--with-gpm=no'.
11033 HAVE_GPM=no
11034 LIBGPM=
11035 MOUSE_SUPPORT=
11036 if test "${with_gpm}" != "no"; then
11037 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11038 if test "x$ac_cv_header_gpm_h" = x""yes; then :
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11040 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11041 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
11042 $as_echo_n "(cached) " >&6
11043 else
11044 ac_check_lib_save_LIBS=$LIBS
11045 LIBS="-lgpm $LIBS"
11046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h. */
11048
11049 /* Override any GCC internal prototype to avoid an error.
11050 Use char because int might match the return type of a GCC
11051 builtin and then its argument prototype would still apply. */
11052 #ifdef __cplusplus
11053 extern "C"
11054 #endif
11055 char Gpm_Open ();
11056 int
11057 main ()
11058 {
11059 return Gpm_Open ();
11060 ;
11061 return 0;
11062 }
11063 _ACEOF
11064 if ac_fn_c_try_link "$LINENO"; then :
11065 ac_cv_lib_gpm_Gpm_Open=yes
11066 else
11067 ac_cv_lib_gpm_Gpm_Open=no
11068 fi
11069 rm -f core conftest.err conftest.$ac_objext \
11070 conftest$ac_exeext conftest.$ac_ext
11071 LIBS=$ac_check_lib_save_LIBS
11072 fi
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11074 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11075 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
11076 HAVE_GPM=yes
11077 fi
11078
11079 fi
11080
11081
11082
11083 if test "${HAVE_GPM}" = "yes"; then
11084
11085 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11086
11087 LIBGPM=-lgpm
11088 ## May be reset below.
11089 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
11090 fi
11091 fi
11092
11093
11094 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11095 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
11096
11097 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11098
11099 fi
11100
11101
11102
11103 C_SWITCH_X_SYSTEM=
11104 ### Use NeXTstep API to implement GUI.
11105 if test "${HAVE_NS}" = "yes"; then
11106
11107 $as_echo "#define HAVE_NS 1" >>confdefs.h
11108
11109 if test "${NS_IMPL_COCOA}" = "yes"; then
11110
11111 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11112
11113 GNU_OBJC_CFLAGS=
11114 fi
11115 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11116
11117 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11118
11119 # See also .m.o rule in Makefile.in */
11120 # FIXME: are all these flags really needed? Document here why. */
11121 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
11122 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11123 fi
11124 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11125
11126 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11127
11128 fi
11129 # We also have mouse menus.
11130 HAVE_MENUS=yes
11131 OTHER_FILES=ns-app
11132 fi
11133
11134
11135 ### Use session management (-lSM -lICE) if available
11136 HAVE_X_SM=no
11137 LIBXSM=
11138 if test "${HAVE_X11}" = "yes"; then
11139 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11140 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11142 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11143 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
11144 $as_echo_n "(cached) " >&6
11145 else
11146 ac_check_lib_save_LIBS=$LIBS
11147 LIBS="-lSM -lICE $LIBS"
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h. */
11150
11151 /* Override any GCC internal prototype to avoid an error.
11152 Use char because int might match the return type of a GCC
11153 builtin and then its argument prototype would still apply. */
11154 #ifdef __cplusplus
11155 extern "C"
11156 #endif
11157 char SmcOpenConnection ();
11158 int
11159 main ()
11160 {
11161 return SmcOpenConnection ();
11162 ;
11163 return 0;
11164 }
11165 _ACEOF
11166 if ac_fn_c_try_link "$LINENO"; then :
11167 ac_cv_lib_SM_SmcOpenConnection=yes
11168 else
11169 ac_cv_lib_SM_SmcOpenConnection=no
11170 fi
11171 rm -f core conftest.err conftest.$ac_objext \
11172 conftest$ac_exeext conftest.$ac_ext
11173 LIBS=$ac_check_lib_save_LIBS
11174 fi
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11176 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11177 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
11178 HAVE_X_SM=yes
11179 fi
11180
11181 fi
11182
11183
11184
11185 if test "${HAVE_X_SM}" = "yes"; then
11186
11187 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11188
11189 LIBXSM="-lSM -lICE"
11190 case "$LIBS" in
11191 *-lSM*) ;;
11192 *) LIBS="$LIBXSM $LIBS" ;;
11193 esac
11194 fi
11195 fi
11196
11197
11198 ### Use libxml (-lxml2) if available
11199 if test "${with_xml2}" != "no"; then
11200 ### I'm not sure what the version number should be, so I just guessed.
11201
11202 succeeded=no
11203
11204 # Extract the first word of "pkg-config", so it can be a program name with args.
11205 set dummy pkg-config; ac_word=$2
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207 $as_echo_n "checking for $ac_word... " >&6; }
11208 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11209 $as_echo_n "(cached) " >&6
11210 else
11211 case $PKG_CONFIG in
11212 [\\/]* | ?:[\\/]*)
11213 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11214 ;;
11215 *)
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11218 do
11219 IFS=$as_save_IFS
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11223 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 break 2
11226 fi
11227 done
11228 done
11229 IFS=$as_save_IFS
11230
11231 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11232 ;;
11233 esac
11234 fi
11235 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11236 if test -n "$PKG_CONFIG"; then
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11238 $as_echo "$PKG_CONFIG" >&6; }
11239 else
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241 $as_echo "no" >&6; }
11242 fi
11243
11244
11245
11246 if test "$PKG_CONFIG" = "no" ; then
11247 HAVE_LIBXML2=no
11248 else
11249 PKG_CONFIG_MIN_VERSION=0.9.0
11250 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11252 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11253
11254 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11256 $as_echo "yes" >&6; }
11257 succeeded=yes
11258
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11260 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11261 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11263 $as_echo "$LIBXML2_CFLAGS" >&6; }
11264
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11266 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11267 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11269 $as_echo "$LIBXML2_LIBS" >&6; }
11270 else
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11272 $as_echo "no" >&6; }
11273 LIBXML2_CFLAGS=""
11274 LIBXML2_LIBS=""
11275 ## If we have a custom action on failure, don't print errors, but
11276 ## do set a variable so people can do so.
11277 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11278
11279 fi
11280
11281
11282
11283 else
11284 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11285 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11286 fi
11287 fi
11288
11289 if test $succeeded = yes; then
11290 HAVE_LIBXML2=yes
11291 else
11292 HAVE_LIBXML2=no
11293 fi
11294
11295 if test "${HAVE_LIBXML2}" = "yes"; then
11296 LIBS="$LIBXML2_LIBS $LIBS"
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11298 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11299 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
11300 $as_echo_n "(cached) " >&6
11301 else
11302 ac_check_lib_save_LIBS=$LIBS
11303 LIBS="-lxml2 $LIBS"
11304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h. */
11306
11307 /* Override any GCC internal prototype to avoid an error.
11308 Use char because int might match the return type of a GCC
11309 builtin and then its argument prototype would still apply. */
11310 #ifdef __cplusplus
11311 extern "C"
11312 #endif
11313 char htmlReadMemory ();
11314 int
11315 main ()
11316 {
11317 return htmlReadMemory ();
11318 ;
11319 return 0;
11320 }
11321 _ACEOF
11322 if ac_fn_c_try_link "$LINENO"; then :
11323 ac_cv_lib_xml2_htmlReadMemory=yes
11324 else
11325 ac_cv_lib_xml2_htmlReadMemory=no
11326 fi
11327 rm -f core conftest.err conftest.$ac_objext \
11328 conftest$ac_exeext conftest.$ac_ext
11329 LIBS=$ac_check_lib_save_LIBS
11330 fi
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11332 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11333 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
11334 HAVE_LIBXML2=yes
11335 else
11336 HAVE_LIBXML2=no
11337 fi
11338
11339 if test "${HAVE_LIBXML2}" = "yes"; then
11340
11341 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11342
11343 else
11344 LIBXML2_LIBS=""
11345 LIBXML2_CFLAGS=""
11346 fi
11347 fi
11348 fi
11349
11350
11351
11352 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11354 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11355 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h. */
11360 #include <netdb.h>
11361 int
11362 main ()
11363 {
11364 return h_errno;
11365 ;
11366 return 0;
11367 }
11368 _ACEOF
11369 if ac_fn_c_try_link "$LINENO"; then :
11370 emacs_cv_netdb_declares_h_errno=yes
11371 else
11372 emacs_cv_netdb_declares_h_errno=no
11373 fi
11374 rm -f core conftest.err conftest.$ac_objext \
11375 conftest$ac_exeext conftest.$ac_ext
11376 fi
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11378 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11379 if test $emacs_cv_netdb_declares_h_errno = yes; then
11380
11381 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11382
11383 fi
11384
11385 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11386 # for constant arguments. Useless!
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11388 $as_echo_n "checking for working alloca.h... " >&6; }
11389 if test "${ac_cv_working_alloca_h+set}" = set; then :
11390 $as_echo_n "(cached) " >&6
11391 else
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11394 #include <alloca.h>
11395 int
11396 main ()
11397 {
11398 char *p = (char *) alloca (2 * sizeof (int));
11399 if (p) return 0;
11400 ;
11401 return 0;
11402 }
11403 _ACEOF
11404 if ac_fn_c_try_link "$LINENO"; then :
11405 ac_cv_working_alloca_h=yes
11406 else
11407 ac_cv_working_alloca_h=no
11408 fi
11409 rm -f core conftest.err conftest.$ac_objext \
11410 conftest$ac_exeext conftest.$ac_ext
11411 fi
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11413 $as_echo "$ac_cv_working_alloca_h" >&6; }
11414 if test $ac_cv_working_alloca_h = yes; then
11415
11416 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11417
11418 fi
11419
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11421 $as_echo_n "checking for alloca... " >&6; }
11422 if test "${ac_cv_func_alloca_works+set}" = set; then :
11423 $as_echo_n "(cached) " >&6
11424 else
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11427 #ifdef __GNUC__
11428 # define alloca __builtin_alloca
11429 #else
11430 # ifdef _MSC_VER
11431 # include <malloc.h>
11432 # define alloca _alloca
11433 # else
11434 # ifdef HAVE_ALLOCA_H
11435 # include <alloca.h>
11436 # else
11437 # ifdef _AIX
11438 #pragma alloca
11439 # else
11440 # ifndef alloca /* predefined by HP cc +Olibcalls */
11441 char *alloca ();
11442 # endif
11443 # endif
11444 # endif
11445 # endif
11446 #endif
11447
11448 int
11449 main ()
11450 {
11451 char *p = (char *) alloca (1);
11452 if (p) return 0;
11453 ;
11454 return 0;
11455 }
11456 _ACEOF
11457 if ac_fn_c_try_link "$LINENO"; then :
11458 ac_cv_func_alloca_works=yes
11459 else
11460 ac_cv_func_alloca_works=no
11461 fi
11462 rm -f core conftest.err conftest.$ac_objext \
11463 conftest$ac_exeext conftest.$ac_ext
11464 fi
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11466 $as_echo "$ac_cv_func_alloca_works" >&6; }
11467
11468 if test $ac_cv_func_alloca_works = yes; then
11469
11470 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11471
11472 else
11473 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11474 # that cause trouble. Some versions do not even contain alloca or
11475 # contain a buggy version. If you still want to use their alloca,
11476 # use ar to extract alloca.o from them instead of compiling alloca.c.
11477
11478 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11479
11480 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11481
11482
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11484 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11485 if test "${ac_cv_os_cray+set}" = set; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489 /* end confdefs.h. */
11490 #if defined CRAY && ! defined CRAY2
11491 webecray
11492 #else
11493 wenotbecray
11494 #endif
11495
11496 _ACEOF
11497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11498 $EGREP "webecray" >/dev/null 2>&1; then :
11499 ac_cv_os_cray=yes
11500 else
11501 ac_cv_os_cray=no
11502 fi
11503 rm -f conftest*
11504
11505 fi
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11507 $as_echo "$ac_cv_os_cray" >&6; }
11508 if test $ac_cv_os_cray = yes; then
11509 for ac_func in _getb67 GETB67 getb67; do
11510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11511 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11512 eval as_val=\$$as_ac_var
11513 if test "x$as_val" = x""yes; then :
11514
11515 cat >>confdefs.h <<_ACEOF
11516 #define CRAY_STACKSEG_END $ac_func
11517 _ACEOF
11518
11519 break
11520 fi
11521
11522 done
11523 fi
11524
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11526 $as_echo_n "checking stack direction for C alloca... " >&6; }
11527 if test "${ac_cv_c_stack_direction+set}" = set; then :
11528 $as_echo_n "(cached) " >&6
11529 else
11530 if test "$cross_compiling" = yes; then :
11531 ac_cv_c_stack_direction=0
11532 else
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 /* end confdefs.h. */
11535 $ac_includes_default
11536 int
11537 find_stack_direction ()
11538 {
11539 static char *addr = 0;
11540 auto char dummy;
11541 if (addr == 0)
11542 {
11543 addr = &dummy;
11544 return find_stack_direction ();
11545 }
11546 else
11547 return (&dummy > addr) ? 1 : -1;
11548 }
11549
11550 int
11551 main ()
11552 {
11553 return find_stack_direction () < 0;
11554 }
11555 _ACEOF
11556 if ac_fn_c_try_run "$LINENO"; then :
11557 ac_cv_c_stack_direction=1
11558 else
11559 ac_cv_c_stack_direction=-1
11560 fi
11561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11562 conftest.$ac_objext conftest.beam conftest.$ac_ext
11563 fi
11564
11565 fi
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11567 $as_echo "$ac_cv_c_stack_direction" >&6; }
11568 cat >>confdefs.h <<_ACEOF
11569 #define STACK_DIRECTION $ac_cv_c_stack_direction
11570 _ACEOF
11571
11572
11573 fi
11574
11575
11576 if test x"$ac_cv_func_alloca_works" != xyes; then
11577 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
11578 fi
11579
11580 # fmod, logb, and frexp are found in -lm on most systems.
11581 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11583 $as_echo_n "checking for sqrt in -lm... " >&6; }
11584 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
11585 $as_echo_n "(cached) " >&6
11586 else
11587 ac_check_lib_save_LIBS=$LIBS
11588 LIBS="-lm $LIBS"
11589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11590 /* end confdefs.h. */
11591
11592 /* Override any GCC internal prototype to avoid an error.
11593 Use char because int might match the return type of a GCC
11594 builtin and then its argument prototype would still apply. */
11595 #ifdef __cplusplus
11596 extern "C"
11597 #endif
11598 char sqrt ();
11599 int
11600 main ()
11601 {
11602 return sqrt ();
11603 ;
11604 return 0;
11605 }
11606 _ACEOF
11607 if ac_fn_c_try_link "$LINENO"; then :
11608 ac_cv_lib_m_sqrt=yes
11609 else
11610 ac_cv_lib_m_sqrt=no
11611 fi
11612 rm -f core conftest.err conftest.$ac_objext \
11613 conftest$ac_exeext conftest.$ac_ext
11614 LIBS=$ac_check_lib_save_LIBS
11615 fi
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11617 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11618 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
11619 cat >>confdefs.h <<_ACEOF
11620 #define HAVE_LIBM 1
11621 _ACEOF
11622
11623 LIBS="-lm $LIBS"
11624
11625 fi
11626
11627
11628 # Check for mail-locking functions in a "mail" library. Probably this should
11629 # have the same check as for liblockfile below.
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11631 $as_echo_n "checking for maillock in -lmail... " >&6; }
11632 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 ac_check_lib_save_LIBS=$LIBS
11636 LIBS="-lmail $LIBS"
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11639
11640 /* Override any GCC internal prototype to avoid an error.
11641 Use char because int might match the return type of a GCC
11642 builtin and then its argument prototype would still apply. */
11643 #ifdef __cplusplus
11644 extern "C"
11645 #endif
11646 char maillock ();
11647 int
11648 main ()
11649 {
11650 return maillock ();
11651 ;
11652 return 0;
11653 }
11654 _ACEOF
11655 if ac_fn_c_try_link "$LINENO"; then :
11656 ac_cv_lib_mail_maillock=yes
11657 else
11658 ac_cv_lib_mail_maillock=no
11659 fi
11660 rm -f core conftest.err conftest.$ac_objext \
11661 conftest$ac_exeext conftest.$ac_ext
11662 LIBS=$ac_check_lib_save_LIBS
11663 fi
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11665 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11666 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
11667 have_mail=yes
11668 else
11669 have_mail=no
11670 fi
11671
11672 if test $have_mail = yes; then
11673 LIBS_MAIL=-lmail
11674 LIBS="$LIBS_MAIL $LIBS"
11675
11676 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11677
11678 else
11679 LIBS_MAIL=
11680 fi
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11682 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11683 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 ac_check_lib_save_LIBS=$LIBS
11687 LIBS="-llockfile $LIBS"
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11690
11691 /* Override any GCC internal prototype to avoid an error.
11692 Use char because int might match the return type of a GCC
11693 builtin and then its argument prototype would still apply. */
11694 #ifdef __cplusplus
11695 extern "C"
11696 #endif
11697 char maillock ();
11698 int
11699 main ()
11700 {
11701 return maillock ();
11702 ;
11703 return 0;
11704 }
11705 _ACEOF
11706 if ac_fn_c_try_link "$LINENO"; then :
11707 ac_cv_lib_lockfile_maillock=yes
11708 else
11709 ac_cv_lib_lockfile_maillock=no
11710 fi
11711 rm -f core conftest.err conftest.$ac_objext \
11712 conftest$ac_exeext conftest.$ac_ext
11713 LIBS=$ac_check_lib_save_LIBS
11714 fi
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11716 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11717 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
11718 have_lockfile=yes
11719 else
11720 have_lockfile=no
11721 fi
11722
11723 if test $have_lockfile = yes; then
11724 LIBS_MAIL=-llockfile
11725 LIBS="$LIBS_MAIL $LIBS"
11726
11727 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11728
11729 else
11730 # If we have the shared liblockfile, assume we must use it for mail
11731 # locking (e.g. Debian). If we couldn't link against liblockfile
11732 # (no liblockfile.a installed), ensure that we don't need to.
11733 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11734 set dummy liblockfile.so; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11739 else
11740 if test -n "$liblockfile"; then
11741 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11742 else
11743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11744 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11745 for as_dir in $as_dummy
11746 do
11747 IFS=$as_save_IFS
11748 test -z "$as_dir" && as_dir=.
11749 for ac_exec_ext in '' $ac_executable_extensions; do
11750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11751 ac_cv_prog_liblockfile="yes"
11752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 break 2
11754 fi
11755 done
11756 done
11757 IFS=$as_save_IFS
11758
11759 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11760 fi
11761 fi
11762 liblockfile=$ac_cv_prog_liblockfile
11763 if test -n "$liblockfile"; then
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11765 $as_echo "$liblockfile" >&6; }
11766 else
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768 $as_echo "no" >&6; }
11769 fi
11770
11771
11772 if test $ac_cv_prog_liblockfile = yes; then
11773 as_fn_error "Shared liblockfile found but can't link against it.
11774 This probably means that movemail could lose mail.
11775 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11776 fi
11777 fi
11778 for ac_func in touchlock
11779 do :
11780 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11781 if test "x$ac_cv_func_touchlock" = x""yes; then :
11782 cat >>confdefs.h <<_ACEOF
11783 #define HAVE_TOUCHLOCK 1
11784 _ACEOF
11785
11786 fi
11787 done
11788
11789 for ac_header in maillock.h
11790 do :
11791 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11792 if test "x$ac_cv_header_maillock_h" = x""yes; then :
11793 cat >>confdefs.h <<_ACEOF
11794 #define HAVE_MAILLOCK_H 1
11795 _ACEOF
11796
11797 fi
11798
11799 done
11800
11801
11802
11803 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11804 ## interlock access to the mail spool. The alternative is a lock file named
11805 ## /usr/spool/mail/$USER.lock.
11806 mail_lock=no
11807 case "$opsys" in
11808 aix4-2) mail_lock="lockf" ;;
11809
11810 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11811
11812 ## On GNU/Linux systems, both methods are used by various mail programs.
11813 ## I assume most people are using newer mailers that have heard of flock.
11814 ## Change this if you need to.
11815 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11816 ## configure gets the right answers, and that means *NOT* using flock.
11817 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11818 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11819 ## Debian maintainer hasn't provided a clean fix for Emacs.
11820 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11821 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11822 ## correct logic. -- fx
11823 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11824 ## liblockfile is a Free Software replacement for libmail, used on
11825 ## Debian systems and elsewhere. -rfr.
11826 gnu-*)
11827 mail_lock="flock"
11828 if test $have_mail = yes || test $have_lockfile = yes; then
11829 test $ac_cv_header_maillock_h = yes && mail_lock=no
11830 fi
11831 ;;
11832 esac
11833
11834 BLESSMAIL_TARGET=
11835 case "$mail_lock" in
11836 flock)
11837 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11838 ;;
11839
11840 lockf)
11841 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11842 ;;
11843
11844 *) BLESSMAIL_TARGET="need-blessmail" ;;
11845 esac
11846
11847
11848
11849 for ac_func in gethostname getdomainname dup2 \
11850 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11851 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11852 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11853 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11854 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11855 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11856 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11857 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11858 cfmakeraw cfsetspeed isnan copysign __executable_start
11859 do :
11860 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11861 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11862 eval as_val=\$$as_ac_var
11863 if test "x$as_val" = x""yes; then :
11864 cat >>confdefs.h <<_ACEOF
11865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11866 _ACEOF
11867
11868 fi
11869 done
11870
11871
11872 for ac_header in sys/un.h
11873 do :
11874 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11875 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11876 cat >>confdefs.h <<_ACEOF
11877 #define HAVE_SYS_UN_H 1
11878 _ACEOF
11879
11880 fi
11881
11882 done
11883
11884
11885
11886
11887
11888
11889
11890 for ac_func in $ac_func_list
11891 do :
11892 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11893 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11894 eval as_val=\$$as_ac_var
11895 if test "x$as_val" = x""yes; then :
11896 cat >>confdefs.h <<_ACEOF
11897 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11898 _ACEOF
11899
11900 fi
11901 done
11902
11903
11904
11905
11906
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11908 $as_echo_n "checking for working mktime... " >&6; }
11909 if test "${ac_cv_func_working_mktime+set}" = set; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 if test "$cross_compiling" = yes; then :
11913 ac_cv_func_working_mktime=no
11914 else
11915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916 /* end confdefs.h. */
11917 /* Test program from Paul Eggert and Tony Leneis. */
11918 #ifdef TIME_WITH_SYS_TIME
11919 # include <sys/time.h>
11920 # include <time.h>
11921 #else
11922 # ifdef HAVE_SYS_TIME_H
11923 # include <sys/time.h>
11924 # else
11925 # include <time.h>
11926 # endif
11927 #endif
11928
11929 #include <limits.h>
11930 #include <stdlib.h>
11931
11932 #ifdef HAVE_UNISTD_H
11933 # include <unistd.h>
11934 #endif
11935
11936 #ifndef HAVE_ALARM
11937 # define alarm(X) /* empty */
11938 #endif
11939
11940 /* Work around redefinition to rpl_putenv by other config tests. */
11941 #undef putenv
11942
11943 static time_t time_t_max;
11944 static time_t time_t_min;
11945
11946 /* Values we'll use to set the TZ environment variable. */
11947 static char *tz_strings[] = {
11948 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11949 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11950 };
11951 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11952
11953 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11954 Based on a problem report from Andreas Jaeger. */
11955 static int
11956 spring_forward_gap ()
11957 {
11958 /* glibc (up to about 1998-10-07) failed this test. */
11959 struct tm tm;
11960
11961 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11962 instead of "TZ=America/Vancouver" in order to detect the bug even
11963 on systems that don't support the Olson extension, or don't have the
11964 full zoneinfo tables installed. */
11965 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11966
11967 tm.tm_year = 98;
11968 tm.tm_mon = 3;
11969 tm.tm_mday = 5;
11970 tm.tm_hour = 2;
11971 tm.tm_min = 0;
11972 tm.tm_sec = 0;
11973 tm.tm_isdst = -1;
11974 return mktime (&tm) != (time_t) -1;
11975 }
11976
11977 static int
11978 mktime_test1 (now)
11979 time_t now;
11980 {
11981 struct tm *lt;
11982 return ! (lt = localtime (&now)) || mktime (lt) == now;
11983 }
11984
11985 static int
11986 mktime_test (now)
11987 time_t now;
11988 {
11989 return (mktime_test1 (now)
11990 && mktime_test1 ((time_t) (time_t_max - now))
11991 && mktime_test1 ((time_t) (time_t_min + now)));
11992 }
11993
11994 static int
11995 irix_6_4_bug ()
11996 {
11997 /* Based on code from Ariel Faigon. */
11998 struct tm tm;
11999 tm.tm_year = 96;
12000 tm.tm_mon = 3;
12001 tm.tm_mday = 0;
12002 tm.tm_hour = 0;
12003 tm.tm_min = 0;
12004 tm.tm_sec = 0;
12005 tm.tm_isdst = -1;
12006 mktime (&tm);
12007 return tm.tm_mon == 2 && tm.tm_mday == 31;
12008 }
12009
12010 static int
12011 bigtime_test (j)
12012 int j;
12013 {
12014 struct tm tm;
12015 time_t now;
12016 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12017 now = mktime (&tm);
12018 if (now != (time_t) -1)
12019 {
12020 struct tm *lt = localtime (&now);
12021 if (! (lt
12022 && lt->tm_year == tm.tm_year
12023 && lt->tm_mon == tm.tm_mon
12024 && lt->tm_mday == tm.tm_mday
12025 && lt->tm_hour == tm.tm_hour
12026 && lt->tm_min == tm.tm_min
12027 && lt->tm_sec == tm.tm_sec
12028 && lt->tm_yday == tm.tm_yday
12029 && lt->tm_wday == tm.tm_wday
12030 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12031 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12032 return 0;
12033 }
12034 return 1;
12035 }
12036
12037 static int
12038 year_2050_test ()
12039 {
12040 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12041 ignoring leap seconds. */
12042 unsigned long int answer = 2527315200UL;
12043
12044 struct tm tm;
12045 time_t t;
12046 tm.tm_year = 2050 - 1900;
12047 tm.tm_mon = 2 - 1;
12048 tm.tm_mday = 1;
12049 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12050 tm.tm_isdst = -1;
12051
12052 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12053 instead of "TZ=America/Vancouver" in order to detect the bug even
12054 on systems that don't support the Olson extension, or don't have the
12055 full zoneinfo tables installed. */
12056 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12057
12058 t = mktime (&tm);
12059
12060 /* Check that the result is either a failure, or close enough
12061 to the correct answer that we can assume the discrepancy is
12062 due to leap seconds. */
12063 return (t == (time_t) -1
12064 || (0 < t && answer - 120 <= t && t <= answer + 120));
12065 }
12066
12067 int
12068 main ()
12069 {
12070 time_t t, delta;
12071 int i, j;
12072
12073 /* This test makes some buggy mktime implementations loop.
12074 Give up after 60 seconds; a mktime slower than that
12075 isn't worth using anyway. */
12076 alarm (60);
12077
12078 for (;;)
12079 {
12080 t = (time_t_max << 1) + 1;
12081 if (t <= time_t_max)
12082 break;
12083 time_t_max = t;
12084 }
12085 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12086
12087 delta = time_t_max / 997; /* a suitable prime number */
12088 for (i = 0; i < N_STRINGS; i++)
12089 {
12090 if (tz_strings[i])
12091 putenv (tz_strings[i]);
12092
12093 for (t = 0; t <= time_t_max - delta; t += delta)
12094 if (! mktime_test (t))
12095 return 1;
12096 if (! (mktime_test ((time_t) 1)
12097 && mktime_test ((time_t) (60 * 60))
12098 && mktime_test ((time_t) (60 * 60 * 24))))
12099 return 1;
12100
12101 for (j = 1; ; j <<= 1)
12102 if (! bigtime_test (j))
12103 return 1;
12104 else if (INT_MAX / 2 < j)
12105 break;
12106 if (! bigtime_test (INT_MAX))
12107 return 1;
12108 }
12109 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12110 }
12111 _ACEOF
12112 if ac_fn_c_try_run "$LINENO"; then :
12113 ac_cv_func_working_mktime=yes
12114 else
12115 ac_cv_func_working_mktime=no
12116 fi
12117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12118 conftest.$ac_objext conftest.beam conftest.$ac_ext
12119 fi
12120
12121 fi
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12123 $as_echo "$ac_cv_func_working_mktime" >&6; }
12124 if test $ac_cv_func_working_mktime = no; then
12125 case " $LIBOBJS " in
12126 *" mktime.$ac_objext "* ) ;;
12127 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12128 ;;
12129 esac
12130
12131 fi
12132
12133 if test "$ac_cv_func_working_mktime" = no; then
12134
12135 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12136
12137 fi
12138
12139 ac_have_func=no # yes means we've found a way to get the load average.
12140
12141 # Make sure getloadavg.c is where it belongs, at configure-time.
12142 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12143 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12144
12145 ac_save_LIBS=$LIBS
12146
12147 # Check for getloadavg, but be sure not to touch the cache variable.
12148 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12149 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12150 exit 0
12151 else
12152 exit 1
12153 fi
12154 ) && ac_have_func=yes
12155
12156 # On HPUX9, an unprivileged user can get load averages through this function.
12157 for ac_func in pstat_getdynamic
12158 do :
12159 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12160 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
12161 cat >>confdefs.h <<_ACEOF
12162 #define HAVE_PSTAT_GETDYNAMIC 1
12163 _ACEOF
12164
12165 fi
12166 done
12167
12168
12169 # Solaris has libkstat which does not require root.
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12171 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12172 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12173 $as_echo_n "(cached) " >&6
12174 else
12175 ac_check_lib_save_LIBS=$LIBS
12176 LIBS="-lkstat $LIBS"
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h. */
12179
12180 /* Override any GCC internal prototype to avoid an error.
12181 Use char because int might match the return type of a GCC
12182 builtin and then its argument prototype would still apply. */
12183 #ifdef __cplusplus
12184 extern "C"
12185 #endif
12186 char kstat_open ();
12187 int
12188 main ()
12189 {
12190 return kstat_open ();
12191 ;
12192 return 0;
12193 }
12194 _ACEOF
12195 if ac_fn_c_try_link "$LINENO"; then :
12196 ac_cv_lib_kstat_kstat_open=yes
12197 else
12198 ac_cv_lib_kstat_kstat_open=no
12199 fi
12200 rm -f core conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext conftest.$ac_ext
12202 LIBS=$ac_check_lib_save_LIBS
12203 fi
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12205 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12206 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12207 cat >>confdefs.h <<_ACEOF
12208 #define HAVE_LIBKSTAT 1
12209 _ACEOF
12210
12211 LIBS="-lkstat $LIBS"
12212
12213 fi
12214
12215 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12216
12217 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12218 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12219 # to get the right answer into the cache.
12220 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12221 if test $ac_have_func = no; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12223 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12224 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12225 $as_echo_n "(cached) " >&6
12226 else
12227 ac_check_lib_save_LIBS=$LIBS
12228 LIBS="-lelf $LIBS"
12229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12230 /* end confdefs.h. */
12231
12232 /* Override any GCC internal prototype to avoid an error.
12233 Use char because int might match the return type of a GCC
12234 builtin and then its argument prototype would still apply. */
12235 #ifdef __cplusplus
12236 extern "C"
12237 #endif
12238 char elf_begin ();
12239 int
12240 main ()
12241 {
12242 return elf_begin ();
12243 ;
12244 return 0;
12245 }
12246 _ACEOF
12247 if ac_fn_c_try_link "$LINENO"; then :
12248 ac_cv_lib_elf_elf_begin=yes
12249 else
12250 ac_cv_lib_elf_elf_begin=no
12251 fi
12252 rm -f core conftest.err conftest.$ac_objext \
12253 conftest$ac_exeext conftest.$ac_ext
12254 LIBS=$ac_check_lib_save_LIBS
12255 fi
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12257 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12258 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
12259 LIBS="-lelf $LIBS"
12260 fi
12261
12262 fi
12263 if test $ac_have_func = no; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12265 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12266 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12267 $as_echo_n "(cached) " >&6
12268 else
12269 ac_check_lib_save_LIBS=$LIBS
12270 LIBS="-lkvm $LIBS"
12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h. */
12273
12274 /* Override any GCC internal prototype to avoid an error.
12275 Use char because int might match the return type of a GCC
12276 builtin and then its argument prototype would still apply. */
12277 #ifdef __cplusplus
12278 extern "C"
12279 #endif
12280 char kvm_open ();
12281 int
12282 main ()
12283 {
12284 return kvm_open ();
12285 ;
12286 return 0;
12287 }
12288 _ACEOF
12289 if ac_fn_c_try_link "$LINENO"; then :
12290 ac_cv_lib_kvm_kvm_open=yes
12291 else
12292 ac_cv_lib_kvm_kvm_open=no
12293 fi
12294 rm -f core conftest.err conftest.$ac_objext \
12295 conftest$ac_exeext conftest.$ac_ext
12296 LIBS=$ac_check_lib_save_LIBS
12297 fi
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12299 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12300 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
12301 LIBS="-lkvm $LIBS"
12302 fi
12303
12304 # Check for the 4.4BSD definition of getloadavg.
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12306 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12307 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12308 $as_echo_n "(cached) " >&6
12309 else
12310 ac_check_lib_save_LIBS=$LIBS
12311 LIBS="-lutil $LIBS"
12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h. */
12314
12315 /* Override any GCC internal prototype to avoid an error.
12316 Use char because int might match the return type of a GCC
12317 builtin and then its argument prototype would still apply. */
12318 #ifdef __cplusplus
12319 extern "C"
12320 #endif
12321 char getloadavg ();
12322 int
12323 main ()
12324 {
12325 return getloadavg ();
12326 ;
12327 return 0;
12328 }
12329 _ACEOF
12330 if ac_fn_c_try_link "$LINENO"; then :
12331 ac_cv_lib_util_getloadavg=yes
12332 else
12333 ac_cv_lib_util_getloadavg=no
12334 fi
12335 rm -f core conftest.err conftest.$ac_objext \
12336 conftest$ac_exeext conftest.$ac_ext
12337 LIBS=$ac_check_lib_save_LIBS
12338 fi
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12340 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12341 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
12342 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12343 fi
12344
12345 fi
12346
12347 if test $ac_have_func = no; then
12348 # There is a commonly available library for RS/6000 AIX.
12349 # Since it is not a standard part of AIX, it might be installed locally.
12350 ac_getloadavg_LIBS=$LIBS
12351 LIBS="-L/usr/local/lib $LIBS"
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12353 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12354 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12357 ac_check_lib_save_LIBS=$LIBS
12358 LIBS="-lgetloadavg $LIBS"
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12361
12362 /* Override any GCC internal prototype to avoid an error.
12363 Use char because int might match the return type of a GCC
12364 builtin and then its argument prototype would still apply. */
12365 #ifdef __cplusplus
12366 extern "C"
12367 #endif
12368 char getloadavg ();
12369 int
12370 main ()
12371 {
12372 return getloadavg ();
12373 ;
12374 return 0;
12375 }
12376 _ACEOF
12377 if ac_fn_c_try_link "$LINENO"; then :
12378 ac_cv_lib_getloadavg_getloadavg=yes
12379 else
12380 ac_cv_lib_getloadavg_getloadavg=no
12381 fi
12382 rm -f core conftest.err conftest.$ac_objext \
12383 conftest$ac_exeext conftest.$ac_ext
12384 LIBS=$ac_check_lib_save_LIBS
12385 fi
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12387 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12388 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
12389 LIBS="-lgetloadavg $LIBS"
12390 else
12391 LIBS=$ac_getloadavg_LIBS
12392 fi
12393
12394 fi
12395
12396 # Make sure it is really in the library, if we think we found it,
12397 # otherwise set up the replacement function.
12398 for ac_func in getloadavg
12399 do :
12400 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12401 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12402 cat >>confdefs.h <<_ACEOF
12403 #define HAVE_GETLOADAVG 1
12404 _ACEOF
12405
12406 else
12407 case " $LIBOBJS " in
12408 *" getloadavg.$ac_objext "* ) ;;
12409 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12410 ;;
12411 esac
12412
12413
12414 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12415
12416 # Figure out what our getloadavg.c needs.
12417 ac_have_func=no
12418 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12419 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
12420 ac_have_func=yes
12421
12422 $as_echo "#define DGUX 1" >>confdefs.h
12423
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12425 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12426 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 ac_check_lib_save_LIBS=$LIBS
12430 LIBS="-ldgc $LIBS"
12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h. */
12433
12434 /* Override any GCC internal prototype to avoid an error.
12435 Use char because int might match the return type of a GCC
12436 builtin and then its argument prototype would still apply. */
12437 #ifdef __cplusplus
12438 extern "C"
12439 #endif
12440 char dg_sys_info ();
12441 int
12442 main ()
12443 {
12444 return dg_sys_info ();
12445 ;
12446 return 0;
12447 }
12448 _ACEOF
12449 if ac_fn_c_try_link "$LINENO"; then :
12450 ac_cv_lib_dgc_dg_sys_info=yes
12451 else
12452 ac_cv_lib_dgc_dg_sys_info=no
12453 fi
12454 rm -f core conftest.err conftest.$ac_objext \
12455 conftest$ac_exeext conftest.$ac_ext
12456 LIBS=$ac_check_lib_save_LIBS
12457 fi
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12459 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12460 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
12461 cat >>confdefs.h <<_ACEOF
12462 #define HAVE_LIBDGC 1
12463 _ACEOF
12464
12465 LIBS="-ldgc $LIBS"
12466
12467 fi
12468
12469 fi
12470
12471
12472
12473 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12474 if test "x$ac_cv_header_locale_h" = x""yes; then :
12475
12476 fi
12477
12478
12479 for ac_func in setlocale
12480 do :
12481 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12482 if test "x$ac_cv_func_setlocale" = x""yes; then :
12483 cat >>confdefs.h <<_ACEOF
12484 #define HAVE_SETLOCALE 1
12485 _ACEOF
12486
12487 fi
12488 done
12489
12490
12491 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12492 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12493 # Irix 4.0.5F has the header but not the library.
12494 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12495 ac_have_func=yes
12496
12497 $as_echo "#define SVR4 1" >>confdefs.h
12498
12499 fi
12500
12501 if test $ac_have_func = no; then
12502 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12503 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
12504 ac_have_func=yes
12505
12506 $as_echo "#define UMAX 1" >>confdefs.h
12507
12508
12509 $as_echo "#define UMAX4_3 1" >>confdefs.h
12510
12511 fi
12512
12513
12514 fi
12515
12516 if test $ac_have_func = no; then
12517 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12518 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
12519 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
12520
12521 fi
12522
12523
12524 fi
12525
12526 if test $ac_have_func = no; then
12527 for ac_header in mach/mach.h
12528 do :
12529 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12530 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
12531 cat >>confdefs.h <<_ACEOF
12532 #define HAVE_MACH_MACH_H 1
12533 _ACEOF
12534
12535 fi
12536
12537 done
12538
12539 fi
12540
12541 for ac_header in nlist.h
12542 do :
12543 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12544 if test "x$ac_cv_header_nlist_h" = x""yes; then :
12545 cat >>confdefs.h <<_ACEOF
12546 #define HAVE_NLIST_H 1
12547 _ACEOF
12548 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12549 "
12550 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
12551
12552 cat >>confdefs.h <<_ACEOF
12553 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12554 _ACEOF
12555
12556
12557 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12558
12559 fi
12560
12561
12562 fi
12563
12564 done
12565
12566 fi
12567 done
12568
12569
12570 # Some definitions of getloadavg require that the program be installed setgid.
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12572 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12573 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12574 $as_echo_n "(cached) " >&6
12575 else
12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h. */
12578 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12579 #ifdef LDAV_PRIVILEGED
12580 Yowza Am I SETGID yet
12581 #endif
12582 _ACEOF
12583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12584 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
12585 ac_cv_func_getloadavg_setgid=yes
12586 else
12587 ac_cv_func_getloadavg_setgid=no
12588 fi
12589 rm -f conftest*
12590
12591 fi
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12593 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12594 if test $ac_cv_func_getloadavg_setgid = yes; then
12595 NEED_SETGID=true
12596
12597 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12598
12599 else
12600 NEED_SETGID=false
12601 fi
12602
12603 if test $ac_cv_func_getloadavg_setgid = yes; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12605 $as_echo_n "checking group of /dev/kmem... " >&6; }
12606 if test "${ac_cv_group_kmem+set}" = set; then :
12607 $as_echo_n "(cached) " >&6
12608 else
12609 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12610 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12611 # If we got an error (system does not support symlinks), try without -L.
12612 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12613 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
12614 | sed -ne 's/[ ][ ]*/ /g;
12615 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12616 / /s/.* //;p;'`
12617
12618 fi
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12620 $as_echo "$ac_cv_group_kmem" >&6; }
12621 KMEM_GROUP=$ac_cv_group_kmem
12622 fi
12623 if test "x$ac_save_LIBS" = x; then
12624 GETLOADAVG_LIBS=$LIBS
12625 else
12626 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12627 fi
12628 LIBS=$ac_save_LIBS
12629
12630
12631
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12633 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12634 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12635 $as_echo_n "(cached) " >&6
12636 else
12637 while :; do
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12640 #include <sys/types.h> /* for off_t */
12641 #include <stdio.h>
12642 int
12643 main ()
12644 {
12645 int (*fp) (FILE *, off_t, int) = fseeko;
12646 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12647 ;
12648 return 0;
12649 }
12650 _ACEOF
12651 if ac_fn_c_try_link "$LINENO"; then :
12652 ac_cv_sys_largefile_source=no; break
12653 fi
12654 rm -f core conftest.err conftest.$ac_objext \
12655 conftest$ac_exeext conftest.$ac_ext
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12658 #define _LARGEFILE_SOURCE 1
12659 #include <sys/types.h> /* for off_t */
12660 #include <stdio.h>
12661 int
12662 main ()
12663 {
12664 int (*fp) (FILE *, off_t, int) = fseeko;
12665 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12666 ;
12667 return 0;
12668 }
12669 _ACEOF
12670 if ac_fn_c_try_link "$LINENO"; then :
12671 ac_cv_sys_largefile_source=1; break
12672 fi
12673 rm -f core conftest.err conftest.$ac_objext \
12674 conftest$ac_exeext conftest.$ac_ext
12675 ac_cv_sys_largefile_source=unknown
12676 break
12677 done
12678 fi
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12680 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12681 case $ac_cv_sys_largefile_source in #(
12682 no | unknown) ;;
12683 *)
12684 cat >>confdefs.h <<_ACEOF
12685 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12686 _ACEOF
12687 ;;
12688 esac
12689 rm -rf conftest*
12690
12691 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12692 # in glibc 2.1.3, but that breaks too many other things.
12693 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12694 if test $ac_cv_sys_largefile_source != unknown; then
12695
12696 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12697
12698 fi
12699
12700
12701 # Configure getopt.
12702 # getopt.m4 serial 10
12703
12704 # The getopt module assume you want GNU getopt, with getopt_long etc,
12705 # rather than vanilla POSIX getopt. This means your your code should
12706 # always include <getopt.h> for the getopt prototypes.
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718 # Prerequisites of lib/getopt*.
12719
12720
12721
12722
12723 GETOPT_H=
12724 for ac_header in getopt.h
12725 do :
12726 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12727 if test "x$ac_cv_header_getopt_h" = x""yes; then :
12728 cat >>confdefs.h <<_ACEOF
12729 #define HAVE_GETOPT_H 1
12730 _ACEOF
12731
12732 else
12733 GETOPT_H=getopt.h
12734 fi
12735
12736 done
12737
12738 if test -z "$GETOPT_H"; then
12739 for ac_func in getopt_long_only
12740 do :
12741 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12742 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
12743 cat >>confdefs.h <<_ACEOF
12744 #define HAVE_GETOPT_LONG_ONLY 1
12745 _ACEOF
12746
12747 else
12748 GETOPT_H=getopt.h
12749 fi
12750 done
12751
12752 fi
12753
12754 if test -z "$GETOPT_H"; then
12755 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12756 "
12757 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
12758 GETOPT_H=getopt.h
12759 fi
12760
12761 fi
12762
12763 if test -z "$GETOPT_H"; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12765 $as_echo_n "checking for working GNU getopt function... " >&6; }
12766 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 if test "$cross_compiling" = yes; then :
12770 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12771 "
12772 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12773 gl_cv_func_gnu_getopt=no
12774 else
12775 gl_cv_func_gnu_getopt=yes
12776 fi
12777
12778 else
12779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12780 /* end confdefs.h. */
12781 #include <getopt.h>
12782 int
12783 main ()
12784 {
12785
12786 char *myargv[3];
12787 myargv[0] = "conftest";
12788 myargv[1] = "-+";
12789 myargv[2] = 0;
12790 return getopt (2, myargv, "+a") != '?';
12791
12792 ;
12793 return 0;
12794 }
12795 _ACEOF
12796 if ac_fn_c_try_run "$LINENO"; then :
12797 gl_cv_func_gnu_getopt=yes
12798 else
12799 gl_cv_func_gnu_getopt=no
12800 fi
12801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12802 conftest.$ac_objext conftest.beam conftest.$ac_ext
12803 fi
12804
12805 fi
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12807 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12808 if test "$gl_cv_func_gnu_getopt" = "no"; then
12809 GETOPT_H=getopt.h
12810 fi
12811 fi
12812
12813
12814
12815 if test -n "$GETOPT_H"; then :
12816
12817
12818 GETOPT_H=getopt.h
12819
12820 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12821
12822
12823
12824 :
12825 GETOPTOBJS='getopt.o getopt1.o'
12826
12827 fi
12828
12829
12830
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12832 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12833 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12834 $as_echo_n "(cached) " >&6
12835 else
12836 # Use it with a single arg.
12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h. */
12839 $ac_includes_default
12840 int
12841 main ()
12842 {
12843 getpgrp (0);
12844 ;
12845 return 0;
12846 }
12847 _ACEOF
12848 if ac_fn_c_try_compile "$LINENO"; then :
12849 ac_cv_func_getpgrp_void=no
12850 else
12851 ac_cv_func_getpgrp_void=yes
12852 fi
12853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12854
12855 fi
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12857 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12858 if test $ac_cv_func_getpgrp_void = yes; then
12859
12860 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12861
12862 fi
12863
12864
12865 for ac_func in strftime
12866 do :
12867 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12868 if test "x$ac_cv_func_strftime" = x""yes; then :
12869 cat >>confdefs.h <<_ACEOF
12870 #define HAVE_STRFTIME 1
12871 _ACEOF
12872
12873 else
12874 # strftime is in -lintl on SCO UNIX.
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12876 $as_echo_n "checking for strftime in -lintl... " >&6; }
12877 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 ac_check_lib_save_LIBS=$LIBS
12881 LIBS="-lintl $LIBS"
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12884
12885 /* Override any GCC internal prototype to avoid an error.
12886 Use char because int might match the return type of a GCC
12887 builtin and then its argument prototype would still apply. */
12888 #ifdef __cplusplus
12889 extern "C"
12890 #endif
12891 char strftime ();
12892 int
12893 main ()
12894 {
12895 return strftime ();
12896 ;
12897 return 0;
12898 }
12899 _ACEOF
12900 if ac_fn_c_try_link "$LINENO"; then :
12901 ac_cv_lib_intl_strftime=yes
12902 else
12903 ac_cv_lib_intl_strftime=no
12904 fi
12905 rm -f core conftest.err conftest.$ac_objext \
12906 conftest$ac_exeext conftest.$ac_ext
12907 LIBS=$ac_check_lib_save_LIBS
12908 fi
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12910 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12911 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12912 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12913
12914 LIBS="-lintl $LIBS"
12915 fi
12916
12917 fi
12918 done
12919
12920
12921 # UNIX98 PTYs.
12922 for ac_func in grantpt
12923 do :
12924 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12925 if test "x$ac_cv_func_grantpt" = x""yes; then :
12926 cat >>confdefs.h <<_ACEOF
12927 #define HAVE_GRANTPT 1
12928 _ACEOF
12929
12930 fi
12931 done
12932
12933
12934 # PTY-related GNU extensions.
12935 for ac_func in getpt
12936 do :
12937 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12938 if test "x$ac_cv_func_getpt" = x""yes; then :
12939 cat >>confdefs.h <<_ACEOF
12940 #define HAVE_GETPT 1
12941 _ACEOF
12942
12943 fi
12944 done
12945
12946
12947 # Check this now, so that we will NOT find the above functions in ncurses.
12948 # That is because we have not set up to link ncurses in lib-src.
12949 # It's better to believe a function is not available
12950 # than to expect to find it in ncurses.
12951 # Also we need tputs and friends to be able to build at all.
12952 have_tputs_et_al=true
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12954 $as_echo_n "checking for library containing tputs... " >&6; }
12955 if test "${ac_cv_search_tputs+set}" = set; then :
12956 $as_echo_n "(cached) " >&6
12957 else
12958 ac_func_search_save_LIBS=$LIBS
12959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12960 /* end confdefs.h. */
12961
12962 /* Override any GCC internal prototype to avoid an error.
12963 Use char because int might match the return type of a GCC
12964 builtin and then its argument prototype would still apply. */
12965 #ifdef __cplusplus
12966 extern "C"
12967 #endif
12968 char tputs ();
12969 int
12970 main ()
12971 {
12972 return tputs ();
12973 ;
12974 return 0;
12975 }
12976 _ACEOF
12977 for ac_lib in '' ncurses terminfo termcap; do
12978 if test -z "$ac_lib"; then
12979 ac_res="none required"
12980 else
12981 ac_res=-l$ac_lib
12982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12983 fi
12984 if ac_fn_c_try_link "$LINENO"; then :
12985 ac_cv_search_tputs=$ac_res
12986 fi
12987 rm -f core conftest.err conftest.$ac_objext \
12988 conftest$ac_exeext
12989 if test "${ac_cv_search_tputs+set}" = set; then :
12990 break
12991 fi
12992 done
12993 if test "${ac_cv_search_tputs+set}" = set; then :
12994
12995 else
12996 ac_cv_search_tputs=no
12997 fi
12998 rm conftest.$ac_ext
12999 LIBS=$ac_func_search_save_LIBS
13000 fi
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13002 $as_echo "$ac_cv_search_tputs" >&6; }
13003 ac_res=$ac_cv_search_tputs
13004 if test "$ac_res" != no; then :
13005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13006
13007 else
13008 have_tputs_et_al=false
13009 fi
13010
13011 if test "$have_tputs_et_al" != true; then
13012 as_fn_error "I couldn't find termcap functions (tputs and friends).
13013 Maybe some development libraries/packages are missing? Try installing
13014 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13015 fi
13016 # Must define this when any termcap library is found.
13017
13018 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13019
13020 ## FIXME This was the cpp logic, but I am not sure it is right.
13021 ## The above test has not necessarily found libncurses.
13022 HAVE_LIBNCURSES=yes
13023
13024 ## Use terminfo instead of termcap?
13025 ## Note only system files NOT using terminfo are:
13026 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13027 ## darwin|gnu without ncurses.
13028 TERMINFO=no
13029 LIBS_TERMCAP=
13030 case "$opsys" in
13031 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13032 ## hpux10-20: Use the system provided termcap(3) library.
13033 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13034 ## is necessary. Otherwise Emacs dumps core when run -nw.
13035 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
13036
13037 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13038 ## The ncurses library has been moved out of the System framework in
13039 ## Mac OS X 10.2. So if configure detects it, set the command-line
13040 ## option to use it.
13041 darwin|gnu*)
13042 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13043 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13044 TERMINFO=yes
13045 LIBS_TERMCAP="-lncurses"
13046 fi
13047 ;;
13048
13049 freebsd)
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13051 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13052 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13053 $as_echo_n "(cached) " >&6
13054 else
13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h. */
13057 #include <osreldate.h>
13058 int
13059 main ()
13060 {
13061 #if __FreeBSD_version < 400000
13062 fail;
13063 #endif
13064
13065 ;
13066 return 0;
13067 }
13068 _ACEOF
13069 if ac_fn_c_try_link "$LINENO"; then :
13070 emacs_cv_freebsd_terminfo=yes
13071 else
13072 emacs_cv_freebsd_terminfo=no
13073 fi
13074 rm -f core conftest.err conftest.$ac_objext \
13075 conftest$ac_exeext conftest.$ac_ext
13076 fi
13077
13078
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13080 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13081
13082 if test $emacs_cv_freebsd_terminfo = yes; then
13083 TERMINFO=yes
13084 LIBS_TERMCAP="-lncurses"
13085 else
13086 LIBS_TERMCAP="-ltermcap"
13087 fi
13088 ;;
13089
13090 netbsd)
13091 if test $ac_cv_search_tputs = -lterminfo; then
13092 TERMINFO=yes
13093 LIBS_TERMCAP="-lterminfo"
13094 else
13095 LIBS_TERMCAP="-ltermcap"
13096 fi
13097 ;;
13098
13099 esac
13100
13101 case "$opsys" in
13102 ## hpux: Make sure we get select from libc rather than from libcurses
13103 ## because libcurses on HPUX 10.10 has a broken version of select.
13104 ## We used to use -lc -lcurses, but this may be cleaner.
13105 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13106
13107 openbsd) LIBS_TERMCAP="-lncurses" ;;
13108
13109 ## Must use system termcap, if we use any termcap. It does special things.
13110 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
13111 esac
13112
13113 TERMCAP_OBJ=tparam.o
13114 if test $TERMINFO = yes; then
13115
13116 $as_echo "#define TERMINFO 1" >>confdefs.h
13117
13118
13119 ## Default used to be -ltermcap. Add a case above if need something else.
13120 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
13121
13122 TERMCAP_OBJ=terminfo.o
13123 fi
13124
13125
13126
13127
13128 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13129 resolv=no
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13132 #include <netinet/in.h>
13133 #include <arpa/nameser.h>
13134 #include <resolv.h>
13135 int
13136 main ()
13137 {
13138 return res_init();
13139 ;
13140 return 0;
13141 }
13142 _ACEOF
13143 if ac_fn_c_try_link "$LINENO"; then :
13144 have_res_init=yes
13145 else
13146 have_res_init=no
13147 fi
13148 rm -f core conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext conftest.$ac_ext
13150 if test "$have_res_init" = no; then
13151 OLIBS="$LIBS"
13152 LIBS="$LIBS -lresolv"
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13154 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13157 #include <netinet/in.h>
13158 #include <arpa/nameser.h>
13159 #include <resolv.h>
13160 int
13161 main ()
13162 {
13163 return res_init();
13164 ;
13165 return 0;
13166 }
13167 _ACEOF
13168 if ac_fn_c_try_link "$LINENO"; then :
13169 have_res_init=yes
13170 else
13171 have_res_init=no
13172 fi
13173 rm -f core conftest.err conftest.$ac_objext \
13174 conftest$ac_exeext conftest.$ac_ext
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13176 $as_echo "$have_res_init" >&6; }
13177 if test "$have_res_init" = yes ; then
13178 resolv=yes
13179 fi
13180 LIBS="$OLIBS"
13181 fi
13182
13183 if test "$have_res_init" = yes; then
13184
13185 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13186
13187 fi
13188
13189 # Do we need the Hesiod library to provide the support routines?
13190 LIBHESIOD=
13191 if test "$with_hesiod" != no ; then
13192 # Don't set $LIBS here -- see comments above. FIXME which comments?
13193 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13194 if test "x$ac_cv_func_res_send" = x""yes; then :
13195
13196 else
13197 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13198 if test "x$ac_cv_func___res_send" = x""yes; then :
13199
13200 else
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13202 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13203 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13204 $as_echo_n "(cached) " >&6
13205 else
13206 ac_check_lib_save_LIBS=$LIBS
13207 LIBS="-lresolv $LIBS"
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13210
13211 /* Override any GCC internal prototype to avoid an error.
13212 Use char because int might match the return type of a GCC
13213 builtin and then its argument prototype would still apply. */
13214 #ifdef __cplusplus
13215 extern "C"
13216 #endif
13217 char res_send ();
13218 int
13219 main ()
13220 {
13221 return res_send ();
13222 ;
13223 return 0;
13224 }
13225 _ACEOF
13226 if ac_fn_c_try_link "$LINENO"; then :
13227 ac_cv_lib_resolv_res_send=yes
13228 else
13229 ac_cv_lib_resolv_res_send=no
13230 fi
13231 rm -f core conftest.err conftest.$ac_objext \
13232 conftest$ac_exeext conftest.$ac_ext
13233 LIBS=$ac_check_lib_save_LIBS
13234 fi
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13236 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13237 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13238 resolv=yes
13239 else
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13241 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13242 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13243 $as_echo_n "(cached) " >&6
13244 else
13245 ac_check_lib_save_LIBS=$LIBS
13246 LIBS="-lresolv $LIBS"
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13249
13250 /* Override any GCC internal prototype to avoid an error.
13251 Use char because int might match the return type of a GCC
13252 builtin and then its argument prototype would still apply. */
13253 #ifdef __cplusplus
13254 extern "C"
13255 #endif
13256 char __res_send ();
13257 int
13258 main ()
13259 {
13260 return __res_send ();
13261 ;
13262 return 0;
13263 }
13264 _ACEOF
13265 if ac_fn_c_try_link "$LINENO"; then :
13266 ac_cv_lib_resolv___res_send=yes
13267 else
13268 ac_cv_lib_resolv___res_send=no
13269 fi
13270 rm -f core conftest.err conftest.$ac_objext \
13271 conftest$ac_exeext conftest.$ac_ext
13272 LIBS=$ac_check_lib_save_LIBS
13273 fi
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13275 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13276 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13277 resolv=yes
13278 fi
13279
13280 fi
13281
13282 fi
13283
13284 fi
13285
13286 if test "$resolv" = yes ; then
13287 RESOLVLIB=-lresolv
13288 else
13289 RESOLVLIB=
13290 fi
13291 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13292 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13293
13294 else
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13296 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13297 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13298 $as_echo_n "(cached) " >&6
13299 else
13300 ac_check_lib_save_LIBS=$LIBS
13301 LIBS="-lhesiod $RESOLVLIB $LIBS"
13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13304
13305 /* Override any GCC internal prototype to avoid an error.
13306 Use char because int might match the return type of a GCC
13307 builtin and then its argument prototype would still apply. */
13308 #ifdef __cplusplus
13309 extern "C"
13310 #endif
13311 char hes_getmailhost ();
13312 int
13313 main ()
13314 {
13315 return hes_getmailhost ();
13316 ;
13317 return 0;
13318 }
13319 _ACEOF
13320 if ac_fn_c_try_link "$LINENO"; then :
13321 ac_cv_lib_hesiod_hes_getmailhost=yes
13322 else
13323 ac_cv_lib_hesiod_hes_getmailhost=no
13324 fi
13325 rm -f core conftest.err conftest.$ac_objext \
13326 conftest$ac_exeext conftest.$ac_ext
13327 LIBS=$ac_check_lib_save_LIBS
13328 fi
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13330 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13331 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13332 hesiod=yes
13333 else
13334 :
13335 fi
13336
13337 fi
13338
13339
13340 if test x"$hesiod" = xyes; then
13341
13342 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13343
13344 LIBHESIOD=-lhesiod
13345 fi
13346 fi
13347
13348
13349 # Do we need libresolv (due to res_init or Hesiod)?
13350 if test "$resolv" = yes ; then
13351
13352 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13353
13354 LIBRESOLV=-lresolv
13355 else
13356 LIBRESOLV=
13357 fi
13358
13359
13360 # These tell us which Kerberos-related libraries to use.
13361 COM_ERRLIB=
13362 CRYPTOLIB=
13363 KRB5LIB=
13364 DESLIB=
13365 KRB4LIB=
13366
13367 if test "${with_kerberos}" != no; then
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13369 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13370 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13371 $as_echo_n "(cached) " >&6
13372 else
13373 ac_check_lib_save_LIBS=$LIBS
13374 LIBS="-lcom_err $LIBS"
13375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13376 /* end confdefs.h. */
13377
13378 /* Override any GCC internal prototype to avoid an error.
13379 Use char because int might match the return type of a GCC
13380 builtin and then its argument prototype would still apply. */
13381 #ifdef __cplusplus
13382 extern "C"
13383 #endif
13384 char com_err ();
13385 int
13386 main ()
13387 {
13388 return com_err ();
13389 ;
13390 return 0;
13391 }
13392 _ACEOF
13393 if ac_fn_c_try_link "$LINENO"; then :
13394 ac_cv_lib_com_err_com_err=yes
13395 else
13396 ac_cv_lib_com_err_com_err=no
13397 fi
13398 rm -f core conftest.err conftest.$ac_objext \
13399 conftest$ac_exeext conftest.$ac_ext
13400 LIBS=$ac_check_lib_save_LIBS
13401 fi
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13403 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13404 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13405 have_com_err=yes
13406 else
13407 have_com_err=no
13408 fi
13409
13410 if test $have_com_err = yes; then
13411 COM_ERRLIB=-lcom_err
13412 LIBS="$COM_ERRLIB $LIBS"
13413
13414 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13415
13416 fi
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13418 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13419 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13420 $as_echo_n "(cached) " >&6
13421 else
13422 ac_check_lib_save_LIBS=$LIBS
13423 LIBS="-lcrypto $LIBS"
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13426
13427 /* Override any GCC internal prototype to avoid an error.
13428 Use char because int might match the return type of a GCC
13429 builtin and then its argument prototype would still apply. */
13430 #ifdef __cplusplus
13431 extern "C"
13432 #endif
13433 char mit_des_cbc_encrypt ();
13434 int
13435 main ()
13436 {
13437 return mit_des_cbc_encrypt ();
13438 ;
13439 return 0;
13440 }
13441 _ACEOF
13442 if ac_fn_c_try_link "$LINENO"; then :
13443 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13444 else
13445 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13446 fi
13447 rm -f core conftest.err conftest.$ac_objext \
13448 conftest$ac_exeext conftest.$ac_ext
13449 LIBS=$ac_check_lib_save_LIBS
13450 fi
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13452 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13453 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13454 have_crypto=yes
13455 else
13456 have_crypto=no
13457 fi
13458
13459 if test $have_crypto = yes; then
13460 CRYPTOLIB=-lcrypto
13461 LIBS="$CRYPTOLIB $LIBS"
13462
13463 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13464
13465 fi
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13467 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13468 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13469 $as_echo_n "(cached) " >&6
13470 else
13471 ac_check_lib_save_LIBS=$LIBS
13472 LIBS="-lk5crypto $LIBS"
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13475
13476 /* Override any GCC internal prototype to avoid an error.
13477 Use char because int might match the return type of a GCC
13478 builtin and then its argument prototype would still apply. */
13479 #ifdef __cplusplus
13480 extern "C"
13481 #endif
13482 char mit_des_cbc_encrypt ();
13483 int
13484 main ()
13485 {
13486 return mit_des_cbc_encrypt ();
13487 ;
13488 return 0;
13489 }
13490 _ACEOF
13491 if ac_fn_c_try_link "$LINENO"; then :
13492 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13493 else
13494 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13495 fi
13496 rm -f core conftest.err conftest.$ac_objext \
13497 conftest$ac_exeext conftest.$ac_ext
13498 LIBS=$ac_check_lib_save_LIBS
13499 fi
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13501 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13502 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13503 have_k5crypto=yes
13504 else
13505 have_k5crypto=no
13506 fi
13507
13508 if test $have_k5crypto = yes; then
13509 CRYPTOLIB=-lk5crypto
13510 LIBS="$CRYPTOLIB $LIBS"
13511
13512 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13513
13514 fi
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13516 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13517 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13518 $as_echo_n "(cached) " >&6
13519 else
13520 ac_check_lib_save_LIBS=$LIBS
13521 LIBS="-lkrb5 $LIBS"
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13524
13525 /* Override any GCC internal prototype to avoid an error.
13526 Use char because int might match the return type of a GCC
13527 builtin and then its argument prototype would still apply. */
13528 #ifdef __cplusplus
13529 extern "C"
13530 #endif
13531 char krb5_init_context ();
13532 int
13533 main ()
13534 {
13535 return krb5_init_context ();
13536 ;
13537 return 0;
13538 }
13539 _ACEOF
13540 if ac_fn_c_try_link "$LINENO"; then :
13541 ac_cv_lib_krb5_krb5_init_context=yes
13542 else
13543 ac_cv_lib_krb5_krb5_init_context=no
13544 fi
13545 rm -f core conftest.err conftest.$ac_objext \
13546 conftest$ac_exeext conftest.$ac_ext
13547 LIBS=$ac_check_lib_save_LIBS
13548 fi
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13550 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13551 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13552 have_krb5=yes
13553 else
13554 have_krb5=no
13555 fi
13556
13557 if test $have_krb5=yes; then
13558 KRB5LIB=-lkrb5
13559 LIBS="$KRB5LIB $LIBS"
13560
13561 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13562
13563 fi
13564 if test "${with_kerberos5}" = no; then
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13566 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13567 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13568 $as_echo_n "(cached) " >&6
13569 else
13570 ac_check_lib_save_LIBS=$LIBS
13571 LIBS="-ldes425 $LIBS"
13572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h. */
13574
13575 /* Override any GCC internal prototype to avoid an error.
13576 Use char because int might match the return type of a GCC
13577 builtin and then its argument prototype would still apply. */
13578 #ifdef __cplusplus
13579 extern "C"
13580 #endif
13581 char des_cbc_encrypt ();
13582 int
13583 main ()
13584 {
13585 return des_cbc_encrypt ();
13586 ;
13587 return 0;
13588 }
13589 _ACEOF
13590 if ac_fn_c_try_link "$LINENO"; then :
13591 ac_cv_lib_des425_des_cbc_encrypt=yes
13592 else
13593 ac_cv_lib_des425_des_cbc_encrypt=no
13594 fi
13595 rm -f core conftest.err conftest.$ac_objext \
13596 conftest$ac_exeext conftest.$ac_ext
13597 LIBS=$ac_check_lib_save_LIBS
13598 fi
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13600 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13601 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13602 have_des425=yes
13603 else
13604 have_des425=no
13605 fi
13606
13607 if test $have_des425 = yes; then
13608 DESLIB=-ldes425
13609 LIBS="$DESLIB $LIBS"
13610
13611 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13612
13613 else
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13615 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13616 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13617 $as_echo_n "(cached) " >&6
13618 else
13619 ac_check_lib_save_LIBS=$LIBS
13620 LIBS="-ldes $LIBS"
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13623
13624 /* Override any GCC internal prototype to avoid an error.
13625 Use char because int might match the return type of a GCC
13626 builtin and then its argument prototype would still apply. */
13627 #ifdef __cplusplus
13628 extern "C"
13629 #endif
13630 char des_cbc_encrypt ();
13631 int
13632 main ()
13633 {
13634 return des_cbc_encrypt ();
13635 ;
13636 return 0;
13637 }
13638 _ACEOF
13639 if ac_fn_c_try_link "$LINENO"; then :
13640 ac_cv_lib_des_des_cbc_encrypt=yes
13641 else
13642 ac_cv_lib_des_des_cbc_encrypt=no
13643 fi
13644 rm -f core conftest.err conftest.$ac_objext \
13645 conftest$ac_exeext conftest.$ac_ext
13646 LIBS=$ac_check_lib_save_LIBS
13647 fi
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13649 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13650 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13651 have_des=yes
13652 else
13653 have_des=no
13654 fi
13655
13656 if test $have_des = yes; then
13657 DESLIB=-ldes
13658 LIBS="$DESLIB $LIBS"
13659
13660 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13661
13662 fi
13663 fi
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13665 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13666 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13667 $as_echo_n "(cached) " >&6
13668 else
13669 ac_check_lib_save_LIBS=$LIBS
13670 LIBS="-lkrb4 $LIBS"
13671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672 /* end confdefs.h. */
13673
13674 /* Override any GCC internal prototype to avoid an error.
13675 Use char because int might match the return type of a GCC
13676 builtin and then its argument prototype would still apply. */
13677 #ifdef __cplusplus
13678 extern "C"
13679 #endif
13680 char krb_get_cred ();
13681 int
13682 main ()
13683 {
13684 return krb_get_cred ();
13685 ;
13686 return 0;
13687 }
13688 _ACEOF
13689 if ac_fn_c_try_link "$LINENO"; then :
13690 ac_cv_lib_krb4_krb_get_cred=yes
13691 else
13692 ac_cv_lib_krb4_krb_get_cred=no
13693 fi
13694 rm -f core conftest.err conftest.$ac_objext \
13695 conftest$ac_exeext conftest.$ac_ext
13696 LIBS=$ac_check_lib_save_LIBS
13697 fi
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13699 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13700 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13701 have_krb4=yes
13702 else
13703 have_krb4=no
13704 fi
13705
13706 if test $have_krb4 = yes; then
13707 KRB4LIB=-lkrb4
13708 LIBS="$KRB4LIB $LIBS"
13709
13710 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13711
13712 else
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13714 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13715 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13716 $as_echo_n "(cached) " >&6
13717 else
13718 ac_check_lib_save_LIBS=$LIBS
13719 LIBS="-lkrb $LIBS"
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13722
13723 /* Override any GCC internal prototype to avoid an error.
13724 Use char because int might match the return type of a GCC
13725 builtin and then its argument prototype would still apply. */
13726 #ifdef __cplusplus
13727 extern "C"
13728 #endif
13729 char krb_get_cred ();
13730 int
13731 main ()
13732 {
13733 return krb_get_cred ();
13734 ;
13735 return 0;
13736 }
13737 _ACEOF
13738 if ac_fn_c_try_link "$LINENO"; then :
13739 ac_cv_lib_krb_krb_get_cred=yes
13740 else
13741 ac_cv_lib_krb_krb_get_cred=no
13742 fi
13743 rm -f core conftest.err conftest.$ac_objext \
13744 conftest$ac_exeext conftest.$ac_ext
13745 LIBS=$ac_check_lib_save_LIBS
13746 fi
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13748 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13749 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13750 have_krb=yes
13751 else
13752 have_krb=no
13753 fi
13754
13755 if test $have_krb = yes; then
13756 KRB4LIB=-lkrb
13757 LIBS="$KRB4LIB $LIBS"
13758
13759 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13760
13761 fi
13762 fi
13763 fi
13764
13765 if test "${with_kerberos5}" != no; then
13766 for ac_header in krb5.h
13767 do :
13768 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13769 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13770 cat >>confdefs.h <<_ACEOF
13771 #define HAVE_KRB5_H 1
13772 _ACEOF
13773 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13774 "
13775 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13776
13777 cat >>confdefs.h <<_ACEOF
13778 #define HAVE_KRB5_ERROR_TEXT 1
13779 _ACEOF
13780
13781
13782 fi
13783 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13784 "
13785 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13786
13787 cat >>confdefs.h <<_ACEOF
13788 #define HAVE_KRB5_ERROR_E_TEXT 1
13789 _ACEOF
13790
13791
13792 fi
13793
13794 fi
13795
13796 done
13797
13798 else
13799 for ac_header in des.h
13800 do :
13801 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13802 if test "x$ac_cv_header_des_h" = x""yes; then :
13803 cat >>confdefs.h <<_ACEOF
13804 #define HAVE_DES_H 1
13805 _ACEOF
13806
13807 else
13808 for ac_header in kerberosIV/des.h
13809 do :
13810 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13811 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
13812 cat >>confdefs.h <<_ACEOF
13813 #define HAVE_KERBEROSIV_DES_H 1
13814 _ACEOF
13815
13816 else
13817 for ac_header in kerberos/des.h
13818 do :
13819 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13820 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
13821 cat >>confdefs.h <<_ACEOF
13822 #define HAVE_KERBEROS_DES_H 1
13823 _ACEOF
13824
13825 fi
13826
13827 done
13828
13829 fi
13830
13831 done
13832
13833 fi
13834
13835 done
13836
13837 for ac_header in krb.h
13838 do :
13839 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13840 if test "x$ac_cv_header_krb_h" = x""yes; then :
13841 cat >>confdefs.h <<_ACEOF
13842 #define HAVE_KRB_H 1
13843 _ACEOF
13844
13845 else
13846 for ac_header in kerberosIV/krb.h
13847 do :
13848 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13849 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13850 cat >>confdefs.h <<_ACEOF
13851 #define HAVE_KERBEROSIV_KRB_H 1
13852 _ACEOF
13853
13854 else
13855 for ac_header in kerberos/krb.h
13856 do :
13857 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13858 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13859 cat >>confdefs.h <<_ACEOF
13860 #define HAVE_KERBEROS_KRB_H 1
13861 _ACEOF
13862
13863 fi
13864
13865 done
13866
13867 fi
13868
13869 done
13870
13871 fi
13872
13873 done
13874
13875 fi
13876 for ac_header in com_err.h
13877 do :
13878 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13879 if test "x$ac_cv_header_com_err_h" = x""yes; then :
13880 cat >>confdefs.h <<_ACEOF
13881 #define HAVE_COM_ERR_H 1
13882 _ACEOF
13883
13884 fi
13885
13886 done
13887
13888 fi
13889
13890
13891
13892
13893
13894
13895
13896 # Solaris requires -lintl if you want strerror (which calls dgettext)
13897 # to return localized messages.
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13899 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13900 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 ac_check_lib_save_LIBS=$LIBS
13904 LIBS="-lintl $LIBS"
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13907
13908 /* Override any GCC internal prototype to avoid an error.
13909 Use char because int might match the return type of a GCC
13910 builtin and then its argument prototype would still apply. */
13911 #ifdef __cplusplus
13912 extern "C"
13913 #endif
13914 char dgettext ();
13915 int
13916 main ()
13917 {
13918 return dgettext ();
13919 ;
13920 return 0;
13921 }
13922 _ACEOF
13923 if ac_fn_c_try_link "$LINENO"; then :
13924 ac_cv_lib_intl_dgettext=yes
13925 else
13926 ac_cv_lib_intl_dgettext=no
13927 fi
13928 rm -f core conftest.err conftest.$ac_objext \
13929 conftest$ac_exeext conftest.$ac_ext
13930 LIBS=$ac_check_lib_save_LIBS
13931 fi
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13933 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13934 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13935 cat >>confdefs.h <<_ACEOF
13936 #define HAVE_LIBINTL 1
13937 _ACEOF
13938
13939 LIBS="-lintl $LIBS"
13940
13941 fi
13942
13943
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13945 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13946 if test "${emacs_cv_localtime_cache+set}" = set; then :
13947 $as_echo_n "(cached) " >&6
13948 else
13949 if test x$ac_cv_func_tzset = xyes; then
13950 if test "$cross_compiling" = yes; then :
13951 # If we have tzset, assume the worst when cross-compiling.
13952 emacs_cv_localtime_cache=yes
13953 else
13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955 /* end confdefs.h. */
13956 #include <time.h>
13957 extern char **environ;
13958 unset_TZ ()
13959 {
13960 char **from, **to;
13961 for (to = from = environ; (*to = *from); from++)
13962 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13963 to++;
13964 }
13965 char TZ_GMT0[] = "TZ=GMT0";
13966 char TZ_PST8[] = "TZ=PST8";
13967 main()
13968 {
13969 time_t now = time ((time_t *) 0);
13970 int hour_GMT0, hour_unset;
13971 if (putenv (TZ_GMT0) != 0)
13972 exit (1);
13973 hour_GMT0 = localtime (&now)->tm_hour;
13974 unset_TZ ();
13975 hour_unset = localtime (&now)->tm_hour;
13976 if (putenv (TZ_PST8) != 0)
13977 exit (1);
13978 if (localtime (&now)->tm_hour == hour_GMT0)
13979 exit (1);
13980 unset_TZ ();
13981 if (localtime (&now)->tm_hour != hour_unset)
13982 exit (1);
13983 exit (0);
13984 }
13985 _ACEOF
13986 if ac_fn_c_try_run "$LINENO"; then :
13987 emacs_cv_localtime_cache=no
13988 else
13989 emacs_cv_localtime_cache=yes
13990 fi
13991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13992 conftest.$ac_objext conftest.beam conftest.$ac_ext
13993 fi
13994
13995 else
13996 # If we lack tzset, report that localtime does not cache TZ,
13997 # since we can't invalidate the cache if we don't have tzset.
13998 emacs_cv_localtime_cache=no
13999 fi
14000 fi
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14002 $as_echo "$emacs_cv_localtime_cache" >&6; }
14003 if test $emacs_cv_localtime_cache = yes; then
14004
14005 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14006
14007 fi
14008
14009 if test "x$HAVE_TIMEVAL" = xyes; then
14010 for ac_func in gettimeofday
14011 do :
14012 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14013 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14014 cat >>confdefs.h <<_ACEOF
14015 #define HAVE_GETTIMEOFDAY 1
14016 _ACEOF
14017
14018 fi
14019 done
14020
14021 if test $ac_cv_func_gettimeofday = yes; then
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14023 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14024 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14025 $as_echo_n "(cached) " >&6
14026 else
14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h. */
14029
14030 #ifdef TIME_WITH_SYS_TIME
14031 #include <sys/time.h>
14032 #include <time.h>
14033 #else
14034 #ifdef HAVE_SYS_TIME_H
14035 #include <sys/time.h>
14036 #else
14037 #include <time.h>
14038 #endif
14039 #endif
14040 int
14041 main ()
14042 {
14043 struct timeval time;
14044 gettimeofday (&time, 0);
14045 ;
14046 return 0;
14047 }
14048 _ACEOF
14049 if ac_fn_c_try_compile "$LINENO"; then :
14050 emacs_cv_gettimeofday_two_arguments=yes
14051 else
14052 emacs_cv_gettimeofday_two_arguments=no
14053 fi
14054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14055 fi
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14057 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14058 if test $emacs_cv_gettimeofday_two_arguments = no; then
14059
14060 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14061
14062 fi
14063 fi
14064 fi
14065
14066 ok_so_far=yes
14067 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14068 if test "x$ac_cv_func_socket" = x""yes; then :
14069
14070 else
14071 ok_so_far=no
14072 fi
14073
14074 if test $ok_so_far = yes; then
14075 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14076 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14077
14078 else
14079 ok_so_far=no
14080 fi
14081
14082
14083 fi
14084 if test $ok_so_far = yes; then
14085 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14086 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14087
14088 else
14089 ok_so_far=no
14090 fi
14091
14092
14093 fi
14094 if test $ok_so_far = yes; then
14095
14096 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14097
14098 fi
14099
14100 for ac_header in sys/ioctl.h
14101 do :
14102 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
14103 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
14104 cat >>confdefs.h <<_ACEOF
14105 #define HAVE_SYS_IOCTL_H 1
14106 _ACEOF
14107
14108 fi
14109
14110 done
14111
14112
14113 if test -f /usr/lpp/X11/bin/smt.exp; then
14114
14115 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14116
14117 fi
14118
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14120 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14121 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14123 $as_echo "yes" >&6; }
14124
14125 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14126
14127 else
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14129 $as_echo "no" >&6; }
14130 fi
14131
14132 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14133 if test "x$ac_cv_type_pid_t" = x""yes; then :
14134
14135 else
14136
14137 cat >>confdefs.h <<_ACEOF
14138 #define pid_t int
14139 _ACEOF
14140
14141 fi
14142
14143 for ac_header in vfork.h
14144 do :
14145 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14146 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14147 cat >>confdefs.h <<_ACEOF
14148 #define HAVE_VFORK_H 1
14149 _ACEOF
14150
14151 fi
14152
14153 done
14154
14155 for ac_func in fork vfork
14156 do :
14157 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14158 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14159 eval as_val=\$$as_ac_var
14160 if test "x$as_val" = x""yes; then :
14161 cat >>confdefs.h <<_ACEOF
14162 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14163 _ACEOF
14164
14165 fi
14166 done
14167
14168 if test "x$ac_cv_func_fork" = xyes; then
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14170 $as_echo_n "checking for working fork... " >&6; }
14171 if test "${ac_cv_func_fork_works+set}" = set; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14174 if test "$cross_compiling" = yes; then :
14175 ac_cv_func_fork_works=cross
14176 else
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14179 $ac_includes_default
14180 int
14181 main ()
14182 {
14183
14184 /* By Ruediger Kuhlmann. */
14185 return fork () < 0;
14186
14187 ;
14188 return 0;
14189 }
14190 _ACEOF
14191 if ac_fn_c_try_run "$LINENO"; then :
14192 ac_cv_func_fork_works=yes
14193 else
14194 ac_cv_func_fork_works=no
14195 fi
14196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14197 conftest.$ac_objext conftest.beam conftest.$ac_ext
14198 fi
14199
14200 fi
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14202 $as_echo "$ac_cv_func_fork_works" >&6; }
14203
14204 else
14205 ac_cv_func_fork_works=$ac_cv_func_fork
14206 fi
14207 if test "x$ac_cv_func_fork_works" = xcross; then
14208 case $host in
14209 *-*-amigaos* | *-*-msdosdjgpp*)
14210 # Override, as these systems have only a dummy fork() stub
14211 ac_cv_func_fork_works=no
14212 ;;
14213 *)
14214 ac_cv_func_fork_works=yes
14215 ;;
14216 esac
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14218 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14219 fi
14220 ac_cv_func_vfork_works=$ac_cv_func_vfork
14221 if test "x$ac_cv_func_vfork" = xyes; then
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14223 $as_echo_n "checking for working vfork... " >&6; }
14224 if test "${ac_cv_func_vfork_works+set}" = set; then :
14225 $as_echo_n "(cached) " >&6
14226 else
14227 if test "$cross_compiling" = yes; then :
14228 ac_cv_func_vfork_works=cross
14229 else
14230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14231 /* end confdefs.h. */
14232 /* Thanks to Paul Eggert for this test. */
14233 $ac_includes_default
14234 #include <sys/wait.h>
14235 #ifdef HAVE_VFORK_H
14236 # include <vfork.h>
14237 #endif
14238 /* On some sparc systems, changes by the child to local and incoming
14239 argument registers are propagated back to the parent. The compiler
14240 is told about this with #include <vfork.h>, but some compilers
14241 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14242 static variable whose address is put into a register that is
14243 clobbered by the vfork. */
14244 static void
14245 #ifdef __cplusplus
14246 sparc_address_test (int arg)
14247 # else
14248 sparc_address_test (arg) int arg;
14249 #endif
14250 {
14251 static pid_t child;
14252 if (!child) {
14253 child = vfork ();
14254 if (child < 0) {
14255 perror ("vfork");
14256 _exit(2);
14257 }
14258 if (!child) {
14259 arg = getpid();
14260 write(-1, "", 0);
14261 _exit (arg);
14262 }
14263 }
14264 }
14265
14266 int
14267 main ()
14268 {
14269 pid_t parent = getpid ();
14270 pid_t child;
14271
14272 sparc_address_test (0);
14273
14274 child = vfork ();
14275
14276 if (child == 0) {
14277 /* Here is another test for sparc vfork register problems. This
14278 test uses lots of local variables, at least as many local
14279 variables as main has allocated so far including compiler
14280 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14281 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14282 reuse the register of parent for one of the local variables,
14283 since it will think that parent can't possibly be used any more
14284 in this routine. Assigning to the local variable will thus
14285 munge parent in the parent process. */
14286 pid_t
14287 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14288 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14289 /* Convince the compiler that p..p7 are live; otherwise, it might
14290 use the same hardware register for all 8 local variables. */
14291 if (p != p1 || p != p2 || p != p3 || p != p4
14292 || p != p5 || p != p6 || p != p7)
14293 _exit(1);
14294
14295 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14296 from child file descriptors. If the child closes a descriptor
14297 before it execs or exits, this munges the parent's descriptor
14298 as well. Test for this by closing stdout in the child. */
14299 _exit(close(fileno(stdout)) != 0);
14300 } else {
14301 int status;
14302 struct stat st;
14303
14304 while (wait(&status) != child)
14305 ;
14306 return (
14307 /* Was there some problem with vforking? */
14308 child < 0
14309
14310 /* Did the child fail? (This shouldn't happen.) */
14311 || status
14312
14313 /* Did the vfork/compiler bug occur? */
14314 || parent != getpid()
14315
14316 /* Did the file descriptor bug occur? */
14317 || fstat(fileno(stdout), &st) != 0
14318 );
14319 }
14320 }
14321 _ACEOF
14322 if ac_fn_c_try_run "$LINENO"; then :
14323 ac_cv_func_vfork_works=yes
14324 else
14325 ac_cv_func_vfork_works=no
14326 fi
14327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14328 conftest.$ac_objext conftest.beam conftest.$ac_ext
14329 fi
14330
14331 fi
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14333 $as_echo "$ac_cv_func_vfork_works" >&6; }
14334
14335 fi;
14336 if test "x$ac_cv_func_fork_works" = xcross; then
14337 ac_cv_func_vfork_works=$ac_cv_func_vfork
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14339 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14340 fi
14341
14342 if test "x$ac_cv_func_vfork_works" = xyes; then
14343
14344 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14345
14346 else
14347
14348 $as_echo "#define vfork fork" >>confdefs.h
14349
14350 fi
14351 if test "x$ac_cv_func_fork_works" = xyes; then
14352
14353 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14354
14355 fi
14356
14357
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14359 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14360 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14361 $as_echo_n "(cached) " >&6
14362 else
14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h. */
14365 #include <langinfo.h>
14366 int
14367 main ()
14368 {
14369 char* cs = nl_langinfo(CODESET);
14370 ;
14371 return 0;
14372 }
14373 _ACEOF
14374 if ac_fn_c_try_link "$LINENO"; then :
14375 emacs_cv_langinfo_codeset=yes
14376 else
14377 emacs_cv_langinfo_codeset=no
14378 fi
14379 rm -f core conftest.err conftest.$ac_objext \
14380 conftest$ac_exeext conftest.$ac_ext
14381
14382 fi
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14384 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14385 if test $emacs_cv_langinfo_codeset = yes; then
14386
14387 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14388
14389 fi
14390
14391 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14392 if test "x$ac_cv_type_size_t" = x""yes; then :
14393
14394 cat >>confdefs.h <<_ACEOF
14395 #define HAVE_SIZE_T 1
14396 _ACEOF
14397
14398
14399 fi
14400
14401
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14403 $as_echo_n "checking for mbstate_t... " >&6; }
14404 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14405 $as_echo_n "(cached) " >&6
14406 else
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14409 $ac_includes_default
14410 # include <wchar.h>
14411 int
14412 main ()
14413 {
14414 mbstate_t x; return sizeof x;
14415 ;
14416 return 0;
14417 }
14418 _ACEOF
14419 if ac_fn_c_try_compile "$LINENO"; then :
14420 ac_cv_type_mbstate_t=yes
14421 else
14422 ac_cv_type_mbstate_t=no
14423 fi
14424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14425 fi
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14427 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14428 if test $ac_cv_type_mbstate_t = yes; then
14429
14430 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14431
14432 else
14433
14434 $as_echo "#define mbstate_t int" >>confdefs.h
14435
14436 fi
14437
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14439 $as_echo_n "checking for C restrict keyword... " >&6; }
14440 if test "${emacs_cv_c_restrict+set}" = set; then :
14441 $as_echo_n "(cached) " >&6
14442 else
14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h. */
14445 void fred (int *restrict x);
14446 int
14447 main ()
14448 {
14449
14450 ;
14451 return 0;
14452 }
14453 _ACEOF
14454 if ac_fn_c_try_compile "$LINENO"; then :
14455 emacs_cv_c_restrict=yes
14456 else
14457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h. */
14459 void fred (int *__restrict x);
14460 int
14461 main ()
14462 {
14463
14464 ;
14465 return 0;
14466 }
14467 _ACEOF
14468 if ac_fn_c_try_compile "$LINENO"; then :
14469 emacs_cv_c_restrict=__restrict
14470 else
14471 emacs_cv_c_restrict=no
14472 fi
14473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14474 fi
14475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14476 fi
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14478 $as_echo "$emacs_cv_c_restrict" >&6; }
14479 case "$emacs_cv_c_restrict" in
14480 yes) emacs_restrict=restrict;;
14481 no) emacs_restrict="";;
14482 *) emacs_restrict="$emacs_cv_c_restrict";;
14483 esac
14484 if test "$emacs_restrict" != __restrict; then
14485
14486 cat >>confdefs.h <<_ACEOF
14487 #define __restrict $emacs_restrict
14488 _ACEOF
14489
14490 fi
14491
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14493 $as_echo_n "checking for C restricted array declarations... " >&6; }
14494 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14495 $as_echo_n "(cached) " >&6
14496 else
14497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498 /* end confdefs.h. */
14499 void fred (int x[__restrict]);
14500 int
14501 main ()
14502 {
14503
14504 ;
14505 return 0;
14506 }
14507 _ACEOF
14508 if ac_fn_c_try_compile "$LINENO"; then :
14509 emacs_cv_c_restrict_arr=yes
14510 else
14511 emacs_cv_c_restrict_arr=no
14512 fi
14513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514 fi
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14516 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14517 if test "$emacs_cv_c_restrict_arr" = yes; then
14518
14519 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14520
14521 fi
14522
14523
14524
14525 # Set up the CFLAGS for real compilation, so we can substitute it.
14526 CFLAGS="$REAL_CFLAGS"
14527 CPPFLAGS="$REAL_CPPFLAGS"
14528
14529 ## Hack to detect a buggy GCC version.
14530 if test "x$GCC" = xyes \
14531 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14532 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14533 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14534 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14535 fi
14536
14537 #### Find out which version of Emacs this is.
14538 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14539 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14540 if test x"${version}" = x; then
14541 as_fn_error "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14542 fi
14543 if test x"${version}" != x"$PACKAGE_VERSION"; then
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14545 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14546 fi
14547
14548 ### Specify what sort of things we'll be editing into Makefile and config.h.
14549 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14550
14551
14552 ## Unused?
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14574 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14575 ## end of LIBX_BASE, but nothing ever set it.
14576
14577
14578
14579
14580 ## Used in lwlib/Makefile.in.
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593 cat >>confdefs.h <<_ACEOF
14594 #define EMACS_CONFIGURATION "${canonical}"
14595 _ACEOF
14596
14597
14598 cat >>confdefs.h <<_ACEOF
14599 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14600 _ACEOF
14601
14602
14603 cat >>confdefs.h <<_ACEOF
14604 #define config_machfile "${machfile}"
14605 _ACEOF
14606
14607
14608 cat >>confdefs.h <<_ACEOF
14609 #define config_opsysfile "${opsysfile}"
14610 _ACEOF
14611
14612
14613 XMENU_OBJ=
14614 XOBJ=
14615 FONT_OBJ=
14616 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14617
14618 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14619
14620 XMENU_OBJ=xmenu.o
14621 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14622 FONT_OBJ=xfont.o
14623 if test "$HAVE_XFT" = "yes"; then
14624 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14625 elif test "$HAVE_FREETYPE" = "yes"; then
14626 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14627 fi
14628
14629 fi
14630
14631
14632
14633
14634 WIDGET_OBJ=
14635 MOTIF_LIBW=
14636 if test "${USE_X_TOOLKIT}" != "none" ; then
14637 WIDGET_OBJ=widget.o
14638
14639 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14640
14641 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14642
14643 $as_echo "#define USE_LUCID 1" >>confdefs.h
14644
14645 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14646
14647 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14648
14649 MOTIF_LIBW=-lXm
14650 case "$opsys" in
14651 gnu-linux)
14652 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14653 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14654 ;;
14655
14656 unixware)
14657 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14658 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14659 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14660 ;;
14661
14662 aix4-2)
14663 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14664 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14665 ;;
14666 esac
14667 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14668 fi
14669 fi
14670
14671
14672 TOOLKIT_LIBW=
14673 case "$USE_X_TOOLKIT" in
14674 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14675 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14676 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14677 esac
14678
14679
14680 if test "$USE_X_TOOLKIT" = "none"; then
14681 LIBXT_OTHER="\$(LIBXSM)"
14682 OLDXMENU_TARGET="really-oldXMenu"
14683 else
14684 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14685 OLDXMENU_TARGET="really-lwlib"
14686 fi
14687
14688
14689 ## The X Menu stuff is present in the X10 distribution, but missing
14690 ## from X11. If we have X10, just use the installed library;
14691 ## otherwise, use our own copy.
14692 if test "${HAVE_X11}" = "yes" ; then
14693
14694 $as_echo "#define HAVE_X11 1" >>confdefs.h
14695
14696
14697 if test "$USE_X_TOOLKIT" = "none"; then
14698 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
14699 else
14700 OLDXMENU="\${lwlibdir}/liblw.a"
14701 fi
14702 LIBXMENU="\$(OLDXMENU)"
14703 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14704 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14705 else
14706 ## For a syntactically valid Makefile; not actually used for anything.
14707 ## See comments in src/Makefile.in.
14708 OLDXMENU=nothing
14709 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14710 if test "${HAVE_X_WINDOWS}" = "yes"; then
14711 LIBXMENU="-lXMenu"
14712 else
14713 LIBXMENU=
14714 fi
14715 LIBX_OTHER=
14716 OLDXMENU_DEPS=
14717 fi
14718
14719 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14720 OLDXMENU_TARGET=
14721 OLDXMENU=nothing
14722 LIBXMENU=
14723 OLDXMENU_DEPS=
14724 fi
14725
14726
14727
14728
14729
14730
14731
14732 if test "${HAVE_MENUS}" = "yes" ; then
14733
14734 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14735
14736 fi
14737
14738 if test "${GNU_MALLOC}" = "yes" ; then
14739
14740 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14741
14742 fi
14743
14744 RALLOC_OBJ=
14745 if test "${REL_ALLOC}" = "yes" ; then
14746
14747 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14748
14749
14750 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14751 fi
14752
14753
14754 if test "$opsys" = "cygwin"; then
14755 CYGWIN_OBJ="sheap.o"
14756 ## Cygwin differs because of its unexec().
14757 PRE_ALLOC_OBJ=
14758 POST_ALLOC_OBJ=lastfile.o
14759 else
14760 CYGWIN_OBJ=
14761 PRE_ALLOC_OBJ=lastfile.o
14762 POST_ALLOC_OBJ=
14763 fi
14764
14765
14766
14767
14768
14769 case "$opsys" in
14770 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14771
14772 darwin)
14773 ## The -headerpad option tells ld (see man page) to leave room at the
14774 ## end of the header for adding load commands. Needed for dumping.
14775 ## 0x690 is the total size of 30 segment load commands (at 56
14776 ## each); under Cocoa 31 commands are required.
14777 if test "$HAVE_NS" = "yes"; then
14778 libs_nsgui="-framework AppKit"
14779 headerpad_extra=6C8
14780 else
14781 libs_nsgui=
14782 headerpad_extra=690
14783 fi
14784 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14785
14786 ## This is here because src/Makefile.in did some extra fiddling around
14787 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14788 ## #ifndef LD_SWITCH_SYSTEM
14789 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14790 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14791 ## not using gcc, darwin system not on an alpha (ie darwin, since
14792 ## darwin + alpha does not occur).
14793 ## Because this was done in src/Makefile.in, the resulting part of
14794 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14795 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14796 ## rather than LD_SWITCH_SYSTEM.
14797 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14798 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14799 ;;
14800
14801 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14802 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14803 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14804 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14805 ## had different values in configure (in ac_link) and src/Makefile.in.
14806 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14807 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14808
14809 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14810 esac
14811
14812 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14813 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14814 fi
14815
14816
14817
14818
14819 LD_FIRSTFLAG=
14820 ORDINARY_LINK=
14821 case "$opsys" in
14822 ## gnu: GNU needs its own crt0.
14823 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14824
14825 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14826 ## library search parth, i.e. it won't search /usr/lib for libc and
14827 ## friends. Using -nostartfiles instead avoids this problem, and
14828 ## will also work on earlier NetBSD releases.
14829 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
14830
14831 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14832 ## MkLinux/LinuxPPC needs this.
14833 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14834 gnu-*)
14835 case "$machine" in
14836 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
14837 esac
14838 ;;
14839 esac
14840
14841
14842 if test "x$ORDINARY_LINK" = "xyes"; then
14843
14844 LD_FIRSTFLAG=""
14845
14846 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14847
14848
14849 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14850 ## freebsd, gnu-* not on macppc|ibms390x.
14851 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14852
14853 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14854 ## places that are difficult to figure out at make time. Fortunately,
14855 ## these same versions allow you to pass arbitrary flags on to the
14856 ## linker, so there is no reason not to use it as a linker.
14857 ##
14858 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14859 ## searching for libraries in its internal directories, so we have to
14860 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14861 LD_FIRSTFLAG="-nostdlib"
14862 fi
14863
14864 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14865 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
14866
14867
14868
14869
14870 ## FIXME? The logic here is not precisely the same as that above.
14871 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14872 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14873 LIB_GCC=
14874 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14875
14876 case "$opsys" in
14877 freebsd|netbsd|openbsd) LIB_GCC= ;;
14878
14879 gnu-*)
14880 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14881 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14882 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14883 if test "$machine" = "arm"; then
14884 LIB_GCC="-lgcc_s"
14885 else
14886 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14887 ## immediately undefine it again and redefine it to empty.
14888 ## Was the C_SWITCH_X_SITE part really necessary?
14889 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14890 LIB_GCC=
14891 fi
14892 ;;
14893
14894 ## Ask GCC where to find libgcc.a.
14895 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14896 esac
14897 fi
14898
14899
14900 TOOLTIP_SUPPORT=
14901 WINDOW_SUPPORT=
14902 ## If we're using X11/GNUstep, define some consequences.
14903 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14904
14905 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14906
14907
14908 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14909
14910 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14911 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
14912
14913 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14914 test "$HAVE_X_WINDOWS" = "yes" && \
14915 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14916
14917 fi
14918
14919
14920
14921
14922
14923
14924
14925 #### Report on what we decided to do.
14926 #### Report GTK as a toolkit, even if it doesn't use Xt.
14927 #### It makes printing result more understandable as using GTK sets
14928 #### toolkit_scroll_bars to yes by default.
14929 if test "${HAVE_GTK}" = "yes"; then
14930 USE_X_TOOLKIT=GTK
14931 fi
14932
14933 echo "
14934 Configured for \`${canonical}'.
14935
14936 Where should the build process find the source code? ${srcdir}
14937 What operating system and machine description files should Emacs use?
14938 \`${opsysfile}' and \`${machfile}'
14939 What compiler should emacs be built with? ${CC} ${CFLAGS}
14940 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14941 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14942 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14943 What window system should Emacs use? ${window_system}
14944 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14945
14946 if test -n "${x_includes}"; then
14947 echo " Where do we find X Windows header files? ${x_includes}"
14948 else
14949 echo " Where do we find X Windows header files? Standard dirs"
14950 fi
14951 if test -n "${x_libraries}"; then
14952 echo " Where do we find X Windows libraries? ${x_libraries}"
14953 else
14954 echo " Where do we find X Windows libraries? Standard dirs"
14955 fi
14956
14957 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14958 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14959 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14960 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14961 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14962 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14963 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14964 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14965
14966 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14967 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14968 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14969 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14970 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
14971 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
14972
14973 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14974 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14975 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14976 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14977
14978 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14979 echo
14980
14981 if test $USE_XASSERTS = yes; then
14982 echo " Compiling with asserts turned on."
14983 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14984 fi
14985
14986 echo
14987
14988 if test "$HAVE_NS" = "yes"; then
14989 echo
14990 echo "You must run \"make install\" in order to test the built application.
14991 The installed application will go to nextstep/Emacs.app and can be
14992 run or moved from there."
14993 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14994 echo "The application will be fully self-contained."
14995 else
14996 echo "The lisp resources for the application will be installed under ${prefix}.
14997 You may need to run \"make install\" with sudo. The application will fail
14998 to run if these resources are not installed."
14999 fi
15000 echo
15001 fi
15002
15003 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
15004 echo "D-Bus integration has been tested for GNU/Linux only."
15005 echo
15006 fi
15007
15008
15009 # Remove any trailing slashes in these variables.
15010 test "${prefix}" != NONE &&
15011 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15012 test "${exec_prefix}" != NONE &&
15013 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15014
15015 ac_config_files="$ac_config_files 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"
15016
15017 ac_config_commands="$ac_config_commands default"
15018
15019 cat >confcache <<\_ACEOF
15020 # This file is a shell script that caches the results of configure
15021 # tests run on this system so they can be shared between configure
15022 # scripts and configure runs, see configure's option --config-cache.
15023 # It is not useful on other systems. If it contains results you don't
15024 # want to keep, you may remove or edit it.
15025 #
15026 # config.status only pays attention to the cache file if you give it
15027 # the --recheck option to rerun configure.
15028 #
15029 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15030 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15031 # following values.
15032
15033 _ACEOF
15034
15035 # The following way of writing the cache mishandles newlines in values,
15036 # but we know of no workaround that is simple, portable, and efficient.
15037 # So, we kill variables containing newlines.
15038 # Ultrix sh set writes to stderr and can't be redirected directly,
15039 # and sets the high bit in the cache file unless we assign to the vars.
15040 (
15041 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15042 eval ac_val=\$$ac_var
15043 case $ac_val in #(
15044 *${as_nl}*)
15045 case $ac_var in #(
15046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15047 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15048 esac
15049 case $ac_var in #(
15050 _ | IFS | as_nl) ;; #(
15051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15052 *) { eval $ac_var=; unset $ac_var;} ;;
15053 esac ;;
15054 esac
15055 done
15056
15057 (set) 2>&1 |
15058 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15059 *${as_nl}ac_space=\ *)
15060 # `set' does not quote correctly, so add quotes: double-quote
15061 # substitution turns \\\\ into \\, and sed turns \\ into \.
15062 sed -n \
15063 "s/'/'\\\\''/g;
15064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15065 ;; #(
15066 *)
15067 # `set' quotes correctly as required by POSIX, so do not add quotes.
15068 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15069 ;;
15070 esac |
15071 sort
15072 ) |
15073 sed '
15074 /^ac_cv_env_/b end
15075 t clear
15076 :clear
15077 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15078 t end
15079 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15080 :end' >>confcache
15081 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15082 if test -w "$cache_file"; then
15083 test "x$cache_file" != "x/dev/null" &&
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15085 $as_echo "$as_me: updating cache $cache_file" >&6;}
15086 cat confcache >$cache_file
15087 else
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15089 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15090 fi
15091 fi
15092 rm -f confcache
15093
15094 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15095 # Let make expand exec_prefix.
15096 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15097
15098 DEFS=-DHAVE_CONFIG_H
15099
15100 ac_libobjs=
15101 ac_ltlibobjs=
15102 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15103 # 1. Remove the extension, and $U if already installed.
15104 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15105 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15106 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15107 # will be set to the directory where LIBOBJS objects are built.
15108 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15109 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15110 done
15111 LIBOBJS=$ac_libobjs
15112
15113 LTLIBOBJS=$ac_ltlibobjs
15114
15115
15116
15117
15118 : ${CONFIG_STATUS=./config.status}
15119 ac_write_fail=0
15120 ac_clean_files_save=$ac_clean_files
15121 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15123 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15124 as_write_fail=0
15125 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15126 #! $SHELL
15127 # Generated by $as_me.
15128 # Run this file to recreate the current configuration.
15129 # Compiler output produced by configure, useful for debugging
15130 # configure, is in config.log if it exists.
15131
15132 debug=false
15133 ac_cs_recheck=false
15134 ac_cs_silent=false
15135
15136 SHELL=\${CONFIG_SHELL-$SHELL}
15137 export SHELL
15138 _ASEOF
15139 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15140 ## -------------------- ##
15141 ## M4sh Initialization. ##
15142 ## -------------------- ##
15143
15144 # Be more Bourne compatible
15145 DUALCASE=1; export DUALCASE # for MKS sh
15146 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15147 emulate sh
15148 NULLCMD=:
15149 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15150 # is contrary to our usage. Disable this feature.
15151 alias -g '${1+"$@"}'='"$@"'
15152 setopt NO_GLOB_SUBST
15153 else
15154 case `(set -o) 2>/dev/null` in #(
15155 *posix*) :
15156 set -o posix ;; #(
15157 *) :
15158 ;;
15159 esac
15160 fi
15161
15162
15163 as_nl='
15164 '
15165 export as_nl
15166 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15167 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15168 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15169 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15170 # Prefer a ksh shell builtin over an external printf program on Solaris,
15171 # but without wasting forks for bash or zsh.
15172 if test -z "$BASH_VERSION$ZSH_VERSION" \
15173 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15174 as_echo='print -r --'
15175 as_echo_n='print -rn --'
15176 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15177 as_echo='printf %s\n'
15178 as_echo_n='printf %s'
15179 else
15180 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15181 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15182 as_echo_n='/usr/ucb/echo -n'
15183 else
15184 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15185 as_echo_n_body='eval
15186 arg=$1;
15187 case $arg in #(
15188 *"$as_nl"*)
15189 expr "X$arg" : "X\\(.*\\)$as_nl";
15190 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15191 esac;
15192 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15193 '
15194 export as_echo_n_body
15195 as_echo_n='sh -c $as_echo_n_body as_echo'
15196 fi
15197 export as_echo_body
15198 as_echo='sh -c $as_echo_body as_echo'
15199 fi
15200
15201 # The user is always right.
15202 if test "${PATH_SEPARATOR+set}" != set; then
15203 PATH_SEPARATOR=:
15204 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15205 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15206 PATH_SEPARATOR=';'
15207 }
15208 fi
15209
15210
15211 # IFS
15212 # We need space, tab and new line, in precisely that order. Quoting is
15213 # there to prevent editors from complaining about space-tab.
15214 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15215 # splitting by setting IFS to empty value.)
15216 IFS=" "" $as_nl"
15217
15218 # Find who we are. Look in the path if we contain no directory separator.
15219 case $0 in #((
15220 *[\\/]* ) as_myself=$0 ;;
15221 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15222 for as_dir in $PATH
15223 do
15224 IFS=$as_save_IFS
15225 test -z "$as_dir" && as_dir=.
15226 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15227 done
15228 IFS=$as_save_IFS
15229
15230 ;;
15231 esac
15232 # We did not find ourselves, most probably we were run as `sh COMMAND'
15233 # in which case we are not to be found in the path.
15234 if test "x$as_myself" = x; then
15235 as_myself=$0
15236 fi
15237 if test ! -f "$as_myself"; then
15238 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15239 exit 1
15240 fi
15241
15242 # Unset variables that we do not need and which cause bugs (e.g. in
15243 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15244 # suppresses any "Segmentation fault" message there. '((' could
15245 # trigger a bug in pdksh 5.2.14.
15246 for as_var in BASH_ENV ENV MAIL MAILPATH
15247 do eval test x\${$as_var+set} = xset \
15248 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15249 done
15250 PS1='$ '
15251 PS2='> '
15252 PS4='+ '
15253
15254 # NLS nuisances.
15255 LC_ALL=C
15256 export LC_ALL
15257 LANGUAGE=C
15258 export LANGUAGE
15259
15260 # CDPATH.
15261 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15262
15263
15264 # as_fn_error ERROR [LINENO LOG_FD]
15265 # ---------------------------------
15266 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15267 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15268 # script with status $?, using 1 if that was 0.
15269 as_fn_error ()
15270 {
15271 as_status=$?; test $as_status -eq 0 && as_status=1
15272 if test "$3"; then
15273 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15274 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15275 fi
15276 $as_echo "$as_me: error: $1" >&2
15277 as_fn_exit $as_status
15278 } # as_fn_error
15279
15280
15281 # as_fn_set_status STATUS
15282 # -----------------------
15283 # Set $? to STATUS, without forking.
15284 as_fn_set_status ()
15285 {
15286 return $1
15287 } # as_fn_set_status
15288
15289 # as_fn_exit STATUS
15290 # -----------------
15291 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15292 as_fn_exit ()
15293 {
15294 set +e
15295 as_fn_set_status $1
15296 exit $1
15297 } # as_fn_exit
15298
15299 # as_fn_unset VAR
15300 # ---------------
15301 # Portably unset VAR.
15302 as_fn_unset ()
15303 {
15304 { eval $1=; unset $1;}
15305 }
15306 as_unset=as_fn_unset
15307 # as_fn_append VAR VALUE
15308 # ----------------------
15309 # Append the text in VALUE to the end of the definition contained in VAR. Take
15310 # advantage of any shell optimizations that allow amortized linear growth over
15311 # repeated appends, instead of the typical quadratic growth present in naive
15312 # implementations.
15313 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15314 eval 'as_fn_append ()
15315 {
15316 eval $1+=\$2
15317 }'
15318 else
15319 as_fn_append ()
15320 {
15321 eval $1=\$$1\$2
15322 }
15323 fi # as_fn_append
15324
15325 # as_fn_arith ARG...
15326 # ------------------
15327 # Perform arithmetic evaluation on the ARGs, and store the result in the
15328 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15329 # must be portable across $(()) and expr.
15330 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15331 eval 'as_fn_arith ()
15332 {
15333 as_val=$(( $* ))
15334 }'
15335 else
15336 as_fn_arith ()
15337 {
15338 as_val=`expr "$@" || test $? -eq 1`
15339 }
15340 fi # as_fn_arith
15341
15342
15343 if expr a : '\(a\)' >/dev/null 2>&1 &&
15344 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15345 as_expr=expr
15346 else
15347 as_expr=false
15348 fi
15349
15350 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15351 as_basename=basename
15352 else
15353 as_basename=false
15354 fi
15355
15356 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15357 as_dirname=dirname
15358 else
15359 as_dirname=false
15360 fi
15361
15362 as_me=`$as_basename -- "$0" ||
15363 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15364 X"$0" : 'X\(//\)$' \| \
15365 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15366 $as_echo X/"$0" |
15367 sed '/^.*\/\([^/][^/]*\)\/*$/{
15368 s//\1/
15369 q
15370 }
15371 /^X\/\(\/\/\)$/{
15372 s//\1/
15373 q
15374 }
15375 /^X\/\(\/\).*/{
15376 s//\1/
15377 q
15378 }
15379 s/.*/./; q'`
15380
15381 # Avoid depending upon Character Ranges.
15382 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15383 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15384 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15385 as_cr_digits='0123456789'
15386 as_cr_alnum=$as_cr_Letters$as_cr_digits
15387
15388 ECHO_C= ECHO_N= ECHO_T=
15389 case `echo -n x` in #(((((
15390 -n*)
15391 case `echo 'xy\c'` in
15392 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15393 xy) ECHO_C='\c';;
15394 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15395 ECHO_T=' ';;
15396 esac;;
15397 *)
15398 ECHO_N='-n';;
15399 esac
15400
15401 rm -f conf$$ conf$$.exe conf$$.file
15402 if test -d conf$$.dir; then
15403 rm -f conf$$.dir/conf$$.file
15404 else
15405 rm -f conf$$.dir
15406 mkdir conf$$.dir 2>/dev/null
15407 fi
15408 if (echo >conf$$.file) 2>/dev/null; then
15409 if ln -s conf$$.file conf$$ 2>/dev/null; then
15410 as_ln_s='ln -s'
15411 # ... but there are two gotchas:
15412 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15413 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15414 # In both cases, we have to default to `cp -p'.
15415 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15416 as_ln_s='cp -p'
15417 elif ln conf$$.file conf$$ 2>/dev/null; then
15418 as_ln_s=ln
15419 else
15420 as_ln_s='cp -p'
15421 fi
15422 else
15423 as_ln_s='cp -p'
15424 fi
15425 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15426 rmdir conf$$.dir 2>/dev/null
15427
15428
15429 # as_fn_mkdir_p
15430 # -------------
15431 # Create "$as_dir" as a directory, including parents if necessary.
15432 as_fn_mkdir_p ()
15433 {
15434
15435 case $as_dir in #(
15436 -*) as_dir=./$as_dir;;
15437 esac
15438 test -d "$as_dir" || eval $as_mkdir_p || {
15439 as_dirs=
15440 while :; do
15441 case $as_dir in #(
15442 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15443 *) as_qdir=$as_dir;;
15444 esac
15445 as_dirs="'$as_qdir' $as_dirs"
15446 as_dir=`$as_dirname -- "$as_dir" ||
15447 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15448 X"$as_dir" : 'X\(//\)[^/]' \| \
15449 X"$as_dir" : 'X\(//\)$' \| \
15450 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15451 $as_echo X"$as_dir" |
15452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15453 s//\1/
15454 q
15455 }
15456 /^X\(\/\/\)[^/].*/{
15457 s//\1/
15458 q
15459 }
15460 /^X\(\/\/\)$/{
15461 s//\1/
15462 q
15463 }
15464 /^X\(\/\).*/{
15465 s//\1/
15466 q
15467 }
15468 s/.*/./; q'`
15469 test -d "$as_dir" && break
15470 done
15471 test -z "$as_dirs" || eval "mkdir $as_dirs"
15472 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15473
15474
15475 } # as_fn_mkdir_p
15476 if mkdir -p . 2>/dev/null; then
15477 as_mkdir_p='mkdir -p "$as_dir"'
15478 else
15479 test -d ./-p && rmdir ./-p
15480 as_mkdir_p=false
15481 fi
15482
15483 if test -x / >/dev/null 2>&1; then
15484 as_test_x='test -x'
15485 else
15486 if ls -dL / >/dev/null 2>&1; then
15487 as_ls_L_option=L
15488 else
15489 as_ls_L_option=
15490 fi
15491 as_test_x='
15492 eval sh -c '\''
15493 if test -d "$1"; then
15494 test -d "$1/.";
15495 else
15496 case $1 in #(
15497 -*)set "./$1";;
15498 esac;
15499 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15500 ???[sx]*):;;*)false;;esac;fi
15501 '\'' sh
15502 '
15503 fi
15504 as_executable_p=$as_test_x
15505
15506 # Sed expression to map a string onto a valid CPP name.
15507 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15508
15509 # Sed expression to map a string onto a valid variable name.
15510 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15511
15512
15513 exec 6>&1
15514 ## ----------------------------------- ##
15515 ## Main body of $CONFIG_STATUS script. ##
15516 ## ----------------------------------- ##
15517 _ASEOF
15518 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15519
15520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15521 # Save the log message, to keep $0 and so on meaningful, and to
15522 # report actual input values of CONFIG_FILES etc. instead of their
15523 # values after options handling.
15524 ac_log="
15525 This file was extended by emacs $as_me 24.0.50, which was
15526 generated by GNU Autoconf 2.65. Invocation command line was
15527
15528 CONFIG_FILES = $CONFIG_FILES
15529 CONFIG_HEADERS = $CONFIG_HEADERS
15530 CONFIG_LINKS = $CONFIG_LINKS
15531 CONFIG_COMMANDS = $CONFIG_COMMANDS
15532 $ $0 $@
15533
15534 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15535 "
15536
15537 _ACEOF
15538
15539 case $ac_config_files in *"
15540 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15541 esac
15542
15543 case $ac_config_headers in *"
15544 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15545 esac
15546
15547
15548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15549 # Files that config.status was made for.
15550 config_files="$ac_config_files"
15551 config_headers="$ac_config_headers"
15552 config_commands="$ac_config_commands"
15553
15554 _ACEOF
15555
15556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15557 ac_cs_usage="\
15558 \`$as_me' instantiates files and other configuration actions
15559 from templates according to the current configuration. Unless the files
15560 and actions are specified as TAGs, all are instantiated by default.
15561
15562 Usage: $0 [OPTION]... [TAG]...
15563
15564 -h, --help print this help, then exit
15565 -V, --version print version number and configuration settings, then exit
15566 --config print configuration, then exit
15567 -q, --quiet, --silent
15568 do not print progress messages
15569 -d, --debug don't remove temporary files
15570 --recheck update $as_me by reconfiguring in the same conditions
15571 --file=FILE[:TEMPLATE]
15572 instantiate the configuration file FILE
15573 --header=FILE[:TEMPLATE]
15574 instantiate the configuration header FILE
15575
15576 Configuration files:
15577 $config_files
15578
15579 Configuration headers:
15580 $config_headers
15581
15582 Configuration commands:
15583 $config_commands
15584
15585 Report bugs to the package provider."
15586
15587 _ACEOF
15588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15589 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15590 ac_cs_version="\\
15591 emacs config.status 24.0.50
15592 configured by $0, generated by GNU Autoconf 2.65,
15593 with options \\"\$ac_cs_config\\"
15594
15595 Copyright (C) 2009 Free Software Foundation, Inc.
15596 This config.status script is free software; the Free Software Foundation
15597 gives unlimited permission to copy, distribute and modify it."
15598
15599 ac_pwd='$ac_pwd'
15600 srcdir='$srcdir'
15601 INSTALL='$INSTALL'
15602 test -n "\$AWK" || AWK=awk
15603 _ACEOF
15604
15605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15606 # The default lists apply if the user does not specify any file.
15607 ac_need_defaults=:
15608 while test $# != 0
15609 do
15610 case $1 in
15611 --*=*)
15612 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15613 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15614 ac_shift=:
15615 ;;
15616 *)
15617 ac_option=$1
15618 ac_optarg=$2
15619 ac_shift=shift
15620 ;;
15621 esac
15622
15623 case $ac_option in
15624 # Handling of the options.
15625 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15626 ac_cs_recheck=: ;;
15627 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15628 $as_echo "$ac_cs_version"; exit ;;
15629 --config | --confi | --conf | --con | --co | --c )
15630 $as_echo "$ac_cs_config"; exit ;;
15631 --debug | --debu | --deb | --de | --d | -d )
15632 debug=: ;;
15633 --file | --fil | --fi | --f )
15634 $ac_shift
15635 case $ac_optarg in
15636 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15637 esac
15638 as_fn_append CONFIG_FILES " '$ac_optarg'"
15639 ac_need_defaults=false;;
15640 --header | --heade | --head | --hea )
15641 $ac_shift
15642 case $ac_optarg in
15643 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15644 esac
15645 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15646 ac_need_defaults=false;;
15647 --he | --h)
15648 # Conflict between --help and --header
15649 as_fn_error "ambiguous option: \`$1'
15650 Try \`$0 --help' for more information.";;
15651 --help | --hel | -h )
15652 $as_echo "$ac_cs_usage"; exit ;;
15653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15654 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15655 ac_cs_silent=: ;;
15656
15657 # This is an error.
15658 -*) as_fn_error "unrecognized option: \`$1'
15659 Try \`$0 --help' for more information." ;;
15660
15661 *) as_fn_append ac_config_targets " $1"
15662 ac_need_defaults=false ;;
15663
15664 esac
15665 shift
15666 done
15667
15668 ac_configure_extra_args=
15669
15670 if $ac_cs_silent; then
15671 exec 6>/dev/null
15672 ac_configure_extra_args="$ac_configure_extra_args --silent"
15673 fi
15674
15675 _ACEOF
15676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15677 if \$ac_cs_recheck; then
15678 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15679 shift
15680 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15681 CONFIG_SHELL='$SHELL'
15682 export CONFIG_SHELL
15683 exec "\$@"
15684 fi
15685
15686 _ACEOF
15687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15688 exec 5>>config.log
15689 {
15690 echo
15691 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15692 ## Running $as_me. ##
15693 _ASBOX
15694 $as_echo "$ac_log"
15695 } >&5
15696
15697 _ACEOF
15698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15699 #
15700 # INIT-COMMANDS
15701 #
15702 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15703
15704 _ACEOF
15705
15706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15707
15708 # Handling of arguments.
15709 for ac_config_target in $ac_config_targets
15710 do
15711 case $ac_config_target in
15712 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15713 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15714 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15715 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15716 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15717 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15718 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15719 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15720 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15721 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15722 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15723 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15724 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15725
15726 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15727 esac
15728 done
15729
15730
15731 # If the user did not use the arguments to specify the items to instantiate,
15732 # then the envvar interface is used. Set only those that are not.
15733 # We use the long form for the default assignment because of an extremely
15734 # bizarre bug on SunOS 4.1.3.
15735 if $ac_need_defaults; then
15736 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15737 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15738 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15739 fi
15740
15741 # Have a temporary directory for convenience. Make it in the build tree
15742 # simply because there is no reason against having it here, and in addition,
15743 # creating and moving files from /tmp can sometimes cause problems.
15744 # Hook for its removal unless debugging.
15745 # Note that there is a small window in which the directory will not be cleaned:
15746 # after its creation but before its name has been assigned to `$tmp'.
15747 $debug ||
15748 {
15749 tmp=
15750 trap 'exit_status=$?
15751 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15752 ' 0
15753 trap 'as_fn_exit 1' 1 2 13 15
15754 }
15755 # Create a (secure) tmp directory for tmp files.
15756
15757 {
15758 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15759 test -n "$tmp" && test -d "$tmp"
15760 } ||
15761 {
15762 tmp=./conf$$-$RANDOM
15763 (umask 077 && mkdir "$tmp")
15764 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15765
15766 # Set up the scripts for CONFIG_FILES section.
15767 # No need to generate them if there are no CONFIG_FILES.
15768 # This happens for instance with `./config.status config.h'.
15769 if test -n "$CONFIG_FILES"; then
15770
15771 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15772 ac_cs_awk_getline=:
15773 ac_cs_awk_pipe_init=
15774 ac_cs_awk_read_file='
15775 while ((getline aline < (F[key])) > 0)
15776 print(aline)
15777 close(F[key])'
15778 ac_cs_awk_pipe_fini=
15779 else
15780 ac_cs_awk_getline=false
15781 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15782 ac_cs_awk_read_file='
15783 print "|#_!!_#|"
15784 print "cat " F[key] " &&"
15785 '$ac_cs_awk_pipe_init
15786 # The final `:' finishes the AND list.
15787 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15788 fi
15789 ac_cr=`echo X | tr X '\015'`
15790 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15791 # But we know of no other shell where ac_cr would be empty at this
15792 # point, so we can use a bashism as a fallback.
15793 if test "x$ac_cr" = x; then
15794 eval ac_cr=\$\'\\r\'
15795 fi
15796 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15797 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15798 ac_cs_awk_cr='\r'
15799 else
15800 ac_cs_awk_cr=$ac_cr
15801 fi
15802
15803 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15804 _ACEOF
15805
15806 # Create commands to substitute file output variables.
15807 {
15808 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15809 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15810 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15811 echo "_ACAWK" &&
15812 echo "_ACEOF"
15813 } >conf$$files.sh &&
15814 . ./conf$$files.sh ||
15815 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15816 rm -f conf$$files.sh
15817
15818 {
15819 echo "cat >conf$$subs.awk <<_ACEOF" &&
15820 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15821 echo "_ACEOF"
15822 } >conf$$subs.sh ||
15823 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15824 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15825 ac_delim='%!_!# '
15826 for ac_last_try in false false false false false :; do
15827 . ./conf$$subs.sh ||
15828 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15829
15830 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15831 if test $ac_delim_n = $ac_delim_num; then
15832 break
15833 elif $ac_last_try; then
15834 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15835 else
15836 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15837 fi
15838 done
15839 rm -f conf$$subs.sh
15840
15841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15842 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15843 _ACEOF
15844 sed -n '
15845 h
15846 s/^/S["/; s/!.*/"]=/
15847 p
15848 g
15849 s/^[^!]*!//
15850 :repl
15851 t repl
15852 s/'"$ac_delim"'$//
15853 t delim
15854 :nl
15855 h
15856 s/\(.\{148\}\)..*/\1/
15857 t more1
15858 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15859 p
15860 n
15861 b repl
15862 :more1
15863 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15864 p
15865 g
15866 s/.\{148\}//
15867 t nl
15868 :delim
15869 h
15870 s/\(.\{148\}\)..*/\1/
15871 t more2
15872 s/["\\]/\\&/g; s/^/"/; s/$/"/
15873 p
15874 b
15875 :more2
15876 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15877 p
15878 g
15879 s/.\{148\}//
15880 t delim
15881 ' <conf$$subs.awk | sed '
15882 /^[^""]/{
15883 N
15884 s/\n//
15885 }
15886 ' >>$CONFIG_STATUS || ac_write_fail=1
15887 rm -f conf$$subs.awk
15888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15889 _ACAWK
15890 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15891 for (key in S) S_is_set[key] = 1
15892 FS = "\a"
15893 \$ac_cs_awk_pipe_init
15894 }
15895 {
15896 line = $ 0
15897 nfields = split(line, field, "@")
15898 substed = 0
15899 len = length(field[1])
15900 for (i = 2; i < nfields; i++) {
15901 key = field[i]
15902 keylen = length(key)
15903 if (S_is_set[key]) {
15904 value = S[key]
15905 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15906 len += length(value) + length(field[++i])
15907 substed = 1
15908 } else
15909 len += 1 + keylen
15910 }
15911 if (nfields == 3 && !substed) {
15912 key = field[2]
15913 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15914 \$ac_cs_awk_read_file
15915 next
15916 }
15917 }
15918 print line
15919 }
15920 \$ac_cs_awk_pipe_fini
15921 _ACAWK
15922 _ACEOF
15923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15924 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15925 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15926 else
15927 cat
15928 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15929 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15930 _ACEOF
15931
15932 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15933 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15934 # trailing colons and then remove the whole line if VPATH becomes empty
15935 # (actually we leave an empty line to preserve line numbers).
15936 if test "x$srcdir" = x.; then
15937 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15938 s/:*\$(srcdir):*/:/
15939 s/:*\${srcdir}:*/:/
15940 s/:*@srcdir@:*/:/
15941 s/^\([^=]*=[ ]*\):*/\1/
15942 s/:*$//
15943 s/^[^=]*=[ ]*$//
15944 }'
15945 fi
15946
15947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15948 fi # test -n "$CONFIG_FILES"
15949
15950 # Set up the scripts for CONFIG_HEADERS section.
15951 # No need to generate them if there are no CONFIG_HEADERS.
15952 # This happens for instance with `./config.status Makefile'.
15953 if test -n "$CONFIG_HEADERS"; then
15954 cat >"$tmp/defines.awk" <<\_ACAWK ||
15955 BEGIN {
15956 _ACEOF
15957
15958 # Transform confdefs.h into an awk script `defines.awk', embedded as
15959 # here-document in config.status, that substitutes the proper values into
15960 # config.h.in to produce config.h.
15961
15962 # Create a delimiter string that does not exist in confdefs.h, to ease
15963 # handling of long lines.
15964 ac_delim='%!_!# '
15965 for ac_last_try in false false :; do
15966 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15967 if test -z "$ac_t"; then
15968 break
15969 elif $ac_last_try; then
15970 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15971 else
15972 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15973 fi
15974 done
15975
15976 # For the awk script, D is an array of macro values keyed by name,
15977 # likewise P contains macro parameters if any. Preserve backslash
15978 # newline sequences.
15979
15980 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15981 sed -n '
15982 s/.\{148\}/&'"$ac_delim"'/g
15983 t rset
15984 :rset
15985 s/^[ ]*#[ ]*define[ ][ ]*/ /
15986 t def
15987 d
15988 :def
15989 s/\\$//
15990 t bsnl
15991 s/["\\]/\\&/g
15992 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15993 D["\1"]=" \3"/p
15994 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15995 d
15996 :bsnl
15997 s/["\\]/\\&/g
15998 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15999 D["\1"]=" \3\\\\\\n"\\/p
16000 t cont
16001 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16002 t cont
16003 d
16004 :cont
16005 n
16006 s/.\{148\}/&'"$ac_delim"'/g
16007 t clear
16008 :clear
16009 s/\\$//
16010 t bsnlc
16011 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16012 d
16013 :bsnlc
16014 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16015 b cont
16016 ' <confdefs.h | sed '
16017 s/'"$ac_delim"'/"\\\
16018 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16019
16020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16021 for (key in D) D_is_set[key] = 1
16022 FS = "\a"
16023 }
16024 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16025 line = \$ 0
16026 split(line, arg, " ")
16027 if (arg[1] == "#") {
16028 defundef = arg[2]
16029 mac1 = arg[3]
16030 } else {
16031 defundef = substr(arg[1], 2)
16032 mac1 = arg[2]
16033 }
16034 split(mac1, mac2, "(") #)
16035 macro = mac2[1]
16036 prefix = substr(line, 1, index(line, defundef) - 1)
16037 if (D_is_set[macro]) {
16038 # Preserve the white space surrounding the "#".
16039 print prefix "define", macro P[macro] D[macro]
16040 next
16041 } else {
16042 # Replace #undef with comments. This is necessary, for example,
16043 # in the case of _POSIX_SOURCE, which is predefined and required
16044 # on some systems where configure will not decide to define it.
16045 if (defundef == "undef") {
16046 print "/*", prefix defundef, macro, "*/"
16047 next
16048 }
16049 }
16050 }
16051 { print }
16052 _ACAWK
16053 _ACEOF
16054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16055 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16056 fi # test -n "$CONFIG_HEADERS"
16057
16058
16059 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16060 shift
16061 for ac_tag
16062 do
16063 case $ac_tag in
16064 :[FHLC]) ac_mode=$ac_tag; continue;;
16065 esac
16066 case $ac_mode$ac_tag in
16067 :[FHL]*:*);;
16068 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16069 :[FH]-) ac_tag=-:-;;
16070 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16071 esac
16072 ac_save_IFS=$IFS
16073 IFS=:
16074 set x $ac_tag
16075 IFS=$ac_save_IFS
16076 shift
16077 ac_file=$1
16078 shift
16079
16080 case $ac_mode in
16081 :L) ac_source=$1;;
16082 :[FH])
16083 ac_file_inputs=
16084 for ac_f
16085 do
16086 case $ac_f in
16087 -) ac_f="$tmp/stdin";;
16088 *) # Look for the file first in the build tree, then in the source tree
16089 # (if the path is not absolute). The absolute path cannot be DOS-style,
16090 # because $ac_f cannot contain `:'.
16091 test -f "$ac_f" ||
16092 case $ac_f in
16093 [\\/$]*) false;;
16094 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16095 esac ||
16096 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16097 esac
16098 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16099 as_fn_append ac_file_inputs " '$ac_f'"
16100 done
16101
16102 # Let's still pretend it is `configure' which instantiates (i.e., don't
16103 # use $as_me), people would be surprised to read:
16104 # /* config.h. Generated by config.status. */
16105 configure_input='Generated from '`
16106 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16107 `' by configure.'
16108 if test x"$ac_file" != x-; then
16109 configure_input="$ac_file. $configure_input"
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16111 $as_echo "$as_me: creating $ac_file" >&6;}
16112 fi
16113 # Neutralize special characters interpreted by sed in replacement strings.
16114 case $configure_input in #(
16115 *\&* | *\|* | *\\* )
16116 ac_sed_conf_input=`$as_echo "$configure_input" |
16117 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16118 *) ac_sed_conf_input=$configure_input;;
16119 esac
16120
16121 case $ac_tag in
16122 *:-:* | *:-) cat >"$tmp/stdin" \
16123 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16124 esac
16125 ;;
16126 esac
16127
16128 ac_dir=`$as_dirname -- "$ac_file" ||
16129 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16130 X"$ac_file" : 'X\(//\)[^/]' \| \
16131 X"$ac_file" : 'X\(//\)$' \| \
16132 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16133 $as_echo X"$ac_file" |
16134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16135 s//\1/
16136 q
16137 }
16138 /^X\(\/\/\)[^/].*/{
16139 s//\1/
16140 q
16141 }
16142 /^X\(\/\/\)$/{
16143 s//\1/
16144 q
16145 }
16146 /^X\(\/\).*/{
16147 s//\1/
16148 q
16149 }
16150 s/.*/./; q'`
16151 as_dir="$ac_dir"; as_fn_mkdir_p
16152 ac_builddir=.
16153
16154 case "$ac_dir" in
16155 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16156 *)
16157 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16158 # A ".." for each directory in $ac_dir_suffix.
16159 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16160 case $ac_top_builddir_sub in
16161 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16162 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16163 esac ;;
16164 esac
16165 ac_abs_top_builddir=$ac_pwd
16166 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16167 # for backward compatibility:
16168 ac_top_builddir=$ac_top_build_prefix
16169
16170 case $srcdir in
16171 .) # We are building in place.
16172 ac_srcdir=.
16173 ac_top_srcdir=$ac_top_builddir_sub
16174 ac_abs_top_srcdir=$ac_pwd ;;
16175 [\\/]* | ?:[\\/]* ) # Absolute name.
16176 ac_srcdir=$srcdir$ac_dir_suffix;
16177 ac_top_srcdir=$srcdir
16178 ac_abs_top_srcdir=$srcdir ;;
16179 *) # Relative name.
16180 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16181 ac_top_srcdir=$ac_top_build_prefix$srcdir
16182 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16183 esac
16184 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16185
16186
16187 case $ac_mode in
16188 :F)
16189 #
16190 # CONFIG_FILE
16191 #
16192
16193 case $INSTALL in
16194 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16195 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16196 esac
16197 _ACEOF
16198
16199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16200 # If the template does not know about datarootdir, expand it.
16201 # FIXME: This hack should be removed a few years after 2.60.
16202 ac_datarootdir_hack=; ac_datarootdir_seen=
16203 ac_sed_dataroot='
16204 /datarootdir/ {
16205 p
16206 q
16207 }
16208 /@datadir@/p
16209 /@docdir@/p
16210 /@infodir@/p
16211 /@localedir@/p
16212 /@mandir@/p'
16213 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16214 *datarootdir*) ac_datarootdir_seen=yes;;
16215 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16217 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16218 _ACEOF
16219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16220 ac_datarootdir_hack='
16221 s&@datadir@&$datadir&g
16222 s&@docdir@&$docdir&g
16223 s&@infodir@&$infodir&g
16224 s&@localedir@&$localedir&g
16225 s&@mandir@&$mandir&g
16226 s&\\\${datarootdir}&$datarootdir&g' ;;
16227 esac
16228 _ACEOF
16229
16230 # Neutralize VPATH when `$srcdir' = `.'.
16231 # Shell code in configure.ac might set extrasub.
16232 # FIXME: do we really want to maintain this feature?
16233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16234 ac_sed_extra="$ac_vpsub
16235 $extrasub
16236 _ACEOF
16237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16238 :t
16239 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16240 s|@configure_input@|$ac_sed_conf_input|;t t
16241 s&@top_builddir@&$ac_top_builddir_sub&;t t
16242 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16243 s&@srcdir@&$ac_srcdir&;t t
16244 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16245 s&@top_srcdir@&$ac_top_srcdir&;t t
16246 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16247 s&@builddir@&$ac_builddir&;t t
16248 s&@abs_builddir@&$ac_abs_builddir&;t t
16249 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16250 s&@INSTALL@&$ac_INSTALL&;t t
16251 $ac_datarootdir_hack
16252 "
16253 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16254 if $ac_cs_awk_getline; then
16255 $AWK -f "$tmp/subs.awk"
16256 else
16257 $AWK -f "$tmp/subs.awk" | $SHELL
16258 fi >$tmp/out \
16259 || as_fn_error "could not create $ac_file" "$LINENO" 5
16260
16261 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16262 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16263 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16265 which seems to be undefined. Please make sure it is defined." >&5
16266 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16267 which seems to be undefined. Please make sure it is defined." >&2;}
16268
16269 rm -f "$tmp/stdin"
16270 case $ac_file in
16271 -) cat "$tmp/out" && rm -f "$tmp/out";;
16272 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16273 esac \
16274 || as_fn_error "could not create $ac_file" "$LINENO" 5
16275 ;;
16276 :H)
16277 #
16278 # CONFIG_HEADER
16279 #
16280 if test x"$ac_file" != x-; then
16281 {
16282 $as_echo "/* $configure_input */" \
16283 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16284 } >"$tmp/config.h" \
16285 || as_fn_error "could not create $ac_file" "$LINENO" 5
16286 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16288 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16289 else
16290 rm -f "$ac_file"
16291 mv "$tmp/config.h" "$ac_file" \
16292 || as_fn_error "could not create $ac_file" "$LINENO" 5
16293 fi
16294 else
16295 $as_echo "/* $configure_input */" \
16296 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16297 || as_fn_error "could not create -" "$LINENO" 5
16298 fi
16299 ;;
16300
16301 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16302 $as_echo "$as_me: executing $ac_file commands" >&6;}
16303 ;;
16304 esac
16305
16306
16307 case $ac_file$ac_mode in
16308 "default":C)
16309
16310 ### Make the necessary directories, if they don't exist.
16311 for dir in etc lisp ; do
16312 test -d ${dir} || mkdir ${dir}
16313 done
16314
16315 echo creating src/epaths.h
16316 ${MAKE-make} epaths-force
16317
16318 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
16319 echo creating src/.gdbinit
16320 echo source $srcdir/src/.gdbinit > src/.gdbinit
16321 fi
16322
16323 ;;
16324
16325 esac
16326 done # for ac_tag
16327
16328
16329 as_fn_exit 0
16330 _ACEOF
16331 ac_clean_files=$ac_clean_files_save
16332
16333 test $ac_write_fail = 0 ||
16334 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16335
16336
16337 # configure is writing to config.log, and then calls config.status.
16338 # config.status does its own redirection, appending to config.log.
16339 # Unfortunately, on DOS this fails, as config.log is still kept open
16340 # by configure, so config.status won't be able to write to it; its
16341 # output is simply discarded. So we exec the FD to /dev/null,
16342 # effectively closing config.log, so it can be properly (re)opened and
16343 # appended to by config.status. When coming back to configure, we
16344 # need to make the FD available again.
16345 if test "$no_create" != yes; then
16346 ac_cs_success=:
16347 ac_config_status_args=
16348 test "$silent" = yes &&
16349 ac_config_status_args="$ac_config_status_args --quiet"
16350 exec 5>/dev/null
16351 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16352 exec 5>>config.log
16353 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16354 # would make configure fail if this is the last instruction.
16355 $ac_cs_success || as_fn_exit $?
16356 fi
16357 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16359 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16360 fi
16361
16362