Merge from emacs-23 branch.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&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, old GNU/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 S_FILE
626 M_FILE
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 HAVE_MAKEINFO
727 MAKEINFO
728 GZIP_PROG
729 INSTALL_INFO
730 RANLIB
731 INSTALL_DATA
732 INSTALL_SCRIPT
733 INSTALL_PROGRAM
734 C_WARNINGS_SWITCH
735 EGREP
736 GREP
737 CPP
738 OBJEXT
739 EXEEXT
740 ac_ct_CC
741 CPPFLAGS
742 LDFLAGS
743 CFLAGS
744 CC
745 host_os
746 host_vendor
747 host_cpu
748 host
749 build_os
750 build_vendor
751 build_cpu
752 build
753 PROFILING_CFLAGS
754 MAINT
755 GZIP_INFO
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files='deps_frag
795 ns_frag'
796 ac_user_opts='
797 enable_option_checking
798 with_pop
799 with_kerberos
800 with_kerberos5
801 with_hesiod
802 with_mmdf
803 with_mail_unlink
804 with_mailhost
805 with_sound
806 with_sync_input
807 with_x_toolkit
808 with_xpm
809 with_jpeg
810 with_tiff
811 with_gif
812 with_png
813 with_rsvg
814 with_xml2
815 with_imagemagick
816 with_xft
817 with_libotf
818 with_m17n_flt
819 with_toolkit_scroll_bars
820 with_xaw3d
821 with_xim
822 with_ns
823 with_gpm
824 with_dbus
825 with_gconf
826 with_selinux
827 with_gnutls
828 with_makeinfo
829 with_compress_info
830 with_pkg_config_prog
831 with_crt_dir
832 with_gameuser
833 with_gnustep_conf
834 enable_ns_self_contained
835 enable_asserts
836 enable_maintainer_mode
837 enable_locallisppath
838 enable_checking
839 enable_use_lisp_union_type
840 enable_profiling
841 enable_autodepend
842 enable_largefile
843 with_x
844 '
845 ac_precious_vars='build_alias
846 host_alias
847 target_alias
848 CC
849 CFLAGS
850 LDFLAGS
851 LIBS
852 CPPFLAGS
853 CPP
854 XMKMF'
855
856
857 # Initialize some variables set by options.
858 ac_init_help=
859 ac_init_version=false
860 ac_unrecognized_opts=
861 ac_unrecognized_sep=
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
864 cache_file=/dev/null
865 exec_prefix=NONE
866 no_create=
867 no_recursion=
868 prefix=NONE
869 program_prefix=NONE
870 program_suffix=NONE
871 program_transform_name=s,x,x,
872 silent=
873 site=
874 srcdir=
875 verbose=
876 x_includes=NONE
877 x_libraries=NONE
878
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
896 infodir='${datarootdir}/info'
897 htmldir='${docdir}'
898 dvidir='${docdir}'
899 pdfdir='${docdir}'
900 psdir='${docdir}'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
904
905 ac_prev=
906 ac_dashdash=
907 for ac_option
908 do
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\$ac_option
912 ac_prev=
913 continue
914 fi
915
916 case $ac_option in
917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 *=) ac_optarg= ;;
919 *) ac_optarg=yes ;;
920 esac
921
922 # Accept the important Cygnus configure options, so we can diagnose typos.
923
924 case $ac_dashdash$ac_option in
925 --)
926 ac_dashdash=yes ;;
927
928 -bindir | --bindir | --bindi | --bind | --bin | --bi)
929 ac_prev=bindir ;;
930 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
931 bindir=$ac_optarg ;;
932
933 -build | --build | --buil | --bui | --bu)
934 ac_prev=build_alias ;;
935 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
936 build_alias=$ac_optarg ;;
937
938 -cache-file | --cache-file | --cache-fil | --cache-fi \
939 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
940 ac_prev=cache_file ;;
941 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
942 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
943 cache_file=$ac_optarg ;;
944
945 --config-cache | -C)
946 cache_file=config.cache ;;
947
948 -datadir | --datadir | --datadi | --datad)
949 ac_prev=datadir ;;
950 -datadir=* | --datadir=* | --datadi=* | --datad=*)
951 datadir=$ac_optarg ;;
952
953 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
954 | --dataroo | --dataro | --datar)
955 ac_prev=datarootdir ;;
956 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
957 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
958 datarootdir=$ac_optarg ;;
959
960 -disable-* | --disable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=no ;;
975
976 -docdir | --docdir | --docdi | --doc | --do)
977 ac_prev=docdir ;;
978 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
979 docdir=$ac_optarg ;;
980
981 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
982 ac_prev=dvidir ;;
983 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
984 dvidir=$ac_optarg ;;
985
986 -enable-* | --enable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 as_fn_error $? "invalid feature name: $ac_useropt"
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
994 *"
995 "enable_$ac_useropt"
996 "*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=\$ac_optarg ;;
1001
1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1004 | --exec | --exe | --ex)
1005 ac_prev=exec_prefix ;;
1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1008 | --exec=* | --exe=* | --ex=*)
1009 exec_prefix=$ac_optarg ;;
1010
1011 -gas | --gas | --ga | --g)
1012 # Obsolete; use --with-gas.
1013 with_gas=yes ;;
1014
1015 -help | --help | --hel | --he | -h)
1016 ac_init_help=long ;;
1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1018 ac_init_help=recursive ;;
1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1020 ac_init_help=short ;;
1021
1022 -host | --host | --hos | --ho)
1023 ac_prev=host_alias ;;
1024 -host=* | --host=* | --hos=* | --ho=*)
1025 host_alias=$ac_optarg ;;
1026
1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 ac_prev=htmldir ;;
1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 | --ht=*)
1031 htmldir=$ac_optarg ;;
1032
1033 -includedir | --includedir | --includedi | --included | --include \
1034 | --includ | --inclu | --incl | --inc)
1035 ac_prev=includedir ;;
1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1037 | --includ=* | --inclu=* | --incl=* | --inc=*)
1038 includedir=$ac_optarg ;;
1039
1040 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 ac_prev=infodir ;;
1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1043 infodir=$ac_optarg ;;
1044
1045 -libdir | --libdir | --libdi | --libd)
1046 ac_prev=libdir ;;
1047 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1048 libdir=$ac_optarg ;;
1049
1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1051 | --libexe | --libex | --libe)
1052 ac_prev=libexecdir ;;
1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1054 | --libexe=* | --libex=* | --libe=*)
1055 libexecdir=$ac_optarg ;;
1056
1057 -localedir | --localedir | --localedi | --localed | --locale)
1058 ac_prev=localedir ;;
1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1060 localedir=$ac_optarg ;;
1061
1062 -localstatedir | --localstatedir | --localstatedi | --localstated \
1063 | --localstate | --localstat | --localsta | --localst | --locals)
1064 ac_prev=localstatedir ;;
1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1067 localstatedir=$ac_optarg ;;
1068
1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 ac_prev=mandir ;;
1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1072 mandir=$ac_optarg ;;
1073
1074 -nfp | --nfp | --nf)
1075 # Obsolete; use --without-fp.
1076 with_fp=no ;;
1077
1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1079 | --no-cr | --no-c | -n)
1080 no_create=yes ;;
1081
1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084 no_recursion=yes ;;
1085
1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1088 | --oldin | --oldi | --old | --ol | --o)
1089 ac_prev=oldincludedir ;;
1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1093 oldincludedir=$ac_optarg ;;
1094
1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 ac_prev=prefix ;;
1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1098 prefix=$ac_optarg ;;
1099
1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1101 | --program-pre | --program-pr | --program-p)
1102 ac_prev=program_prefix ;;
1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1105 program_prefix=$ac_optarg ;;
1106
1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1108 | --program-suf | --program-su | --program-s)
1109 ac_prev=program_suffix ;;
1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1112 program_suffix=$ac_optarg ;;
1113
1114 -program-transform-name | --program-transform-name \
1115 | --program-transform-nam | --program-transform-na \
1116 | --program-transform-n | --program-transform- \
1117 | --program-transform | --program-transfor \
1118 | --program-transfo | --program-transf \
1119 | --program-trans | --program-tran \
1120 | --progr-tra | --program-tr | --program-t)
1121 ac_prev=program_transform_name ;;
1122 -program-transform-name=* | --program-transform-name=* \
1123 | --program-transform-nam=* | --program-transform-na=* \
1124 | --program-transform-n=* | --program-transform-=* \
1125 | --program-transform=* | --program-transfor=* \
1126 | --program-transfo=* | --program-transf=* \
1127 | --program-trans=* | --program-tran=* \
1128 | --progr-tra=* | --program-tr=* | --program-t=*)
1129 program_transform_name=$ac_optarg ;;
1130
1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 ac_prev=pdfdir ;;
1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1134 pdfdir=$ac_optarg ;;
1135
1136 -psdir | --psdir | --psdi | --psd | --ps)
1137 ac_prev=psdir ;;
1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139 psdir=$ac_optarg ;;
1140
1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1142 | -silent | --silent | --silen | --sile | --sil)
1143 silent=yes ;;
1144
1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 ac_prev=sbindir ;;
1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 | --sbi=* | --sb=*)
1149 sbindir=$ac_optarg ;;
1150
1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153 | --sharedst | --shareds | --shared | --share | --shar \
1154 | --sha | --sh)
1155 ac_prev=sharedstatedir ;;
1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 | --sha=* | --sh=*)
1160 sharedstatedir=$ac_optarg ;;
1161
1162 -site | --site | --sit)
1163 ac_prev=site ;;
1164 -site=* | --site=* | --sit=*)
1165 site=$ac_optarg ;;
1166
1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 ac_prev=srcdir ;;
1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170 srcdir=$ac_optarg ;;
1171
1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173 | --syscon | --sysco | --sysc | --sys | --sy)
1174 ac_prev=sysconfdir ;;
1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177 sysconfdir=$ac_optarg ;;
1178
1179 -target | --target | --targe | --targ | --tar | --ta | --t)
1180 ac_prev=target_alias ;;
1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182 target_alias=$ac_optarg ;;
1183
1184 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185 verbose=yes ;;
1186
1187 -version | --version | --versio | --versi | --vers | -V)
1188 ac_init_version=: ;;
1189
1190 -with-* | --with-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1198 *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=\$ac_optarg ;;
1205
1206 -without-* | --without-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: $ac_useropt"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=no ;;
1221
1222 --x)
1223 # Obsolete; use --with-x.
1224 with_x=yes ;;
1225
1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227 | --x-incl | --x-inc | --x-in | --x-i)
1228 ac_prev=x_includes ;;
1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231 x_includes=$ac_optarg ;;
1232
1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235 ac_prev=x_libraries ;;
1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238 x_libraries=$ac_optarg ;;
1239
1240 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1241 Try \`$0 --help' for more information"
1242 ;;
1243
1244 *=*)
1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1246 # Reject names that are not valid shell variable names.
1247 case $ac_envvar in #(
1248 '' | [0-9]* | *[!_$as_cr_alnum]* )
1249 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1250 esac
1251 eval $ac_envvar=\$ac_optarg
1252 export $ac_envvar ;;
1253
1254 *)
1255 # FIXME: should be removed in autoconf 3.0.
1256 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1259 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1260 ;;
1261
1262 esac
1263 done
1264
1265 if test -n "$ac_prev"; then
1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267 as_fn_error $? "missing argument to $ac_option"
1268 fi
1269
1270 if test -n "$ac_unrecognized_opts"; then
1271 case $enable_option_checking in
1272 no) ;;
1273 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1274 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275 esac
1276 fi
1277
1278 # Check all directory arguments for consistency.
1279 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280 datadir sysconfdir sharedstatedir localstatedir includedir \
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282 libdir localedir mandir
1283 do
1284 eval ac_val=\$$ac_var
1285 # Remove trailing slashes.
1286 case $ac_val in
1287 */ )
1288 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1289 eval $ac_var=\$ac_val;;
1290 esac
1291 # Be sure to have absolute directory names.
1292 case $ac_val in
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 esac
1296 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1297 done
1298
1299 # There might be people who depend on the old broken behavior: `$host'
1300 # used to hold the argument of --host etc.
1301 # FIXME: To remove some day.
1302 build=$build_alias
1303 host=$host_alias
1304 target=$target_alias
1305
1306 # FIXME: To remove some day.
1307 if test "x$host_alias" != x; then
1308 if test "x$build_alias" = x; then
1309 cross_compiling=maybe
1310 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1311 If a cross compiler is detected then cross compile mode will be used" >&2
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315 fi
1316
1317 ac_tool_prefix=
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320 test "$silent" = yes && exec 6>/dev/null
1321
1322
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 $as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1361 fi
1362 else
1363 ac_srcdir_defaulted=no
1364 fi
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368 fi
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450 _ACEOF
1451
1452 cat <<\_ACEOF
1453
1454 Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458
1459 X features:
1460 --x-includes=DIR X include files are in DIR
1461 --x-libraries=DIR X library files are in DIR
1462
1463 System types:
1464 --build=BUILD configure for building on BUILD [guessed]
1465 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 _ACEOF
1467 fi
1468
1469 if test -n "$ac_init_help"; then
1470 case $ac_init_help in
1471 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1472 esac
1473 cat <<\_ACEOF
1474
1475 Optional Features:
1476 --disable-option-checking ignore unrecognized --enable/--with options
1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1479 --disable-ns-self-contained
1480 disable self contained build under NeXTstep
1481 --enable-asserts compile code with asserts enabled
1482 --enable-maintainer-mode
1483 enable make rules and dependencies not useful (and
1484 sometimes confusing) to the casual installer
1485 --enable-locallisppath=PATH
1486 directories Emacs should search for lisp files
1487 specific to this site
1488 --enable-checking[=LIST]
1489 enable expensive run-time checks. With LIST, enable
1490 only specific categories of checks. Categories are:
1491 all,yes,no. Flags are: stringbytes, stringoverrun,
1492 stringfreelist, xmallocoverrun, conslist
1493 --enable-use-lisp-union-type
1494 use a union for the Lisp_Object data type. This is
1495 only useful for development for catching certain
1496 types of bugs.
1497 --enable-profiling build emacs with profiling support. This might not
1498 work on all platforms
1499 --enable-autodepend automatically generate dependencies to .h-files.
1500 Requires GNU Make and Gcc. Enabled if GNU Make and
1501 Gcc is found
1502 --disable-largefile omit support for large files
1503
1504 Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --without-pop don't support POP mail retrieval with movemail
1508 --with-kerberos support Kerberos-authenticated POP
1509 --with-kerberos5 support Kerberos version 5 authenticated POP
1510 --with-hesiod support Hesiod to get the POP server host
1511 --with-mmdf support MMDF mailboxes
1512 --with-mail-unlink unlink, rather than empty, mail spool after reading
1513 --with-mailhost=HOSTNAME
1514 string giving default POP mail host
1515 --without-sound don't compile with sound support
1516 --without-sync-input process async input synchronously
1517 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1518 lucid or athena, motif, no)
1519 --without-xpm don't compile with XPM image support
1520 --without-jpeg don't compile with JPEG image support
1521 --without-tiff don't compile with TIFF image support
1522 --without-gif don't compile with GIF image support
1523 --without-png don't compile with PNG image support
1524 --without-rsvg don't compile with SVG image support
1525 --without-xml2 don't compile with XML parsing support
1526 --without-imagemagick don't compile with ImageMagick image support
1527 --without-xft don't use XFT for anti aliased fonts
1528 --without-libotf don't use libotf for OpenType font support
1529 --without-m17n-flt don't use m17n-flt for text shaping
1530 --without-toolkit-scroll-bars
1531 don't use Motif or Xaw3d scroll bars
1532 --without-xaw3d don't use Xaw3d
1533 --without-xim don't use X11 XIM
1534 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1535 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1536 console
1537 --without-dbus don't compile with D-Bus support
1538 --without-gconf don't compile with GConf support
1539 --without-selinux don't compile with SELinux support
1540 --without-gnutls don't use -lgnutls for SSL/TLS support
1541 --without-makeinfo don't require makeinfo for building manuals
1542 --without-compress-info don't compress the installed Info pages
1543 --with-pkg-config-prog=PATH
1544 path to pkg-config for finding GTK and librsvg
1545 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1546 /usr/lib, or /usr/lib64 on some platforms.
1547 --with-gameuser=USER user for shared game score files
1548 --with-gnustep-conf=PATH
1549 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1550 or /etc/GNUstep/GNUstep.conf
1551 --with-x use the X Window System
1552
1553 Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CPP C preprocessor
1562 XMKMF Path to xmkmf, Makefile generator for X Window System
1563
1564 Use these variables to override the choices made by `configure' or to help
1565 it to find libraries and programs with nonstandard names/locations.
1566
1567 Report bugs to the package provider.
1568 _ACEOF
1569 ac_status=$?
1570 fi
1571
1572 if test "$ac_init_help" = "recursive"; then
1573 # If there are subdirs, report their specific --help.
1574 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575 test -d "$ac_dir" ||
1576 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577 continue
1578 ac_builddir=.
1579
1580 case "$ac_dir" in
1581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *)
1583 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584 # A ".." for each directory in $ac_dir_suffix.
1585 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586 case $ac_top_builddir_sub in
1587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589 esac ;;
1590 esac
1591 ac_abs_top_builddir=$ac_pwd
1592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir=$ac_top_build_prefix
1595
1596 case $srcdir in
1597 .) # We are building in place.
1598 ac_srcdir=.
1599 ac_top_srcdir=$ac_top_builddir_sub
1600 ac_abs_top_srcdir=$ac_pwd ;;
1601 [\\/]* | ?:[\\/]* ) # Absolute name.
1602 ac_srcdir=$srcdir$ac_dir_suffix;
1603 ac_top_srcdir=$srcdir
1604 ac_abs_top_srcdir=$srcdir ;;
1605 *) # Relative name.
1606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607 ac_top_srcdir=$ac_top_build_prefix$srcdir
1608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609 esac
1610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611
1612 cd "$ac_dir" || { ac_status=$?; continue; }
1613 # Check for guested configure.
1614 if test -f "$ac_srcdir/configure.gnu"; then
1615 echo &&
1616 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617 elif test -f "$ac_srcdir/configure"; then
1618 echo &&
1619 $SHELL "$ac_srcdir/configure" --help=recursive
1620 else
1621 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622 fi || ac_status=$?
1623 cd "$ac_pwd" || { ac_status=$?; break; }
1624 done
1625 fi
1626
1627 test -n "$ac_init_help" && exit $ac_status
1628 if $ac_init_version; then
1629 cat <<\_ACEOF
1630 emacs configure 24.0.50
1631 generated by GNU Autoconf 2.67
1632
1633 Copyright (C) 2010 Free Software Foundation, Inc.
1634 This configure script is free software; the Free Software Foundation
1635 gives unlimited permission to copy, distribute and modify it.
1636 _ACEOF
1637 exit
1638 fi
1639
1640 ## ------------------------ ##
1641 ## Autoconf initialization. ##
1642 ## ------------------------ ##
1643
1644 # ac_fn_c_try_compile LINENO
1645 # --------------------------
1646 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_c_try_compile ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext
1651 if { { ac_try="$ac_compile"
1652 case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_compile") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1664 fi
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest.$ac_objext; then :
1670 ac_retval=0
1671 else
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675 ac_retval=1
1676 fi
1677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1678 as_fn_set_status $ac_retval
1679
1680 } # ac_fn_c_try_compile
1681
1682 # ac_fn_c_try_link LINENO
1683 # -----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_link ()
1686 {
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext conftest$ac_exeext
1689 if { { ac_try="$ac_link"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1702 fi
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest$ac_exeext && {
1708 test "$cross_compiling" = yes ||
1709 $as_test_x conftest$ac_exeext
1710 }; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=1
1717 fi
1718 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720 # interfere with the next link command; also delete a directory that is
1721 # left behind by Apple's compiler. We do this before executing the actions.
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724 as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_link
1727
1728 # ac_fn_c_try_cpp LINENO
1729 # ----------------------
1730 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_cpp ()
1732 {
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_cpp conftest.$ac_ext"
1735 case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742 ac_status=$?
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1747 fi
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } > conftest.i && {
1750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1751 test ! -s conftest.err
1752 }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758 ac_retval=1
1759 fi
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761 as_fn_set_status $ac_retval
1762
1763 } # ac_fn_c_try_cpp
1764
1765 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1766 # -------------------------------------------------------
1767 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1768 # the include files in INCLUDES and setting the cache variable VAR
1769 # accordingly.
1770 ac_fn_c_check_header_mongrel ()
1771 {
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 if eval "test \"\${$3+set}\"" = set; then :
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if eval "test \"\${$3+set}\"" = set; then :
1777 $as_echo_n "(cached) " >&6
1778 fi
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 else
1783 # Is the header compilable?
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1785 $as_echo_n "checking $2 usability... " >&6; }
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1788 $4
1789 #include <$2>
1790 _ACEOF
1791 if ac_fn_c_try_compile "$LINENO"; then :
1792 ac_header_compiler=yes
1793 else
1794 ac_header_compiler=no
1795 fi
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1798 $as_echo "$ac_header_compiler" >&6; }
1799
1800 # Is the header present?
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1802 $as_echo_n "checking $2 presence... " >&6; }
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 #include <$2>
1806 _ACEOF
1807 if ac_fn_c_try_cpp "$LINENO"; then :
1808 ac_header_preproc=yes
1809 else
1810 ac_header_preproc=no
1811 fi
1812 rm -f conftest.err conftest.i conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1814 $as_echo "$ac_header_preproc" >&6; }
1815
1816 # So? What about this header?
1817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1818 yes:no: )
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1820 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823 ;;
1824 no:yes:* )
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1826 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1828 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1830 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1832 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ;;
1836 esac
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval "test \"\${$3+set}\"" = set; then :
1840 $as_echo_n "(cached) " >&6
1841 else
1842 eval "$3=\$ac_header_compiler"
1843 fi
1844 eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847 fi
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849
1850 } # ac_fn_c_check_header_mongrel
1851
1852 # ac_fn_c_try_run LINENO
1853 # ----------------------
1854 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1855 # that executables *can* be run.
1856 ac_fn_c_try_run ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 if { { ac_try="$ac_link"
1860 case "(($ac_try" in
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1863 esac
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_link") 2>&5
1867 ac_status=$?
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1870 { { case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_try") 2>&5
1877 ac_status=$?
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; }; }; then :
1880 ac_retval=0
1881 else
1882 $as_echo "$as_me: program exited with status $ac_status" >&5
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1885
1886 ac_retval=$ac_status
1887 fi
1888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890 as_fn_set_status $ac_retval
1891
1892 } # ac_fn_c_try_run
1893
1894 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1895 # -------------------------------------------------------
1896 # Tests whether HEADER exists and can be compiled using the include files in
1897 # INCLUDES, setting the cache variable VAR accordingly.
1898 ac_fn_c_check_header_compile ()
1899 {
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if eval "test \"\${$3+set}\"" = set; then :
1904 $as_echo_n "(cached) " >&6
1905 else
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1908 $4
1909 #include <$2>
1910 _ACEOF
1911 if ac_fn_c_try_compile "$LINENO"; then :
1912 eval "$3=yes"
1913 else
1914 eval "$3=no"
1915 fi
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 fi
1918 eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1922
1923 } # ac_fn_c_check_header_compile
1924
1925 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1926 # ---------------------------------------------
1927 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1928 # accordingly.
1929 ac_fn_c_check_decl ()
1930 {
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 as_decl_name=`echo $2|sed 's/ *(.*//'`
1933 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1935 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1936 if eval "test \"\${$3+set}\"" = set; then :
1937 $as_echo_n "(cached) " >&6
1938 else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 $4
1942 int
1943 main ()
1944 {
1945 #ifndef $as_decl_name
1946 #ifdef __cplusplus
1947 (void) $as_decl_use;
1948 #else
1949 (void) $as_decl_name;
1950 #endif
1951 #endif
1952
1953 ;
1954 return 0;
1955 }
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 eval "$3=yes"
1959 else
1960 eval "$3=no"
1961 fi
1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 fi
1964 eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968
1969 } # ac_fn_c_check_decl
1970
1971 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1972 # ----------------------------------------------
1973 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1974 ac_fn_c_check_header_preproc ()
1975 {
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978 $as_echo_n "checking for $2... " >&6; }
1979 if eval "test \"\${$3+set}\"" = set; then :
1980 $as_echo_n "(cached) " >&6
1981 else
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1984 #include <$2>
1985 _ACEOF
1986 if ac_fn_c_try_cpp "$LINENO"; then :
1987 eval "$3=yes"
1988 else
1989 eval "$3=no"
1990 fi
1991 rm -f conftest.err conftest.i conftest.$ac_ext
1992 fi
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997
1998 } # ac_fn_c_check_header_preproc
1999
2000 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2001 # ----------------------------------------------------
2002 # Tries to find if the field MEMBER exists in type AGGR, after including
2003 # INCLUDES, setting cache variable VAR accordingly.
2004 ac_fn_c_check_member ()
2005 {
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2008 $as_echo_n "checking for $2.$3... " >&6; }
2009 if eval "test \"\${$4+set}\"" = set; then :
2010 $as_echo_n "(cached) " >&6
2011 else
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2014 $5
2015 int
2016 main ()
2017 {
2018 static $2 ac_aggr;
2019 if (ac_aggr.$3)
2020 return 0;
2021 ;
2022 return 0;
2023 }
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 eval "$4=yes"
2027 else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 $5
2031 int
2032 main ()
2033 {
2034 static $2 ac_aggr;
2035 if (sizeof ac_aggr.$3)
2036 return 0;
2037 ;
2038 return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 eval "$4=yes"
2043 else
2044 eval "$4=no"
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 fi
2050 eval ac_res=\$$4
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054
2055 } # ac_fn_c_check_member
2056
2057 # ac_fn_c_check_func LINENO FUNC VAR
2058 # ----------------------------------
2059 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2060 ac_fn_c_check_func ()
2061 {
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; }
2065 if eval "test \"\${$3+set}\"" = set; then :
2066 $as_echo_n "(cached) " >&6
2067 else
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2070 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2072 #define $2 innocuous_$2
2073
2074 /* System header to define __stub macros and hopefully few prototypes,
2075 which can conflict with char $2 (); below.
2076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2077 <limits.h> exists even on freestanding compilers. */
2078
2079 #ifdef __STDC__
2080 # include <limits.h>
2081 #else
2082 # include <assert.h>
2083 #endif
2084
2085 #undef $2
2086
2087 /* Override any GCC internal prototype to avoid an error.
2088 Use char because int might match the return type of a GCC
2089 builtin and then its argument prototype would still apply. */
2090 #ifdef __cplusplus
2091 extern "C"
2092 #endif
2093 char $2 ();
2094 /* The GNU C library defines this for functions which it implements
2095 to always fail with ENOSYS. Some functions are actually named
2096 something starting with __ and the normal name is an alias. */
2097 #if defined __stub_$2 || defined __stub___$2
2098 choke me
2099 #endif
2100
2101 int
2102 main ()
2103 {
2104 return $2 ();
2105 ;
2106 return 0;
2107 }
2108 _ACEOF
2109 if ac_fn_c_try_link "$LINENO"; then :
2110 eval "$3=yes"
2111 else
2112 eval "$3=no"
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext \
2115 conftest$ac_exeext conftest.$ac_ext
2116 fi
2117 eval ac_res=\$$3
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119 $as_echo "$ac_res" >&6; }
2120 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2121
2122 } # ac_fn_c_check_func
2123
2124 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2125 # -------------------------------------------
2126 # Tests whether TYPE exists after having included INCLUDES, setting cache
2127 # variable VAR accordingly.
2128 ac_fn_c_check_type ()
2129 {
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2132 $as_echo_n "checking for $2... " >&6; }
2133 if eval "test \"\${$3+set}\"" = set; then :
2134 $as_echo_n "(cached) " >&6
2135 else
2136 eval "$3=no"
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2139 $4
2140 int
2141 main ()
2142 {
2143 if (sizeof ($2))
2144 return 0;
2145 ;
2146 return 0;
2147 }
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2152 $4
2153 int
2154 main ()
2155 {
2156 if (sizeof (($2)))
2157 return 0;
2158 ;
2159 return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163
2164 else
2165 eval "$3=yes"
2166 fi
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 fi
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 fi
2171 eval ac_res=\$$3
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173 $as_echo "$ac_res" >&6; }
2174 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2175
2176 } # ac_fn_c_check_type
2177 cat >config.log <<_ACEOF
2178 This file contains any messages produced by compilers while
2179 running configure, to aid debugging if configure makes a mistake.
2180
2181 It was created by emacs $as_me 24.0.50, which was
2182 generated by GNU Autoconf 2.67. Invocation command line was
2183
2184 $ $0 $@
2185
2186 _ACEOF
2187 exec 5>>config.log
2188 {
2189 cat <<_ASUNAME
2190 ## --------- ##
2191 ## Platform. ##
2192 ## --------- ##
2193
2194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2199
2200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2201 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2202
2203 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2204 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2206 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2207 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2208 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2209 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2210
2211 _ASUNAME
2212
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 for as_dir in $PATH
2215 do
2216 IFS=$as_save_IFS
2217 test -z "$as_dir" && as_dir=.
2218 $as_echo "PATH: $as_dir"
2219 done
2220 IFS=$as_save_IFS
2221
2222 } >&5
2223
2224 cat >&5 <<_ACEOF
2225
2226
2227 ## ----------- ##
2228 ## Core tests. ##
2229 ## ----------- ##
2230
2231 _ACEOF
2232
2233
2234 # Keep a trace of the command line.
2235 # Strip out --no-create and --no-recursion so they do not pile up.
2236 # Strip out --silent because we don't want to record it for future runs.
2237 # Also quote any args containing shell meta-characters.
2238 # Make two passes to allow for proper duplicate-argument suppression.
2239 ac_configure_args=
2240 ac_configure_args0=
2241 ac_configure_args1=
2242 ac_must_keep_next=false
2243 for ac_pass in 1 2
2244 do
2245 for ac_arg
2246 do
2247 case $ac_arg in
2248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2250 | -silent | --silent | --silen | --sile | --sil)
2251 continue ;;
2252 *\'*)
2253 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2254 esac
2255 case $ac_pass in
2256 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2257 2)
2258 as_fn_append ac_configure_args1 " '$ac_arg'"
2259 if test $ac_must_keep_next = true; then
2260 ac_must_keep_next=false # Got value, back to normal.
2261 else
2262 case $ac_arg in
2263 *=* | --config-cache | -C | -disable-* | --disable-* \
2264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2266 | -with-* | --with-* | -without-* | --without-* | --x)
2267 case "$ac_configure_args0 " in
2268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2269 esac
2270 ;;
2271 -* ) ac_must_keep_next=true ;;
2272 esac
2273 fi
2274 as_fn_append ac_configure_args " '$ac_arg'"
2275 ;;
2276 esac
2277 done
2278 done
2279 { ac_configure_args0=; unset ac_configure_args0;}
2280 { ac_configure_args1=; unset ac_configure_args1;}
2281
2282 # When interrupted or exit'd, cleanup temporary files, and complete
2283 # config.log. We remove comments because anyway the quotes in there
2284 # would cause problems or look ugly.
2285 # WARNING: Use '\'' to represent an apostrophe within the trap.
2286 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2287 trap 'exit_status=$?
2288 # Save into config.log some information that might help in debugging.
2289 {
2290 echo
2291
2292 $as_echo "## ---------------- ##
2293 ## Cache variables. ##
2294 ## ---------------- ##"
2295 echo
2296 # The following way of writing the cache mishandles newlines in values,
2297 (
2298 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2299 eval ac_val=\$$ac_var
2300 case $ac_val in #(
2301 *${as_nl}*)
2302 case $ac_var in #(
2303 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2304 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2305 esac
2306 case $ac_var in #(
2307 _ | IFS | as_nl) ;; #(
2308 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2309 *) { eval $ac_var=; unset $ac_var;} ;;
2310 esac ;;
2311 esac
2312 done
2313 (set) 2>&1 |
2314 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2315 *${as_nl}ac_space=\ *)
2316 sed -n \
2317 "s/'\''/'\''\\\\'\'''\''/g;
2318 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2319 ;; #(
2320 *)
2321 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2322 ;;
2323 esac |
2324 sort
2325 )
2326 echo
2327
2328 $as_echo "## ----------------- ##
2329 ## Output variables. ##
2330 ## ----------------- ##"
2331 echo
2332 for ac_var in $ac_subst_vars
2333 do
2334 eval ac_val=\$$ac_var
2335 case $ac_val in
2336 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337 esac
2338 $as_echo "$ac_var='\''$ac_val'\''"
2339 done | sort
2340 echo
2341
2342 if test -n "$ac_subst_files"; then
2343 $as_echo "## ------------------- ##
2344 ## File substitutions. ##
2345 ## ------------------- ##"
2346 echo
2347 for ac_var in $ac_subst_files
2348 do
2349 eval ac_val=\$$ac_var
2350 case $ac_val in
2351 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2352 esac
2353 $as_echo "$ac_var='\''$ac_val'\''"
2354 done | sort
2355 echo
2356 fi
2357
2358 if test -s confdefs.h; then
2359 $as_echo "## ----------- ##
2360 ## confdefs.h. ##
2361 ## ----------- ##"
2362 echo
2363 cat confdefs.h
2364 echo
2365 fi
2366 test "$ac_signal" != 0 &&
2367 $as_echo "$as_me: caught signal $ac_signal"
2368 $as_echo "$as_me: exit $exit_status"
2369 } >&5
2370 rm -f core *.core core.conftest.* &&
2371 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2372 exit $exit_status
2373 ' 0
2374 for ac_signal in 1 2 13 15; do
2375 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2376 done
2377 ac_signal=0
2378
2379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2380 rm -f -r conftest* confdefs.h
2381
2382 $as_echo "/* confdefs.h */" > confdefs.h
2383
2384 # Predefined preprocessor variables.
2385
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_NAME "$PACKAGE_NAME"
2388 _ACEOF
2389
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2392 _ACEOF
2393
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2396 _ACEOF
2397
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_STRING "$PACKAGE_STRING"
2400 _ACEOF
2401
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2404 _ACEOF
2405
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_URL "$PACKAGE_URL"
2408 _ACEOF
2409
2410
2411 # Let the site file select an alternate cache file if it wants to.
2412 # Prefer an explicitly selected file to automatically selected ones.
2413 ac_site_file1=NONE
2414 ac_site_file2=NONE
2415 if test -n "$CONFIG_SITE"; then
2416 # We do not want a PATH search for config.site.
2417 case $CONFIG_SITE in #((
2418 -*) ac_site_file1=./$CONFIG_SITE;;
2419 */*) ac_site_file1=$CONFIG_SITE;;
2420 *) ac_site_file1=./$CONFIG_SITE;;
2421 esac
2422 elif test "x$prefix" != xNONE; then
2423 ac_site_file1=$prefix/share/config.site
2424 ac_site_file2=$prefix/etc/config.site
2425 else
2426 ac_site_file1=$ac_default_prefix/share/config.site
2427 ac_site_file2=$ac_default_prefix/etc/config.site
2428 fi
2429 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2430 do
2431 test "x$ac_site_file" = xNONE && continue
2432 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2434 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2435 sed 's/^/| /' "$ac_site_file" >&5
2436 . "$ac_site_file" \
2437 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2439 as_fn_error $? "failed to load site script $ac_site_file
2440 See \`config.log' for more details" "$LINENO" 5; }
2441 fi
2442 done
2443
2444 if test -r "$cache_file"; then
2445 # Some versions of bash will fail to source /dev/null (special files
2446 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2447 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2449 $as_echo "$as_me: loading cache $cache_file" >&6;}
2450 case $cache_file in
2451 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2452 *) . "./$cache_file";;
2453 esac
2454 fi
2455 else
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2457 $as_echo "$as_me: creating cache $cache_file" >&6;}
2458 >$cache_file
2459 fi
2460
2461 as_fn_append ac_header_list " stdlib.h"
2462 as_fn_append ac_header_list " unistd.h"
2463 as_fn_append ac_header_list " sys/param.h"
2464 as_fn_append ac_header_list " sys/time.h"
2465 as_fn_append ac_func_list " alarm"
2466 # Check that the precious variables saved in the cache have kept the same
2467 # value.
2468 ac_cache_corrupted=false
2469 for ac_var in $ac_precious_vars; do
2470 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2471 eval ac_new_set=\$ac_env_${ac_var}_set
2472 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2473 eval ac_new_val=\$ac_env_${ac_var}_value
2474 case $ac_old_set,$ac_new_set in
2475 set,)
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2477 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2478 ac_cache_corrupted=: ;;
2479 ,set)
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2481 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2482 ac_cache_corrupted=: ;;
2483 ,);;
2484 *)
2485 if test "x$ac_old_val" != "x$ac_new_val"; then
2486 # differences in whitespace do not lead to failure.
2487 ac_old_val_w=`echo x $ac_old_val`
2488 ac_new_val_w=`echo x $ac_new_val`
2489 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2491 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2492 ac_cache_corrupted=:
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2495 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2496 eval $ac_var=\$ac_old_val
2497 fi
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2499 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2501 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2502 fi;;
2503 esac
2504 # Pass precious variables to config.status.
2505 if test "$ac_new_set" = set; then
2506 case $ac_new_val in
2507 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2508 *) ac_arg=$ac_var=$ac_new_val ;;
2509 esac
2510 case " $ac_configure_args " in
2511 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2512 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2513 esac
2514 fi
2515 done
2516 if $ac_cache_corrupted; then
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2520 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2521 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2522 fi
2523 ## -------------------- ##
2524 ## Main body of script. ##
2525 ## -------------------- ##
2526
2527 ac_ext=c
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532
2533
2534 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2535
2536
2537
2538 test "$program_prefix" != NONE &&
2539 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2540 # Use a double $ so make ignores it.
2541 test "$program_suffix" != NONE &&
2542 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2543 # Double any \ or $.
2544 # By default was `s,x,x', remove it if useless.
2545 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2546 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2547
2548
2549 lispdir='${datadir}/emacs/${version}/lisp'
2550 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2551 '${datadir}/emacs/site-lisp'
2552 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2553 etcdir='${datadir}/emacs/${version}/etc'
2554 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2555 docdir='${datadir}/emacs/${version}/etc'
2556 gamedir='${localstatedir}/games/emacs'
2557
2558
2559
2560
2561 # Check whether --with-pop was given.
2562 if test "${with_pop+set}" = set; then :
2563 withval=$with_pop;
2564 else
2565 with_pop=yes
2566 fi
2567
2568 if test "$with_pop" = yes; then
2569 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2570
2571 fi
2572
2573
2574 # Check whether --with-kerberos was given.
2575 if test "${with_kerberos+set}" = set; then :
2576 withval=$with_kerberos;
2577 else
2578 with_kerberos=no
2579 fi
2580
2581 if test "$with_kerberos" != no; then
2582 $as_echo "#define KERBEROS 1" >>confdefs.h
2583
2584 fi
2585
2586
2587 # Check whether --with-kerberos5 was given.
2588 if test "${with_kerberos5+set}" = set; then :
2589 withval=$with_kerberos5;
2590 else
2591 with_kerberos5=no
2592 fi
2593
2594 if test "${with_kerberos5}" != no; then
2595 if test "${with_kerberos}" = no; then
2596 with_kerberos=yes
2597 $as_echo "#define KERBEROS 1" >>confdefs.h
2598
2599 fi
2600
2601 $as_echo "#define KERBEROS5 1" >>confdefs.h
2602
2603 fi
2604
2605
2606 # Check whether --with-hesiod was given.
2607 if test "${with_hesiod+set}" = set; then :
2608 withval=$with_hesiod;
2609 else
2610 with_hesiod=no
2611 fi
2612
2613 if test "$with_hesiod" != no; then
2614
2615 $as_echo "#define HESIOD 1" >>confdefs.h
2616
2617 fi
2618
2619
2620 # Check whether --with-mmdf was given.
2621 if test "${with_mmdf+set}" = set; then :
2622 withval=$with_mmdf;
2623 else
2624 with_mmdf=no
2625 fi
2626
2627 if test "$with_mmdf" != no; then
2628
2629 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2630
2631 fi
2632
2633
2634 # Check whether --with-mail-unlink was given.
2635 if test "${with_mail_unlink+set}" = set; then :
2636 withval=$with_mail_unlink;
2637 else
2638 with_mail_unlink=no
2639 fi
2640
2641 if test "$with_mail_unlink" != no; then
2642
2643 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2644
2645 fi
2646
2647
2648 # Check whether --with-mailhost was given.
2649 if test "${with_mailhost+set}" = set; then :
2650 withval=$with_mailhost;
2651 cat >>confdefs.h <<_ACEOF
2652 #define MAILHOST "$withval"
2653 _ACEOF
2654
2655 fi
2656
2657
2658
2659 # Check whether --with-sound was given.
2660 if test "${with_sound+set}" = set; then :
2661 withval=$with_sound;
2662 else
2663 with_sound=yes
2664 fi
2665
2666
2667
2668 # Check whether --with-sync-input was given.
2669 if test "${with_sync_input+set}" = set; then :
2670 withval=$with_sync_input;
2671 else
2672 with_sync_input=yes
2673 fi
2674
2675 if test "$with_sync_input" = yes; then
2676
2677 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2678
2679 fi
2680
2681
2682 # Check whether --with-x-toolkit was given.
2683 if test "${with_x_toolkit+set}" = set; then :
2684 withval=$with_x_toolkit; case "${withval}" in
2685 y | ye | yes ) val=gtk ;;
2686 n | no ) val=no ;;
2687 l | lu | luc | luci | lucid ) val=lucid ;;
2688 a | at | ath | athe | athen | athena ) val=athena ;;
2689 m | mo | mot | moti | motif ) val=motif ;;
2690 g | gt | gtk ) val=gtk ;;
2691 gtk3 ) val=gtk3 ;;
2692 * )
2693 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
2694 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2695 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2696 ;;
2697 esac
2698 with_x_toolkit=$val
2699
2700 fi
2701
2702
2703
2704 # Check whether --with-xpm was given.
2705 if test "${with_xpm+set}" = set; then :
2706 withval=$with_xpm;
2707 else
2708 with_xpm=yes
2709 fi
2710
2711
2712 # Check whether --with-jpeg was given.
2713 if test "${with_jpeg+set}" = set; then :
2714 withval=$with_jpeg;
2715 else
2716 with_jpeg=yes
2717 fi
2718
2719
2720 # Check whether --with-tiff was given.
2721 if test "${with_tiff+set}" = set; then :
2722 withval=$with_tiff;
2723 else
2724 with_tiff=yes
2725 fi
2726
2727
2728 # Check whether --with-gif was given.
2729 if test "${with_gif+set}" = set; then :
2730 withval=$with_gif;
2731 else
2732 with_gif=yes
2733 fi
2734
2735
2736 # Check whether --with-png was given.
2737 if test "${with_png+set}" = set; then :
2738 withval=$with_png;
2739 else
2740 with_png=yes
2741 fi
2742
2743
2744 # Check whether --with-rsvg was given.
2745 if test "${with_rsvg+set}" = set; then :
2746 withval=$with_rsvg;
2747 else
2748 with_rsvg=yes
2749 fi
2750
2751
2752 # Check whether --with-xml2 was given.
2753 if test "${with_xml2+set}" = set; then :
2754 withval=$with_xml2;
2755 else
2756 with_xml2=yes
2757 fi
2758
2759
2760 # Check whether --with-imagemagick was given.
2761 if test "${with_imagemagick+set}" = set; then :
2762 withval=$with_imagemagick;
2763 else
2764 with_imagemagick=yes
2765 fi
2766
2767
2768
2769 # Check whether --with-xft was given.
2770 if test "${with_xft+set}" = set; then :
2771 withval=$with_xft;
2772 else
2773 with_xft=yes
2774 fi
2775
2776
2777 # Check whether --with-libotf was given.
2778 if test "${with_libotf+set}" = set; then :
2779 withval=$with_libotf;
2780 else
2781 with_libotf=yes
2782 fi
2783
2784
2785 # Check whether --with-m17n-flt was given.
2786 if test "${with_m17n_flt+set}" = set; then :
2787 withval=$with_m17n_flt;
2788 else
2789 with_m17n_flt=yes
2790 fi
2791
2792
2793
2794 # Check whether --with-toolkit-scroll-bars was given.
2795 if test "${with_toolkit_scroll_bars+set}" = set; then :
2796 withval=$with_toolkit_scroll_bars;
2797 else
2798 with_toolkit_scroll_bars=yes
2799 fi
2800
2801
2802 # Check whether --with-xaw3d was given.
2803 if test "${with_xaw3d+set}" = set; then :
2804 withval=$with_xaw3d;
2805 else
2806 with_xaw3d=yes
2807 fi
2808
2809
2810 # Check whether --with-xim was given.
2811 if test "${with_xim+set}" = set; then :
2812 withval=$with_xim;
2813 else
2814 with_xim=yes
2815 fi
2816
2817
2818 # Check whether --with-ns was given.
2819 if test "${with_ns+set}" = set; then :
2820 withval=$with_ns;
2821 else
2822 with_ns=no
2823 fi
2824
2825
2826
2827 # Check whether --with-gpm was given.
2828 if test "${with_gpm+set}" = set; then :
2829 withval=$with_gpm;
2830 else
2831 with_gpm=yes
2832 fi
2833
2834
2835 # Check whether --with-dbus was given.
2836 if test "${with_dbus+set}" = set; then :
2837 withval=$with_dbus;
2838 else
2839 with_dbus=yes
2840 fi
2841
2842
2843 # Check whether --with-gconf was given.
2844 if test "${with_gconf+set}" = set; then :
2845 withval=$with_gconf;
2846 else
2847 with_gconf=yes
2848 fi
2849
2850
2851 # Check whether --with-selinux was given.
2852 if test "${with_selinux+set}" = set; then :
2853 withval=$with_selinux;
2854 else
2855 with_selinux=yes
2856 fi
2857
2858
2859 # Check whether --with-gnutls was given.
2860 if test "${with_gnutls+set}" = set; then :
2861 withval=$with_gnutls;
2862 else
2863 with_gnutls=yes
2864 fi
2865
2866
2867 ## For the times when you want to build Emacs but don't have
2868 ## a suitable makeinfo, and can live without the manuals.
2869
2870 # Check whether --with-makeinfo was given.
2871 if test "${with_makeinfo+set}" = set; then :
2872 withval=$with_makeinfo;
2873 else
2874 with_makeinfo=yes
2875 fi
2876
2877
2878 ## This is an option because I do not know if all info/man support
2879 ## compressed files, nor how to test if they do so.
2880
2881 # Check whether --with-compress-info was given.
2882 if test "${with_compress_info+set}" = set; then :
2883 withval=$with_compress_info;
2884 else
2885 with_compress_info=yes
2886 fi
2887
2888 if test $with_compress_info = yes; then
2889 GZIP_INFO=yes
2890 else
2891 GZIP_INFO=
2892 fi
2893
2894
2895
2896 # Check whether --with-pkg-config-prog was given.
2897 if test "${with_pkg_config_prog+set}" = set; then :
2898 withval=$with_pkg_config_prog;
2899 fi
2900
2901 if test "X${with_pkg_config_prog}" != X; then
2902 if test "${with_pkg_config_prog}" != yes; then
2903 PKG_CONFIG="${with_pkg_config_prog}"
2904 fi
2905 fi
2906
2907 CRT_DIR=
2908
2909 # Check whether --with-crt-dir was given.
2910 if test "${with_crt_dir+set}" = set; then :
2911 withval=$with_crt_dir;
2912 fi
2913
2914 CRT_DIR="${with_crt_dir}"
2915
2916
2917 # Check whether --with-gameuser was given.
2918 if test "${with_gameuser+set}" = set; then :
2919 withval=$with_gameuser;
2920 fi
2921
2922 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
2923 && gameuser="${with_gameuser}"
2924 test "X$gameuser" = X && gameuser=games
2925
2926
2927 # Check whether --with-gnustep-conf was given.
2928 if test "${with_gnustep_conf+set}" = set; then :
2929 withval=$with_gnustep_conf;
2930 fi
2931
2932 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2933 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2934 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2935 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2936
2937 # Check whether --enable-ns-self-contained was given.
2938 if test "${enable_ns_self_contained+set}" = set; then :
2939 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2940 else
2941 EN_NS_SELF_CONTAINED=yes
2942 fi
2943
2944
2945 # Check whether --enable-asserts was given.
2946 if test "${enable_asserts+set}" = set; then :
2947 enableval=$enable_asserts; USE_XASSERTS=$enableval
2948 else
2949 USE_XASSERTS=no
2950 fi
2951
2952
2953 # Check whether --enable-maintainer-mode was given.
2954 if test "${enable_maintainer_mode+set}" = set; then :
2955 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2956 else
2957 USE_MAINTAINER_MODE=no
2958 fi
2959
2960 if test $USE_MAINTAINER_MODE = yes; then
2961 MAINT=
2962 else
2963 MAINT=#
2964 fi
2965
2966
2967 # Check whether --enable-locallisppath was given.
2968 if test "${enable_locallisppath+set}" = set; then :
2969 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2970 locallisppath=
2971 elif test "${enableval}" != "yes"; then
2972 locallisppath=${enableval}
2973 fi
2974 fi
2975
2976
2977 # Check whether --enable-checking was given.
2978 if test "${enable_checking+set}" = set; then :
2979 enableval=$enable_checking; ac_checking_flags="${enableval}"
2980 fi
2981
2982 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2983 for check in $ac_checking_flags
2984 do
2985 case $check in
2986 # these set all the flags to specific states
2987 yes) ac_enable_checking=1 ;;
2988 no) ac_enable_checking= ;
2989 ac_gc_check_stringbytes= ;
2990 ac_gc_check_string_overrun= ;
2991 ac_gc_check_string_free_list= ;
2992 ac_xmalloc_overrun= ;
2993 ac_gc_check_cons_list= ;;
2994 all) ac_enable_checking=1 ;
2995 ac_gc_check_stringbytes=1 ;
2996 ac_gc_check_string_overrun=1 ;
2997 ac_gc_check_string_free_list=1 ;
2998 ac_xmalloc_overrun=1 ;
2999 ac_gc_check_cons_list=1 ;;
3000 # these enable particular checks
3001 stringbytes) ac_gc_check_stringbytes=1 ;;
3002 stringoverrun) ac_gc_check_string_overrun=1 ;;
3003 stringfreelist) ac_gc_check_string_free_list=1 ;;
3004 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3005 conslist) ac_gc_check_cons_list=1 ;;
3006 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3007 esac
3008 done
3009 IFS="$ac_save_IFS"
3010
3011 if test x$ac_enable_checking != x ; then
3012
3013 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3014
3015 fi
3016 if test x$ac_gc_check_stringbytes != x ; then
3017
3018 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3019
3020 fi
3021 if test x$ac_gc_check_stringoverrun != x ; then
3022
3023 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3024
3025 fi
3026 if test x$ac_gc_check_string_free_list != x ; then
3027
3028 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3029
3030 fi
3031 if test x$ac_xmalloc_overrun != x ; then
3032
3033 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3034
3035 fi
3036 if test x$ac_gc_check_cons_list != x ; then
3037
3038 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3039
3040 fi
3041
3042 # Check whether --enable-use-lisp-union-type was given.
3043 if test "${enable_use_lisp_union_type+set}" = set; then :
3044 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3045
3046 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3047
3048 fi
3049 fi
3050
3051
3052
3053 # Check whether --enable-profiling was given.
3054 if test "${enable_profiling+set}" = set; then :
3055 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3056 fi
3057
3058 if test x$ac_enable_profiling != x ; then
3059 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3060 else
3061 PROFILING_CFLAGS=
3062 fi
3063
3064
3065 # Check whether --enable-autodepend was given.
3066 if test "${enable_autodepend+set}" = set; then :
3067 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3068 else
3069 ac_enable_autodepend=yes
3070 fi
3071
3072
3073 #### Make srcdir absolute, if it isn't already. It's important to
3074 #### avoid running the path through pwd unnecessarily, since pwd can
3075 #### give you automounter prefixes, which can go away. We do all this
3076 #### so Emacs can find its files when run uninstalled.
3077 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3078 unset CDPATH
3079 case "${srcdir}" in
3080 /* ) ;;
3081 . )
3082 ## We may be able to use the $PWD environment variable to make this
3083 ## absolute. But sometimes PWD is inaccurate.
3084 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3085 ## but that tested only for a well-formed and valid PWD,
3086 ## it did not object when PWD was well-formed and valid but just wrong.
3087 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3088 then
3089 srcdir="$PWD"
3090 else
3091 srcdir="`(cd ${srcdir}; pwd)`"
3092 fi
3093 ;;
3094 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3095 esac
3096
3097 #### Check if the source directory already has a configured system in it.
3098 if test `pwd` != `(cd ${srcdir} && pwd)` \
3099 && test -f "${srcdir}/src/config.h" ; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3101 as a build directory right now; it has been configured in its own
3102 right. To configure in another directory as well, you MUST
3103 use GNU make. If you do not have GNU make, then you must
3104 now do \`make distclean' in ${srcdir},
3105 and then run $0 again." >&5
3106 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3107 as a build directory right now; it has been configured in its own
3108 right. To configure in another directory as well, you MUST
3109 use GNU make. If you do not have GNU make, then you must
3110 now do \`make distclean' in ${srcdir},
3111 and then run $0 again." >&2;}
3112 fi
3113
3114 #### Given the configuration name, set machfile and opsysfile to the
3115 #### names of the m/*.h and s/*.h files we should use.
3116
3117 ### Canonicalize the configuration name.
3118
3119 ac_aux_dir=
3120 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3121 if test -f "$ac_dir/install-sh"; then
3122 ac_aux_dir=$ac_dir
3123 ac_install_sh="$ac_aux_dir/install-sh -c"
3124 break
3125 elif test -f "$ac_dir/install.sh"; then
3126 ac_aux_dir=$ac_dir
3127 ac_install_sh="$ac_aux_dir/install.sh -c"
3128 break
3129 elif test -f "$ac_dir/shtool"; then
3130 ac_aux_dir=$ac_dir
3131 ac_install_sh="$ac_aux_dir/shtool install -c"
3132 break
3133 fi
3134 done
3135 if test -z "$ac_aux_dir"; then
3136 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3137 fi
3138
3139 # These three variables are undocumented and unsupported,
3140 # and are intended to be withdrawn in a future Autoconf release.
3141 # They can cause serious problems if a builder's source tree is in a directory
3142 # whose full name contains unusual characters.
3143 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3144 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3145 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3146
3147
3148 # Make sure we can run config.sub.
3149 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3150 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3151
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3153 $as_echo_n "checking build system type... " >&6; }
3154 if test "${ac_cv_build+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 ac_build_alias=$build_alias
3158 test "x$ac_build_alias" = x &&
3159 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3160 test "x$ac_build_alias" = x &&
3161 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3162 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3163 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3164
3165 fi
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3167 $as_echo "$ac_cv_build" >&6; }
3168 case $ac_cv_build in
3169 *-*-*) ;;
3170 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3171 esac
3172 build=$ac_cv_build
3173 ac_save_IFS=$IFS; IFS='-'
3174 set x $ac_cv_build
3175 shift
3176 build_cpu=$1
3177 build_vendor=$2
3178 shift; shift
3179 # Remember, the first character of IFS is used to create $*,
3180 # except with old shells:
3181 build_os=$*
3182 IFS=$ac_save_IFS
3183 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3184
3185
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3187 $as_echo_n "checking host system type... " >&6; }
3188 if test "${ac_cv_host+set}" = set; then :
3189 $as_echo_n "(cached) " >&6
3190 else
3191 if test "x$host_alias" = x; then
3192 ac_cv_host=$ac_cv_build
3193 else
3194 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3195 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3196 fi
3197
3198 fi
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3200 $as_echo "$ac_cv_host" >&6; }
3201 case $ac_cv_host in
3202 *-*-*) ;;
3203 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3204 esac
3205 host=$ac_cv_host
3206 ac_save_IFS=$IFS; IFS='-'
3207 set x $ac_cv_host
3208 shift
3209 host_cpu=$1
3210 host_vendor=$2
3211 shift; shift
3212 # Remember, the first character of IFS is used to create $*,
3213 # except with old shells:
3214 host_os=$*
3215 IFS=$ac_save_IFS
3216 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3217
3218
3219 canonical=$host
3220 configuration=${host_alias-${build_alias-$host}}
3221
3222
3223
3224 ### If you add support for a new configuration, add code to this
3225 ### switch statement to recognize your configuration name and select
3226 ### the appropriate operating system and machine description files.
3227
3228 ### You would hope that you could choose an m/*.h file pretty much
3229 ### based on the machine portion of the configuration name, and an s/*.h
3230 ### file based on the operating system portion. However, it turns out
3231 ### that each m/*.h file is pretty manufacturer-specific - for
3232 ### example mips.h is MIPS
3233 ### So we basically have to have a special case for each
3234 ### configuration name.
3235 ###
3236 ### As far as handling version numbers on operating systems is
3237 ### concerned, make sure things will fail in a fixable way. If
3238 ### /etc/MACHINES doesn't say anything about version numbers, be
3239 ### prepared to handle anything reasonably. If version numbers
3240 ### matter, be sure /etc/MACHINES says something about it.
3241
3242 machine='' opsys='' unported=no
3243 case "${canonical}" in
3244
3245 ## GNU/Linux ports
3246 *-*-linux-gnu*)
3247 opsys=gnu-linux
3248 case ${canonical} in
3249 alpha*) machine=alpha ;;
3250 s390-*) machine=ibms390 ;;
3251 s390x-*) machine=ibms390x ;;
3252 powerpc*) machine=macppc ;;
3253 sparc*) machine=sparc ;;
3254 ia64*) machine=ia64 ;;
3255 m68k*) machine=m68k ;;
3256 x86_64*) machine=amdx86-64 ;;
3257 esac
3258 ;;
3259
3260 ## FreeBSD ports
3261 *-*-freebsd* )
3262 opsys=freebsd
3263 case "${canonical}" in
3264 alpha*) machine=alpha ;;
3265 amd64-*|x86_64-*) machine=amdx86-64 ;;
3266 ia64-*) machine=ia64 ;;
3267 i[3456]86-*) machine=intel386 ;;
3268 powerpc-*) machine=macppc ;;
3269 sparc-*) machine=sparc ;;
3270 sparc64-*) machine=sparc ;;
3271 esac
3272 ;;
3273
3274 ## FreeBSD kernel + glibc based userland
3275 *-*-kfreebsd*gnu* )
3276 opsys=gnu-kfreebsd
3277 case "${canonical}" in
3278 alpha*) machine=alpha ;;
3279 amd64-*|x86_64-*) machine=amdx86-64 ;;
3280 ia64-*) machine=ia64 ;;
3281 i[3456]86-*) machine=intel386 ;;
3282 powerpc-*) machine=macppc ;;
3283 sparc-*) machine=sparc ;;
3284 sparc64-*) machine=sparc ;;
3285 esac
3286 ;;
3287
3288 ## NetBSD ports
3289 *-*-netbsd* )
3290 opsys=netbsd
3291 case "${canonical}" in
3292 alpha*) machine=alpha ;;
3293 x86_64-*) machine=amdx86-64 ;;
3294 i[3456]86-*) machine=intel386 ;;
3295 m68k-*) machine=m68k ;;
3296 powerpc-*) machine=macppc ;;
3297 sparc*-) machine=sparc ;;
3298 vax-*) machine=vax ;;
3299 esac
3300 ;;
3301
3302 ## OpenBSD ports
3303 *-*-openbsd* )
3304 opsys=openbsd
3305 case "${canonical}" in
3306 alpha*) machine=alpha ;;
3307 x86_64-*) machine=amdx86-64 ;;
3308 i386-*) machine=intel386 ;;
3309 powerpc-*) machine=macppc ;;
3310 sparc*) machine=sparc ;;
3311 vax-*) machine=vax ;;
3312 esac
3313 ;;
3314
3315 ## Apple Darwin / Mac OS X
3316 *-apple-darwin* )
3317 case "${canonical}" in
3318 i[3456]86-* ) machine=intel386 ;;
3319 powerpc-* ) machine=macppc ;;
3320 x86_64-* ) machine=amdx86-64 ;;
3321 * ) unported=yes ;;
3322 esac
3323 opsys=darwin
3324 # Define CPP as follows to make autoconf work correctly.
3325 CPP="${CC-cc} -E -no-cpp-precomp"
3326 # Use fink packages if available.
3327 if test -d /sw/include && test -d /sw/lib; then
3328 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3329 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3330 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3331 fi
3332 ;;
3333
3334 ## HP 9000 series 700 and 800, running HP/UX
3335 hppa*-hp-hpux10.2* )
3336 opsys=hpux10-20
3337 ;;
3338 hppa*-hp-hpux1[1-9]* )
3339 opsys=hpux11
3340 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3341 ;;
3342
3343 ## IBM machines
3344 rs6000-ibm-aix4.[23]* )
3345 machine=ibmrs6000 opsys=aix4-2
3346 ;;
3347 powerpc-ibm-aix4.[23]* )
3348 machine=ibmrs6000 opsys=aix4-2
3349 ;;
3350 rs6000-ibm-aix[56]* )
3351 machine=ibmrs6000 opsys=aix4-2
3352 ;;
3353 powerpc-ibm-aix[56]* )
3354 machine=ibmrs6000 opsys=aix4-2
3355 ;;
3356
3357 ## Silicon Graphics machines
3358 ## Iris 4D
3359 mips-sgi-irix6.5 )
3360 machine=iris4d opsys=irix6-5
3361 # Without defining _LANGUAGE_C, things get masked out in the headers
3362 # so that, for instance, grepping for `free' in stdlib.h fails and
3363 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3364 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3365 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3366 ;;
3367
3368 ## Suns
3369 *-sun-solaris* \
3370 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3371 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3372 case "${canonical}" in
3373 i[3456]86-*-* ) machine=intel386 ;;
3374 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3375 sparc* ) machine=sparc ;;
3376 * ) unported=yes ;;
3377 esac
3378 case "${canonical}" in
3379 *-sunos5.6* | *-solaris2.6* )
3380 opsys=sol2-6
3381 NON_GNU_CPP=/usr/ccs/lib/cpp
3382 RANLIB="ar -ts"
3383 ;;
3384 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3385 opsys=sol2-6
3386 emacs_check_sunpro_c=yes
3387 NON_GNU_CPP=/usr/ccs/lib/cpp
3388 ;;
3389 *-sunos5* | *-solaris* )
3390 opsys=sol2-10
3391 emacs_check_sunpro_c=yes
3392 NON_GNU_CPP=/usr/ccs/lib/cpp
3393 ;;
3394 esac
3395 ## Watch out for a compiler that we know will not work.
3396 case "${canonical}" in
3397 *-solaris* | *-sunos5* )
3398 if [ "x$CC" = x/usr/ucb/cc ]; then
3399 ## /usr/ucb/cc doesn't work;
3400 ## we should find some other compiler that does work.
3401 unset CC
3402 fi
3403 ;;
3404 *) ;;
3405 esac
3406 ;;
3407
3408 ## Intel 386 machines where we don't care about the manufacturer.
3409 i[3456]86-*-* )
3410 machine=intel386
3411 case "${canonical}" in
3412 *-cygwin ) opsys=cygwin ;;
3413 *-darwin* ) opsys=darwin
3414 CPP="${CC-cc} -E -no-cpp-precomp"
3415 ;;
3416 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3417 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3418 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3419 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3420 esac
3421 ;;
3422
3423 * )
3424 unported=yes
3425 ;;
3426 esac
3427
3428 ### If the code above didn't choose an operating system, just choose
3429 ### an operating system based on the configuration name. You really
3430 ### only want to use this when you have no idea what the right
3431 ### operating system is; if you know what operating systems a machine
3432 ### runs, it's cleaner to make it explicit in the case statement
3433 ### above.
3434 if test x"${opsys}" = x; then
3435 case "${canonical}" in
3436 *-gnu* ) opsys=gnu ;;
3437 * )
3438 unported=yes
3439 ;;
3440 esac
3441 fi
3442
3443
3444
3445 if test $unported = yes; then
3446 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
3447 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3448 fi
3449
3450 if test -n "$machine"; then
3451 machfile="m/${machine}.h"
3452 else
3453 machfile=
3454 fi
3455 opsysfile="s/${opsys}.h"
3456
3457
3458 #### Choose a compiler.
3459 test -n "$CC" && cc_specified=yes
3460
3461 # Save the value of CFLAGS that the user specified.
3462 SPECIFIED_CFLAGS="$CFLAGS"
3463
3464 ac_ext=c
3465 ac_cpp='$CPP $CPPFLAGS'
3466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469 if test -n "$ac_tool_prefix"; then
3470 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3471 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 $as_echo_n "checking for $ac_word... " >&6; }
3474 if test "${ac_cv_prog_CC+set}" = set; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 if test -n "$CC"; then
3478 ac_cv_prog_CC="$CC" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483 IFS=$as_save_IFS
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3487 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 break 2
3490 fi
3491 done
3492 done
3493 IFS=$as_save_IFS
3494
3495 fi
3496 fi
3497 CC=$ac_cv_prog_CC
3498 if test -n "$CC"; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3501 else
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 fi
3505
3506
3507 fi
3508 if test -z "$ac_cv_prog_CC"; then
3509 ac_ct_CC=$CC
3510 # Extract the first word of "gcc", so it can be a program name with args.
3511 set dummy gcc; ac_word=$2
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 $as_echo_n "checking for $ac_word... " >&6; }
3514 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3515 $as_echo_n "(cached) " >&6
3516 else
3517 if test -n "$ac_ct_CC"; then
3518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3519 else
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3522 do
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3527 ac_cv_prog_ac_ct_CC="gcc"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 break 2
3530 fi
3531 done
3532 done
3533 IFS=$as_save_IFS
3534
3535 fi
3536 fi
3537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538 if test -n "$ac_ct_CC"; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3540 $as_echo "$ac_ct_CC" >&6; }
3541 else
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3544 fi
3545
3546 if test "x$ac_ct_CC" = x; then
3547 CC=""
3548 else
3549 case $cross_compiling:$ac_tool_warned in
3550 yes:)
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3553 ac_tool_warned=yes ;;
3554 esac
3555 CC=$ac_ct_CC
3556 fi
3557 else
3558 CC="$ac_cv_prog_CC"
3559 fi
3560
3561 if test -z "$CC"; then
3562 if test -n "$ac_tool_prefix"; then
3563 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3564 set dummy ${ac_tool_prefix}cc; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if test "${ac_cv_prog_CC+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 if test -n "$CC"; then
3571 ac_cv_prog_CC="$CC" # Let the user override the test.
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3575 do
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3580 ac_cv_prog_CC="${ac_tool_prefix}cc"
3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 break 2
3583 fi
3584 done
3585 done
3586 IFS=$as_save_IFS
3587
3588 fi
3589 fi
3590 CC=$ac_cv_prog_CC
3591 if test -n "$CC"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3593 $as_echo "$CC" >&6; }
3594 else
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3597 fi
3598
3599
3600 fi
3601 fi
3602 if test -z "$CC"; then
3603 # Extract the first word of "cc", so it can be a program name with args.
3604 set dummy cc; ac_word=$2
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 $as_echo_n "checking for $ac_word... " >&6; }
3607 if test "${ac_cv_prog_CC+set}" = set; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 if test -n "$CC"; then
3611 ac_cv_prog_CC="$CC" # Let the user override the test.
3612 else
3613 ac_prog_rejected=no
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3616 do
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3621 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3622 ac_prog_rejected=yes
3623 continue
3624 fi
3625 ac_cv_prog_CC="cc"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 break 2
3628 fi
3629 done
3630 done
3631 IFS=$as_save_IFS
3632
3633 if test $ac_prog_rejected = yes; then
3634 # We found a bogon in the path, so make sure we never use it.
3635 set dummy $ac_cv_prog_CC
3636 shift
3637 if test $# != 0; then
3638 # We chose a different compiler from the bogus one.
3639 # However, it has the same basename, so the bogon will be chosen
3640 # first if we set CC to just the basename; use the full file name.
3641 shift
3642 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3643 fi
3644 fi
3645 fi
3646 fi
3647 CC=$ac_cv_prog_CC
3648 if test -n "$CC"; then
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3650 $as_echo "$CC" >&6; }
3651 else
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3654 fi
3655
3656
3657 fi
3658 if test -z "$CC"; then
3659 if test -n "$ac_tool_prefix"; then
3660 for ac_prog in cl.exe
3661 do
3662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3665 $as_echo_n "checking for $ac_word... " >&6; }
3666 if test "${ac_cv_prog_CC+set}" = set; then :
3667 $as_echo_n "(cached) " >&6
3668 else
3669 if test -n "$CC"; then
3670 ac_cv_prog_CC="$CC" # Let the user override the test.
3671 else
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3674 do
3675 IFS=$as_save_IFS
3676 test -z "$as_dir" && as_dir=.
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3679 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3681 break 2
3682 fi
3683 done
3684 done
3685 IFS=$as_save_IFS
3686
3687 fi
3688 fi
3689 CC=$ac_cv_prog_CC
3690 if test -n "$CC"; then
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3692 $as_echo "$CC" >&6; }
3693 else
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695 $as_echo "no" >&6; }
3696 fi
3697
3698
3699 test -n "$CC" && break
3700 done
3701 fi
3702 if test -z "$CC"; then
3703 ac_ct_CC=$CC
3704 for ac_prog in cl.exe
3705 do
3706 # Extract the first word of "$ac_prog", so it can be a program name with args.
3707 set dummy $ac_prog; ac_word=$2
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 if test -n "$ac_ct_CC"; then
3714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3718 do
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723 ac_cv_prog_ac_ct_CC="$ac_prog"
3724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 break 2
3726 fi
3727 done
3728 done
3729 IFS=$as_save_IFS
3730
3731 fi
3732 fi
3733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3734 if test -n "$ac_ct_CC"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3736 $as_echo "$ac_ct_CC" >&6; }
3737 else
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3740 fi
3741
3742
3743 test -n "$ac_ct_CC" && break
3744 done
3745
3746 if test "x$ac_ct_CC" = x; then
3747 CC=""
3748 else
3749 case $cross_compiling:$ac_tool_warned in
3750 yes:)
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3753 ac_tool_warned=yes ;;
3754 esac
3755 CC=$ac_ct_CC
3756 fi
3757 fi
3758
3759 fi
3760
3761
3762 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error $? "no acceptable C compiler found in \$PATH
3765 See \`config.log' for more details" "$LINENO" 5; }
3766
3767 # Provide some information about the compiler.
3768 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3769 set X $ac_compile
3770 ac_compiler=$2
3771 for ac_option in --version -v -V -qversion; do
3772 { { ac_try="$ac_compiler $ac_option >&5"
3773 case "(($ac_try" in
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3776 esac
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 $as_echo "$ac_try_echo"; } >&5
3779 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3780 ac_status=$?
3781 if test -s conftest.err; then
3782 sed '10a\
3783 ... rest of stderr output deleted ...
3784 10q' conftest.err >conftest.er1
3785 cat conftest.er1 >&5
3786 fi
3787 rm -f conftest.er1 conftest.err
3788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789 test $ac_status = 0; }
3790 done
3791
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794
3795 int
3796 main ()
3797 {
3798
3799 ;
3800 return 0;
3801 }
3802 _ACEOF
3803 ac_clean_files_save=$ac_clean_files
3804 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3805 # Try to create an executable without -o first, disregard a.out.
3806 # It will help us diagnose broken compilers, and finding out an intuition
3807 # of exeext.
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3809 $as_echo_n "checking whether the C compiler works... " >&6; }
3810 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3811
3812 # The possible output files:
3813 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3814
3815 ac_rmfiles=
3816 for ac_file in $ac_files
3817 do
3818 case $ac_file in
3819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3820 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3821 esac
3822 done
3823 rm -f $ac_rmfiles
3824
3825 if { { ac_try="$ac_link_default"
3826 case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829 esac
3830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831 $as_echo "$ac_try_echo"; } >&5
3832 (eval "$ac_link_default") 2>&5
3833 ac_status=$?
3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835 test $ac_status = 0; }; then :
3836 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3837 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3838 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3839 # so that the user can short-circuit this test for compilers unknown to
3840 # Autoconf.
3841 for ac_file in $ac_files ''
3842 do
3843 test -f "$ac_file" || continue
3844 case $ac_file in
3845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3846 ;;
3847 [ab].out )
3848 # We found the default executable, but exeext='' is most
3849 # certainly right.
3850 break;;
3851 *.* )
3852 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3853 then :; else
3854 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3855 fi
3856 # We set ac_cv_exeext here because the later test for it is not
3857 # safe: cross compilers may not add the suffix if given an `-o'
3858 # argument, so we may need to know it at that point already.
3859 # Even if this section looks crufty: it has the advantage of
3860 # actually working.
3861 break;;
3862 * )
3863 break;;
3864 esac
3865 done
3866 test "$ac_cv_exeext" = no && ac_cv_exeext=
3867
3868 else
3869 ac_file=''
3870 fi
3871 if test -z "$ac_file"; then :
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3874 $as_echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3879 as_fn_error 77 "C compiler cannot create executables
3880 See \`config.log' for more details" "$LINENO" 5; }
3881 else
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3883 $as_echo "yes" >&6; }
3884 fi
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3886 $as_echo_n "checking for C compiler default output file name... " >&6; }
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3888 $as_echo "$ac_file" >&6; }
3889 ac_exeext=$ac_cv_exeext
3890
3891 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3892 ac_clean_files=$ac_clean_files_save
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3894 $as_echo_n "checking for suffix of executables... " >&6; }
3895 if { { ac_try="$ac_link"
3896 case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3899 esac
3900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901 $as_echo "$ac_try_echo"; } >&5
3902 (eval "$ac_link") 2>&5
3903 ac_status=$?
3904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905 test $ac_status = 0; }; then :
3906 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3907 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3908 # work properly (i.e., refer to `conftest.exe'), while it won't with
3909 # `rm'.
3910 for ac_file in conftest.exe conftest conftest.*; do
3911 test -f "$ac_file" || continue
3912 case $ac_file in
3913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3914 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3915 break;;
3916 * ) break;;
3917 esac
3918 done
3919 else
3920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3922 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3923 See \`config.log' for more details" "$LINENO" 5; }
3924 fi
3925 rm -f conftest conftest$ac_cv_exeext
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3927 $as_echo "$ac_cv_exeext" >&6; }
3928
3929 rm -f conftest.$ac_ext
3930 EXEEXT=$ac_cv_exeext
3931 ac_exeext=$EXEEXT
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934 #include <stdio.h>
3935 int
3936 main ()
3937 {
3938 FILE *f = fopen ("conftest.out", "w");
3939 return ferror (f) || fclose (f) != 0;
3940
3941 ;
3942 return 0;
3943 }
3944 _ACEOF
3945 ac_clean_files="$ac_clean_files conftest.out"
3946 # Check that the compiler produces executables we can run. If not, either
3947 # the compiler is broken, or we cross compile.
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3949 $as_echo_n "checking whether we are cross compiling... " >&6; }
3950 if test "$cross_compiling" != yes; then
3951 { { ac_try="$ac_link"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_link") 2>&5
3959 ac_status=$?
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }
3962 if { ac_try='./conftest$ac_cv_exeext'
3963 { { case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966 esac
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 $as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_try") 2>&5
3970 ac_status=$?
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }; }; then
3973 cross_compiling=no
3974 else
3975 if test "$cross_compiling" = maybe; then
3976 cross_compiling=yes
3977 else
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error $? "cannot run C compiled programs.
3981 If you meant to cross compile, use \`--host'.
3982 See \`config.log' for more details" "$LINENO" 5; }
3983 fi
3984 fi
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3987 $as_echo "$cross_compiling" >&6; }
3988
3989 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3990 ac_clean_files=$ac_clean_files_save
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3992 $as_echo_n "checking for suffix of object files... " >&6; }
3993 if test "${ac_cv_objext+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998
3999 int
4000 main ()
4001 {
4002
4003 ;
4004 return 0;
4005 }
4006 _ACEOF
4007 rm -f conftest.o conftest.obj
4008 if { { ac_try="$ac_compile"
4009 case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015 (eval "$ac_compile") 2>&5
4016 ac_status=$?
4017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018 test $ac_status = 0; }; then :
4019 for ac_file in conftest.o conftest.obj conftest.*; do
4020 test -f "$ac_file" || continue;
4021 case $ac_file in
4022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4024 break;;
4025 esac
4026 done
4027 else
4028 $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 as_fn_error $? "cannot compute suffix of object files: cannot compile
4034 See \`config.log' for more details" "$LINENO" 5; }
4035 fi
4036 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4039 $as_echo "$ac_cv_objext" >&6; }
4040 OBJEXT=$ac_cv_objext
4041 ac_objext=$OBJEXT
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4043 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4044 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049
4050 int
4051 main ()
4052 {
4053 #ifndef __GNUC__
4054 choke me
4055 #endif
4056
4057 ;
4058 return 0;
4059 }
4060 _ACEOF
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062 ac_compiler_gnu=yes
4063 else
4064 ac_compiler_gnu=no
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4068
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4071 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4072 if test $ac_compiler_gnu = yes; then
4073 GCC=yes
4074 else
4075 GCC=
4076 fi
4077 ac_test_CFLAGS=${CFLAGS+set}
4078 ac_save_CFLAGS=$CFLAGS
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4080 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4081 if test "${ac_cv_prog_cc_g+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 ac_save_c_werror_flag=$ac_c_werror_flag
4085 ac_c_werror_flag=yes
4086 ac_cv_prog_cc_g=no
4087 CFLAGS="-g"
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4090
4091 int
4092 main ()
4093 {
4094
4095 ;
4096 return 0;
4097 }
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_cv_prog_cc_g=yes
4101 else
4102 CFLAGS=""
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4105
4106 int
4107 main ()
4108 {
4109
4110 ;
4111 return 0;
4112 }
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"; then :
4115
4116 else
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4118 CFLAGS="-g"
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121
4122 int
4123 main ()
4124 {
4125
4126 ;
4127 return 0;
4128 }
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131 ac_cv_prog_cc_g=yes
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 fi
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 ac_c_werror_flag=$ac_save_c_werror_flag
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4141 $as_echo "$ac_cv_prog_cc_g" >&6; }
4142 if test "$ac_test_CFLAGS" = set; then
4143 CFLAGS=$ac_save_CFLAGS
4144 elif test $ac_cv_prog_cc_g = yes; then
4145 if test "$GCC" = yes; then
4146 CFLAGS="-g -O2"
4147 else
4148 CFLAGS="-g"
4149 fi
4150 else
4151 if test "$GCC" = yes; then
4152 CFLAGS="-O2"
4153 else
4154 CFLAGS=
4155 fi
4156 fi
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4158 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4159 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 ac_cv_prog_cc_c89=no
4163 ac_save_CC=$CC
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166 #include <stdarg.h>
4167 #include <stdio.h>
4168 #include <sys/types.h>
4169 #include <sys/stat.h>
4170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4171 struct buf { int x; };
4172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4173 static char *e (p, i)
4174 char **p;
4175 int i;
4176 {
4177 return p[i];
4178 }
4179 static char *f (char * (*g) (char **, int), char **p, ...)
4180 {
4181 char *s;
4182 va_list v;
4183 va_start (v,p);
4184 s = g (p, va_arg (v,int));
4185 va_end (v);
4186 return s;
4187 }
4188
4189 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4190 function prototypes and stuff, but not '\xHH' hex character constants.
4191 These don't provoke an error unfortunately, instead are silently treated
4192 as 'x'. The following induces an error, until -std is added to get
4193 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4194 array size at least. It's necessary to write '\x00'==0 to get something
4195 that's true only with -std. */
4196 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4197
4198 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4199 inside strings and character constants. */
4200 #define FOO(x) 'x'
4201 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4202
4203 int test (int i, double x);
4204 struct s1 {int (*f) (int a);};
4205 struct s2 {int (*f) (double a);};
4206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4207 int argc;
4208 char **argv;
4209 int
4210 main ()
4211 {
4212 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4213 ;
4214 return 0;
4215 }
4216 _ACEOF
4217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4218 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219 do
4220 CC="$ac_save_CC $ac_arg"
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 ac_cv_prog_cc_c89=$ac_arg
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext
4225 test "x$ac_cv_prog_cc_c89" != "xno" && break
4226 done
4227 rm -f conftest.$ac_ext
4228 CC=$ac_save_CC
4229
4230 fi
4231 # AC_CACHE_VAL
4232 case "x$ac_cv_prog_cc_c89" in
4233 x)
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235 $as_echo "none needed" >&6; } ;;
4236 xno)
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4238 $as_echo "unsupported" >&6; } ;;
4239 *)
4240 CC="$CC $ac_cv_prog_cc_c89"
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4242 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4243 esac
4244 if test "x$ac_cv_prog_cc_c89" != xno; then :
4245
4246 fi
4247
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253
4254
4255 # On Suns, sometimes $CPP names a directory.
4256 if test -n "$CPP" && test -d "$CPP"; then
4257 CPP=
4258 fi
4259
4260 ## If not using gcc, and on Solaris, and no CPP specified, see if
4261 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4262 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4263 test x"$CPP" = x; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4265 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4266
4267 if test "${emacs_cv_sunpro_c+set}" = set; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4272
4273 int
4274 main ()
4275 {
4276 #ifndef __SUNPRO_C
4277 fail;
4278 #endif
4279
4280 ;
4281 return 0;
4282 }
4283 _ACEOF
4284 if ac_fn_c_try_link "$LINENO"; then :
4285 emacs_cv_sunpro_c=yes
4286 else
4287 emacs_cv_sunpro_c=no
4288 fi
4289 rm -f core conftest.err conftest.$ac_objext \
4290 conftest$ac_exeext conftest.$ac_ext
4291 fi
4292
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4294 $as_echo "$emacs_cv_sunpro_c" >&6; }
4295
4296 if test x"$emacs_cv_sunpro_c" = xyes; then
4297 NON_GNU_CPP="$CC -E -Xs"
4298 fi
4299 fi
4300
4301 #### Some systems specify a CPP to use unless we are using GCC.
4302 #### Now that we know whether we are using GCC, we can decide whether
4303 #### to use that one.
4304 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4305 then
4306 CPP="$NON_GNU_CPP"
4307 fi
4308
4309 #### Some systems specify a CC to use unless we are using GCC.
4310 #### Now that we know whether we are using GCC, we can decide whether
4311 #### to use that one.
4312 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4313 test x$cc_specified != xyes
4314 then
4315 CC="$NON_GNU_CC"
4316 fi
4317
4318 if test x$GCC = xyes; then
4319 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4320 else
4321 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4322 fi
4323
4324 ac_ext=c
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4330 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4331 # On Suns, sometimes $CPP names a directory.
4332 if test -n "$CPP" && test -d "$CPP"; then
4333 CPP=
4334 fi
4335 if test -z "$CPP"; then
4336 if test "${ac_cv_prog_CPP+set}" = set; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 # Double quotes because CPP needs to be expanded
4340 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4341 do
4342 ac_preproc_ok=false
4343 for ac_c_preproc_warn_flag in '' yes
4344 do
4345 # Use a header file that comes with gcc, so configuring glibc
4346 # with a fresh cross-compiler works.
4347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4348 # <limits.h> exists even on freestanding compilers.
4349 # On the NeXT, cc -E runs the code through the compiler's parser,
4350 # not just through cpp. "Syntax error" is here to catch this case.
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4353 #ifdef __STDC__
4354 # include <limits.h>
4355 #else
4356 # include <assert.h>
4357 #endif
4358 Syntax error
4359 _ACEOF
4360 if ac_fn_c_try_cpp "$LINENO"; then :
4361
4362 else
4363 # Broken: fails on valid input.
4364 continue
4365 fi
4366 rm -f conftest.err conftest.i conftest.$ac_ext
4367
4368 # OK, works on sane cases. Now check whether nonexistent headers
4369 # can be detected and how.
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4372 #include <ac_nonexistent.h>
4373 _ACEOF
4374 if ac_fn_c_try_cpp "$LINENO"; then :
4375 # Broken: success on invalid input.
4376 continue
4377 else
4378 # Passes both tests.
4379 ac_preproc_ok=:
4380 break
4381 fi
4382 rm -f conftest.err conftest.i conftest.$ac_ext
4383
4384 done
4385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4386 rm -f conftest.i conftest.err conftest.$ac_ext
4387 if $ac_preproc_ok; then :
4388 break
4389 fi
4390
4391 done
4392 ac_cv_prog_CPP=$CPP
4393
4394 fi
4395 CPP=$ac_cv_prog_CPP
4396 else
4397 ac_cv_prog_CPP=$CPP
4398 fi
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4400 $as_echo "$CPP" >&6; }
4401 ac_preproc_ok=false
4402 for ac_c_preproc_warn_flag in '' yes
4403 do
4404 # Use a header file that comes with gcc, so configuring glibc
4405 # with a fresh cross-compiler works.
4406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4407 # <limits.h> exists even on freestanding compilers.
4408 # On the NeXT, cc -E runs the code through the compiler's parser,
4409 # not just through cpp. "Syntax error" is here to catch this case.
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4412 #ifdef __STDC__
4413 # include <limits.h>
4414 #else
4415 # include <assert.h>
4416 #endif
4417 Syntax error
4418 _ACEOF
4419 if ac_fn_c_try_cpp "$LINENO"; then :
4420
4421 else
4422 # Broken: fails on valid input.
4423 continue
4424 fi
4425 rm -f conftest.err conftest.i conftest.$ac_ext
4426
4427 # OK, works on sane cases. Now check whether nonexistent headers
4428 # can be detected and how.
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431 #include <ac_nonexistent.h>
4432 _ACEOF
4433 if ac_fn_c_try_cpp "$LINENO"; then :
4434 # Broken: success on invalid input.
4435 continue
4436 else
4437 # Passes both tests.
4438 ac_preproc_ok=:
4439 break
4440 fi
4441 rm -f conftest.err conftest.i conftest.$ac_ext
4442
4443 done
4444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4445 rm -f conftest.i conftest.err conftest.$ac_ext
4446 if $ac_preproc_ok; then :
4447
4448 else
4449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4451 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4452 See \`config.log' for more details" "$LINENO" 5; }
4453 fi
4454
4455 ac_ext=c
4456 ac_cpp='$CPP $CPPFLAGS'
4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460
4461
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4463 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4464 if test "${ac_cv_path_GREP+set}" = set; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 if test -z "$GREP"; then
4468 ac_path_GREP_found=false
4469 # Loop through the user's path and test for each of PROGNAME-LIST
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4472 do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_prog in grep ggrep; do
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4478 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4479 # Check for GNU ac_path_GREP and select it if it is found.
4480 # Check for GNU $ac_path_GREP
4481 case `"$ac_path_GREP" --version 2>&1` in
4482 *GNU*)
4483 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4484 *)
4485 ac_count=0
4486 $as_echo_n 0123456789 >"conftest.in"
4487 while :
4488 do
4489 cat "conftest.in" "conftest.in" >"conftest.tmp"
4490 mv "conftest.tmp" "conftest.in"
4491 cp "conftest.in" "conftest.nl"
4492 $as_echo 'GREP' >> "conftest.nl"
4493 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4494 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4495 as_fn_arith $ac_count + 1 && ac_count=$as_val
4496 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4497 # Best one so far, save it but keep looking for a better one
4498 ac_cv_path_GREP="$ac_path_GREP"
4499 ac_path_GREP_max=$ac_count
4500 fi
4501 # 10*(2^10) chars as input seems more than enough
4502 test $ac_count -gt 10 && break
4503 done
4504 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4505 esac
4506
4507 $ac_path_GREP_found && break 3
4508 done
4509 done
4510 done
4511 IFS=$as_save_IFS
4512 if test -z "$ac_cv_path_GREP"; then
4513 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4514 fi
4515 else
4516 ac_cv_path_GREP=$GREP
4517 fi
4518
4519 fi
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4521 $as_echo "$ac_cv_path_GREP" >&6; }
4522 GREP="$ac_cv_path_GREP"
4523
4524
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4526 $as_echo_n "checking for egrep... " >&6; }
4527 if test "${ac_cv_path_EGREP+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4531 then ac_cv_path_EGREP="$GREP -E"
4532 else
4533 if test -z "$EGREP"; then
4534 ac_path_EGREP_found=false
4535 # Loop through the user's path and test for each of PROGNAME-LIST
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4538 do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_prog in egrep; do
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4544 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4545 # Check for GNU ac_path_EGREP and select it if it is found.
4546 # Check for GNU $ac_path_EGREP
4547 case `"$ac_path_EGREP" --version 2>&1` in
4548 *GNU*)
4549 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4550 *)
4551 ac_count=0
4552 $as_echo_n 0123456789 >"conftest.in"
4553 while :
4554 do
4555 cat "conftest.in" "conftest.in" >"conftest.tmp"
4556 mv "conftest.tmp" "conftest.in"
4557 cp "conftest.in" "conftest.nl"
4558 $as_echo 'EGREP' >> "conftest.nl"
4559 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4560 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4561 as_fn_arith $ac_count + 1 && ac_count=$as_val
4562 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4563 # Best one so far, save it but keep looking for a better one
4564 ac_cv_path_EGREP="$ac_path_EGREP"
4565 ac_path_EGREP_max=$ac_count
4566 fi
4567 # 10*(2^10) chars as input seems more than enough
4568 test $ac_count -gt 10 && break
4569 done
4570 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4571 esac
4572
4573 $ac_path_EGREP_found && break 3
4574 done
4575 done
4576 done
4577 IFS=$as_save_IFS
4578 if test -z "$ac_cv_path_EGREP"; then
4579 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4580 fi
4581 else
4582 ac_cv_path_EGREP=$EGREP
4583 fi
4584
4585 fi
4586 fi
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4588 $as_echo "$ac_cv_path_EGREP" >&6; }
4589 EGREP="$ac_cv_path_EGREP"
4590
4591
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4593 $as_echo_n "checking for ANSI C header files... " >&6; }
4594 if test "${ac_cv_header_stdc+set}" = set; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599 #include <stdlib.h>
4600 #include <stdarg.h>
4601 #include <string.h>
4602 #include <float.h>
4603
4604 int
4605 main ()
4606 {
4607
4608 ;
4609 return 0;
4610 }
4611 _ACEOF
4612 if ac_fn_c_try_compile "$LINENO"; then :
4613 ac_cv_header_stdc=yes
4614 else
4615 ac_cv_header_stdc=no
4616 fi
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618
4619 if test $ac_cv_header_stdc = yes; then
4620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4623 #include <string.h>
4624
4625 _ACEOF
4626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4627 $EGREP "memchr" >/dev/null 2>&1; then :
4628
4629 else
4630 ac_cv_header_stdc=no
4631 fi
4632 rm -f conftest*
4633
4634 fi
4635
4636 if test $ac_cv_header_stdc = yes; then
4637 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4640 #include <stdlib.h>
4641
4642 _ACEOF
4643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4644 $EGREP "free" >/dev/null 2>&1; then :
4645
4646 else
4647 ac_cv_header_stdc=no
4648 fi
4649 rm -f conftest*
4650
4651 fi
4652
4653 if test $ac_cv_header_stdc = yes; then
4654 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4655 if test "$cross_compiling" = yes; then :
4656 :
4657 else
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660 #include <ctype.h>
4661 #include <stdlib.h>
4662 #if ((' ' & 0x0FF) == 0x020)
4663 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4664 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4665 #else
4666 # define ISLOWER(c) \
4667 (('a' <= (c) && (c) <= 'i') \
4668 || ('j' <= (c) && (c) <= 'r') \
4669 || ('s' <= (c) && (c) <= 'z'))
4670 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4671 #endif
4672
4673 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4674 int
4675 main ()
4676 {
4677 int i;
4678 for (i = 0; i < 256; i++)
4679 if (XOR (islower (i), ISLOWER (i))
4680 || toupper (i) != TOUPPER (i))
4681 return 2;
4682 return 0;
4683 }
4684 _ACEOF
4685 if ac_fn_c_try_run "$LINENO"; then :
4686
4687 else
4688 ac_cv_header_stdc=no
4689 fi
4690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4691 conftest.$ac_objext conftest.beam conftest.$ac_ext
4692 fi
4693
4694 fi
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4697 $as_echo "$ac_cv_header_stdc" >&6; }
4698 if test $ac_cv_header_stdc = yes; then
4699
4700 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4701
4702 fi
4703
4704 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4705 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4706 inttypes.h stdint.h unistd.h
4707 do :
4708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4709 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4710 "
4711 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4712 cat >>confdefs.h <<_ACEOF
4713 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4714 _ACEOF
4715
4716 fi
4717
4718 done
4719
4720
4721
4722 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4723 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4724 MINIX=yes
4725 else
4726 MINIX=
4727 fi
4728
4729
4730 if test "$MINIX" = yes; then
4731
4732 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4733
4734
4735 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4736
4737
4738 $as_echo "#define _MINIX 1" >>confdefs.h
4739
4740 fi
4741
4742
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4744 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4745 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4750
4751 # define __EXTENSIONS__ 1
4752 $ac_includes_default
4753 int
4754 main ()
4755 {
4756
4757 ;
4758 return 0;
4759 }
4760 _ACEOF
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 ac_cv_safe_to_define___extensions__=yes
4763 else
4764 ac_cv_safe_to_define___extensions__=no
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 fi
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4769 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4770 test $ac_cv_safe_to_define___extensions__ = yes &&
4771 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4772
4773 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4774
4775 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4776
4777 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4778
4779 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4780
4781
4782
4783 ### Use -Wno-pointer-sign if the compiler supports it
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4785 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4786 SAVE_CFLAGS="$CFLAGS"
4787 CFLAGS="$CFLAGS -Wno-pointer-sign"
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790
4791 int
4792 main ()
4793 {
4794
4795 ;
4796 return 0;
4797 }
4798 _ACEOF
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800 has_option=yes
4801 else
4802 has_option=no
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 if test $has_option = yes; then
4806 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4809 $as_echo "$has_option" >&6; }
4810 CFLAGS="$SAVE_CFLAGS"
4811 unset has_option
4812 unset SAVE_CFLAGS
4813
4814 ### Use -Wdeclaration-after-statement if the compiler supports it
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4816 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4817 SAVE_CFLAGS="$CFLAGS"
4818 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821
4822 int
4823 main ()
4824 {
4825
4826 ;
4827 return 0;
4828 }
4829 _ACEOF
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831 has_option=yes
4832 else
4833 has_option=no
4834 fi
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 if test $has_option = yes; then
4837 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4838 fi
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4840 $as_echo "$has_option" >&6; }
4841 CFLAGS="$SAVE_CFLAGS"
4842 unset has_option
4843 unset SAVE_CFLAGS
4844
4845 ### Use -Wold-style-definition if the compiler supports it
4846 # This can be removed when conversion to standard C is finished.
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4848 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4849 SAVE_CFLAGS="$CFLAGS"
4850 CFLAGS="$CFLAGS -Wold-style-definition"
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853
4854 int
4855 main ()
4856 {
4857
4858 ;
4859 return 0;
4860 }
4861 _ACEOF
4862 if ac_fn_c_try_compile "$LINENO"; then :
4863 has_option=yes
4864 else
4865 has_option=no
4866 fi
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 if test $has_option = yes; then
4869 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4870 fi
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4872 $as_echo "$has_option" >&6; }
4873 CFLAGS="$SAVE_CFLAGS"
4874 unset has_option
4875 unset SAVE_CFLAGS
4876
4877 ### Use -Wimplicit-function-declaration if the compiler supports it
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4879 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4880 SAVE_CFLAGS="$CFLAGS"
4881 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4884
4885 int
4886 main ()
4887 {
4888
4889 ;
4890 return 0;
4891 }
4892 _ACEOF
4893 if ac_fn_c_try_compile "$LINENO"; then :
4894 has_option=yes
4895 else
4896 has_option=no
4897 fi
4898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899 if test $has_option = yes; then
4900 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4901 fi
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4903 $as_echo "$has_option" >&6; }
4904 CFLAGS="$SAVE_CFLAGS"
4905 unset has_option
4906 unset SAVE_CFLAGS
4907
4908
4909
4910
4911 #### Some other nice autoconf tests.
4912
4913 ac_ext=c
4914 ac_cpp='$CPP $CPPFLAGS'
4915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4919 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4920 # On Suns, sometimes $CPP names a directory.
4921 if test -n "$CPP" && test -d "$CPP"; then
4922 CPP=
4923 fi
4924 if test -z "$CPP"; then
4925 if test "${ac_cv_prog_CPP+set}" = set; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 # Double quotes because CPP needs to be expanded
4929 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4930 do
4931 ac_preproc_ok=false
4932 for ac_c_preproc_warn_flag in '' yes
4933 do
4934 # Use a header file that comes with gcc, so configuring glibc
4935 # with a fresh cross-compiler works.
4936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937 # <limits.h> exists even on freestanding compilers.
4938 # On the NeXT, cc -E runs the code through the compiler's parser,
4939 # not just through cpp. "Syntax error" is here to catch this case.
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942 #ifdef __STDC__
4943 # include <limits.h>
4944 #else
4945 # include <assert.h>
4946 #endif
4947 Syntax error
4948 _ACEOF
4949 if ac_fn_c_try_cpp "$LINENO"; then :
4950
4951 else
4952 # Broken: fails on valid input.
4953 continue
4954 fi
4955 rm -f conftest.err conftest.i conftest.$ac_ext
4956
4957 # OK, works on sane cases. Now check whether nonexistent headers
4958 # can be detected and how.
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4961 #include <ac_nonexistent.h>
4962 _ACEOF
4963 if ac_fn_c_try_cpp "$LINENO"; then :
4964 # Broken: success on invalid input.
4965 continue
4966 else
4967 # Passes both tests.
4968 ac_preproc_ok=:
4969 break
4970 fi
4971 rm -f conftest.err conftest.i conftest.$ac_ext
4972
4973 done
4974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4975 rm -f conftest.i conftest.err conftest.$ac_ext
4976 if $ac_preproc_ok; then :
4977 break
4978 fi
4979
4980 done
4981 ac_cv_prog_CPP=$CPP
4982
4983 fi
4984 CPP=$ac_cv_prog_CPP
4985 else
4986 ac_cv_prog_CPP=$CPP
4987 fi
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4989 $as_echo "$CPP" >&6; }
4990 ac_preproc_ok=false
4991 for ac_c_preproc_warn_flag in '' yes
4992 do
4993 # Use a header file that comes with gcc, so configuring glibc
4994 # with a fresh cross-compiler works.
4995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4996 # <limits.h> exists even on freestanding compilers.
4997 # On the NeXT, cc -E runs the code through the compiler's parser,
4998 # not just through cpp. "Syntax error" is here to catch this case.
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001 #ifdef __STDC__
5002 # include <limits.h>
5003 #else
5004 # include <assert.h>
5005 #endif
5006 Syntax error
5007 _ACEOF
5008 if ac_fn_c_try_cpp "$LINENO"; then :
5009
5010 else
5011 # Broken: fails on valid input.
5012 continue
5013 fi
5014 rm -f conftest.err conftest.i conftest.$ac_ext
5015
5016 # OK, works on sane cases. Now check whether nonexistent headers
5017 # can be detected and how.
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020 #include <ac_nonexistent.h>
5021 _ACEOF
5022 if ac_fn_c_try_cpp "$LINENO"; then :
5023 # Broken: success on invalid input.
5024 continue
5025 else
5026 # Passes both tests.
5027 ac_preproc_ok=:
5028 break
5029 fi
5030 rm -f conftest.err conftest.i conftest.$ac_ext
5031
5032 done
5033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5034 rm -f conftest.i conftest.err conftest.$ac_ext
5035 if $ac_preproc_ok; then :
5036
5037 else
5038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5040 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5041 See \`config.log' for more details" "$LINENO" 5; }
5042 fi
5043
5044 ac_ext=c
5045 ac_cpp='$CPP $CPPFLAGS'
5046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049
5050 # Find a good install program. We prefer a C program (faster),
5051 # so one script is as good as another. But avoid the broken or
5052 # incompatible versions:
5053 # SysV /etc/install, /usr/sbin/install
5054 # SunOS /usr/etc/install
5055 # IRIX /sbin/install
5056 # AIX /bin/install
5057 # AmigaOS /C/install, which installs bootblocks on floppy discs
5058 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5059 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5060 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5061 # OS/2's system install, which has a completely different semantic
5062 # ./install, which can be erroneously created by make from ./install.sh.
5063 # Reject install programs that cannot install multiple files.
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5065 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5066 if test -z "$INSTALL"; then
5067 if test "${ac_cv_path_install+set}" = set; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 # Account for people who put trailing slashes in PATH elements.
5076 case $as_dir/ in #((
5077 ./ | .// | /[cC]/* | \
5078 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5079 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5080 /usr/ucb/* ) ;;
5081 *)
5082 # OSF1 and SCO ODT 3.0 have their own names for install.
5083 # Don't use installbsd from OSF since it installs stuff as root
5084 # by default.
5085 for ac_prog in ginstall scoinst install; do
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5088 if test $ac_prog = install &&
5089 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5090 # AIX install. It has an incompatible calling convention.
5091 :
5092 elif test $ac_prog = install &&
5093 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5094 # program-specific install script used by HP pwplus--don't use.
5095 :
5096 else
5097 rm -rf conftest.one conftest.two conftest.dir
5098 echo one > conftest.one
5099 echo two > conftest.two
5100 mkdir conftest.dir
5101 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5102 test -s conftest.one && test -s conftest.two &&
5103 test -s conftest.dir/conftest.one &&
5104 test -s conftest.dir/conftest.two
5105 then
5106 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5107 break 3
5108 fi
5109 fi
5110 fi
5111 done
5112 done
5113 ;;
5114 esac
5115
5116 done
5117 IFS=$as_save_IFS
5118
5119 rm -rf conftest.one conftest.two conftest.dir
5120
5121 fi
5122 if test "${ac_cv_path_install+set}" = set; then
5123 INSTALL=$ac_cv_path_install
5124 else
5125 # As a last resort, use the slow shell script. Don't cache a
5126 # value for INSTALL within a source directory, because that will
5127 # break other packages using the cache if that directory is
5128 # removed, or if the value is a relative name.
5129 INSTALL=$ac_install_sh
5130 fi
5131 fi
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5133 $as_echo "$INSTALL" >&6; }
5134
5135 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5136 # It thinks the first close brace ends the variable substitution.
5137 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5138
5139 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5140
5141 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5142
5143 if test "x$RANLIB" = x; then
5144 if test -n "$ac_tool_prefix"; then
5145 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5146 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152 if test -n "$RANLIB"; then
5153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
5165 fi
5166 done
5167 done
5168 IFS=$as_save_IFS
5169
5170 fi
5171 fi
5172 RANLIB=$ac_cv_prog_RANLIB
5173 if test -n "$RANLIB"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5175 $as_echo "$RANLIB" >&6; }
5176 else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5179 fi
5180
5181
5182 fi
5183 if test -z "$ac_cv_prog_RANLIB"; then
5184 ac_ct_RANLIB=$RANLIB
5185 # Extract the first word of "ranlib", so it can be a program name with args.
5186 set dummy ranlib; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 if test -n "$ac_ct_RANLIB"; then
5193 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5197 do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202 ac_cv_prog_ac_ct_RANLIB="ranlib"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5205 fi
5206 done
5207 done
5208 IFS=$as_save_IFS
5209
5210 fi
5211 fi
5212 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5213 if test -n "$ac_ct_RANLIB"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5215 $as_echo "$ac_ct_RANLIB" >&6; }
5216 else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5219 fi
5220
5221 if test "x$ac_ct_RANLIB" = x; then
5222 RANLIB=":"
5223 else
5224 case $cross_compiling:$ac_tool_warned in
5225 yes:)
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5228 ac_tool_warned=yes ;;
5229 esac
5230 RANLIB=$ac_ct_RANLIB
5231 fi
5232 else
5233 RANLIB="$ac_cv_prog_RANLIB"
5234 fi
5235
5236 fi
5237
5238 ## Although we're running on an amd64 kernel, we're actually compiling for
5239 ## the x86 architecture. The user should probably have provided an
5240 ## explicit --build to `configure', but if everything else than the kernel
5241 ## is running in i386 mode, we can help them out.
5242 if test "$machine" = "amdx86-64"; then
5243 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5244 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5245
5246 fi
5247
5248 if test "$ac_cv_have_decl_i386" = "yes"; then
5249 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5250 machine=intel386
5251 machfile="m/${machine}.h"
5252 fi
5253 fi
5254
5255 # Extract the first word of "install-info", so it can be a program name with args.
5256 set dummy install-info; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 case $INSTALL_INFO in
5263 [\\/]* | ?:[\\/]*)
5264 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5265 ;;
5266 *)
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5269 do
5270 IFS=$as_save_IFS
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5274 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 break 2
5277 fi
5278 done
5279 done
5280 IFS=$as_save_IFS
5281
5282 ;;
5283 esac
5284 fi
5285 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5286 if test -n "$INSTALL_INFO"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5288 $as_echo "$INSTALL_INFO" >&6; }
5289 else
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5292 fi
5293
5294
5295 # Extract the first word of "install-info", so it can be a program name with args.
5296 set dummy install-info; ac_word=$2
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; }
5299 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 case $INSTALL_INFO in
5303 [\\/]* | ?:[\\/]*)
5304 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5305 ;;
5306 *)
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in /usr/sbin
5309 do
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5317 fi
5318 done
5319 done
5320 IFS=$as_save_IFS
5321
5322 ;;
5323 esac
5324 fi
5325 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5326 if test -n "$INSTALL_INFO"; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5328 $as_echo "$INSTALL_INFO" >&6; }
5329 else
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5332 fi
5333
5334
5335 # Extract the first word of "install-info", so it can be a program name with args.
5336 set dummy install-info; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 case $INSTALL_INFO in
5343 [\\/]* | ?:[\\/]*)
5344 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5345 ;;
5346 *)
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in /sbin
5349 do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5357 fi
5358 done
5359 done
5360 IFS=$as_save_IFS
5361
5362 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5363 ;;
5364 esac
5365 fi
5366 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5367 if test -n "$INSTALL_INFO"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5369 $as_echo "$INSTALL_INFO" >&6; }
5370 else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5373 fi
5374
5375
5376 # Extract the first word of "gzip", so it can be a program name with args.
5377 set dummy gzip; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 case $GZIP_PROG in
5384 [\\/]* | ?:[\\/]*)
5385 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5386 ;;
5387 *)
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 break 2
5398 fi
5399 done
5400 done
5401 IFS=$as_save_IFS
5402
5403 ;;
5404 esac
5405 fi
5406 GZIP_PROG=$ac_cv_path_GZIP_PROG
5407 if test -n "$GZIP_PROG"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5409 $as_echo "$GZIP_PROG" >&6; }
5410 else
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5413 fi
5414
5415
5416
5417
5418 ## Need makeinfo >= 4.6 (?) to build the manuals.
5419 # Extract the first word of "makeinfo", so it can be a program name with args.
5420 set dummy makeinfo; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5424 $as_echo_n "(cached) " >&6
5425 else
5426 case $MAKEINFO in
5427 [\\/]* | ?:[\\/]*)
5428 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5429 ;;
5430 *)
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5438 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 break 2
5441 fi
5442 done
5443 done
5444 IFS=$as_save_IFS
5445
5446 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5447 ;;
5448 esac
5449 fi
5450 MAKEINFO=$ac_cv_path_MAKEINFO
5451 if test -n "$MAKEINFO"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5453 $as_echo "$MAKEINFO" >&6; }
5454 else
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5457 fi
5458
5459
5460 if test "$MAKEINFO" != "no" && \
5461 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
5462 MAKEINFO=no
5463 fi
5464
5465 ## Makeinfo is unusual. For a released Emacs, the manuals are
5466 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5467 ## therefore in the category of "special tools" not normally required, which
5468 ## configure does not have to check for (eg autoconf itself).
5469 ## In a Bazaar checkout on the other hand, the manuals are not included.
5470 ## So makeinfo is a requirement to build from Bazaar, and configure
5471 ## should test for it as it does for any other build requirement.
5472 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5473 ## with pre-built manuals, from a Bazaar checkout.
5474 HAVE_MAKEINFO=yes
5475
5476 if test "$MAKEINFO" = "no"; then
5477 MAKEINFO=makeinfo
5478 if test "x${with_makeinfo}" = "xno"; then
5479 HAVE_MAKEINFO=no
5480 elif test ! -e $srcdir/info/emacs; then
5481 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
5482 source tree does not seem to have pre-built manuals in the \`info' directory.
5483 Either install a suitable version of makeinfo, or re-run configure
5484 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5485 fi
5486 fi
5487
5488
5489
5490 if test x$GCC = xyes; then
5491 test "x$GCC_LINK_TEST_OPTIONS" != x && \
5492 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5493 else
5494 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
5495 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5496 fi
5497
5498
5499 late_LDFLAGS=$LDFLAGS
5500 if test x$GCC = xyes; then
5501 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5502 else
5503 LDFLAGS="$LDFLAGS -znocombreloc"
5504 fi
5505
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5507 $as_echo_n "checking for -znocombreloc... " >&6; }
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5510
5511 int
5512 main ()
5513 {
5514
5515 ;
5516 return 0;
5517 }
5518 _ACEOF
5519 if ac_fn_c_try_link "$LINENO"; then :
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5521 $as_echo "yes" >&6; }
5522 else
5523 LDFLAGS=$late_LDFLAGS
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5526 fi
5527 rm -f core conftest.err conftest.$ac_objext \
5528 conftest$ac_exeext conftest.$ac_ext
5529
5530
5531 # The value of CPP is a quoted variable reference, so we need to do this
5532 # to get its actual value...
5533 CPP=`eval "echo $CPP"`
5534
5535
5536 CANNOT_DUMP=no
5537 case "$opsys" in
5538 your-opsys-here)
5539 CANNOT_DUMP=yes
5540
5541 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5542
5543 ;;
5544 esac
5545
5546
5547
5548 UNEXEC_OBJ=unexelf.o
5549 case "$opsys" in
5550 # MSDOS uses unexcoff.o
5551 # MSWindows uses unexw32.o
5552 aix4-2)
5553 UNEXEC_OBJ=unexaix.o
5554 ;;
5555 cygwin)
5556 UNEXEC_OBJ=unexcw.o
5557 ;;
5558 darwin)
5559 UNEXEC_OBJ=unexmacosx.o
5560 ;;
5561 hpux10-20 | hpux11)
5562 UNEXEC_OBJ=unexhp9k800.o
5563 ;;
5564 sol2-10)
5565 # Use the Solaris dldump() function, called from unexsol.c, to dump
5566 # emacs, instead of the generic ELF dump code found in unexelf.c.
5567 # The resulting binary has a complete symbol table, and is better
5568 # for debugging and other observability tools (debuggers, pstack, etc).
5569 #
5570 # If you encounter a problem using dldump(), please consider sending
5571 # a message to the OpenSolaris tools-linking mailing list:
5572 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5573 #
5574 # It is likely that dldump() works with older Solaris too, but this has
5575 # not been tested, so for now this change is for Solaris 10 or newer.
5576 UNEXEC_OBJ=unexsol.o
5577 ;;
5578 esac
5579
5580 LD_SWITCH_SYSTEM=
5581 case "$opsys" in
5582 freebsd)
5583 ## Let `ld' find image libs and similar things in /usr/local/lib.
5584 ## The system compiler, GCC, has apparently been modified to not
5585 ## look there, contrary to what a stock GCC would do.
5586 LD_SWITCH_SYSTEM=-L/usr/local/lib
5587 ;;
5588
5589 gnu-linux)
5590 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5591 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
5592 ;;
5593
5594 netbsd)
5595 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5596 ;;
5597
5598 openbsd)
5599 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5600 ## otherwise Emacs dumps core on elf systems.
5601 LD_SWITCH_SYSTEM="-Z"
5602 ;;
5603 esac
5604
5605
5606 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5607
5608 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5609 ## which has not been defined yet. When this was handled with cpp,
5610 ## it was expanded to null when configure sourced the s/*.h file.
5611 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5612 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5613 ## (or somesuch), but because it is supposed to go at the _front_
5614 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5615 ## Compare with the gnu-linux case below, which added to the end
5616 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5617 ## LD_SWITCH_SYSTEM_TEMACS.
5618 case "$opsys" in
5619 netbsd|openbsd)
5620 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5621 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5622 esac
5623
5624
5625 C_SWITCH_MACHINE=
5626 if test "$machine" = "alpha"; then
5627 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5628 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5629
5630 fi
5631
5632 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5633 ## With ELF, make sure that all common symbols get allocated to in the
5634 ## data section. Otherwise, the dump of temacs may miss variables in
5635 ## the shared library that have been initialized. For example, with
5636 ## GNU libc, __malloc_initialized would normally be resolved to the
5637 ## shared library's .bss section, which is fatal.
5638 if test "x$GCC" = "xyes"; then
5639 C_SWITCH_MACHINE="-fno-common"
5640 else
5641 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5642 fi
5643 else
5644 UNEXEC_OBJ=unexalpha.o
5645 fi
5646 fi
5647
5648
5649
5650
5651 C_SWITCH_SYSTEM=
5652 ## Some programs in src produce warnings saying certain subprograms
5653 ## are too complex and need a MAXMEM value greater than 2000 for
5654 ## additional optimization. --nils@exp-math.uni-essen.de
5655 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5656 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5657 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5658 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5659
5660
5661
5662 LIBS_SYSTEM=
5663 case "$opsys" in
5664 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5665 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5666
5667 freebsd) LIBS_SYSTEM="-lutil" ;;
5668
5669 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5670
5671 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5672
5673 ## Motif needs -lgen.
5674 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5675 esac
5676
5677
5678
5679 ### Make sure subsequent tests use flags consistent with the build flags.
5680
5681 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5682 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5683 else
5684 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5685 fi
5686
5687
5688
5689 # Check whether --enable-largefile was given.
5690 if test "${enable_largefile+set}" = set; then :
5691 enableval=$enable_largefile;
5692 fi
5693
5694 if test "$enable_largefile" != no; then
5695
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5697 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5698 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 ac_cv_sys_largefile_CC=no
5702 if test "$GCC" != yes; then
5703 ac_save_CC=$CC
5704 while :; do
5705 # IRIX 6.2 and later do not support large files by default,
5706 # so use the C compiler's -n32 option if that helps.
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709 #include <sys/types.h>
5710 /* Check that off_t can represent 2**63 - 1 correctly.
5711 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5712 since some C++ compilers masquerading as C compilers
5713 incorrectly reject 9223372036854775807. */
5714 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5715 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5716 && LARGE_OFF_T % 2147483647 == 1)
5717 ? 1 : -1];
5718 int
5719 main ()
5720 {
5721
5722 ;
5723 return 0;
5724 }
5725 _ACEOF
5726 if ac_fn_c_try_compile "$LINENO"; then :
5727 break
5728 fi
5729 rm -f core conftest.err conftest.$ac_objext
5730 CC="$CC -n32"
5731 if ac_fn_c_try_compile "$LINENO"; then :
5732 ac_cv_sys_largefile_CC=' -n32'; break
5733 fi
5734 rm -f core conftest.err conftest.$ac_objext
5735 break
5736 done
5737 CC=$ac_save_CC
5738 rm -f conftest.$ac_ext
5739 fi
5740 fi
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5742 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5743 if test "$ac_cv_sys_largefile_CC" != no; then
5744 CC=$CC$ac_cv_sys_largefile_CC
5745 fi
5746
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5748 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5749 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 while :; do
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5755 #include <sys/types.h>
5756 /* Check that off_t can represent 2**63 - 1 correctly.
5757 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5758 since some C++ compilers masquerading as C compilers
5759 incorrectly reject 9223372036854775807. */
5760 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5761 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5762 && LARGE_OFF_T % 2147483647 == 1)
5763 ? 1 : -1];
5764 int
5765 main ()
5766 {
5767
5768 ;
5769 return 0;
5770 }
5771 _ACEOF
5772 if ac_fn_c_try_compile "$LINENO"; then :
5773 ac_cv_sys_file_offset_bits=no; break
5774 fi
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778 #define _FILE_OFFSET_BITS 64
5779 #include <sys/types.h>
5780 /* Check that off_t can represent 2**63 - 1 correctly.
5781 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5782 since some C++ compilers masquerading as C compilers
5783 incorrectly reject 9223372036854775807. */
5784 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5785 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5786 && LARGE_OFF_T % 2147483647 == 1)
5787 ? 1 : -1];
5788 int
5789 main ()
5790 {
5791
5792 ;
5793 return 0;
5794 }
5795 _ACEOF
5796 if ac_fn_c_try_compile "$LINENO"; then :
5797 ac_cv_sys_file_offset_bits=64; break
5798 fi
5799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800 ac_cv_sys_file_offset_bits=unknown
5801 break
5802 done
5803 fi
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5805 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5806 case $ac_cv_sys_file_offset_bits in #(
5807 no | unknown) ;;
5808 *)
5809 cat >>confdefs.h <<_ACEOF
5810 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5811 _ACEOF
5812 ;;
5813 esac
5814 rm -rf conftest*
5815 if test $ac_cv_sys_file_offset_bits = unknown; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5817 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5818 if test "${ac_cv_sys_large_files+set}" = set; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821 while :; do
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5824 #include <sys/types.h>
5825 /* Check that off_t can represent 2**63 - 1 correctly.
5826 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5827 since some C++ compilers masquerading as C compilers
5828 incorrectly reject 9223372036854775807. */
5829 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5830 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5831 && LARGE_OFF_T % 2147483647 == 1)
5832 ? 1 : -1];
5833 int
5834 main ()
5835 {
5836
5837 ;
5838 return 0;
5839 }
5840 _ACEOF
5841 if ac_fn_c_try_compile "$LINENO"; then :
5842 ac_cv_sys_large_files=no; break
5843 fi
5844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5847 #define _LARGE_FILES 1
5848 #include <sys/types.h>
5849 /* Check that off_t can represent 2**63 - 1 correctly.
5850 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5851 since some C++ compilers masquerading as C compilers
5852 incorrectly reject 9223372036854775807. */
5853 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5854 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5855 && LARGE_OFF_T % 2147483647 == 1)
5856 ? 1 : -1];
5857 int
5858 main ()
5859 {
5860
5861 ;
5862 return 0;
5863 }
5864 _ACEOF
5865 if ac_fn_c_try_compile "$LINENO"; then :
5866 ac_cv_sys_large_files=1; break
5867 fi
5868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5869 ac_cv_sys_large_files=unknown
5870 break
5871 done
5872 fi
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5874 $as_echo "$ac_cv_sys_large_files" >&6; }
5875 case $ac_cv_sys_large_files in #(
5876 no | unknown) ;;
5877 *)
5878 cat >>confdefs.h <<_ACEOF
5879 #define _LARGE_FILES $ac_cv_sys_large_files
5880 _ACEOF
5881 ;;
5882 esac
5883 rm -rf conftest*
5884 fi
5885 fi
5886
5887
5888
5889 ## If user specified a crt-dir, use that unconditionally.
5890 if test "X$CRT_DIR" = "X"; then
5891
5892 case "$canonical" in
5893 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5894 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5895 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5896 ## For anything else (eg /usr/lib32), it is up the user to specify
5897 ## the location (bug#5655).
5898 ## Test for crtn.o, not just the directory, because sometimes the
5899 ## directory exists but does not have the relevant files (bug#1287).
5900 ## FIXME better to test for binary compatibility somehow.
5901 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5902 ;;
5903
5904 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5905 esac
5906
5907 case "$opsys" in
5908 hpux10-20) CRT_DIR=/lib ;;
5909 esac
5910
5911 ## Default is /usr/lib.
5912 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5913
5914 else
5915
5916 ## Some platforms don't use any of these files, so it is not
5917 ## appropriate to put this test outside the if block.
5918 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5919 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
5920
5921 fi
5922
5923
5924
5925 LIB_MATH=-lm
5926 LIB_STANDARD=
5927 START_FILES=
5928
5929 case $opsys in
5930 cygwin )
5931 LIB_MATH=
5932 START_FILES='pre-crt0.o'
5933 ;;
5934 darwin )
5935 ## Adding -lm confuses the dynamic linker, so omit it.
5936 LIB_MATH=
5937 START_FILES='pre-crt0.o'
5938 ;;
5939 freebsd )
5940 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5941 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5942 ;;
5943 gnu-linux | gnu-kfreebsd )
5944 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5945 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5946 ;;
5947 hpux10-20 | hpux11 )
5948 LIB_STANDARD=-lc
5949 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5950 ;;
5951 netbsd | openbsd )
5952 if test -f $CRT_DIR/crti.o; then
5953 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5954 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5955 else
5956 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5957 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5958 fi
5959 ;;
5960 esac
5961
5962
5963
5964
5965
5966
5967
5968 if test "${with_sound}" != "no"; then
5969 # Sound support for GNU/Linux and the free BSDs.
5970 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5971 do :
5972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5973 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5974 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5975 cat >>confdefs.h <<_ACEOF
5976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5977 _ACEOF
5978 have_sound_header=yes
5979 fi
5980
5981 done
5982
5983 # Emulation library used on NetBSD.
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5985 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5986 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5987 $as_echo_n "(cached) " >&6
5988 else
5989 ac_check_lib_save_LIBS=$LIBS
5990 LIBS="-lossaudio $LIBS"
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5993
5994 /* Override any GCC internal prototype to avoid an error.
5995 Use char because int might match the return type of a GCC
5996 builtin and then its argument prototype would still apply. */
5997 #ifdef __cplusplus
5998 extern "C"
5999 #endif
6000 char _oss_ioctl ();
6001 int
6002 main ()
6003 {
6004 return _oss_ioctl ();
6005 ;
6006 return 0;
6007 }
6008 _ACEOF
6009 if ac_fn_c_try_link "$LINENO"; then :
6010 ac_cv_lib_ossaudio__oss_ioctl=yes
6011 else
6012 ac_cv_lib_ossaudio__oss_ioctl=no
6013 fi
6014 rm -f core conftest.err conftest.$ac_objext \
6015 conftest$ac_exeext conftest.$ac_ext
6016 LIBS=$ac_check_lib_save_LIBS
6017 fi
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6019 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6020 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
6021 LIBSOUND=-lossaudio
6022 else
6023 LIBSOUND=
6024 fi
6025
6026
6027
6028 ALSA_REQUIRED=1.0.0
6029 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6030
6031 succeeded=no
6032
6033 # Extract the first word of "pkg-config", so it can be a program name with args.
6034 set dummy pkg-config; ac_word=$2
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; }
6037 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 case $PKG_CONFIG in
6041 [\\/]* | ?:[\\/]*)
6042 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6043 ;;
6044 *)
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6047 do
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6055 fi
6056 done
6057 done
6058 IFS=$as_save_IFS
6059
6060 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6061 ;;
6062 esac
6063 fi
6064 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6065 if test -n "$PKG_CONFIG"; then
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6067 $as_echo "$PKG_CONFIG" >&6; }
6068 else
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070 $as_echo "no" >&6; }
6071 fi
6072
6073
6074
6075 if test "$PKG_CONFIG" = "no" ; then
6076 HAVE_ALSA=no
6077 else
6078 PKG_CONFIG_MIN_VERSION=0.9.0
6079 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6081 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6082
6083 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6085 $as_echo "yes" >&6; }
6086 succeeded=yes
6087
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6089 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6090 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6092 $as_echo "$ALSA_CFLAGS" >&6; }
6093
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6095 $as_echo_n "checking ALSA_LIBS... " >&6; }
6096 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6098 $as_echo "$ALSA_LIBS" >&6; }
6099 else
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6102 ALSA_CFLAGS=""
6103 ALSA_LIBS=""
6104 ## If we have a custom action on failure, don't print errors, but
6105 ## do set a variable so people can do so.
6106 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6107
6108 fi
6109
6110
6111
6112 else
6113 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6114 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6115 fi
6116 fi
6117
6118 if test $succeeded = yes; then
6119 HAVE_ALSA=yes
6120 else
6121 HAVE_ALSA=no
6122 fi
6123
6124 if test $HAVE_ALSA = yes; then
6125 SAVE_CFLAGS="$CFLAGS"
6126 SAVE_LDFLAGS="$LDFLAGS"
6127 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6128 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6131 #include <asoundlib.h>
6132 int
6133 main ()
6134 {
6135 snd_lib_error_set_handler (0);
6136 ;
6137 return 0;
6138 }
6139 _ACEOF
6140 if ac_fn_c_try_compile "$LINENO"; then :
6141 emacs_alsa_normal=yes
6142 else
6143 emacs_alsa_normal=no
6144 fi
6145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6146 if test "$emacs_alsa_normal" != yes; then
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6149 #include <alsa/asoundlib.h>
6150 int
6151 main ()
6152 {
6153 snd_lib_error_set_handler (0);
6154 ;
6155 return 0;
6156 }
6157 _ACEOF
6158 if ac_fn_c_try_compile "$LINENO"; then :
6159 emacs_alsa_subdir=yes
6160 else
6161 emacs_alsa_subdir=no
6162 fi
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164 if test "$emacs_alsa_subdir" != yes; then
6165 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6166 fi
6167 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6168 fi
6169
6170 CFLAGS="$SAVE_CFLAGS"
6171 LDFLAGS="$SAVE_LDFLAGS"
6172 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6173 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6174
6175 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6176
6177 fi
6178
6179 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6180 case "$opsys" in
6181 gnu-linux|freebsd|netbsd)
6182
6183 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6184
6185 ;;
6186 esac
6187 fi
6188
6189
6190 fi
6191
6192 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
6193 linux/version.h sys/systeminfo.h limits.h \
6194 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
6195 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6196 sys/utsname.h pwd.h utmp.h dirent.h util.h
6197 do :
6198 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6199 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6200 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6201 cat >>confdefs.h <<_ACEOF
6202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6203 _ACEOF
6204
6205 fi
6206
6207 done
6208
6209
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6211 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h. */
6214 #include <sys/personality.h>
6215 int
6216 main ()
6217 {
6218 personality (PER_LINUX32)
6219 ;
6220 return 0;
6221 }
6222 _ACEOF
6223 if ac_fn_c_try_compile "$LINENO"; then :
6224 emacs_cv_personality_linux32=yes
6225 else
6226 emacs_cv_personality_linux32=no
6227 fi
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6230 $as_echo "$emacs_cv_personality_linux32" >&6; }
6231
6232 if test $emacs_cv_personality_linux32 = yes; then
6233
6234 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6235
6236 fi
6237
6238 for ac_header in term.h
6239 do :
6240 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6241 if test "x$ac_cv_header_term_h" = x""yes; then :
6242 cat >>confdefs.h <<_ACEOF
6243 #define HAVE_TERM_H 1
6244 _ACEOF
6245
6246 fi
6247
6248 done
6249
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6251 $as_echo_n "checking for ANSI C header files... " >&6; }
6252 if test "${ac_cv_header_stdc+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257 #include <stdlib.h>
6258 #include <stdarg.h>
6259 #include <string.h>
6260 #include <float.h>
6261
6262 int
6263 main ()
6264 {
6265
6266 ;
6267 return 0;
6268 }
6269 _ACEOF
6270 if ac_fn_c_try_compile "$LINENO"; then :
6271 ac_cv_header_stdc=yes
6272 else
6273 ac_cv_header_stdc=no
6274 fi
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276
6277 if test $ac_cv_header_stdc = yes; then
6278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281 #include <string.h>
6282
6283 _ACEOF
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 $EGREP "memchr" >/dev/null 2>&1; then :
6286
6287 else
6288 ac_cv_header_stdc=no
6289 fi
6290 rm -f conftest*
6291
6292 fi
6293
6294 if test $ac_cv_header_stdc = yes; then
6295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6298 #include <stdlib.h>
6299
6300 _ACEOF
6301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6302 $EGREP "free" >/dev/null 2>&1; then :
6303
6304 else
6305 ac_cv_header_stdc=no
6306 fi
6307 rm -f conftest*
6308
6309 fi
6310
6311 if test $ac_cv_header_stdc = yes; then
6312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6313 if test "$cross_compiling" = yes; then :
6314 :
6315 else
6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h. */
6318 #include <ctype.h>
6319 #include <stdlib.h>
6320 #if ((' ' & 0x0FF) == 0x020)
6321 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6322 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6323 #else
6324 # define ISLOWER(c) \
6325 (('a' <= (c) && (c) <= 'i') \
6326 || ('j' <= (c) && (c) <= 'r') \
6327 || ('s' <= (c) && (c) <= 'z'))
6328 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6329 #endif
6330
6331 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6332 int
6333 main ()
6334 {
6335 int i;
6336 for (i = 0; i < 256; i++)
6337 if (XOR (islower (i), ISLOWER (i))
6338 || toupper (i) != TOUPPER (i))
6339 return 2;
6340 return 0;
6341 }
6342 _ACEOF
6343 if ac_fn_c_try_run "$LINENO"; then :
6344
6345 else
6346 ac_cv_header_stdc=no
6347 fi
6348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6349 conftest.$ac_objext conftest.beam conftest.$ac_ext
6350 fi
6351
6352 fi
6353 fi
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6355 $as_echo "$ac_cv_header_stdc" >&6; }
6356 if test $ac_cv_header_stdc = yes; then
6357
6358 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6359
6360 fi
6361
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6363 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6364 if test "${ac_cv_header_time+set}" = set; then :
6365 $as_echo_n "(cached) " >&6
6366 else
6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h. */
6369 #include <sys/types.h>
6370 #include <sys/time.h>
6371 #include <time.h>
6372
6373 int
6374 main ()
6375 {
6376 if ((struct tm *) 0)
6377 return 0;
6378 ;
6379 return 0;
6380 }
6381 _ACEOF
6382 if ac_fn_c_try_compile "$LINENO"; then :
6383 ac_cv_header_time=yes
6384 else
6385 ac_cv_header_time=no
6386 fi
6387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388 fi
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6390 $as_echo "$ac_cv_header_time" >&6; }
6391 if test $ac_cv_header_time = yes; then
6392
6393 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6394
6395 fi
6396
6397 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6398 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6399 ac_have_decl=1
6400 else
6401 ac_have_decl=0
6402 fi
6403
6404 cat >>confdefs.h <<_ACEOF
6405 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6406 _ACEOF
6407
6408 if test $ac_cv_have_decl_sys_siglist != yes; then
6409 # For Tru64, at least:
6410 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6411 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6412 ac_have_decl=1
6413 else
6414 ac_have_decl=0
6415 fi
6416
6417 cat >>confdefs.h <<_ACEOF
6418 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6419 _ACEOF
6420
6421 if test $ac_cv_have_decl___sys_siglist = yes; then
6422
6423 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6424
6425 fi
6426 fi
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6428 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6429 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6430 $as_echo_n "(cached) " >&6
6431 else
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434 #include <sys/types.h>
6435 #include <sys/wait.h>
6436 #ifndef WEXITSTATUS
6437 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6438 #endif
6439 #ifndef WIFEXITED
6440 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6441 #endif
6442
6443 int
6444 main ()
6445 {
6446 int s;
6447 wait (&s);
6448 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6449 ;
6450 return 0;
6451 }
6452 _ACEOF
6453 if ac_fn_c_try_compile "$LINENO"; then :
6454 ac_cv_header_sys_wait_h=yes
6455 else
6456 ac_cv_header_sys_wait_h=no
6457 fi
6458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459 fi
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6461 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6462 if test $ac_cv_header_sys_wait_h = yes; then
6463
6464 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6465
6466 fi
6467
6468
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6470 $as_echo_n "checking for struct utimbuf... " >&6; }
6471 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6476 #ifdef TIME_WITH_SYS_TIME
6477 #include <sys/time.h>
6478 #include <time.h>
6479 #else
6480 #ifdef HAVE_SYS_TIME_H
6481 #include <sys/time.h>
6482 #else
6483 #include <time.h>
6484 #endif
6485 #endif
6486 #ifdef HAVE_UTIME_H
6487 #include <utime.h>
6488 #endif
6489 int
6490 main ()
6491 {
6492 static struct utimbuf x; x.actime = x.modtime;
6493 ;
6494 return 0;
6495 }
6496 _ACEOF
6497 if ac_fn_c_try_compile "$LINENO"; then :
6498 emacs_cv_struct_utimbuf=yes
6499 else
6500 emacs_cv_struct_utimbuf=no
6501 fi
6502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503 fi
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6505 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6506 if test $emacs_cv_struct_utimbuf = yes; then
6507
6508 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6509
6510 fi
6511
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6513 $as_echo_n "checking return type of signal handlers... " >&6; }
6514 if test "${ac_cv_type_signal+set}" = set; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6519 #include <sys/types.h>
6520 #include <signal.h>
6521
6522 int
6523 main ()
6524 {
6525 return *(signal (0, 0)) (0) == 1;
6526 ;
6527 return 0;
6528 }
6529 _ACEOF
6530 if ac_fn_c_try_compile "$LINENO"; then :
6531 ac_cv_type_signal=int
6532 else
6533 ac_cv_type_signal=void
6534 fi
6535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536 fi
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6538 $as_echo "$ac_cv_type_signal" >&6; }
6539
6540 cat >>confdefs.h <<_ACEOF
6541 #define RETSIGTYPE $ac_cv_type_signal
6542 _ACEOF
6543
6544
6545
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6547 $as_echo_n "checking for speed_t... " >&6; }
6548 if test "${emacs_cv_speed_t+set}" = set; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6553 #include <termios.h>
6554 int
6555 main ()
6556 {
6557 speed_t x = 1;
6558 ;
6559 return 0;
6560 }
6561 _ACEOF
6562 if ac_fn_c_try_compile "$LINENO"; then :
6563 emacs_cv_speed_t=yes
6564 else
6565 emacs_cv_speed_t=no
6566 fi
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568 fi
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6570 $as_echo "$emacs_cv_speed_t" >&6; }
6571 if test $emacs_cv_speed_t = yes; then
6572
6573 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6574
6575 fi
6576
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6578 $as_echo_n "checking for struct timeval... " >&6; }
6579 if test "${emacs_cv_struct_timeval+set}" = set; then :
6580 $as_echo_n "(cached) " >&6
6581 else
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6584 #ifdef TIME_WITH_SYS_TIME
6585 #include <sys/time.h>
6586 #include <time.h>
6587 #else
6588 #ifdef HAVE_SYS_TIME_H
6589 #include <sys/time.h>
6590 #else
6591 #include <time.h>
6592 #endif
6593 #endif
6594 int
6595 main ()
6596 {
6597 static struct timeval x; x.tv_sec = x.tv_usec;
6598 ;
6599 return 0;
6600 }
6601 _ACEOF
6602 if ac_fn_c_try_compile "$LINENO"; then :
6603 emacs_cv_struct_timeval=yes
6604 else
6605 emacs_cv_struct_timeval=no
6606 fi
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608 fi
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6610 $as_echo "$emacs_cv_struct_timeval" >&6; }
6611 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6612 if test $emacs_cv_struct_timeval = yes; then
6613
6614 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6615
6616 fi
6617
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6619 $as_echo_n "checking for struct exception... " >&6; }
6620 if test "${emacs_cv_struct_exception+set}" = set; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6625 #include <math.h>
6626 int
6627 main ()
6628 {
6629 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6630 ;
6631 return 0;
6632 }
6633 _ACEOF
6634 if ac_fn_c_try_compile "$LINENO"; then :
6635 emacs_cv_struct_exception=yes
6636 else
6637 emacs_cv_struct_exception=no
6638 fi
6639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640 fi
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6642 $as_echo "$emacs_cv_struct_exception" >&6; }
6643 HAVE_EXCEPTION=$emacs_cv_struct_exception
6644 if test $emacs_cv_struct_exception != yes; then
6645
6646 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6647
6648 fi
6649
6650 for ac_header in sys/socket.h
6651 do :
6652 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6653 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6654 cat >>confdefs.h <<_ACEOF
6655 #define HAVE_SYS_SOCKET_H 1
6656 _ACEOF
6657
6658 fi
6659
6660 done
6661
6662 for ac_header in net/if.h
6663 do :
6664 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6665 #if HAVE_SYS_SOCKET_H
6666 #include <sys/socket.h>
6667 #endif
6668 "
6669 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6670 cat >>confdefs.h <<_ACEOF
6671 #define HAVE_NET_IF_H 1
6672 _ACEOF
6673
6674 fi
6675
6676 done
6677
6678
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6680 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6681 if test "${ac_cv_struct_tm+set}" = set; then :
6682 $as_echo_n "(cached) " >&6
6683 else
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6686 #include <sys/types.h>
6687 #include <time.h>
6688
6689 int
6690 main ()
6691 {
6692 struct tm tm;
6693 int *p = &tm.tm_sec;
6694 return !p;
6695 ;
6696 return 0;
6697 }
6698 _ACEOF
6699 if ac_fn_c_try_compile "$LINENO"; then :
6700 ac_cv_struct_tm=time.h
6701 else
6702 ac_cv_struct_tm=sys/time.h
6703 fi
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705 fi
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6707 $as_echo "$ac_cv_struct_tm" >&6; }
6708 if test $ac_cv_struct_tm = sys/time.h; then
6709
6710 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6711
6712 fi
6713
6714 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6715 #include <$ac_cv_struct_tm>
6716
6717 "
6718 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6719
6720 cat >>confdefs.h <<_ACEOF
6721 #define HAVE_STRUCT_TM_TM_ZONE 1
6722 _ACEOF
6723
6724
6725 fi
6726
6727 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6728
6729 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6730
6731 else
6732 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6733 "
6734 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6735 ac_have_decl=1
6736 else
6737 ac_have_decl=0
6738 fi
6739
6740 cat >>confdefs.h <<_ACEOF
6741 #define HAVE_DECL_TZNAME $ac_have_decl
6742 _ACEOF
6743
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6745 $as_echo_n "checking for tzname... " >&6; }
6746 if test "${ac_cv_var_tzname+set}" = set; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 #include <time.h>
6752 #if !HAVE_DECL_TZNAME
6753 extern char *tzname[];
6754 #endif
6755
6756 int
6757 main ()
6758 {
6759 return tzname[0][0];
6760 ;
6761 return 0;
6762 }
6763 _ACEOF
6764 if ac_fn_c_try_link "$LINENO"; then :
6765 ac_cv_var_tzname=yes
6766 else
6767 ac_cv_var_tzname=no
6768 fi
6769 rm -f core conftest.err conftest.$ac_objext \
6770 conftest$ac_exeext conftest.$ac_ext
6771 fi
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6773 $as_echo "$ac_cv_var_tzname" >&6; }
6774 if test $ac_cv_var_tzname = yes; then
6775
6776 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6777
6778 fi
6779 fi
6780
6781 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6782 "
6783 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6784
6785 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6786
6787 fi
6788
6789 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6790 #if HAVE_SYS_SOCKET_H
6791 #include <sys/socket.h>
6792 #endif
6793 #if HAVE_NET_IF_H
6794 #include <net/if.h>
6795 #endif
6796 "
6797 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6798
6799 cat >>confdefs.h <<_ACEOF
6800 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6801 _ACEOF
6802
6803
6804 fi
6805 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6806 #if HAVE_SYS_SOCKET_H
6807 #include <sys/socket.h>
6808 #endif
6809 #if HAVE_NET_IF_H
6810 #include <net/if.h>
6811 #endif
6812 "
6813 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6814
6815 cat >>confdefs.h <<_ACEOF
6816 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6817 _ACEOF
6818
6819
6820 fi
6821 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6822 #if HAVE_SYS_SOCKET_H
6823 #include <sys/socket.h>
6824 #endif
6825 #if HAVE_NET_IF_H
6826 #include <net/if.h>
6827 #endif
6828 "
6829 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6830
6831 cat >>confdefs.h <<_ACEOF
6832 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6833 _ACEOF
6834
6835
6836 fi
6837 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6838 #if HAVE_SYS_SOCKET_H
6839 #include <sys/socket.h>
6840 #endif
6841 #if HAVE_NET_IF_H
6842 #include <net/if.h>
6843 #endif
6844 "
6845 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6846
6847 cat >>confdefs.h <<_ACEOF
6848 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6849 _ACEOF
6850
6851
6852 fi
6853 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6854 #if HAVE_SYS_SOCKET_H
6855 #include <sys/socket.h>
6856 #endif
6857 #if HAVE_NET_IF_H
6858 #include <net/if.h>
6859 #endif
6860 "
6861 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6862
6863 cat >>confdefs.h <<_ACEOF
6864 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6865 _ACEOF
6866
6867
6868 fi
6869
6870
6871
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6873 $as_echo_n "checking for function prototypes... " >&6; }
6874 if test "$ac_cv_prog_cc_c89" != no; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6876 $as_echo "yes" >&6; }
6877
6878 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6879
6880
6881 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6882
6883 else
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6886 fi
6887
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6889 $as_echo_n "checking for working volatile... " >&6; }
6890 if test "${ac_cv_c_volatile+set}" = set; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6895
6896 int
6897 main ()
6898 {
6899
6900 volatile int x;
6901 int * volatile y = (int *) 0;
6902 return !x && !y;
6903 ;
6904 return 0;
6905 }
6906 _ACEOF
6907 if ac_fn_c_try_compile "$LINENO"; then :
6908 ac_cv_c_volatile=yes
6909 else
6910 ac_cv_c_volatile=no
6911 fi
6912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913 fi
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6915 $as_echo "$ac_cv_c_volatile" >&6; }
6916 if test $ac_cv_c_volatile = no; then
6917
6918 $as_echo "#define volatile /**/" >>confdefs.h
6919
6920 fi
6921
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6923 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6924 if test "${ac_cv_c_const+set}" = set; then :
6925 $as_echo_n "(cached) " >&6
6926 else
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h. */
6929
6930 int
6931 main ()
6932 {
6933 /* FIXME: Include the comments suggested by Paul. */
6934 #ifndef __cplusplus
6935 /* Ultrix mips cc rejects this. */
6936 typedef int charset[2];
6937 const charset cs;
6938 /* SunOS 4.1.1 cc rejects this. */
6939 char const *const *pcpcc;
6940 char **ppc;
6941 /* NEC SVR4.0.2 mips cc rejects this. */
6942 struct point {int x, y;};
6943 static struct point const zero = {0,0};
6944 /* AIX XL C 1.02.0.0 rejects this.
6945 It does not let you subtract one const X* pointer from another in
6946 an arm of an if-expression whose if-part is not a constant
6947 expression */
6948 const char *g = "string";
6949 pcpcc = &g + (g ? g-g : 0);
6950 /* HPUX 7.0 cc rejects these. */
6951 ++pcpcc;
6952 ppc = (char**) pcpcc;
6953 pcpcc = (char const *const *) ppc;
6954 { /* SCO 3.2v4 cc rejects this. */
6955 char *t;
6956 char const *s = 0 ? (char *) 0 : (char const *) 0;
6957
6958 *t++ = 0;
6959 if (s) return 0;
6960 }
6961 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6962 int x[] = {25, 17};
6963 const int *foo = &x[0];
6964 ++foo;
6965 }
6966 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6967 typedef const int *iptr;
6968 iptr p = 0;
6969 ++p;
6970 }
6971 { /* AIX XL C 1.02.0.0 rejects this saying
6972 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6973 struct s { int j; const int *ap[3]; };
6974 struct s *b; b->j = 5;
6975 }
6976 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6977 const int foo = 10;
6978 if (!foo) return 0;
6979 }
6980 return !cs[0] && !zero.x;
6981 #endif
6982
6983 ;
6984 return 0;
6985 }
6986 _ACEOF
6987 if ac_fn_c_try_compile "$LINENO"; then :
6988 ac_cv_c_const=yes
6989 else
6990 ac_cv_c_const=no
6991 fi
6992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6993 fi
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6995 $as_echo "$ac_cv_c_const" >&6; }
6996 if test $ac_cv_c_const = no; then
6997
6998 $as_echo "#define const /**/" >>confdefs.h
6999
7000 fi
7001
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7003 $as_echo_n "checking for void * support... " >&6; }
7004 if test "${emacs_cv_void_star+set}" = set; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7009
7010 int
7011 main ()
7012 {
7013 void * foo;
7014 ;
7015 return 0;
7016 }
7017 _ACEOF
7018 if ac_fn_c_try_compile "$LINENO"; then :
7019 emacs_cv_void_star=yes
7020 else
7021 emacs_cv_void_star=no
7022 fi
7023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7024 fi
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7026 $as_echo "$emacs_cv_void_star" >&6; }
7027 if test $emacs_cv_void_star = yes; then
7028 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7029
7030 else
7031 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7032
7033 fi
7034
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7036 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7037 if test "${ac_cv_c_bigendian+set}" = set; then :
7038 $as_echo_n "(cached) " >&6
7039 else
7040 ac_cv_c_bigendian=unknown
7041 # See if we're dealing with a universal compiler.
7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h. */
7044 #ifndef __APPLE_CC__
7045 not a universal capable compiler
7046 #endif
7047 typedef int dummy;
7048
7049 _ACEOF
7050 if ac_fn_c_try_compile "$LINENO"; then :
7051
7052 # Check for potential -arch flags. It is not universal unless
7053 # there are at least two -arch flags with different values.
7054 ac_arch=
7055 ac_prev=
7056 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7057 if test -n "$ac_prev"; then
7058 case $ac_word in
7059 i?86 | x86_64 | ppc | ppc64)
7060 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7061 ac_arch=$ac_word
7062 else
7063 ac_cv_c_bigendian=universal
7064 break
7065 fi
7066 ;;
7067 esac
7068 ac_prev=
7069 elif test "x$ac_word" = "x-arch"; then
7070 ac_prev=arch
7071 fi
7072 done
7073 fi
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075 if test $ac_cv_c_bigendian = unknown; then
7076 # See if sys/param.h defines the BYTE_ORDER macro.
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7079 #include <sys/types.h>
7080 #include <sys/param.h>
7081
7082 int
7083 main ()
7084 {
7085 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7086 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7087 && LITTLE_ENDIAN)
7088 bogus endian macros
7089 #endif
7090
7091 ;
7092 return 0;
7093 }
7094 _ACEOF
7095 if ac_fn_c_try_compile "$LINENO"; then :
7096 # It does; now see whether it defined to BIG_ENDIAN or not.
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099 #include <sys/types.h>
7100 #include <sys/param.h>
7101
7102 int
7103 main ()
7104 {
7105 #if BYTE_ORDER != BIG_ENDIAN
7106 not big endian
7107 #endif
7108
7109 ;
7110 return 0;
7111 }
7112 _ACEOF
7113 if ac_fn_c_try_compile "$LINENO"; then :
7114 ac_cv_c_bigendian=yes
7115 else
7116 ac_cv_c_bigendian=no
7117 fi
7118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119 fi
7120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7121 fi
7122 if test $ac_cv_c_bigendian = unknown; then
7123 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125 /* end confdefs.h. */
7126 #include <limits.h>
7127
7128 int
7129 main ()
7130 {
7131 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7132 bogus endian macros
7133 #endif
7134
7135 ;
7136 return 0;
7137 }
7138 _ACEOF
7139 if ac_fn_c_try_compile "$LINENO"; then :
7140 # It does; now see whether it defined to _BIG_ENDIAN or not.
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143 #include <limits.h>
7144
7145 int
7146 main ()
7147 {
7148 #ifndef _BIG_ENDIAN
7149 not big endian
7150 #endif
7151
7152 ;
7153 return 0;
7154 }
7155 _ACEOF
7156 if ac_fn_c_try_compile "$LINENO"; then :
7157 ac_cv_c_bigendian=yes
7158 else
7159 ac_cv_c_bigendian=no
7160 fi
7161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7162 fi
7163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164 fi
7165 if test $ac_cv_c_bigendian = unknown; then
7166 # Compile a test program.
7167 if test "$cross_compiling" = yes; then :
7168 # Try to guess by grepping values from an object file.
7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h. */
7171 short int ascii_mm[] =
7172 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7173 short int ascii_ii[] =
7174 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7175 int use_ascii (int i) {
7176 return ascii_mm[i] + ascii_ii[i];
7177 }
7178 short int ebcdic_ii[] =
7179 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7180 short int ebcdic_mm[] =
7181 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7182 int use_ebcdic (int i) {
7183 return ebcdic_mm[i] + ebcdic_ii[i];
7184 }
7185 extern int foo;
7186
7187 int
7188 main ()
7189 {
7190 return use_ascii (foo) == use_ebcdic (foo);
7191 ;
7192 return 0;
7193 }
7194 _ACEOF
7195 if ac_fn_c_try_compile "$LINENO"; then :
7196 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7197 ac_cv_c_bigendian=yes
7198 fi
7199 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7200 if test "$ac_cv_c_bigendian" = unknown; then
7201 ac_cv_c_bigendian=no
7202 else
7203 # finding both strings is unlikely to happen, but who knows?
7204 ac_cv_c_bigendian=unknown
7205 fi
7206 fi
7207 fi
7208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209 else
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 $ac_includes_default
7213 int
7214 main ()
7215 {
7216
7217 /* Are we little or big endian? From Harbison&Steele. */
7218 union
7219 {
7220 long int l;
7221 char c[sizeof (long int)];
7222 } u;
7223 u.l = 1;
7224 return u.c[sizeof (long int) - 1] == 1;
7225
7226 ;
7227 return 0;
7228 }
7229 _ACEOF
7230 if ac_fn_c_try_run "$LINENO"; then :
7231 ac_cv_c_bigendian=no
7232 else
7233 ac_cv_c_bigendian=yes
7234 fi
7235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7236 conftest.$ac_objext conftest.beam conftest.$ac_ext
7237 fi
7238
7239 fi
7240 fi
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7242 $as_echo "$ac_cv_c_bigendian" >&6; }
7243 case $ac_cv_c_bigendian in #(
7244 yes)
7245 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7246 ;; #(
7247 no)
7248 ;; #(
7249 universal)
7250
7251 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7252
7253 ;; #(
7254 *)
7255 as_fn_error $? "unknown endianness
7256 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7257 esac
7258
7259
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7261 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7262 set x ${MAKE-make}
7263 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7264 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 cat >conftest.make <<\_ACEOF
7268 SHELL = /bin/sh
7269 all:
7270 @echo '@@@%%%=$(MAKE)=@@@%%%'
7271 _ACEOF
7272 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7273 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7274 *@@@%%%=?*=@@@%%%*)
7275 eval ac_cv_prog_make_${ac_make}_set=yes;;
7276 *)
7277 eval ac_cv_prog_make_${ac_make}_set=no;;
7278 esac
7279 rm -f conftest.make
7280 fi
7281 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7283 $as_echo "yes" >&6; }
7284 SET_MAKE=
7285 else
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 $as_echo "no" >&6; }
7288 SET_MAKE="MAKE=${MAKE-make}"
7289 fi
7290
7291
7292 DEPFLAGS=
7293 MKDEPDIR=":"
7294 deps_frag=deps.mk
7295 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7297 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7298 HAVE_GNU_MAKE=no
7299 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7300 if test "x$testval" != x; then
7301 HAVE_GNU_MAKE=yes
7302 else
7303 ac_enable_autodepend=no
7304 fi
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7306 $as_echo "$HAVE_GNU_MAKE" >&6; }
7307 if test $HAVE_GNU_MAKE = yes; then
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7309 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7310 SAVE_CFLAGS="$CFLAGS"
7311 CFLAGS="$CFLAGS -MMD -MF deps.d"
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7314
7315 int
7316 main ()
7317 {
7318
7319 ;
7320 return 0;
7321 }
7322 _ACEOF
7323 if ac_fn_c_try_compile "$LINENO"; then :
7324
7325 else
7326 ac_enable_autodepend=no
7327 fi
7328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7329 CFLAGS="$SAVE_CFLAGS"
7330 test -f deps.d || ac_enable_autodepend=no
7331 rm -rf deps.d
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7333 $as_echo "$ac_enable_autodepend" >&6; }
7334 fi
7335 if test $ac_enable_autodepend = yes; then
7336 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7337 ## In parallel builds, another make might create depdir between
7338 ## the first test and mkdir, so stick another test on the end.
7339 ## Or use mkinstalldirs? mkdir -p is not portable.
7340 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7341 deps_frag=autodeps.mk
7342 fi
7343 fi
7344 deps_frag=$srcdir/src/$deps_frag
7345
7346
7347
7348
7349
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7351 $as_echo_n "checking for long file names... " >&6; }
7352 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7353 $as_echo_n "(cached) " >&6
7354 else
7355 ac_cv_sys_long_file_names=yes
7356 # Test for long file names in all the places we know might matter:
7357 # . the current directory, where building will happen
7358 # $prefix/lib where we will be installing things
7359 # $exec_prefix/lib likewise
7360 # $TMPDIR if set, where it might want to write temporary files
7361 # /tmp where it might want to write temporary files
7362 # /var/tmp likewise
7363 # /usr/tmp likewise
7364 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7365 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7366 # in the usual case where exec_prefix is '${prefix}'.
7367 case $ac_dir in #(
7368 . | /* | ?:[\\/]*) ;; #(
7369 *) continue;;
7370 esac
7371 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7372 ac_xdir=$ac_dir/cf$$
7373 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7374 ac_tf1=$ac_xdir/conftest9012345
7375 ac_tf2=$ac_xdir/conftest9012346
7376 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7377 ac_cv_sys_long_file_names=no
7378 rm -f -r "$ac_xdir" 2>/dev/null
7379 test $ac_cv_sys_long_file_names = no && break
7380 done
7381 fi
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7383 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7384 if test $ac_cv_sys_long_file_names = yes; then
7385
7386 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7387
7388 fi
7389
7390
7391 #### Choose a window system.
7392
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7394 $as_echo_n "checking for X... " >&6; }
7395
7396
7397 # Check whether --with-x was given.
7398 if test "${with_x+set}" = set; then :
7399 withval=$with_x;
7400 fi
7401
7402 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7403 if test "x$with_x" = xno; then
7404 # The user explicitly disabled X.
7405 have_x=disabled
7406 else
7407 case $x_includes,$x_libraries in #(
7408 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7409 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7410 $as_echo_n "(cached) " >&6
7411 else
7412 # One or both of the vars are not set, and there is no cached value.
7413 ac_x_includes=no ac_x_libraries=no
7414 rm -f -r conftest.dir
7415 if mkdir conftest.dir; then
7416 cd conftest.dir
7417 cat >Imakefile <<'_ACEOF'
7418 incroot:
7419 @echo incroot='${INCROOT}'
7420 usrlibdir:
7421 @echo usrlibdir='${USRLIBDIR}'
7422 libdir:
7423 @echo libdir='${LIBDIR}'
7424 _ACEOF
7425 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7426 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7427 for ac_var in incroot usrlibdir libdir; do
7428 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7429 done
7430 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7431 for ac_extension in a so sl dylib la dll; do
7432 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7433 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7434 ac_im_usrlibdir=$ac_im_libdir; break
7435 fi
7436 done
7437 # Screen out bogus values from the imake configuration. They are
7438 # bogus both because they are the default anyway, and because
7439 # using them would break gcc on systems where it needs fixed includes.
7440 case $ac_im_incroot in
7441 /usr/include) ac_x_includes= ;;
7442 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7443 esac
7444 case $ac_im_usrlibdir in
7445 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7446 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7447 esac
7448 fi
7449 cd ..
7450 rm -f -r conftest.dir
7451 fi
7452
7453 # Standard set of common directories for X headers.
7454 # Check X11 before X11Rn because it is often a symlink to the current release.
7455 ac_x_header_dirs='
7456 /usr/X11/include
7457 /usr/X11R7/include
7458 /usr/X11R6/include
7459 /usr/X11R5/include
7460 /usr/X11R4/include
7461
7462 /usr/include/X11
7463 /usr/include/X11R7
7464 /usr/include/X11R6
7465 /usr/include/X11R5
7466 /usr/include/X11R4
7467
7468 /usr/local/X11/include
7469 /usr/local/X11R7/include
7470 /usr/local/X11R6/include
7471 /usr/local/X11R5/include
7472 /usr/local/X11R4/include
7473
7474 /usr/local/include/X11
7475 /usr/local/include/X11R7
7476 /usr/local/include/X11R6
7477 /usr/local/include/X11R5
7478 /usr/local/include/X11R4
7479
7480 /usr/X386/include
7481 /usr/x386/include
7482 /usr/XFree86/include/X11
7483
7484 /usr/include
7485 /usr/local/include
7486 /usr/unsupported/include
7487 /usr/athena/include
7488 /usr/local/x11r5/include
7489 /usr/lpp/Xamples/include
7490
7491 /usr/openwin/include
7492 /usr/openwin/share/include'
7493
7494 if test "$ac_x_includes" = no; then
7495 # Guess where to find include files, by looking for Xlib.h.
7496 # First, try using that file with no special directory specified.
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7499 #include <X11/Xlib.h>
7500 _ACEOF
7501 if ac_fn_c_try_cpp "$LINENO"; then :
7502 # We can compile using X headers with no special include directory.
7503 ac_x_includes=
7504 else
7505 for ac_dir in $ac_x_header_dirs; do
7506 if test -r "$ac_dir/X11/Xlib.h"; then
7507 ac_x_includes=$ac_dir
7508 break
7509 fi
7510 done
7511 fi
7512 rm -f conftest.err conftest.i conftest.$ac_ext
7513 fi # $ac_x_includes = no
7514
7515 if test "$ac_x_libraries" = no; then
7516 # Check for the libraries.
7517 # See if we find them without any special options.
7518 # Don't add to $LIBS permanently.
7519 ac_save_LIBS=$LIBS
7520 LIBS="-lX11 $LIBS"
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7523 #include <X11/Xlib.h>
7524 int
7525 main ()
7526 {
7527 XrmInitialize ()
7528 ;
7529 return 0;
7530 }
7531 _ACEOF
7532 if ac_fn_c_try_link "$LINENO"; then :
7533 LIBS=$ac_save_LIBS
7534 # We can link X programs with no special library path.
7535 ac_x_libraries=
7536 else
7537 LIBS=$ac_save_LIBS
7538 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7539 do
7540 # Don't even attempt the hair of trying to link an X program!
7541 for ac_extension in a so sl dylib la dll; do
7542 if test -r "$ac_dir/libX11.$ac_extension"; then
7543 ac_x_libraries=$ac_dir
7544 break 2
7545 fi
7546 done
7547 done
7548 fi
7549 rm -f core conftest.err conftest.$ac_objext \
7550 conftest$ac_exeext conftest.$ac_ext
7551 fi # $ac_x_libraries = no
7552
7553 case $ac_x_includes,$ac_x_libraries in #(
7554 no,* | *,no | *\'*)
7555 # Didn't find X, or a directory has "'" in its name.
7556 ac_cv_have_x="have_x=no";; #(
7557 *)
7558 # Record where we found X for the cache.
7559 ac_cv_have_x="have_x=yes\
7560 ac_x_includes='$ac_x_includes'\
7561 ac_x_libraries='$ac_x_libraries'"
7562 esac
7563 fi
7564 ;; #(
7565 *) have_x=yes;;
7566 esac
7567 eval "$ac_cv_have_x"
7568 fi # $with_x != no
7569
7570 if test "$have_x" != yes; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7572 $as_echo "$have_x" >&6; }
7573 no_x=yes
7574 else
7575 # If each of the values was on the command line, it overrides each guess.
7576 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7577 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7578 # Update the cache value to reflect the command line values.
7579 ac_cv_have_x="have_x=yes\
7580 ac_x_includes='$x_includes'\
7581 ac_x_libraries='$x_libraries'"
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7583 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7584 fi
7585
7586 if test "$no_x" = yes; then
7587 window_system=none
7588 else
7589 window_system=x11
7590 fi
7591
7592 ## Workaround for bug in autoconf <= 2.62.
7593 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7594 ## No need to do anything special for these standard directories.
7595 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7596
7597 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7598
7599 fi
7600
7601 LD_SWITCH_X_SITE_AUX=
7602 LD_SWITCH_X_SITE_AUX_RPATH=
7603 if test "${x_libraries}" != NONE; then
7604 if test -n "${x_libraries}"; then
7605 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7606 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7607 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7608 fi
7609 x_default_search_path=""
7610 x_search_path=${x_libraries}
7611 if test -z "${x_search_path}"; then
7612 x_search_path=/usr/lib
7613 fi
7614 for x_library in `echo ${x_search_path}: | \
7615 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7616 x_search_path="\
7617 ${x_library}/X11/%L/%T/%N%C%S:\
7618 ${x_library}/X11/%l/%T/%N%C%S:\
7619 ${x_library}/X11/%T/%N%C%S:\
7620 ${x_library}/X11/%L/%T/%N%S:\
7621 ${x_library}/X11/%l/%T/%N%S:\
7622 ${x_library}/X11/%T/%N%S"
7623 if test x"${x_default_search_path}" = x; then
7624 x_default_search_path=${x_search_path}
7625 else
7626 x_default_search_path="${x_search_path}:${x_default_search_path}"
7627 fi
7628 done
7629 fi
7630
7631
7632
7633 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7634 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7635 fi
7636
7637 if test x"${x_includes}" = x; then
7638 bitmapdir=/usr/include/X11/bitmaps
7639 else
7640 # accumulate include directories that have X11 bitmap subdirectories
7641 bmd_acc="dummyval"
7642 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7643 if test -d "${bmd}/X11/bitmaps"; then
7644 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7645 fi
7646 if test -d "${bmd}/bitmaps"; then
7647 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7648 fi
7649 done
7650 if test ${bmd_acc} != "dummyval"; then
7651 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7652 fi
7653 fi
7654
7655 HAVE_NS=no
7656 NS_IMPL_COCOA=no
7657 NS_IMPL_GNUSTEP=no
7658 tmp_CPPFLAGS="$CPPFLAGS"
7659 tmp_CFLAGS="$CFLAGS"
7660 CPPFLAGS="$CPPFLAGS -x objective-c"
7661 CFLAGS="$CFLAGS -x objective-c"
7662 TEMACS_LDFLAGS2="\${LDFLAGS}"
7663 if test "${with_ns}" != no; then
7664 if test "${opsys}" = darwin; then
7665 NS_IMPL_COCOA=yes
7666 ns_appdir=`pwd`/nextstep/Emacs.app
7667 ns_appbindir=${ns_appdir}/Contents/MacOS/
7668 ns_appresdir=${ns_appdir}/Contents/Resources
7669 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7670 elif test -f $GNUSTEP_CONFIG_FILE; then
7671 NS_IMPL_GNUSTEP=yes
7672 ns_appdir=`pwd`/nextstep/Emacs.app
7673 ns_appbindir=${ns_appdir}/
7674 ns_appresdir=${ns_appdir}/Resources
7675 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7676 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7677 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7678 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7679 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7680 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7681 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7682 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7683 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7684 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7685 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7686 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7687 LIB_STANDARD=
7688 START_FILES=
7689 TEMACS_LDFLAGS2=
7690 fi
7691 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7692 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7693 HAVE_NS=yes
7694 else
7695 as_fn_error $? "\`--with-ns' was specified, but the include
7696 files are missing or cannot be compiled." "$LINENO" 5
7697 fi
7698
7699
7700 NS_HAVE_NSINTEGER=yes
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7703 #include <Foundation/NSObjCRuntime.h>
7704 int
7705 main ()
7706 {
7707 NSInteger i;
7708 ;
7709 return 0;
7710 }
7711 _ACEOF
7712 if ac_fn_c_try_compile "$LINENO"; then :
7713 ns_have_nsinteger=yes
7714 else
7715 ns_have_nsinteger=no
7716 fi
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 if test $ns_have_nsinteger = no; then
7719 NS_HAVE_NSINTEGER=no
7720 fi
7721 fi
7722
7723
7724 ns_frag=/dev/null
7725 NS_OBJ=
7726 NS_SUPPORT=
7727 if test "${HAVE_NS}" = yes; then
7728 window_system=nextstep
7729 with_xft=no
7730 # set up packaging dirs
7731 exec_prefix=${ns_appbindir}
7732 libexecdir=${ns_appbindir}/libexec
7733 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7734 prefix=${ns_appresdir}
7735 fi
7736 ns_frag=$srcdir/src/ns.mk
7737 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7738 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
7739 fi
7740 CFLAGS="$tmp_CFLAGS"
7741 CPPFLAGS="$tmp_CPPFLAGS"
7742
7743
7744
7745
7746
7747 case "${window_system}" in
7748 x11 )
7749 HAVE_X_WINDOWS=yes
7750 HAVE_X11=yes
7751 case "${with_x_toolkit}" in
7752 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7753 motif ) USE_X_TOOLKIT=MOTIF ;;
7754 gtk ) with_gtk=yes
7755 USE_X_TOOLKIT=none ;;
7756 gtk3 ) with_gtk3=yes
7757 USE_X_TOOLKIT=none ;;
7758 no ) USE_X_TOOLKIT=none ;;
7759 * ) USE_X_TOOLKIT=maybe ;;
7760 esac
7761 ;;
7762 nextstep | none )
7763 HAVE_X_WINDOWS=no
7764 HAVE_X11=no
7765 USE_X_TOOLKIT=none
7766 ;;
7767 esac
7768
7769 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7770 # Extract the first word of "X", so it can be a program name with args.
7771 set dummy X; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7775 $as_echo_n "(cached) " >&6
7776 else
7777 if test -n "$HAVE_XSERVER"; then
7778 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7787 ac_cv_prog_HAVE_XSERVER="true"
7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791 done
7792 done
7793 IFS=$as_save_IFS
7794
7795 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7796 fi
7797 fi
7798 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7799 if test -n "$HAVE_XSERVER"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7801 $as_echo "$HAVE_XSERVER" >&6; }
7802 else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7805 fi
7806
7807
7808 if test "$HAVE_XSERVER" = true ||
7809 test -n "$DISPLAY" ||
7810 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7811 as_fn_error $? "You seem to be running X, but no X development libraries
7812 were found. You should install the relevant development files for X
7813 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7814 sure you have development files for image handling, i.e.
7815 tiff, gif, jpeg, png and xpm.
7816 If you are sure you want Emacs compiled without X window support, pass
7817 --without-x
7818 to configure." "$LINENO" 5
7819 fi
7820 fi
7821
7822 ### If we're using X11, we should use the X menu package.
7823 HAVE_MENUS=no
7824 case ${HAVE_X11} in
7825 yes ) HAVE_MENUS=yes ;;
7826 esac
7827
7828 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7829 # Assume not, until told otherwise.
7830 GNU_MALLOC=yes
7831 doug_lea_malloc=yes
7832 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7833 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7834
7835 else
7836 doug_lea_malloc=no
7837 fi
7838
7839 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7840 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7841
7842 else
7843 doug_lea_malloc=no
7844 fi
7845
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7847 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7848 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853 extern void (* __after_morecore_hook)();
7854 int
7855 main ()
7856 {
7857 __after_morecore_hook = 0
7858 ;
7859 return 0;
7860 }
7861 _ACEOF
7862 if ac_fn_c_try_link "$LINENO"; then :
7863 emacs_cv_var___after_morecore_hook=yes
7864 else
7865 emacs_cv_var___after_morecore_hook=no
7866 fi
7867 rm -f core conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7869 fi
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7871 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7872 if test $emacs_cv_var___after_morecore_hook = no; then
7873 doug_lea_malloc=no
7874 fi
7875
7876
7877 system_malloc=no
7878 case "$opsys" in
7879 ## darwin ld insists on the use of malloc routines in the System framework.
7880 darwin|sol2-10) system_malloc=yes ;;
7881 esac
7882
7883 if test "${system_malloc}" = "yes"; then
7884
7885 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7886
7887 GNU_MALLOC=no
7888 GNU_MALLOC_reason="
7889 (The GNU allocators don't work with this system configuration.)"
7890 GMALLOC_OBJ=
7891 VMLIMIT_OBJ=
7892 else
7893 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7894 VMLIMIT_OBJ=vm-limit.o
7895 fi
7896
7897
7898
7899 if test "$doug_lea_malloc" = "yes" ; then
7900 if test "$GNU_MALLOC" = yes ; then
7901 GNU_MALLOC_reason="
7902 (Using Doug Lea's new malloc from the GNU C Library.)"
7903 fi
7904
7905 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7906
7907
7908 ## Use mmap directly for allocating larger buffers.
7909 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7910 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7911 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7912 case "$opsys" in
7913 gnu*) REL_ALLOC=no ;;
7914 esac
7915 fi
7916
7917 if test x"${REL_ALLOC}" = x; then
7918 REL_ALLOC=${GNU_MALLOC}
7919 fi
7920
7921 use_mmap_for_buffers=no
7922 case "$opsys" in
7923 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7924 esac
7925
7926
7927
7928
7929 for ac_header in $ac_header_list
7930 do :
7931 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7932 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7933 "
7934 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7935 cat >>confdefs.h <<_ACEOF
7936 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7937 _ACEOF
7938
7939 fi
7940
7941 done
7942
7943
7944
7945
7946
7947
7948
7949
7950 for ac_func in getpagesize
7951 do :
7952 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7953 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7954 cat >>confdefs.h <<_ACEOF
7955 #define HAVE_GETPAGESIZE 1
7956 _ACEOF
7957
7958 fi
7959 done
7960
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7962 $as_echo_n "checking for working mmap... " >&6; }
7963 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 if test "$cross_compiling" = yes; then :
7967 ac_cv_func_mmap_fixed_mapped=no
7968 else
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7971 $ac_includes_default
7972 /* malloc might have been renamed as rpl_malloc. */
7973 #undef malloc
7974
7975 /* Thanks to Mike Haertel and Jim Avera for this test.
7976 Here is a matrix of mmap possibilities:
7977 mmap private not fixed
7978 mmap private fixed at somewhere currently unmapped
7979 mmap private fixed at somewhere already mapped
7980 mmap shared not fixed
7981 mmap shared fixed at somewhere currently unmapped
7982 mmap shared fixed at somewhere already mapped
7983 For private mappings, we should verify that changes cannot be read()
7984 back from the file, nor mmap's back from the file at a different
7985 address. (There have been systems where private was not correctly
7986 implemented like the infamous i386 svr4.0, and systems where the
7987 VM page cache was not coherent with the file system buffer cache
7988 like early versions of FreeBSD and possibly contemporary NetBSD.)
7989 For shared mappings, we should conversely verify that changes get
7990 propagated back to all the places they're supposed to be.
7991
7992 Grep wants private fixed already mapped.
7993 The main things grep needs to know about mmap are:
7994 * does it exist and is it safe to write into the mmap'd area
7995 * how to use it (BSD variants) */
7996
7997 #include <fcntl.h>
7998 #include <sys/mman.h>
7999
8000 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8001 char *malloc ();
8002 #endif
8003
8004 /* This mess was copied from the GNU getpagesize.h. */
8005 #ifndef HAVE_GETPAGESIZE
8006 # ifdef _SC_PAGESIZE
8007 # define getpagesize() sysconf(_SC_PAGESIZE)
8008 # else /* no _SC_PAGESIZE */
8009 # ifdef HAVE_SYS_PARAM_H
8010 # include <sys/param.h>
8011 # ifdef EXEC_PAGESIZE
8012 # define getpagesize() EXEC_PAGESIZE
8013 # else /* no EXEC_PAGESIZE */
8014 # ifdef NBPG
8015 # define getpagesize() NBPG * CLSIZE
8016 # ifndef CLSIZE
8017 # define CLSIZE 1
8018 # endif /* no CLSIZE */
8019 # else /* no NBPG */
8020 # ifdef NBPC
8021 # define getpagesize() NBPC
8022 # else /* no NBPC */
8023 # ifdef PAGESIZE
8024 # define getpagesize() PAGESIZE
8025 # endif /* PAGESIZE */
8026 # endif /* no NBPC */
8027 # endif /* no NBPG */
8028 # endif /* no EXEC_PAGESIZE */
8029 # else /* no HAVE_SYS_PARAM_H */
8030 # define getpagesize() 8192 /* punt totally */
8031 # endif /* no HAVE_SYS_PARAM_H */
8032 # endif /* no _SC_PAGESIZE */
8033
8034 #endif /* no HAVE_GETPAGESIZE */
8035
8036 int
8037 main ()
8038 {
8039 char *data, *data2, *data3;
8040 const char *cdata2;
8041 int i, pagesize;
8042 int fd, fd2;
8043
8044 pagesize = getpagesize ();
8045
8046 /* First, make a file with some known garbage in it. */
8047 data = (char *) malloc (pagesize);
8048 if (!data)
8049 return 1;
8050 for (i = 0; i < pagesize; ++i)
8051 *(data + i) = rand ();
8052 umask (0);
8053 fd = creat ("conftest.mmap", 0600);
8054 if (fd < 0)
8055 return 2;
8056 if (write (fd, data, pagesize) != pagesize)
8057 return 3;
8058 close (fd);
8059
8060 /* Next, check that the tail of a page is zero-filled. File must have
8061 non-zero length, otherwise we risk SIGBUS for entire page. */
8062 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8063 if (fd2 < 0)
8064 return 4;
8065 cdata2 = "";
8066 if (write (fd2, cdata2, 1) != 1)
8067 return 5;
8068 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8069 if (data2 == MAP_FAILED)
8070 return 6;
8071 for (i = 0; i < pagesize; ++i)
8072 if (*(data2 + i))
8073 return 7;
8074 close (fd2);
8075 if (munmap (data2, pagesize))
8076 return 8;
8077
8078 /* Next, try to mmap the file at a fixed address which already has
8079 something else allocated at it. If we can, also make sure that
8080 we see the same garbage. */
8081 fd = open ("conftest.mmap", O_RDWR);
8082 if (fd < 0)
8083 return 9;
8084 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8085 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8086 return 10;
8087 for (i = 0; i < pagesize; ++i)
8088 if (*(data + i) != *(data2 + i))
8089 return 11;
8090
8091 /* Finally, make sure that changes to the mapped area do not
8092 percolate back to the file as seen by read(). (This is a bug on
8093 some variants of i386 svr4.0.) */
8094 for (i = 0; i < pagesize; ++i)
8095 *(data2 + i) = *(data2 + i) + 1;
8096 data3 = (char *) malloc (pagesize);
8097 if (!data3)
8098 return 12;
8099 if (read (fd, data3, pagesize) != pagesize)
8100 return 13;
8101 for (i = 0; i < pagesize; ++i)
8102 if (*(data + i) != *(data3 + i))
8103 return 14;
8104 close (fd);
8105 return 0;
8106 }
8107 _ACEOF
8108 if ac_fn_c_try_run "$LINENO"; then :
8109 ac_cv_func_mmap_fixed_mapped=yes
8110 else
8111 ac_cv_func_mmap_fixed_mapped=no
8112 fi
8113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8114 conftest.$ac_objext conftest.beam conftest.$ac_ext
8115 fi
8116
8117 fi
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8119 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8120 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8121
8122 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8123
8124 fi
8125 rm -f conftest.mmap conftest.txt
8126
8127 if test $use_mmap_for_buffers = yes; then
8128
8129 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8130
8131 REL_ALLOC=no
8132 fi
8133
8134 LIBS="$LIBS_SYSTEM $LIBS"
8135
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8137 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8138 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8139 $as_echo_n "(cached) " >&6
8140 else
8141 ac_check_lib_save_LIBS=$LIBS
8142 LIBS="-ldnet $LIBS"
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8145
8146 /* Override any GCC internal prototype to avoid an error.
8147 Use char because int might match the return type of a GCC
8148 builtin and then its argument prototype would still apply. */
8149 #ifdef __cplusplus
8150 extern "C"
8151 #endif
8152 char dnet_ntoa ();
8153 int
8154 main ()
8155 {
8156 return dnet_ntoa ();
8157 ;
8158 return 0;
8159 }
8160 _ACEOF
8161 if ac_fn_c_try_link "$LINENO"; then :
8162 ac_cv_lib_dnet_dnet_ntoa=yes
8163 else
8164 ac_cv_lib_dnet_dnet_ntoa=no
8165 fi
8166 rm -f core conftest.err conftest.$ac_objext \
8167 conftest$ac_exeext conftest.$ac_ext
8168 LIBS=$ac_check_lib_save_LIBS
8169 fi
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8171 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8172 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
8173 cat >>confdefs.h <<_ACEOF
8174 #define HAVE_LIBDNET 1
8175 _ACEOF
8176
8177 LIBS="-ldnet $LIBS"
8178
8179 fi
8180
8181
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8183 $as_echo_n "checking for main in -lXbsd... " >&6; }
8184 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8185 $as_echo_n "(cached) " >&6
8186 else
8187 ac_check_lib_save_LIBS=$LIBS
8188 LIBS="-lXbsd $LIBS"
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8191
8192
8193 int
8194 main ()
8195 {
8196 return main ();
8197 ;
8198 return 0;
8199 }
8200 _ACEOF
8201 if ac_fn_c_try_link "$LINENO"; then :
8202 ac_cv_lib_Xbsd_main=yes
8203 else
8204 ac_cv_lib_Xbsd_main=no
8205 fi
8206 rm -f core conftest.err conftest.$ac_objext \
8207 conftest$ac_exeext conftest.$ac_ext
8208 LIBS=$ac_check_lib_save_LIBS
8209 fi
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8211 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8212 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
8213 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8214 fi
8215
8216
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8218 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8219 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 ac_check_lib_save_LIBS=$LIBS
8223 LIBS="-lpthreads $LIBS"
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8226
8227 /* Override any GCC internal prototype to avoid an error.
8228 Use char because int might match the return type of a GCC
8229 builtin and then its argument prototype would still apply. */
8230 #ifdef __cplusplus
8231 extern "C"
8232 #endif
8233 char cma_open ();
8234 int
8235 main ()
8236 {
8237 return cma_open ();
8238 ;
8239 return 0;
8240 }
8241 _ACEOF
8242 if ac_fn_c_try_link "$LINENO"; then :
8243 ac_cv_lib_pthreads_cma_open=yes
8244 else
8245 ac_cv_lib_pthreads_cma_open=no
8246 fi
8247 rm -f core conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
8249 LIBS=$ac_check_lib_save_LIBS
8250 fi
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8252 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8253 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
8254 cat >>confdefs.h <<_ACEOF
8255 #define HAVE_LIBPTHREADS 1
8256 _ACEOF
8257
8258 LIBS="-lpthreads $LIBS"
8259
8260 fi
8261
8262
8263 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8264 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8265 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8266 ## added to LIBS in configure would never contain the pthreads part,
8267 ## but the value used in Makefiles might. FIXME?
8268 ##
8269 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8270 ## be harmless on older versions of X where it happens to exist.
8271 test "$opsys" = "aix4-2" && \
8272 test $ac_cv_lib_pthreads_cma_open = yes && \
8273 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8274
8275
8276 case ${host_os} in
8277 aix*)
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8279 $as_echo_n "checking for -bbigtoc option... " >&6; }
8280 if test "${gdb_cv_bigtoc+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283
8284 case $GCC in
8285 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8286 *) gdb_cv_bigtoc=-bbigtoc ;;
8287 esac
8288
8289 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291 /* end confdefs.h. */
8292
8293 int
8294 main ()
8295 {
8296 int i;
8297 ;
8298 return 0;
8299 }
8300 _ACEOF
8301 if ac_fn_c_try_link "$LINENO"; then :
8302
8303 else
8304 gdb_cv_bigtoc=
8305 fi
8306 rm -f core conftest.err conftest.$ac_objext \
8307 conftest$ac_exeext conftest.$ac_ext
8308
8309 fi
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8311 $as_echo "$gdb_cv_bigtoc" >&6; }
8312 ;;
8313 esac
8314
8315 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8316 # used for the tests that follow. We set them back to REAL_CFLAGS and
8317 # REAL_CPPFLAGS later on.
8318
8319 REAL_CFLAGS="$CFLAGS"
8320 REAL_CPPFLAGS="$CPPFLAGS"
8321
8322 if test "${HAVE_X11}" = "yes"; then
8323 DEFS="$C_SWITCH_X_SITE $DEFS"
8324 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8325 LIBS="-lX11 $LIBS"
8326 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8327 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8328
8329 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8330 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8331 # but it's more convenient here to set LD_RUN_PATH
8332 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8333 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8334 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8335 export LD_RUN_PATH
8336 fi
8337
8338 if test "${opsys}" = "gnu-linux"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8340 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343
8344 int
8345 main ()
8346 {
8347 XOpenDisplay ("foo");
8348 ;
8349 return 0;
8350 }
8351 _ACEOF
8352 if ac_fn_c_try_link "$LINENO"; then :
8353 xlinux_first_failure=no
8354 else
8355 xlinux_first_failure=yes
8356 fi
8357 rm -f core conftest.err conftest.$ac_objext \
8358 conftest$ac_exeext conftest.$ac_ext
8359 if test "${xlinux_first_failure}" = "yes"; then
8360 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8361 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8362 OLD_CPPFLAGS="$CPPFLAGS"
8363 OLD_LIBS="$LIBS"
8364 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8365 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8366 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8367 LIBS="$LIBS -b i486-linuxaout"
8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8370
8371 int
8372 main ()
8373 {
8374 XOpenDisplay ("foo");
8375 ;
8376 return 0;
8377 }
8378 _ACEOF
8379 if ac_fn_c_try_link "$LINENO"; then :
8380 xlinux_second_failure=no
8381 else
8382 xlinux_second_failure=yes
8383 fi
8384 rm -f core conftest.err conftest.$ac_objext \
8385 conftest$ac_exeext conftest.$ac_ext
8386 if test "${xlinux_second_failure}" = "yes"; then
8387 # If we get the same failure with -b, there is no use adding -b.
8388 # So take it out. This plays safe.
8389 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8390 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8391 CPPFLAGS="$OLD_CPPFLAGS"
8392 LIBS="$OLD_LIBS"
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8395 else
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8397 $as_echo "yes" >&6; }
8398 fi
8399 else
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 $as_echo "no" >&6; }
8402 fi
8403 fi
8404
8405 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8406 # header files included from there.
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8408 $as_echo_n "checking for Xkb... " >&6; }
8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410 /* end confdefs.h. */
8411 #include <X11/Xlib.h>
8412 #include <X11/XKBlib.h>
8413 int
8414 main ()
8415 {
8416 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8417 ;
8418 return 0;
8419 }
8420 _ACEOF
8421 if ac_fn_c_try_link "$LINENO"; then :
8422 emacs_xkb=yes
8423 else
8424 emacs_xkb=no
8425 fi
8426 rm -f core conftest.err conftest.$ac_objext \
8427 conftest$ac_exeext conftest.$ac_ext
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8429 $as_echo "$emacs_xkb" >&6; }
8430 if test $emacs_xkb = yes; then
8431
8432 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8433
8434 fi
8435
8436 for ac_func in XrmSetDatabase XScreenResourceString \
8437 XScreenNumberOfScreen XSetWMProtocols
8438 do :
8439 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8440 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8441 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8442 cat >>confdefs.h <<_ACEOF
8443 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8444 _ACEOF
8445
8446 fi
8447 done
8448
8449 fi
8450
8451 if test "${window_system}" = "x11"; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8453 $as_echo_n "checking X11 version 6... " >&6; }
8454 if test "${emacs_cv_x11_version_6+set}" = set; then :
8455 $as_echo_n "(cached) " >&6
8456 else
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8459 #include <X11/Xlib.h>
8460 int
8461 main ()
8462 {
8463 #if XlibSpecificationRelease < 6
8464 fail;
8465 #endif
8466
8467 ;
8468 return 0;
8469 }
8470 _ACEOF
8471 if ac_fn_c_try_link "$LINENO"; then :
8472 emacs_cv_x11_version_6=yes
8473 else
8474 emacs_cv_x11_version_6=no
8475 fi
8476 rm -f core conftest.err conftest.$ac_objext \
8477 conftest$ac_exeext conftest.$ac_ext
8478 fi
8479
8480 if test $emacs_cv_x11_version_6 = yes; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8482 $as_echo "6 or newer" >&6; }
8483
8484 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8485
8486
8487 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8488
8489 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8490 ## XIM support.
8491 case "$opsys" in
8492 sol2-*) : ;;
8493 *)
8494 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8495
8496 ;;
8497 esac
8498 else
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8500 $as_echo "before 6" >&6; }
8501 fi
8502 fi
8503
8504
8505 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8506 HAVE_RSVG=no
8507 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8508 if test "${with_rsvg}" != "no"; then
8509 RSVG_REQUIRED=2.11.0
8510 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8511
8512
8513 succeeded=no
8514
8515 # Extract the first word of "pkg-config", so it can be a program name with args.
8516 set dummy pkg-config; ac_word=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 case $PKG_CONFIG in
8523 [\\/]* | ?:[\\/]*)
8524 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8525 ;;
8526 *)
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 for as_dir in $PATH
8529 do
8530 IFS=$as_save_IFS
8531 test -z "$as_dir" && as_dir=.
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8534 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 break 2
8537 fi
8538 done
8539 done
8540 IFS=$as_save_IFS
8541
8542 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8543 ;;
8544 esac
8545 fi
8546 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8547 if test -n "$PKG_CONFIG"; then
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8549 $as_echo "$PKG_CONFIG" >&6; }
8550 else
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552 $as_echo "no" >&6; }
8553 fi
8554
8555
8556
8557 if test "$PKG_CONFIG" = "no" ; then
8558 :
8559 else
8560 PKG_CONFIG_MIN_VERSION=0.9.0
8561 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8563 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8564
8565 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8567 $as_echo "yes" >&6; }
8568 succeeded=yes
8569
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8571 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8572 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8574 $as_echo "$RSVG_CFLAGS" >&6; }
8575
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8577 $as_echo_n "checking RSVG_LIBS... " >&6; }
8578 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8580 $as_echo "$RSVG_LIBS" >&6; }
8581 else
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8584 RSVG_CFLAGS=""
8585 RSVG_LIBS=""
8586 ## If we have a custom action on failure, don't print errors, but
8587 ## do set a variable so people can do so.
8588 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8589
8590 fi
8591
8592
8593
8594 else
8595 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8596 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8597 fi
8598 fi
8599
8600 if test $succeeded = yes; then
8601 HAVE_RSVG=yes
8602 else
8603 :
8604 fi
8605
8606
8607
8608
8609 if test $HAVE_RSVG = yes; then
8610
8611 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8612
8613 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8614 LIBS="$RSVG_LIBS $LIBS"
8615 fi
8616 fi
8617 fi
8618
8619 HAVE_IMAGEMAGICK=no
8620 if test "${HAVE_X11}" = "yes"; then
8621 if test "${with_imagemagick}" != "no"; then
8622 IMAGEMAGICK_MODULE="Wand"
8623
8624 succeeded=no
8625
8626 # Extract the first word of "pkg-config", so it can be a program name with args.
8627 set dummy pkg-config; ac_word=$2
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8629 $as_echo_n "checking for $ac_word... " >&6; }
8630 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8631 $as_echo_n "(cached) " >&6
8632 else
8633 case $PKG_CONFIG in
8634 [\\/]* | ?:[\\/]*)
8635 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8636 ;;
8637 *)
8638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639 for as_dir in $PATH
8640 do
8641 IFS=$as_save_IFS
8642 test -z "$as_dir" && as_dir=.
8643 for ac_exec_ext in '' $ac_executable_extensions; do
8644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8645 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8647 break 2
8648 fi
8649 done
8650 done
8651 IFS=$as_save_IFS
8652
8653 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8654 ;;
8655 esac
8656 fi
8657 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8658 if test -n "$PKG_CONFIG"; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8660 $as_echo "$PKG_CONFIG" >&6; }
8661 else
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 $as_echo "no" >&6; }
8664 fi
8665
8666
8667
8668 if test "$PKG_CONFIG" = "no" ; then
8669 :
8670 else
8671 PKG_CONFIG_MIN_VERSION=0.9.0
8672 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8674 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8675
8676 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8678 $as_echo "yes" >&6; }
8679 succeeded=yes
8680
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8682 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8683 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8685 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8686
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8688 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8689 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8691 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8692 else
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694 $as_echo "no" >&6; }
8695 IMAGEMAGICK_CFLAGS=""
8696 IMAGEMAGICK_LIBS=""
8697 ## If we have a custom action on failure, don't print errors, but
8698 ## do set a variable so people can do so.
8699 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8700
8701 fi
8702
8703
8704
8705 else
8706 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8707 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8708 fi
8709 fi
8710
8711 if test $succeeded = yes; then
8712 HAVE_IMAGEMAGICK=yes
8713 else
8714 :
8715 fi
8716
8717
8718
8719
8720 if test $HAVE_IMAGEMAGICK = yes; then
8721
8722 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8723
8724 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
8725 LIBS="$IMAGEMAGICK_LIBS $LIBS"
8726 for ac_func in MagickExportImagePixels
8727 do :
8728 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8729 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
8730 cat >>confdefs.h <<_ACEOF
8731 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8732 _ACEOF
8733
8734 fi
8735 done
8736
8737 fi
8738 fi
8739 fi
8740
8741
8742 HAVE_GTK=no
8743 if test "${with_gtk3}" = "yes"; then
8744 GLIB_REQUIRED=2.6
8745 GTK_REQUIRED=2.90
8746 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8747
8748
8749 succeeded=no
8750
8751 # Extract the first word of "pkg-config", so it can be a program name with args.
8752 set dummy pkg-config; ac_word=$2
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754 $as_echo_n "checking for $ac_word... " >&6; }
8755 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 case $PKG_CONFIG in
8759 [\\/]* | ?:[\\/]*)
8760 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8761 ;;
8762 *)
8763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8764 for as_dir in $PATH
8765 do
8766 IFS=$as_save_IFS
8767 test -z "$as_dir" && as_dir=.
8768 for ac_exec_ext in '' $ac_executable_extensions; do
8769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8770 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8772 break 2
8773 fi
8774 done
8775 done
8776 IFS=$as_save_IFS
8777
8778 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8779 ;;
8780 esac
8781 fi
8782 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8783 if test -n "$PKG_CONFIG"; then
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8785 $as_echo "$PKG_CONFIG" >&6; }
8786 else
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8788 $as_echo "no" >&6; }
8789 fi
8790
8791
8792
8793 if test "$PKG_CONFIG" = "no" ; then
8794 pkg_check_gtk=no
8795 else
8796 PKG_CONFIG_MIN_VERSION=0.9.0
8797 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8799 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8800
8801 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8803 $as_echo "yes" >&6; }
8804 succeeded=yes
8805
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8807 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8808 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8810 $as_echo "$GTK_CFLAGS" >&6; }
8811
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8813 $as_echo_n "checking GTK_LIBS... " >&6; }
8814 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8816 $as_echo "$GTK_LIBS" >&6; }
8817 else
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819 $as_echo "no" >&6; }
8820 GTK_CFLAGS=""
8821 GTK_LIBS=""
8822 ## If we have a custom action on failure, don't print errors, but
8823 ## do set a variable so people can do so.
8824 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8825
8826 fi
8827
8828
8829
8830 else
8831 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8832 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8833 fi
8834 fi
8835
8836 if test $succeeded = yes; then
8837 pkg_check_gtk=yes
8838 else
8839 pkg_check_gtk=no
8840 fi
8841
8842 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8843 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8844 fi
8845 fi
8846
8847 if test "$pkg_check_gtk" != "yes"; then
8848 HAVE_GTK=no
8849 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8850 GLIB_REQUIRED=2.6
8851 GTK_REQUIRED=2.6
8852 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8853
8854
8855 succeeded=no
8856
8857 # Extract the first word of "pkg-config", so it can be a program name with args.
8858 set dummy pkg-config; ac_word=$2
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8860 $as_echo_n "checking for $ac_word... " >&6; }
8861 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8862 $as_echo_n "(cached) " >&6
8863 else
8864 case $PKG_CONFIG in
8865 [\\/]* | ?:[\\/]*)
8866 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8867 ;;
8868 *)
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870 for as_dir in $PATH
8871 do
8872 IFS=$as_save_IFS
8873 test -z "$as_dir" && as_dir=.
8874 for ac_exec_ext in '' $ac_executable_extensions; do
8875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8876 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8878 break 2
8879 fi
8880 done
8881 done
8882 IFS=$as_save_IFS
8883
8884 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8885 ;;
8886 esac
8887 fi
8888 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8889 if test -n "$PKG_CONFIG"; then
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8891 $as_echo "$PKG_CONFIG" >&6; }
8892 else
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8894 $as_echo "no" >&6; }
8895 fi
8896
8897
8898
8899 if test "$PKG_CONFIG" = "no" ; then
8900 pkg_check_gtk=no
8901 else
8902 PKG_CONFIG_MIN_VERSION=0.9.0
8903 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8905 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8906
8907 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8909 $as_echo "yes" >&6; }
8910 succeeded=yes
8911
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8913 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8914 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8916 $as_echo "$GTK_CFLAGS" >&6; }
8917
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8919 $as_echo_n "checking GTK_LIBS... " >&6; }
8920 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8922 $as_echo "$GTK_LIBS" >&6; }
8923 else
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925 $as_echo "no" >&6; }
8926 GTK_CFLAGS=""
8927 GTK_LIBS=""
8928 ## If we have a custom action on failure, don't print errors, but
8929 ## do set a variable so people can do so.
8930 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8931
8932 fi
8933
8934
8935
8936 else
8937 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8938 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8939 fi
8940 fi
8941
8942 if test $succeeded = yes; then
8943 pkg_check_gtk=yes
8944 else
8945 pkg_check_gtk=no
8946 fi
8947
8948 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8949 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8950 fi
8951 fi
8952 fi
8953
8954 GTK_OBJ=
8955 if test x"$pkg_check_gtk" = xyes; then
8956
8957
8958
8959 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8960 CFLAGS="$CFLAGS $GTK_CFLAGS"
8961 LIBS="$GTK_LIBS $LIBS"
8962 GTK_COMPILES=no
8963 for ac_func in gtk_main
8964 do :
8965 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8966 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8967 cat >>confdefs.h <<_ACEOF
8968 #define HAVE_GTK_MAIN 1
8969 _ACEOF
8970 GTK_COMPILES=yes
8971 fi
8972 done
8973
8974 if test "${GTK_COMPILES}" != "yes"; then
8975 if test "$USE_X_TOOLKIT" != "maybe"; then
8976 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8977 fi
8978 else
8979 HAVE_GTK=yes
8980
8981 $as_echo "#define USE_GTK 1" >>confdefs.h
8982
8983 GTK_OBJ=gtkutil.o
8984 USE_X_TOOLKIT=none
8985 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8986 :
8987 else
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8989 closing open displays. This is no problem if you just use
8990 one display, but if you use more than one and close one of them
8991 Emacs may crash." >&5
8992 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8993 closing open displays. This is no problem if you just use
8994 one display, but if you use more than one and close one of them
8995 Emacs may crash." >&2;}
8996 sleep 3
8997 fi
8998 fi
8999
9000 fi
9001
9002
9003
9004 if test "${HAVE_GTK}" = "yes"; then
9005
9006 if test "$with_toolkit_scroll_bars" != no; then
9007 with_toolkit_scroll_bars=yes
9008 fi
9009
9010 HAVE_GTK_FILE_SELECTION=no
9011 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9012 #include <gtk/gtk.h>
9013 "
9014 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
9015 HAVE_GTK_FILE_SELECTION=yes
9016 else
9017 HAVE_GTK_FILE_SELECTION=no
9018 fi
9019
9020 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9021 for ac_func in gtk_file_selection_new
9022 do :
9023 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9024 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
9025 cat >>confdefs.h <<_ACEOF
9026 #define HAVE_GTK_FILE_SELECTION_NEW 1
9027 _ACEOF
9028
9029 fi
9030 done
9031
9032 fi
9033
9034 HAVE_GTK_AND_PTHREAD=no
9035 for ac_header in pthread.h
9036 do :
9037 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9038 if test "x$ac_cv_header_pthread_h" = x""yes; then :
9039 cat >>confdefs.h <<_ACEOF
9040 #define HAVE_PTHREAD_H 1
9041 _ACEOF
9042
9043 fi
9044
9045 done
9046
9047 if test "$ac_cv_header_pthread_h"; then
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9049 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9050 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9051 $as_echo_n "(cached) " >&6
9052 else
9053 ac_check_lib_save_LIBS=$LIBS
9054 LIBS="-lpthread $LIBS"
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9057
9058 /* Override any GCC internal prototype to avoid an error.
9059 Use char because int might match the return type of a GCC
9060 builtin and then its argument prototype would still apply. */
9061 #ifdef __cplusplus
9062 extern "C"
9063 #endif
9064 char pthread_self ();
9065 int
9066 main ()
9067 {
9068 return pthread_self ();
9069 ;
9070 return 0;
9071 }
9072 _ACEOF
9073 if ac_fn_c_try_link "$LINENO"; then :
9074 ac_cv_lib_pthread_pthread_self=yes
9075 else
9076 ac_cv_lib_pthread_pthread_self=no
9077 fi
9078 rm -f core conftest.err conftest.$ac_objext \
9079 conftest$ac_exeext conftest.$ac_ext
9080 LIBS=$ac_check_lib_save_LIBS
9081 fi
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9083 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9084 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
9085 HAVE_GTK_AND_PTHREAD=yes
9086 fi
9087
9088 fi
9089 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9090 case "${canonical}" in
9091 *-hpux*) ;;
9092 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
9093 esac
9094
9095 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9096
9097 fi
9098
9099 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
9100 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9101 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9102 gtk_orientable_set_orientation
9103 do :
9104 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9105 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9106 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9107 cat >>confdefs.h <<_ACEOF
9108 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9109 _ACEOF
9110
9111 fi
9112 done
9113
9114
9115 fi
9116
9117 HAVE_DBUS=no
9118 DBUS_OBJ=
9119 if test "${with_dbus}" = "yes"; then
9120
9121 succeeded=no
9122
9123 # Extract the first word of "pkg-config", so it can be a program name with args.
9124 set dummy pkg-config; ac_word=$2
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9126 $as_echo_n "checking for $ac_word... " >&6; }
9127 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9128 $as_echo_n "(cached) " >&6
9129 else
9130 case $PKG_CONFIG in
9131 [\\/]* | ?:[\\/]*)
9132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9133 ;;
9134 *)
9135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9136 for as_dir in $PATH
9137 do
9138 IFS=$as_save_IFS
9139 test -z "$as_dir" && as_dir=.
9140 for ac_exec_ext in '' $ac_executable_extensions; do
9141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9142 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9144 break 2
9145 fi
9146 done
9147 done
9148 IFS=$as_save_IFS
9149
9150 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9151 ;;
9152 esac
9153 fi
9154 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9155 if test -n "$PKG_CONFIG"; then
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9157 $as_echo "$PKG_CONFIG" >&6; }
9158 else
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9161 fi
9162
9163
9164
9165 if test "$PKG_CONFIG" = "no" ; then
9166 HAVE_DBUS=no
9167 else
9168 PKG_CONFIG_MIN_VERSION=0.9.0
9169 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9171 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9172
9173 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9175 $as_echo "yes" >&6; }
9176 succeeded=yes
9177
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9179 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9180 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9182 $as_echo "$DBUS_CFLAGS" >&6; }
9183
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9185 $as_echo_n "checking DBUS_LIBS... " >&6; }
9186 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9188 $as_echo "$DBUS_LIBS" >&6; }
9189 else
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9191 $as_echo "no" >&6; }
9192 DBUS_CFLAGS=""
9193 DBUS_LIBS=""
9194 ## If we have a custom action on failure, don't print errors, but
9195 ## do set a variable so people can do so.
9196 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9197
9198 fi
9199
9200
9201
9202 else
9203 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9204 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9205 fi
9206 fi
9207
9208 if test $succeeded = yes; then
9209 HAVE_DBUS=yes
9210 else
9211 HAVE_DBUS=no
9212 fi
9213
9214 if test "$HAVE_DBUS" = yes; then
9215 LIBS="$LIBS $DBUS_LIBS"
9216
9217 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9218
9219 for ac_func in dbus_watch_get_unix_fd
9220 do :
9221 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9222 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
9223 cat >>confdefs.h <<_ACEOF
9224 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9225 _ACEOF
9226
9227 fi
9228 done
9229
9230 DBUS_OBJ=dbusbind.o
9231 fi
9232 fi
9233
9234
9235 HAVE_GCONF=no
9236 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9237
9238 succeeded=no
9239
9240 # Extract the first word of "pkg-config", so it can be a program name with args.
9241 set dummy pkg-config; ac_word=$2
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243 $as_echo_n "checking for $ac_word... " >&6; }
9244 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 case $PKG_CONFIG in
9248 [\\/]* | ?:[\\/]*)
9249 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9250 ;;
9251 *)
9252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253 for as_dir in $PATH
9254 do
9255 IFS=$as_save_IFS
9256 test -z "$as_dir" && as_dir=.
9257 for ac_exec_ext in '' $ac_executable_extensions; do
9258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9259 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9261 break 2
9262 fi
9263 done
9264 done
9265 IFS=$as_save_IFS
9266
9267 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9268 ;;
9269 esac
9270 fi
9271 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9272 if test -n "$PKG_CONFIG"; then
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9274 $as_echo "$PKG_CONFIG" >&6; }
9275 else
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9277 $as_echo "no" >&6; }
9278 fi
9279
9280
9281
9282 if test "$PKG_CONFIG" = "no" ; then
9283 HAVE_GCONF=no
9284 else
9285 PKG_CONFIG_MIN_VERSION=0.9.0
9286 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9288 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9289
9290 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9292 $as_echo "yes" >&6; }
9293 succeeded=yes
9294
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9296 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9297 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9299 $as_echo "$GCONF_CFLAGS" >&6; }
9300
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9302 $as_echo_n "checking GCONF_LIBS... " >&6; }
9303 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9305 $as_echo "$GCONF_LIBS" >&6; }
9306 else
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308 $as_echo "no" >&6; }
9309 GCONF_CFLAGS=""
9310 GCONF_LIBS=""
9311 ## If we have a custom action on failure, don't print errors, but
9312 ## do set a variable so people can do so.
9313 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9314
9315 fi
9316
9317
9318
9319 else
9320 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9321 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9322 fi
9323 fi
9324
9325 if test $succeeded = yes; then
9326 HAVE_GCONF=yes
9327 else
9328 HAVE_GCONF=no
9329 fi
9330
9331 if test "$HAVE_GCONF" = yes; then
9332
9333 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9334
9335 for ac_func in g_type_init
9336 do :
9337 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
9338 if test "x$ac_cv_func_g_type_init" = x""yes; then :
9339 cat >>confdefs.h <<_ACEOF
9340 #define HAVE_G_TYPE_INIT 1
9341 _ACEOF
9342
9343 fi
9344 done
9345
9346 fi
9347 fi
9348
9349 HAVE_LIBSELINUX=no
9350 LIBSELINUX_LIBS=
9351 if test "${with_selinux}" = "yes"; then
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9353 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9354 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9355 $as_echo_n "(cached) " >&6
9356 else
9357 ac_check_lib_save_LIBS=$LIBS
9358 LIBS="-lselinux $LIBS"
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9361
9362 /* Override any GCC internal prototype to avoid an error.
9363 Use char because int might match the return type of a GCC
9364 builtin and then its argument prototype would still apply. */
9365 #ifdef __cplusplus
9366 extern "C"
9367 #endif
9368 char lgetfilecon ();
9369 int
9370 main ()
9371 {
9372 return lgetfilecon ();
9373 ;
9374 return 0;
9375 }
9376 _ACEOF
9377 if ac_fn_c_try_link "$LINENO"; then :
9378 ac_cv_lib_selinux_lgetfilecon=yes
9379 else
9380 ac_cv_lib_selinux_lgetfilecon=no
9381 fi
9382 rm -f core conftest.err conftest.$ac_objext \
9383 conftest$ac_exeext conftest.$ac_ext
9384 LIBS=$ac_check_lib_save_LIBS
9385 fi
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9387 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9388 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
9389 HAVE_LIBSELINUX=yes
9390 else
9391 HAVE_LIBSELINUX=no
9392 fi
9393
9394 if test "$HAVE_LIBSELINUX" = yes; then
9395
9396 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9397
9398 LIBSELINUX_LIBS=-lselinux
9399 fi
9400 fi
9401
9402
9403 HAVE_GNUTLS=no
9404 if test "${with_gnutls}" = "yes" ; then
9405
9406 succeeded=no
9407
9408 # Extract the first word of "pkg-config", so it can be a program name with args.
9409 set dummy pkg-config; ac_word=$2
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9411 $as_echo_n "checking for $ac_word... " >&6; }
9412 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9413 $as_echo_n "(cached) " >&6
9414 else
9415 case $PKG_CONFIG in
9416 [\\/]* | ?:[\\/]*)
9417 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9418 ;;
9419 *)
9420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421 for as_dir in $PATH
9422 do
9423 IFS=$as_save_IFS
9424 test -z "$as_dir" && as_dir=.
9425 for ac_exec_ext in '' $ac_executable_extensions; do
9426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9427 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9429 break 2
9430 fi
9431 done
9432 done
9433 IFS=$as_save_IFS
9434
9435 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9436 ;;
9437 esac
9438 fi
9439 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9440 if test -n "$PKG_CONFIG"; then
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9442 $as_echo "$PKG_CONFIG" >&6; }
9443 else
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9445 $as_echo "no" >&6; }
9446 fi
9447
9448
9449
9450 if test "$PKG_CONFIG" = "no" ; then
9451 HAVE_GNUTLS=no
9452 else
9453 PKG_CONFIG_MIN_VERSION=0.9.0
9454 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9456 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9457
9458 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9460 $as_echo "yes" >&6; }
9461 succeeded=yes
9462
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9464 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9465 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9467 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9468
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9470 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9471 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9473 $as_echo "$LIBGNUTLS_LIBS" >&6; }
9474 else
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476 $as_echo "no" >&6; }
9477 LIBGNUTLS_CFLAGS=""
9478 LIBGNUTLS_LIBS=""
9479 ## If we have a custom action on failure, don't print errors, but
9480 ## do set a variable so people can do so.
9481 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9482
9483 fi
9484
9485
9486
9487 else
9488 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9489 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9490 fi
9491 fi
9492
9493 if test $succeeded = yes; then
9494 HAVE_GNUTLS=yes
9495 else
9496 HAVE_GNUTLS=no
9497 fi
9498
9499 if test "${HAVE_GNUTLS}" = "yes"; then
9500
9501 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9502
9503 fi
9504 fi
9505
9506
9507
9508 HAVE_XAW3D=no
9509 LUCID_LIBW=
9510 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9511 if test "$with_xaw3d" != no; then
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9513 $as_echo_n "checking for xaw3d... " >&6; }
9514 if test "${emacs_cv_xaw3d+set}" = set; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9519
9520 #include <X11/Intrinsic.h>
9521 #include <X11/Xaw3d/Simple.h>
9522 int
9523 main ()
9524 {
9525
9526 ;
9527 return 0;
9528 }
9529 _ACEOF
9530 if ac_fn_c_try_link "$LINENO"; then :
9531 emacs_cv_xaw3d=yes
9532 else
9533 emacs_cv_xaw3d=no
9534 fi
9535 rm -f core conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537 fi
9538
9539 else
9540 emacs_cv_xaw3d=no
9541 fi
9542 if test $emacs_cv_xaw3d = yes; then
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9544 $as_echo "yes; using Lucid toolkit" >&6; }
9545 USE_X_TOOLKIT=LUCID
9546 HAVE_XAW3D=yes
9547 LUCID_LIBW=-lXaw3d
9548
9549 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9550
9551 else
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9555 $as_echo_n "checking for libXaw... " >&6; }
9556 if test "${emacs_cv_xaw+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9561
9562 #include <X11/Intrinsic.h>
9563 #include <X11/Xaw/Simple.h>
9564 int
9565 main ()
9566 {
9567
9568 ;
9569 return 0;
9570 }
9571 _ACEOF
9572 if ac_fn_c_try_link "$LINENO"; then :
9573 emacs_cv_xaw=yes
9574 else
9575 emacs_cv_xaw=no
9576 fi
9577 rm -f core conftest.err conftest.$ac_objext \
9578 conftest$ac_exeext conftest.$ac_ext
9579 fi
9580
9581 if test $emacs_cv_xaw = yes; then
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9583 $as_echo "yes; using Lucid toolkit" >&6; }
9584 USE_X_TOOLKIT=LUCID
9585 LUCID_LIBW=-lXaw
9586 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9587 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9588 else
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9590 $as_echo "no; do not use toolkit by default" >&6; }
9591 USE_X_TOOLKIT=none
9592 fi
9593 fi
9594 fi
9595
9596 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9597
9598 LIBXTR6=
9599 if test "${USE_X_TOOLKIT}" != "none"; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9601 $as_echo_n "checking X11 toolkit version... " >&6; }
9602 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9603 $as_echo_n "(cached) " >&6
9604 else
9605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606 /* end confdefs.h. */
9607 #include <X11/Intrinsic.h>
9608 int
9609 main ()
9610 {
9611 #if XtSpecificationRelease < 6
9612 fail;
9613 #endif
9614
9615 ;
9616 return 0;
9617 }
9618 _ACEOF
9619 if ac_fn_c_try_link "$LINENO"; then :
9620 emacs_cv_x11_toolkit_version_6=yes
9621 else
9622 emacs_cv_x11_toolkit_version_6=no
9623 fi
9624 rm -f core conftest.err conftest.$ac_objext \
9625 conftest$ac_exeext conftest.$ac_ext
9626 fi
9627
9628 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9629 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9631 $as_echo "6 or newer" >&6; }
9632
9633 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9634
9635 LIBXTR6="-lSM -lICE"
9636 case "$opsys" in
9637 ## Use libw.a along with X11R6 Xt.
9638 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9639 esac
9640 else
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9642 $as_echo "before 6" >&6; }
9643 fi
9644
9645 OLDLIBS="$LIBS"
9646 if test x$HAVE_X11XTR6 = xyes; then
9647 LIBS="-lXt -lSM -lICE $LIBS"
9648 else
9649 LIBS="-lXt $LIBS"
9650 fi
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9652 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9653 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9654 $as_echo_n "(cached) " >&6
9655 else
9656 ac_check_lib_save_LIBS=$LIBS
9657 LIBS="-lXmu $LIBS"
9658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659 /* end confdefs.h. */
9660
9661 /* Override any GCC internal prototype to avoid an error.
9662 Use char because int might match the return type of a GCC
9663 builtin and then its argument prototype would still apply. */
9664 #ifdef __cplusplus
9665 extern "C"
9666 #endif
9667 char XmuConvertStandardSelection ();
9668 int
9669 main ()
9670 {
9671 return XmuConvertStandardSelection ();
9672 ;
9673 return 0;
9674 }
9675 _ACEOF
9676 if ac_fn_c_try_link "$LINENO"; then :
9677 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9678 else
9679 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9680 fi
9681 rm -f core conftest.err conftest.$ac_objext \
9682 conftest$ac_exeext conftest.$ac_ext
9683 LIBS=$ac_check_lib_save_LIBS
9684 fi
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9686 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9687 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9688 cat >>confdefs.h <<_ACEOF
9689 #define HAVE_LIBXMU 1
9690 _ACEOF
9691
9692 LIBS="-lXmu $LIBS"
9693
9694 fi
9695
9696 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9697 fi
9698
9699
9700 LIBXMU=-lXmu
9701 case $opsys in
9702 ## These systems don't supply Xmu.
9703 hpux* | aix4-2 )
9704 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9705 ;;
9706 esac
9707
9708
9709 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9710 if test "${HAVE_X11}" = "yes"; then
9711 if test "${USE_X_TOOLKIT}" != "none"; then
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9713 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9714 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9716 else
9717 ac_check_lib_save_LIBS=$LIBS
9718 LIBS="-lXext $LIBS"
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9721
9722 /* Override any GCC internal prototype to avoid an error.
9723 Use char because int might match the return type of a GCC
9724 builtin and then its argument prototype would still apply. */
9725 #ifdef __cplusplus
9726 extern "C"
9727 #endif
9728 char XShapeQueryExtension ();
9729 int
9730 main ()
9731 {
9732 return XShapeQueryExtension ();
9733 ;
9734 return 0;
9735 }
9736 _ACEOF
9737 if ac_fn_c_try_link "$LINENO"; then :
9738 ac_cv_lib_Xext_XShapeQueryExtension=yes
9739 else
9740 ac_cv_lib_Xext_XShapeQueryExtension=no
9741 fi
9742 rm -f core conftest.err conftest.$ac_objext \
9743 conftest$ac_exeext conftest.$ac_ext
9744 LIBS=$ac_check_lib_save_LIBS
9745 fi
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9747 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9748 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9749 cat >>confdefs.h <<_ACEOF
9750 #define HAVE_LIBXEXT 1
9751 _ACEOF
9752
9753 LIBS="-lXext $LIBS"
9754
9755 fi
9756
9757 fi
9758 fi
9759
9760 LIBXP=
9761 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9763 $as_echo_n "checking for Motif version 2.1... " >&6; }
9764 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 #include <Xm/Xm.h>
9770 int
9771 main ()
9772 {
9773 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9774 int x = 5;
9775 #else
9776 Motif version prior to 2.1.
9777 #endif
9778 ;
9779 return 0;
9780 }
9781 _ACEOF
9782 if ac_fn_c_try_compile "$LINENO"; then :
9783 emacs_cv_motif_version_2_1=yes
9784 else
9785 emacs_cv_motif_version_2_1=no
9786 fi
9787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788 fi
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9790 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9791 if test $emacs_cv_motif_version_2_1 = yes; then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9793 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9794 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9795 $as_echo_n "(cached) " >&6
9796 else
9797 ac_check_lib_save_LIBS=$LIBS
9798 LIBS="-lXp $LIBS"
9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800 /* end confdefs.h. */
9801
9802 /* Override any GCC internal prototype to avoid an error.
9803 Use char because int might match the return type of a GCC
9804 builtin and then its argument prototype would still apply. */
9805 #ifdef __cplusplus
9806 extern "C"
9807 #endif
9808 char XpCreateContext ();
9809 int
9810 main ()
9811 {
9812 return XpCreateContext ();
9813 ;
9814 return 0;
9815 }
9816 _ACEOF
9817 if ac_fn_c_try_link "$LINENO"; then :
9818 ac_cv_lib_Xp_XpCreateContext=yes
9819 else
9820 ac_cv_lib_Xp_XpCreateContext=no
9821 fi
9822 rm -f core conftest.err conftest.$ac_objext \
9823 conftest$ac_exeext conftest.$ac_ext
9824 LIBS=$ac_check_lib_save_LIBS
9825 fi
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9827 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9828 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9829 LIBXP=-lXp
9830 fi
9831
9832 else
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9834 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9835 if test "${emacs_cv_lesstif+set}" = set; then :
9836 $as_echo_n "(cached) " >&6
9837 else
9838 # We put this in CFLAGS temporarily to precede other -I options
9839 # that might be in CFLAGS temporarily.
9840 # We put this in CPPFLAGS where it precedes the other -I options.
9841 OLD_CPPFLAGS=$CPPFLAGS
9842 OLD_CFLAGS=$CFLAGS
9843 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9844 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846 /* end confdefs.h. */
9847 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9848 int
9849 main ()
9850 {
9851 int x = 5;
9852 ;
9853 return 0;
9854 }
9855 _ACEOF
9856 if ac_fn_c_try_compile "$LINENO"; then :
9857 emacs_cv_lesstif=yes
9858 else
9859 emacs_cv_lesstif=no
9860 fi
9861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9862 fi
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9864 $as_echo "$emacs_cv_lesstif" >&6; }
9865 if test $emacs_cv_lesstif = yes; then
9866 # Make sure this -I option remains in CPPFLAGS after it is set
9867 # back to REAL_CPPFLAGS.
9868 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9869 # have those other -I options anyway. Ultimately, having this
9870 # directory ultimately in CPPFLAGS will be enough.
9871 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9872 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9873 else
9874 CFLAGS=$OLD_CFLAGS
9875 CPPFLAGS=$OLD_CPPFLAGS
9876 fi
9877 fi
9878 fi
9879
9880
9881 USE_TOOLKIT_SCROLL_BARS=no
9882 if test "${with_toolkit_scroll_bars}" != "no"; then
9883 if test "${USE_X_TOOLKIT}" != "none"; then
9884 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9885 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9886
9887 HAVE_XAW3D=no
9888 USE_TOOLKIT_SCROLL_BARS=yes
9889 elif test "${HAVE_XAW3D}" = "yes"; then
9890 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9891
9892 USE_TOOLKIT_SCROLL_BARS=yes
9893 fi
9894 elif test "${HAVE_GTK}" = "yes"; then
9895 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9896
9897 USE_TOOLKIT_SCROLL_BARS=yes
9898 elif test "${HAVE_NS}" = "yes"; then
9899 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9900
9901 USE_TOOLKIT_SCROLL_BARS=yes
9902 fi
9903 fi
9904
9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906 /* end confdefs.h. */
9907
9908 #include <X11/Xlib.h>
9909 #include <X11/Xresource.h>
9910 int
9911 main ()
9912 {
9913 XIMProc callback;
9914 ;
9915 return 0;
9916 }
9917 _ACEOF
9918 if ac_fn_c_try_compile "$LINENO"; then :
9919 HAVE_XIM=yes
9920
9921 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9922
9923 else
9924 HAVE_XIM=no
9925 fi
9926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9927
9928
9929 if test "${with_xim}" != "no"; then
9930
9931 $as_echo "#define USE_XIM 1" >>confdefs.h
9932
9933 fi
9934
9935
9936 if test "${HAVE_XIM}" != "no"; then
9937 late_CFLAGS=$CFLAGS
9938 if test "$GCC" = yes; then
9939 CFLAGS="$CFLAGS --pedantic-errors"
9940 fi
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9943
9944 #include <X11/Xlib.h>
9945 #include <X11/Xresource.h>
9946 int
9947 main ()
9948 {
9949 Display *display;
9950 XrmDatabase db;
9951 char *res_name;
9952 char *res_class;
9953 XIMProc callback;
9954 XPointer *client_data;
9955 #ifndef __GNUC__
9956 /* If we're not using GCC, it's probably not XFree86, and this is
9957 probably right, but we can't use something like --pedantic-errors. */
9958 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9959 char*, XIMProc, XPointer*);
9960 #endif
9961 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9962 client_data);
9963 ;
9964 return 0;
9965 }
9966 _ACEOF
9967 if ac_fn_c_try_compile "$LINENO"; then :
9968 emacs_cv_arg6_star=yes
9969 fi
9970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9971 if test "$emacs_cv_arg6_star" = yes; then
9972 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9973
9974 else
9975 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9976
9977 fi
9978 CFLAGS=$late_CFLAGS
9979 fi
9980
9981 ### Start of font-backend (under any platform) section.
9982 # (nothing here yet -- this is a placeholder)
9983 ### End of font-backend (under any platform) section.
9984
9985 ### Start of font-backend (under X11) section.
9986 if test "${HAVE_X11}" = "yes"; then
9987
9988 succeeded=no
9989
9990 # Extract the first word of "pkg-config", so it can be a program name with args.
9991 set dummy pkg-config; ac_word=$2
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9993 $as_echo_n "checking for $ac_word... " >&6; }
9994 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9995 $as_echo_n "(cached) " >&6
9996 else
9997 case $PKG_CONFIG in
9998 [\\/]* | ?:[\\/]*)
9999 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10000 ;;
10001 *)
10002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003 for as_dir in $PATH
10004 do
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10009 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10012 fi
10013 done
10014 done
10015 IFS=$as_save_IFS
10016
10017 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10018 ;;
10019 esac
10020 fi
10021 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10022 if test -n "$PKG_CONFIG"; then
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10024 $as_echo "$PKG_CONFIG" >&6; }
10025 else
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027 $as_echo "no" >&6; }
10028 fi
10029
10030
10031
10032 if test "$PKG_CONFIG" = "no" ; then
10033 HAVE_FC=no
10034 else
10035 PKG_CONFIG_MIN_VERSION=0.9.0
10036 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10038 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10039
10040 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10042 $as_echo "yes" >&6; }
10043 succeeded=yes
10044
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10046 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10047 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10049 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10050
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10052 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10053 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10055 $as_echo "$FONTCONFIG_LIBS" >&6; }
10056 else
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10058 $as_echo "no" >&6; }
10059 FONTCONFIG_CFLAGS=""
10060 FONTCONFIG_LIBS=""
10061 ## If we have a custom action on failure, don't print errors, but
10062 ## do set a variable so people can do so.
10063 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10064
10065 fi
10066
10067
10068
10069 else
10070 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10071 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10072 fi
10073 fi
10074
10075 if test $succeeded = yes; then
10076 HAVE_FC=yes
10077 else
10078 HAVE_FC=no
10079 fi
10080
10081
10082 ## Use -lXft if available, unless `--with-xft=no'.
10083 HAVE_XFT=maybe
10084 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
10085 with_xft="no";
10086 fi
10087 if test "x${with_xft}" != "xno"; then
10088
10089
10090 succeeded=no
10091
10092 # Extract the first word of "pkg-config", so it can be a program name with args.
10093 set dummy pkg-config; ac_word=$2
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10095 $as_echo_n "checking for $ac_word... " >&6; }
10096 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10097 $as_echo_n "(cached) " >&6
10098 else
10099 case $PKG_CONFIG in
10100 [\\/]* | ?:[\\/]*)
10101 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10102 ;;
10103 *)
10104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10105 for as_dir in $PATH
10106 do
10107 IFS=$as_save_IFS
10108 test -z "$as_dir" && as_dir=.
10109 for ac_exec_ext in '' $ac_executable_extensions; do
10110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10111 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10113 break 2
10114 fi
10115 done
10116 done
10117 IFS=$as_save_IFS
10118
10119 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10120 ;;
10121 esac
10122 fi
10123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10124 if test -n "$PKG_CONFIG"; then
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10126 $as_echo "$PKG_CONFIG" >&6; }
10127 else
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129 $as_echo "no" >&6; }
10130 fi
10131
10132
10133
10134 if test "$PKG_CONFIG" = "no" ; then
10135 HAVE_XFT=no
10136 else
10137 PKG_CONFIG_MIN_VERSION=0.9.0
10138 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10140 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10141
10142 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10144 $as_echo "yes" >&6; }
10145 succeeded=yes
10146
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10148 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10149 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10151 $as_echo "$XFT_CFLAGS" >&6; }
10152
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10154 $as_echo_n "checking XFT_LIBS... " >&6; }
10155 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10157 $as_echo "$XFT_LIBS" >&6; }
10158 else
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10160 $as_echo "no" >&6; }
10161 XFT_CFLAGS=""
10162 XFT_LIBS=""
10163 ## If we have a custom action on failure, don't print errors, but
10164 ## do set a variable so people can do so.
10165 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10166
10167 fi
10168
10169
10170
10171 else
10172 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10173 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10174 fi
10175 fi
10176
10177 if test $succeeded = yes; then
10178 :
10179 else
10180 HAVE_XFT=no
10181 fi
10182
10183 ## Because xftfont.c uses XRenderQueryExtension, we also
10184 ## need to link to -lXrender.
10185 HAVE_XRENDER=no
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10187 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10188 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 ac_check_lib_save_LIBS=$LIBS
10192 LIBS="-lXrender $LIBS"
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10195
10196 /* Override any GCC internal prototype to avoid an error.
10197 Use char because int might match the return type of a GCC
10198 builtin and then its argument prototype would still apply. */
10199 #ifdef __cplusplus
10200 extern "C"
10201 #endif
10202 char XRenderQueryExtension ();
10203 int
10204 main ()
10205 {
10206 return XRenderQueryExtension ();
10207 ;
10208 return 0;
10209 }
10210 _ACEOF
10211 if ac_fn_c_try_link "$LINENO"; then :
10212 ac_cv_lib_Xrender_XRenderQueryExtension=yes
10213 else
10214 ac_cv_lib_Xrender_XRenderQueryExtension=no
10215 fi
10216 rm -f core conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext conftest.$ac_ext
10218 LIBS=$ac_check_lib_save_LIBS
10219 fi
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10221 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10222 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
10223 HAVE_XRENDER=yes
10224 fi
10225
10226 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
10227 OLD_CPPFLAGS="$CPPFLAGS"
10228 OLD_CFLAGS="$CFLAGS"
10229 OLD_LIBS="$LIBS"
10230 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
10231 CFLAGS="$CFLAGS $XFT_CFLAGS"
10232 XFT_LIBS="-lXrender $XFT_LIBS"
10233 LIBS="$XFT_LIBS $LIBS"
10234 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10235 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10237 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10238 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
10239 $as_echo_n "(cached) " >&6
10240 else
10241 ac_check_lib_save_LIBS=$LIBS
10242 LIBS="-lXft $XFT_LIBS $LIBS"
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10245
10246 /* Override any GCC internal prototype to avoid an error.
10247 Use char because int might match the return type of a GCC
10248 builtin and then its argument prototype would still apply. */
10249 #ifdef __cplusplus
10250 extern "C"
10251 #endif
10252 char XftFontOpen ();
10253 int
10254 main ()
10255 {
10256 return XftFontOpen ();
10257 ;
10258 return 0;
10259 }
10260 _ACEOF
10261 if ac_fn_c_try_link "$LINENO"; then :
10262 ac_cv_lib_Xft_XftFontOpen=yes
10263 else
10264 ac_cv_lib_Xft_XftFontOpen=no
10265 fi
10266 rm -f core conftest.err conftest.$ac_objext \
10267 conftest$ac_exeext conftest.$ac_ext
10268 LIBS=$ac_check_lib_save_LIBS
10269 fi
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10271 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10272 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
10273 HAVE_XFT=yes
10274 fi
10275
10276 fi
10277
10278
10279
10280 if test "${HAVE_XFT}" = "yes"; then
10281
10282 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10283
10284
10285 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
10286 else
10287 CPPFLAGS="$OLD_CPPFLAGS"
10288 CFLAGS="$OLD_CFLAGS"
10289 LIBS="$OLD_LIBS"
10290 fi # "${HAVE_XFT}" = "yes"
10291 fi # "$HAVE_XFT" != no
10292 fi # "x${with_xft}" != "xno"
10293
10294 if test "$HAVE_XFT" != "yes"; then
10295 HAVE_XFT=no
10296 fi
10297
10298
10299 HAVE_FREETYPE=no
10300 ## We used to allow building with FreeType and without Xft.
10301 ## However, the ftx font backend driver is not in good shape.
10302 if test "${HAVE_XFT}" = "yes"; then
10303 HAVE_FREETYPE=yes
10304 FONTCONFIG_CFLAGS=
10305 FONTCONFIG_LIBS=
10306 fi
10307
10308 HAVE_LIBOTF=no
10309 if test "${HAVE_FREETYPE}" = "yes"; then
10310
10311 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10312
10313 if test "${with_libotf}" != "no"; then
10314
10315 succeeded=no
10316
10317 # Extract the first word of "pkg-config", so it can be a program name with args.
10318 set dummy pkg-config; ac_word=$2
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10320 $as_echo_n "checking for $ac_word... " >&6; }
10321 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10322 $as_echo_n "(cached) " >&6
10323 else
10324 case $PKG_CONFIG in
10325 [\\/]* | ?:[\\/]*)
10326 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10327 ;;
10328 *)
10329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330 for as_dir in $PATH
10331 do
10332 IFS=$as_save_IFS
10333 test -z "$as_dir" && as_dir=.
10334 for ac_exec_ext in '' $ac_executable_extensions; do
10335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10336 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10338 break 2
10339 fi
10340 done
10341 done
10342 IFS=$as_save_IFS
10343
10344 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10345 ;;
10346 esac
10347 fi
10348 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10349 if test -n "$PKG_CONFIG"; then
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10351 $as_echo "$PKG_CONFIG" >&6; }
10352 else
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10354 $as_echo "no" >&6; }
10355 fi
10356
10357
10358
10359 if test "$PKG_CONFIG" = "no" ; then
10360 HAVE_LIBOTF=no
10361 else
10362 PKG_CONFIG_MIN_VERSION=0.9.0
10363 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10365 $as_echo_n "checking for libotf... " >&6; }
10366
10367 if $PKG_CONFIG --exists "libotf" 2>&5; then
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10369 $as_echo "yes" >&6; }
10370 succeeded=yes
10371
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10373 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10374 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10376 $as_echo "$LIBOTF_CFLAGS" >&6; }
10377
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10379 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10380 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10382 $as_echo "$LIBOTF_LIBS" >&6; }
10383 else
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385 $as_echo "no" >&6; }
10386 LIBOTF_CFLAGS=""
10387 LIBOTF_LIBS=""
10388 ## If we have a custom action on failure, don't print errors, but
10389 ## do set a variable so people can do so.
10390 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10391
10392 fi
10393
10394
10395
10396 else
10397 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10398 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10399 fi
10400 fi
10401
10402 if test $succeeded = yes; then
10403 HAVE_LIBOTF=yes
10404 else
10405 HAVE_LIBOTF=no
10406 fi
10407
10408 if test "$HAVE_LIBOTF" = "yes"; then
10409
10410 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10411
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10413 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10414 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10415 $as_echo_n "(cached) " >&6
10416 else
10417 ac_check_lib_save_LIBS=$LIBS
10418 LIBS="-lotf $LIBS"
10419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420 /* end confdefs.h. */
10421
10422 /* Override any GCC internal prototype to avoid an error.
10423 Use char because int might match the return type of a GCC
10424 builtin and then its argument prototype would still apply. */
10425 #ifdef __cplusplus
10426 extern "C"
10427 #endif
10428 char OTF_get_variation_glyphs ();
10429 int
10430 main ()
10431 {
10432 return OTF_get_variation_glyphs ();
10433 ;
10434 return 0;
10435 }
10436 _ACEOF
10437 if ac_fn_c_try_link "$LINENO"; then :
10438 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
10439 else
10440 ac_cv_lib_otf_OTF_get_variation_glyphs=no
10441 fi
10442 rm -f core conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10444 LIBS=$ac_check_lib_save_LIBS
10445 fi
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10447 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10448 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
10449 HAVE_OTF_GET_VARIATION_GLYPHS=yes
10450 else
10451 HAVE_OTF_GET_VARIATION_GLYPHS=no
10452 fi
10453
10454 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10455
10456 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10457
10458 fi
10459 fi
10460 fi
10461 fi
10462
10463 HAVE_M17N_FLT=no
10464 if test "${HAVE_LIBOTF}" = yes; then
10465 if test "${with_m17n_flt}" != "no"; then
10466
10467 succeeded=no
10468
10469 # Extract the first word of "pkg-config", so it can be a program name with args.
10470 set dummy pkg-config; ac_word=$2
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10472 $as_echo_n "checking for $ac_word... " >&6; }
10473 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10474 $as_echo_n "(cached) " >&6
10475 else
10476 case $PKG_CONFIG in
10477 [\\/]* | ?:[\\/]*)
10478 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10479 ;;
10480 *)
10481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482 for as_dir in $PATH
10483 do
10484 IFS=$as_save_IFS
10485 test -z "$as_dir" && as_dir=.
10486 for ac_exec_ext in '' $ac_executable_extensions; do
10487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10488 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10490 break 2
10491 fi
10492 done
10493 done
10494 IFS=$as_save_IFS
10495
10496 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10497 ;;
10498 esac
10499 fi
10500 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10501 if test -n "$PKG_CONFIG"; then
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10503 $as_echo "$PKG_CONFIG" >&6; }
10504 else
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506 $as_echo "no" >&6; }
10507 fi
10508
10509
10510
10511 if test "$PKG_CONFIG" = "no" ; then
10512 HAVE_M17N_FLT=no
10513 else
10514 PKG_CONFIG_MIN_VERSION=0.9.0
10515 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10517 $as_echo_n "checking for m17n-flt... " >&6; }
10518
10519 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10521 $as_echo "yes" >&6; }
10522 succeeded=yes
10523
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10525 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10526 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10528 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10529
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10531 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10532 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10534 $as_echo "$M17N_FLT_LIBS" >&6; }
10535 else
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537 $as_echo "no" >&6; }
10538 M17N_FLT_CFLAGS=""
10539 M17N_FLT_LIBS=""
10540 ## If we have a custom action on failure, don't print errors, but
10541 ## do set a variable so people can do so.
10542 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10543
10544 fi
10545
10546
10547
10548 else
10549 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10550 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10551 fi
10552 fi
10553
10554 if test $succeeded = yes; then
10555 HAVE_M17N_FLT=yes
10556 else
10557 HAVE_M17N_FLT=no
10558 fi
10559
10560 if test "$HAVE_M17N_FLT" = "yes"; then
10561
10562 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10563
10564 fi
10565 fi
10566 fi
10567 else
10568 HAVE_XFT=no
10569 HAVE_FREETYPE=no
10570 HAVE_LIBOTF=no
10571 HAVE_M17N_FLT=no
10572 fi
10573
10574 ### End of font-backend (under X11) section.
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585 ### Use -lXpm if available, unless `--with-xpm=no'.
10586 HAVE_XPM=no
10587 LIBXPM=
10588 if test "${HAVE_X11}" = "yes"; then
10589 if test "${with_xpm}" != "no"; then
10590 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10591 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10593 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10594 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10595 $as_echo_n "(cached) " >&6
10596 else
10597 ac_check_lib_save_LIBS=$LIBS
10598 LIBS="-lXpm -lX11 $LIBS"
10599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10600 /* end confdefs.h. */
10601
10602 /* Override any GCC internal prototype to avoid an error.
10603 Use char because int might match the return type of a GCC
10604 builtin and then its argument prototype would still apply. */
10605 #ifdef __cplusplus
10606 extern "C"
10607 #endif
10608 char XpmReadFileToPixmap ();
10609 int
10610 main ()
10611 {
10612 return XpmReadFileToPixmap ();
10613 ;
10614 return 0;
10615 }
10616 _ACEOF
10617 if ac_fn_c_try_link "$LINENO"; then :
10618 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10619 else
10620 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10621 fi
10622 rm -f core conftest.err conftest.$ac_objext \
10623 conftest$ac_exeext conftest.$ac_ext
10624 LIBS=$ac_check_lib_save_LIBS
10625 fi
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10627 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10628 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10629 HAVE_XPM=yes
10630 fi
10631
10632 fi
10633
10634
10635 if test "${HAVE_XPM}" = "yes"; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10637 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10640 #include "X11/xpm.h"
10641 #ifndef XpmReturnAllocPixels
10642 no_return_alloc_pixels
10643 #endif
10644
10645 _ACEOF
10646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10647 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10648 HAVE_XPM=no
10649 else
10650 HAVE_XPM=yes
10651 fi
10652 rm -f conftest*
10653
10654
10655 if test "${HAVE_XPM}" = "yes"; then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10657 $as_echo "yes" >&6; }
10658 else
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660 $as_echo "no" >&6; }
10661 fi
10662 fi
10663 fi
10664
10665 if test "${HAVE_XPM}" = "yes"; then
10666
10667 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10668
10669 LIBXPM=-lXpm
10670 fi
10671 fi
10672
10673
10674 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10675 HAVE_JPEG=no
10676 LIBJPEG=
10677 if test "${HAVE_X11}" = "yes"; then
10678 if test "${with_jpeg}" != "no"; then
10679 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10680 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10682 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10683 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10684 $as_echo_n "(cached) " >&6
10685 else
10686 ac_check_lib_save_LIBS=$LIBS
10687 LIBS="-ljpeg $LIBS"
10688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689 /* end confdefs.h. */
10690
10691 /* Override any GCC internal prototype to avoid an error.
10692 Use char because int might match the return type of a GCC
10693 builtin and then its argument prototype would still apply. */
10694 #ifdef __cplusplus
10695 extern "C"
10696 #endif
10697 char jpeg_destroy_compress ();
10698 int
10699 main ()
10700 {
10701 return jpeg_destroy_compress ();
10702 ;
10703 return 0;
10704 }
10705 _ACEOF
10706 if ac_fn_c_try_link "$LINENO"; then :
10707 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10708 else
10709 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10710 fi
10711 rm -f core conftest.err conftest.$ac_objext \
10712 conftest$ac_exeext conftest.$ac_ext
10713 LIBS=$ac_check_lib_save_LIBS
10714 fi
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10716 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10717 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10718 HAVE_JPEG=yes
10719 fi
10720
10721 fi
10722
10723
10724 fi
10725
10726 if test "${HAVE_JPEG}" = "yes"; then
10727 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10728
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10731 #include <jpeglib.h>
10732 version=JPEG_LIB_VERSION
10733
10734 _ACEOF
10735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10736 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10737 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10738
10739 else
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10741 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10742 HAVE_JPEG=no
10743 fi
10744 rm -f conftest*
10745
10746 fi
10747 if test "${HAVE_JPEG}" = "yes"; then
10748 LIBJPEG=-ljpeg
10749 fi
10750 fi
10751
10752
10753 ### Use -lpng if available, unless `--with-png=no'.
10754 HAVE_PNG=no
10755 LIBPNG=
10756 if test "${HAVE_X11}" = "yes"; then
10757 if test "${with_png}" != "no"; then
10758 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10759 # in /usr/include/libpng.
10760 for ac_header in png.h libpng/png.h
10761 do :
10762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10763 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10764 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10765 cat >>confdefs.h <<_ACEOF
10766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10767 _ACEOF
10768
10769 fi
10770
10771 done
10772
10773 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10775 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10776 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10777 $as_echo_n "(cached) " >&6
10778 else
10779 ac_check_lib_save_LIBS=$LIBS
10780 LIBS="-lpng -lz -lm $LIBS"
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10783
10784 /* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
10787 #ifdef __cplusplus
10788 extern "C"
10789 #endif
10790 char png_get_channels ();
10791 int
10792 main ()
10793 {
10794 return png_get_channels ();
10795 ;
10796 return 0;
10797 }
10798 _ACEOF
10799 if ac_fn_c_try_link "$LINENO"; then :
10800 ac_cv_lib_png_png_get_channels=yes
10801 else
10802 ac_cv_lib_png_png_get_channels=no
10803 fi
10804 rm -f core conftest.err conftest.$ac_objext \
10805 conftest$ac_exeext conftest.$ac_ext
10806 LIBS=$ac_check_lib_save_LIBS
10807 fi
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10809 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10810 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10811 HAVE_PNG=yes
10812 fi
10813
10814 fi
10815 fi
10816
10817 if test "${HAVE_PNG}" = "yes"; then
10818
10819 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10820
10821 LIBPNG="-lpng -lz -lm"
10822 fi
10823 fi
10824
10825
10826 ### Use -ltiff if available, unless `--with-tiff=no'.
10827 HAVE_TIFF=no
10828 LIBTIFF=
10829 if test "${HAVE_X11}" = "yes"; then
10830 if test "${with_tiff}" != "no"; then
10831 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10832 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10833 tifflibs="-lz -lm"
10834 # At least one tiff package requires the jpeg library.
10835 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10837 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10838 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10841 ac_check_lib_save_LIBS=$LIBS
10842 LIBS="-ltiff $tifflibs $LIBS"
10843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10845
10846 /* Override any GCC internal prototype to avoid an error.
10847 Use char because int might match the return type of a GCC
10848 builtin and then its argument prototype would still apply. */
10849 #ifdef __cplusplus
10850 extern "C"
10851 #endif
10852 char TIFFGetVersion ();
10853 int
10854 main ()
10855 {
10856 return TIFFGetVersion ();
10857 ;
10858 return 0;
10859 }
10860 _ACEOF
10861 if ac_fn_c_try_link "$LINENO"; then :
10862 ac_cv_lib_tiff_TIFFGetVersion=yes
10863 else
10864 ac_cv_lib_tiff_TIFFGetVersion=no
10865 fi
10866 rm -f core conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10868 LIBS=$ac_check_lib_save_LIBS
10869 fi
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10871 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10872 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10873 HAVE_TIFF=yes
10874 fi
10875
10876 fi
10877
10878
10879 fi
10880
10881 if test "${HAVE_TIFF}" = "yes"; then
10882
10883 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10884
10885 LIBTIFF=-ltiff
10886 fi
10887 fi
10888
10889
10890 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10891 HAVE_GIF=no
10892 LIBGIF=
10893 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10894 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10895 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10896 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10897 # Earlier versions can crash Emacs.
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10899 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10900 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10901 $as_echo_n "(cached) " >&6
10902 else
10903 ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-lgif $LIBS"
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10907
10908 /* Override any GCC internal prototype to avoid an error.
10909 Use char because int might match the return type of a GCC
10910 builtin and then its argument prototype would still apply. */
10911 #ifdef __cplusplus
10912 extern "C"
10913 #endif
10914 char EGifPutExtensionLast ();
10915 int
10916 main ()
10917 {
10918 return EGifPutExtensionLast ();
10919 ;
10920 return 0;
10921 }
10922 _ACEOF
10923 if ac_fn_c_try_link "$LINENO"; then :
10924 ac_cv_lib_gif_EGifPutExtensionLast=yes
10925 else
10926 ac_cv_lib_gif_EGifPutExtensionLast=no
10927 fi
10928 rm -f core conftest.err conftest.$ac_objext \
10929 conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10931 fi
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10933 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10934 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10935 HAVE_GIF=yes
10936 else
10937 HAVE_GIF=maybe
10938 fi
10939
10940 fi
10941
10942
10943
10944 if test "$HAVE_GIF" = yes; then
10945 LIBGIF=-lgif
10946 elif test "$HAVE_GIF" = maybe; then
10947 # If gif_lib.h but no libgif, try libungif.
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10949 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10950 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10951 $as_echo_n "(cached) " >&6
10952 else
10953 ac_check_lib_save_LIBS=$LIBS
10954 LIBS="-lungif $LIBS"
10955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10957
10958 /* Override any GCC internal prototype to avoid an error.
10959 Use char because int might match the return type of a GCC
10960 builtin and then its argument prototype would still apply. */
10961 #ifdef __cplusplus
10962 extern "C"
10963 #endif
10964 char EGifPutExtensionLast ();
10965 int
10966 main ()
10967 {
10968 return EGifPutExtensionLast ();
10969 ;
10970 return 0;
10971 }
10972 _ACEOF
10973 if ac_fn_c_try_link "$LINENO"; then :
10974 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10975 else
10976 ac_cv_lib_ungif_EGifPutExtensionLast=no
10977 fi
10978 rm -f core conftest.err conftest.$ac_objext \
10979 conftest$ac_exeext conftest.$ac_ext
10980 LIBS=$ac_check_lib_save_LIBS
10981 fi
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10983 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10984 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10985 HAVE_GIF=yes
10986 else
10987 HAVE_GIF=no
10988 fi
10989
10990 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10991 fi
10992
10993 if test "${HAVE_GIF}" = "yes"; then
10994
10995 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10996
10997 fi
10998 fi
10999
11000
11001 if test "${HAVE_X11}" = "yes"; then
11002 MISSING=""
11003 WITH_NO=""
11004 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11005 MISSING="libXpm" && WITH_NO="--with-xpm=no"
11006 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11007 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
11008 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11009 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
11010 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11011 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
11012 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11013 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
11014
11015 if test "X${MISSING}" != X; then
11016 as_fn_error $? "The following required libraries were not found:
11017 $MISSING
11018 Maybe some development libraries/packages are missing?
11019 If you don't want to link with them give
11020 $WITH_NO
11021 as options to configure" "$LINENO" 5
11022 fi
11023 fi
11024
11025 ### Use -lgpm if available, unless `--with-gpm=no'.
11026 HAVE_GPM=no
11027 LIBGPM=
11028 MOUSE_SUPPORT=
11029 if test "${with_gpm}" != "no"; then
11030 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11031 if test "x$ac_cv_header_gpm_h" = x""yes; then :
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11033 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11034 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
11035 $as_echo_n "(cached) " >&6
11036 else
11037 ac_check_lib_save_LIBS=$LIBS
11038 LIBS="-lgpm $LIBS"
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11041
11042 /* Override any GCC internal prototype to avoid an error.
11043 Use char because int might match the return type of a GCC
11044 builtin and then its argument prototype would still apply. */
11045 #ifdef __cplusplus
11046 extern "C"
11047 #endif
11048 char Gpm_Open ();
11049 int
11050 main ()
11051 {
11052 return Gpm_Open ();
11053 ;
11054 return 0;
11055 }
11056 _ACEOF
11057 if ac_fn_c_try_link "$LINENO"; then :
11058 ac_cv_lib_gpm_Gpm_Open=yes
11059 else
11060 ac_cv_lib_gpm_Gpm_Open=no
11061 fi
11062 rm -f core conftest.err conftest.$ac_objext \
11063 conftest$ac_exeext conftest.$ac_ext
11064 LIBS=$ac_check_lib_save_LIBS
11065 fi
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11067 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11068 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
11069 HAVE_GPM=yes
11070 fi
11071
11072 fi
11073
11074
11075
11076 if test "${HAVE_GPM}" = "yes"; then
11077
11078 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11079
11080 LIBGPM=-lgpm
11081 ## May be reset below.
11082 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
11083 fi
11084 fi
11085
11086
11087 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11088 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
11089
11090 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11091
11092 fi
11093
11094
11095
11096 C_SWITCH_X_SYSTEM=
11097 ### Use NeXTstep API to implement GUI.
11098 if test "${HAVE_NS}" = "yes"; then
11099
11100 $as_echo "#define HAVE_NS 1" >>confdefs.h
11101
11102 if test "${NS_IMPL_COCOA}" = "yes"; then
11103
11104 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11105
11106 GNU_OBJC_CFLAGS=
11107 fi
11108 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11109
11110 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11111
11112 # See also .m.o rule in Makefile.in */
11113 # FIXME: are all these flags really needed? Document here why. */
11114 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
11115 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11116 fi
11117 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11118
11119 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11120
11121 fi
11122 # We also have mouse menus.
11123 HAVE_MENUS=yes
11124 OTHER_FILES=ns-app
11125 fi
11126
11127
11128 ### Use session management (-lSM -lICE) if available
11129 HAVE_X_SM=no
11130 LIBXSM=
11131 if test "${HAVE_X11}" = "yes"; then
11132 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11133 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11135 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11136 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
11137 $as_echo_n "(cached) " >&6
11138 else
11139 ac_check_lib_save_LIBS=$LIBS
11140 LIBS="-lSM -lICE $LIBS"
11141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h. */
11143
11144 /* Override any GCC internal prototype to avoid an error.
11145 Use char because int might match the return type of a GCC
11146 builtin and then its argument prototype would still apply. */
11147 #ifdef __cplusplus
11148 extern "C"
11149 #endif
11150 char SmcOpenConnection ();
11151 int
11152 main ()
11153 {
11154 return SmcOpenConnection ();
11155 ;
11156 return 0;
11157 }
11158 _ACEOF
11159 if ac_fn_c_try_link "$LINENO"; then :
11160 ac_cv_lib_SM_SmcOpenConnection=yes
11161 else
11162 ac_cv_lib_SM_SmcOpenConnection=no
11163 fi
11164 rm -f core conftest.err conftest.$ac_objext \
11165 conftest$ac_exeext conftest.$ac_ext
11166 LIBS=$ac_check_lib_save_LIBS
11167 fi
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11169 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11170 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
11171 HAVE_X_SM=yes
11172 fi
11173
11174 fi
11175
11176
11177
11178 if test "${HAVE_X_SM}" = "yes"; then
11179
11180 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11181
11182 LIBXSM="-lSM -lICE"
11183 case "$LIBS" in
11184 *-lSM*) ;;
11185 *) LIBS="$LIBXSM $LIBS" ;;
11186 esac
11187 fi
11188 fi
11189
11190
11191 ### Use libxml (-lxml2) if available
11192 if test "${with_xml2}" != "no"; then
11193 ### I'm not sure what the version number should be, so I just guessed.
11194
11195 succeeded=no
11196
11197 # Extract the first word of "pkg-config", so it can be a program name with args.
11198 set dummy pkg-config; ac_word=$2
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200 $as_echo_n "checking for $ac_word... " >&6; }
11201 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11202 $as_echo_n "(cached) " >&6
11203 else
11204 case $PKG_CONFIG in
11205 [\\/]* | ?:[\\/]*)
11206 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11207 ;;
11208 *)
11209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11210 for as_dir in $PATH
11211 do
11212 IFS=$as_save_IFS
11213 test -z "$as_dir" && as_dir=.
11214 for ac_exec_ext in '' $ac_executable_extensions; do
11215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11216 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11218 break 2
11219 fi
11220 done
11221 done
11222 IFS=$as_save_IFS
11223
11224 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11225 ;;
11226 esac
11227 fi
11228 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11229 if test -n "$PKG_CONFIG"; then
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11231 $as_echo "$PKG_CONFIG" >&6; }
11232 else
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234 $as_echo "no" >&6; }
11235 fi
11236
11237
11238
11239 if test "$PKG_CONFIG" = "no" ; then
11240 HAVE_LIBXML2=no
11241 else
11242 PKG_CONFIG_MIN_VERSION=0.9.0
11243 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
11245 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
11246
11247 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11249 $as_echo "yes" >&6; }
11250 succeeded=yes
11251
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11253 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11254 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11256 $as_echo "$LIBXML2_CFLAGS" >&6; }
11257
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11259 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11260 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11262 $as_echo "$LIBXML2_LIBS" >&6; }
11263 else
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265 $as_echo "no" >&6; }
11266 LIBXML2_CFLAGS=""
11267 LIBXML2_LIBS=""
11268 ## If we have a custom action on failure, don't print errors, but
11269 ## do set a variable so people can do so.
11270 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
11271
11272 fi
11273
11274
11275
11276 else
11277 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11278 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11279 fi
11280 fi
11281
11282 if test $succeeded = yes; then
11283 HAVE_LIBXML2=yes
11284 else
11285 HAVE_LIBXML2=no
11286 fi
11287
11288 if test "${HAVE_LIBXML2}" = "yes"; then
11289 LIBS="$LIBXML2_LIBS $LIBS"
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11291 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11292 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
11293 $as_echo_n "(cached) " >&6
11294 else
11295 ac_check_lib_save_LIBS=$LIBS
11296 LIBS="-lxml2 $LIBS"
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h. */
11299
11300 /* Override any GCC internal prototype to avoid an error.
11301 Use char because int might match the return type of a GCC
11302 builtin and then its argument prototype would still apply. */
11303 #ifdef __cplusplus
11304 extern "C"
11305 #endif
11306 char htmlReadMemory ();
11307 int
11308 main ()
11309 {
11310 return htmlReadMemory ();
11311 ;
11312 return 0;
11313 }
11314 _ACEOF
11315 if ac_fn_c_try_link "$LINENO"; then :
11316 ac_cv_lib_xml2_htmlReadMemory=yes
11317 else
11318 ac_cv_lib_xml2_htmlReadMemory=no
11319 fi
11320 rm -f core conftest.err conftest.$ac_objext \
11321 conftest$ac_exeext conftest.$ac_ext
11322 LIBS=$ac_check_lib_save_LIBS
11323 fi
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11325 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11326 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
11327 HAVE_LIBXML2=yes
11328 else
11329 HAVE_LIBXML2=no
11330 fi
11331
11332 if test "${HAVE_LIBXML2}" = "yes"; then
11333
11334 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11335
11336 else
11337 LIBXML2_LIBS=""
11338 LIBXML2_CFLAGS=""
11339 fi
11340 fi
11341 fi
11342
11343
11344
11345 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11347 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11348 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
11349 $as_echo_n "(cached) " >&6
11350 else
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */
11353 #include <netdb.h>
11354 int
11355 main ()
11356 {
11357 return h_errno;
11358 ;
11359 return 0;
11360 }
11361 _ACEOF
11362 if ac_fn_c_try_link "$LINENO"; then :
11363 emacs_cv_netdb_declares_h_errno=yes
11364 else
11365 emacs_cv_netdb_declares_h_errno=no
11366 fi
11367 rm -f core conftest.err conftest.$ac_objext \
11368 conftest$ac_exeext conftest.$ac_ext
11369 fi
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11371 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11372 if test $emacs_cv_netdb_declares_h_errno = yes; then
11373
11374 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11375
11376 fi
11377
11378 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11379 # for constant arguments. Useless!
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11381 $as_echo_n "checking for working alloca.h... " >&6; }
11382 if test "${ac_cv_working_alloca_h+set}" = set; then :
11383 $as_echo_n "(cached) " >&6
11384 else
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11387 #include <alloca.h>
11388 int
11389 main ()
11390 {
11391 char *p = (char *) alloca (2 * sizeof (int));
11392 if (p) return 0;
11393 ;
11394 return 0;
11395 }
11396 _ACEOF
11397 if ac_fn_c_try_link "$LINENO"; then :
11398 ac_cv_working_alloca_h=yes
11399 else
11400 ac_cv_working_alloca_h=no
11401 fi
11402 rm -f core conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext conftest.$ac_ext
11404 fi
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11406 $as_echo "$ac_cv_working_alloca_h" >&6; }
11407 if test $ac_cv_working_alloca_h = yes; then
11408
11409 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11410
11411 fi
11412
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11414 $as_echo_n "checking for alloca... " >&6; }
11415 if test "${ac_cv_func_alloca_works+set}" = set; then :
11416 $as_echo_n "(cached) " >&6
11417 else
11418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419 /* end confdefs.h. */
11420 #ifdef __GNUC__
11421 # define alloca __builtin_alloca
11422 #else
11423 # ifdef _MSC_VER
11424 # include <malloc.h>
11425 # define alloca _alloca
11426 # else
11427 # ifdef HAVE_ALLOCA_H
11428 # include <alloca.h>
11429 # else
11430 # ifdef _AIX
11431 #pragma alloca
11432 # else
11433 # ifndef alloca /* predefined by HP cc +Olibcalls */
11434 char *alloca ();
11435 # endif
11436 # endif
11437 # endif
11438 # endif
11439 #endif
11440
11441 int
11442 main ()
11443 {
11444 char *p = (char *) alloca (1);
11445 if (p) return 0;
11446 ;
11447 return 0;
11448 }
11449 _ACEOF
11450 if ac_fn_c_try_link "$LINENO"; then :
11451 ac_cv_func_alloca_works=yes
11452 else
11453 ac_cv_func_alloca_works=no
11454 fi
11455 rm -f core conftest.err conftest.$ac_objext \
11456 conftest$ac_exeext conftest.$ac_ext
11457 fi
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11459 $as_echo "$ac_cv_func_alloca_works" >&6; }
11460
11461 if test $ac_cv_func_alloca_works = yes; then
11462
11463 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11464
11465 else
11466 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11467 # that cause trouble. Some versions do not even contain alloca or
11468 # contain a buggy version. If you still want to use their alloca,
11469 # use ar to extract alloca.o from them instead of compiling alloca.c.
11470
11471 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11472
11473 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11474
11475
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11477 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11478 if test "${ac_cv_os_cray+set}" = set; then :
11479 $as_echo_n "(cached) " >&6
11480 else
11481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11483 #if defined CRAY && ! defined CRAY2
11484 webecray
11485 #else
11486 wenotbecray
11487 #endif
11488
11489 _ACEOF
11490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11491 $EGREP "webecray" >/dev/null 2>&1; then :
11492 ac_cv_os_cray=yes
11493 else
11494 ac_cv_os_cray=no
11495 fi
11496 rm -f conftest*
11497
11498 fi
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11500 $as_echo "$ac_cv_os_cray" >&6; }
11501 if test $ac_cv_os_cray = yes; then
11502 for ac_func in _getb67 GETB67 getb67; do
11503 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11504 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11505 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11506
11507 cat >>confdefs.h <<_ACEOF
11508 #define CRAY_STACKSEG_END $ac_func
11509 _ACEOF
11510
11511 break
11512 fi
11513
11514 done
11515 fi
11516
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11518 $as_echo_n "checking stack direction for C alloca... " >&6; }
11519 if test "${ac_cv_c_stack_direction+set}" = set; then :
11520 $as_echo_n "(cached) " >&6
11521 else
11522 if test "$cross_compiling" = yes; then :
11523 ac_cv_c_stack_direction=0
11524 else
11525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526 /* end confdefs.h. */
11527 $ac_includes_default
11528 int
11529 find_stack_direction ()
11530 {
11531 static char *addr = 0;
11532 auto char dummy;
11533 if (addr == 0)
11534 {
11535 addr = &dummy;
11536 return find_stack_direction ();
11537 }
11538 else
11539 return (&dummy > addr) ? 1 : -1;
11540 }
11541
11542 int
11543 main ()
11544 {
11545 return find_stack_direction () < 0;
11546 }
11547 _ACEOF
11548 if ac_fn_c_try_run "$LINENO"; then :
11549 ac_cv_c_stack_direction=1
11550 else
11551 ac_cv_c_stack_direction=-1
11552 fi
11553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11554 conftest.$ac_objext conftest.beam conftest.$ac_ext
11555 fi
11556
11557 fi
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11559 $as_echo "$ac_cv_c_stack_direction" >&6; }
11560 cat >>confdefs.h <<_ACEOF
11561 #define STACK_DIRECTION $ac_cv_c_stack_direction
11562 _ACEOF
11563
11564
11565 fi
11566
11567
11568 if test x"$ac_cv_func_alloca_works" != xyes; then
11569 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
11570 fi
11571
11572 # fmod, logb, and frexp are found in -lm on most systems.
11573 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11575 $as_echo_n "checking for sqrt in -lm... " >&6; }
11576 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
11577 $as_echo_n "(cached) " >&6
11578 else
11579 ac_check_lib_save_LIBS=$LIBS
11580 LIBS="-lm $LIBS"
11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h. */
11583
11584 /* Override any GCC internal prototype to avoid an error.
11585 Use char because int might match the return type of a GCC
11586 builtin and then its argument prototype would still apply. */
11587 #ifdef __cplusplus
11588 extern "C"
11589 #endif
11590 char sqrt ();
11591 int
11592 main ()
11593 {
11594 return sqrt ();
11595 ;
11596 return 0;
11597 }
11598 _ACEOF
11599 if ac_fn_c_try_link "$LINENO"; then :
11600 ac_cv_lib_m_sqrt=yes
11601 else
11602 ac_cv_lib_m_sqrt=no
11603 fi
11604 rm -f core conftest.err conftest.$ac_objext \
11605 conftest$ac_exeext conftest.$ac_ext
11606 LIBS=$ac_check_lib_save_LIBS
11607 fi
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11609 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11610 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
11611 cat >>confdefs.h <<_ACEOF
11612 #define HAVE_LIBM 1
11613 _ACEOF
11614
11615 LIBS="-lm $LIBS"
11616
11617 fi
11618
11619
11620 # Check for mail-locking functions in a "mail" library. Probably this should
11621 # have the same check as for liblockfile below.
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11623 $as_echo_n "checking for maillock in -lmail... " >&6; }
11624 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11625 $as_echo_n "(cached) " >&6
11626 else
11627 ac_check_lib_save_LIBS=$LIBS
11628 LIBS="-lmail $LIBS"
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11631
11632 /* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11635 #ifdef __cplusplus
11636 extern "C"
11637 #endif
11638 char maillock ();
11639 int
11640 main ()
11641 {
11642 return maillock ();
11643 ;
11644 return 0;
11645 }
11646 _ACEOF
11647 if ac_fn_c_try_link "$LINENO"; then :
11648 ac_cv_lib_mail_maillock=yes
11649 else
11650 ac_cv_lib_mail_maillock=no
11651 fi
11652 rm -f core conftest.err conftest.$ac_objext \
11653 conftest$ac_exeext conftest.$ac_ext
11654 LIBS=$ac_check_lib_save_LIBS
11655 fi
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11657 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11658 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
11659 have_mail=yes
11660 else
11661 have_mail=no
11662 fi
11663
11664 if test $have_mail = yes; then
11665 LIBS_MAIL=-lmail
11666 LIBS="$LIBS_MAIL $LIBS"
11667
11668 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11669
11670 else
11671 LIBS_MAIL=
11672 fi
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11674 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11675 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11676 $as_echo_n "(cached) " >&6
11677 else
11678 ac_check_lib_save_LIBS=$LIBS
11679 LIBS="-llockfile $LIBS"
11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681 /* end confdefs.h. */
11682
11683 /* Override any GCC internal prototype to avoid an error.
11684 Use char because int might match the return type of a GCC
11685 builtin and then its argument prototype would still apply. */
11686 #ifdef __cplusplus
11687 extern "C"
11688 #endif
11689 char maillock ();
11690 int
11691 main ()
11692 {
11693 return maillock ();
11694 ;
11695 return 0;
11696 }
11697 _ACEOF
11698 if ac_fn_c_try_link "$LINENO"; then :
11699 ac_cv_lib_lockfile_maillock=yes
11700 else
11701 ac_cv_lib_lockfile_maillock=no
11702 fi
11703 rm -f core conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
11705 LIBS=$ac_check_lib_save_LIBS
11706 fi
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11708 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11709 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
11710 have_lockfile=yes
11711 else
11712 have_lockfile=no
11713 fi
11714
11715 if test $have_lockfile = yes; then
11716 LIBS_MAIL=-llockfile
11717 LIBS="$LIBS_MAIL $LIBS"
11718
11719 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11720
11721 else
11722 # If we have the shared liblockfile, assume we must use it for mail
11723 # locking (e.g. Debian). If we couldn't link against liblockfile
11724 # (no liblockfile.a installed), ensure that we don't need to.
11725 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11726 set dummy liblockfile.so; ac_word=$2
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11728 $as_echo_n "checking for $ac_word... " >&6; }
11729 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11730 $as_echo_n "(cached) " >&6
11731 else
11732 if test -n "$liblockfile"; then
11733 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11734 else
11735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11736 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11737 for as_dir in $as_dummy
11738 do
11739 IFS=$as_save_IFS
11740 test -z "$as_dir" && as_dir=.
11741 for ac_exec_ext in '' $ac_executable_extensions; do
11742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11743 ac_cv_prog_liblockfile="yes"
11744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11745 break 2
11746 fi
11747 done
11748 done
11749 IFS=$as_save_IFS
11750
11751 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11752 fi
11753 fi
11754 liblockfile=$ac_cv_prog_liblockfile
11755 if test -n "$liblockfile"; then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11757 $as_echo "$liblockfile" >&6; }
11758 else
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760 $as_echo "no" >&6; }
11761 fi
11762
11763
11764 if test $ac_cv_prog_liblockfile = yes; then
11765 as_fn_error $? "Shared liblockfile found but can't link against it.
11766 This probably means that movemail could lose mail.
11767 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11768 fi
11769 fi
11770 for ac_func in touchlock
11771 do :
11772 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11773 if test "x$ac_cv_func_touchlock" = x""yes; then :
11774 cat >>confdefs.h <<_ACEOF
11775 #define HAVE_TOUCHLOCK 1
11776 _ACEOF
11777
11778 fi
11779 done
11780
11781 for ac_header in maillock.h
11782 do :
11783 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11784 if test "x$ac_cv_header_maillock_h" = x""yes; then :
11785 cat >>confdefs.h <<_ACEOF
11786 #define HAVE_MAILLOCK_H 1
11787 _ACEOF
11788
11789 fi
11790
11791 done
11792
11793
11794
11795 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11796 ## interlock access to the mail spool. The alternative is a lock file named
11797 ## /usr/spool/mail/$USER.lock.
11798 mail_lock=no
11799 case "$opsys" in
11800 aix4-2) mail_lock="lockf" ;;
11801
11802 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11803
11804 ## On GNU/Linux systems, both methods are used by various mail programs.
11805 ## I assume most people are using newer mailers that have heard of flock.
11806 ## Change this if you need to.
11807 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11808 ## configure gets the right answers, and that means *NOT* using flock.
11809 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11810 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11811 ## Debian maintainer hasn't provided a clean fix for Emacs.
11812 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11813 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11814 ## correct logic. -- fx
11815 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11816 ## liblockfile is a Free Software replacement for libmail, used on
11817 ## Debian systems and elsewhere. -rfr.
11818 gnu-*)
11819 mail_lock="flock"
11820 if test $have_mail = yes || test $have_lockfile = yes; then
11821 test $ac_cv_header_maillock_h = yes && mail_lock=no
11822 fi
11823 ;;
11824 esac
11825
11826 BLESSMAIL_TARGET=
11827 case "$mail_lock" in
11828 flock)
11829 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11830 ;;
11831
11832 lockf)
11833 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11834 ;;
11835
11836 *) BLESSMAIL_TARGET="need-blessmail" ;;
11837 esac
11838
11839
11840
11841 for ac_func in gethostname getdomainname dup2 \
11842 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11843 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11844 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11845 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11846 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11847 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11848 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11849 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11850 cfmakeraw cfsetspeed isnan copysign __executable_start
11851 do :
11852 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11853 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11854 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11855 cat >>confdefs.h <<_ACEOF
11856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11857 _ACEOF
11858
11859 fi
11860 done
11861
11862
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
11864 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
11865 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
11866 $as_echo_n "(cached) " >&6
11867 else
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h. */
11870
11871 int
11872 main ()
11873 {
11874 __builtin_unwind_init ();
11875 ;
11876 return 0;
11877 }
11878 _ACEOF
11879 if ac_fn_c_try_link "$LINENO"; then :
11880 emacs_cv_func___builtin_unwind_init=yes
11881 else
11882 emacs_cv_func___builtin_unwind_init=no
11883 fi
11884 rm -f core conftest.err conftest.$ac_objext \
11885 conftest$ac_exeext conftest.$ac_ext
11886 fi
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
11888 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
11889 if test $emacs_cv_func___builtin_unwind_init = yes; then
11890
11891 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
11892
11893 fi
11894
11895 for ac_header in sys/un.h
11896 do :
11897 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11898 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11899 cat >>confdefs.h <<_ACEOF
11900 #define HAVE_SYS_UN_H 1
11901 _ACEOF
11902
11903 fi
11904
11905 done
11906
11907
11908
11909
11910
11911
11912
11913 for ac_func in $ac_func_list
11914 do :
11915 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11916 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11917 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11918 cat >>confdefs.h <<_ACEOF
11919 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11920 _ACEOF
11921
11922 fi
11923 done
11924
11925
11926
11927
11928
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11930 $as_echo_n "checking for working mktime... " >&6; }
11931 if test "${ac_cv_func_working_mktime+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11933 else
11934 if test "$cross_compiling" = yes; then :
11935 ac_cv_func_working_mktime=no
11936 else
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11939 /* Test program from Paul Eggert and Tony Leneis. */
11940 #ifdef TIME_WITH_SYS_TIME
11941 # include <sys/time.h>
11942 # include <time.h>
11943 #else
11944 # ifdef HAVE_SYS_TIME_H
11945 # include <sys/time.h>
11946 # else
11947 # include <time.h>
11948 # endif
11949 #endif
11950
11951 #include <limits.h>
11952 #include <stdlib.h>
11953
11954 #ifdef HAVE_UNISTD_H
11955 # include <unistd.h>
11956 #endif
11957
11958 #ifndef HAVE_ALARM
11959 # define alarm(X) /* empty */
11960 #endif
11961
11962 /* Work around redefinition to rpl_putenv by other config tests. */
11963 #undef putenv
11964
11965 static time_t time_t_max;
11966 static time_t time_t_min;
11967
11968 /* Values we'll use to set the TZ environment variable. */
11969 static const char *tz_strings[] = {
11970 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11971 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11972 };
11973 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11974
11975 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11976 Based on a problem report from Andreas Jaeger. */
11977 static int
11978 spring_forward_gap ()
11979 {
11980 /* glibc (up to about 1998-10-07) failed this test. */
11981 struct tm tm;
11982
11983 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11984 instead of "TZ=America/Vancouver" in order to detect the bug even
11985 on systems that don't support the Olson extension, or don't have the
11986 full zoneinfo tables installed. */
11987 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11988
11989 tm.tm_year = 98;
11990 tm.tm_mon = 3;
11991 tm.tm_mday = 5;
11992 tm.tm_hour = 2;
11993 tm.tm_min = 0;
11994 tm.tm_sec = 0;
11995 tm.tm_isdst = -1;
11996 return mktime (&tm) != (time_t) -1;
11997 }
11998
11999 static int
12000 mktime_test1 (time_t now)
12001 {
12002 struct tm *lt;
12003 return ! (lt = localtime (&now)) || mktime (lt) == now;
12004 }
12005
12006 static int
12007 mktime_test (time_t now)
12008 {
12009 return (mktime_test1 (now)
12010 && mktime_test1 ((time_t) (time_t_max - now))
12011 && mktime_test1 ((time_t) (time_t_min + now)));
12012 }
12013
12014 static int
12015 irix_6_4_bug ()
12016 {
12017 /* Based on code from Ariel Faigon. */
12018 struct tm tm;
12019 tm.tm_year = 96;
12020 tm.tm_mon = 3;
12021 tm.tm_mday = 0;
12022 tm.tm_hour = 0;
12023 tm.tm_min = 0;
12024 tm.tm_sec = 0;
12025 tm.tm_isdst = -1;
12026 mktime (&tm);
12027 return tm.tm_mon == 2 && tm.tm_mday == 31;
12028 }
12029
12030 static int
12031 bigtime_test (int j)
12032 {
12033 struct tm tm;
12034 time_t now;
12035 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12036 now = mktime (&tm);
12037 if (now != (time_t) -1)
12038 {
12039 struct tm *lt = localtime (&now);
12040 if (! (lt
12041 && lt->tm_year == tm.tm_year
12042 && lt->tm_mon == tm.tm_mon
12043 && lt->tm_mday == tm.tm_mday
12044 && lt->tm_hour == tm.tm_hour
12045 && lt->tm_min == tm.tm_min
12046 && lt->tm_sec == tm.tm_sec
12047 && lt->tm_yday == tm.tm_yday
12048 && lt->tm_wday == tm.tm_wday
12049 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12050 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12051 return 0;
12052 }
12053 return 1;
12054 }
12055
12056 static int
12057 year_2050_test ()
12058 {
12059 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12060 ignoring leap seconds. */
12061 unsigned long int answer = 2527315200UL;
12062
12063 struct tm tm;
12064 time_t t;
12065 tm.tm_year = 2050 - 1900;
12066 tm.tm_mon = 2 - 1;
12067 tm.tm_mday = 1;
12068 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12069 tm.tm_isdst = -1;
12070
12071 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12072 instead of "TZ=America/Vancouver" in order to detect the bug even
12073 on systems that don't support the Olson extension, or don't have the
12074 full zoneinfo tables installed. */
12075 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12076
12077 t = mktime (&tm);
12078
12079 /* Check that the result is either a failure, or close enough
12080 to the correct answer that we can assume the discrepancy is
12081 due to leap seconds. */
12082 return (t == (time_t) -1
12083 || (0 < t && answer - 120 <= t && t <= answer + 120));
12084 }
12085
12086 int
12087 main ()
12088 {
12089 time_t t, delta;
12090 int i, j;
12091
12092 /* This test makes some buggy mktime implementations loop.
12093 Give up after 60 seconds; a mktime slower than that
12094 isn't worth using anyway. */
12095 alarm (60);
12096
12097 for (;;)
12098 {
12099 t = (time_t_max << 1) + 1;
12100 if (t <= time_t_max)
12101 break;
12102 time_t_max = t;
12103 }
12104 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12105
12106 delta = time_t_max / 997; /* a suitable prime number */
12107 for (i = 0; i < N_STRINGS; i++)
12108 {
12109 if (tz_strings[i])
12110 putenv ((char*) tz_strings[i]);
12111
12112 for (t = 0; t <= time_t_max - delta; t += delta)
12113 if (! mktime_test (t))
12114 return 1;
12115 if (! (mktime_test ((time_t) 1)
12116 && mktime_test ((time_t) (60 * 60))
12117 && mktime_test ((time_t) (60 * 60 * 24))))
12118 return 1;
12119
12120 for (j = 1; ; j <<= 1)
12121 if (! bigtime_test (j))
12122 return 1;
12123 else if (INT_MAX / 2 < j)
12124 break;
12125 if (! bigtime_test (INT_MAX))
12126 return 1;
12127 }
12128 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12129 }
12130 _ACEOF
12131 if ac_fn_c_try_run "$LINENO"; then :
12132 ac_cv_func_working_mktime=yes
12133 else
12134 ac_cv_func_working_mktime=no
12135 fi
12136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12137 conftest.$ac_objext conftest.beam conftest.$ac_ext
12138 fi
12139
12140 fi
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12142 $as_echo "$ac_cv_func_working_mktime" >&6; }
12143 if test $ac_cv_func_working_mktime = no; then
12144 case " $LIBOBJS " in
12145 *" mktime.$ac_objext "* ) ;;
12146 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12147 ;;
12148 esac
12149
12150 fi
12151
12152 if test "$ac_cv_func_working_mktime" = no; then
12153
12154 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12155
12156 fi
12157
12158 ac_have_func=no # yes means we've found a way to get the load average.
12159
12160 # Make sure getloadavg.c is where it belongs, at configure-time.
12161 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12162 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12163
12164 ac_save_LIBS=$LIBS
12165
12166 # Check for getloadavg, but be sure not to touch the cache variable.
12167 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12168 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12169 exit 0
12170 else
12171 exit 1
12172 fi
12173 ) && ac_have_func=yes
12174
12175 # On HPUX9, an unprivileged user can get load averages through this function.
12176 for ac_func in pstat_getdynamic
12177 do :
12178 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12179 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
12180 cat >>confdefs.h <<_ACEOF
12181 #define HAVE_PSTAT_GETDYNAMIC 1
12182 _ACEOF
12183
12184 fi
12185 done
12186
12187
12188 # Solaris has libkstat which does not require root.
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12190 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12191 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 ac_check_lib_save_LIBS=$LIBS
12195 LIBS="-lkstat $LIBS"
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */
12198
12199 /* Override any GCC internal prototype to avoid an error.
12200 Use char because int might match the return type of a GCC
12201 builtin and then its argument prototype would still apply. */
12202 #ifdef __cplusplus
12203 extern "C"
12204 #endif
12205 char kstat_open ();
12206 int
12207 main ()
12208 {
12209 return kstat_open ();
12210 ;
12211 return 0;
12212 }
12213 _ACEOF
12214 if ac_fn_c_try_link "$LINENO"; then :
12215 ac_cv_lib_kstat_kstat_open=yes
12216 else
12217 ac_cv_lib_kstat_kstat_open=no
12218 fi
12219 rm -f core conftest.err conftest.$ac_objext \
12220 conftest$ac_exeext conftest.$ac_ext
12221 LIBS=$ac_check_lib_save_LIBS
12222 fi
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12224 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12225 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12226 cat >>confdefs.h <<_ACEOF
12227 #define HAVE_LIBKSTAT 1
12228 _ACEOF
12229
12230 LIBS="-lkstat $LIBS"
12231
12232 fi
12233
12234 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12235
12236 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12237 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12238 # to get the right answer into the cache.
12239 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12240 if test $ac_have_func = no; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12242 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12243 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12244 $as_echo_n "(cached) " >&6
12245 else
12246 ac_check_lib_save_LIBS=$LIBS
12247 LIBS="-lelf $LIBS"
12248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249 /* end confdefs.h. */
12250
12251 /* Override any GCC internal prototype to avoid an error.
12252 Use char because int might match the return type of a GCC
12253 builtin and then its argument prototype would still apply. */
12254 #ifdef __cplusplus
12255 extern "C"
12256 #endif
12257 char elf_begin ();
12258 int
12259 main ()
12260 {
12261 return elf_begin ();
12262 ;
12263 return 0;
12264 }
12265 _ACEOF
12266 if ac_fn_c_try_link "$LINENO"; then :
12267 ac_cv_lib_elf_elf_begin=yes
12268 else
12269 ac_cv_lib_elf_elf_begin=no
12270 fi
12271 rm -f core conftest.err conftest.$ac_objext \
12272 conftest$ac_exeext conftest.$ac_ext
12273 LIBS=$ac_check_lib_save_LIBS
12274 fi
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12276 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12277 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
12278 LIBS="-lelf $LIBS"
12279 fi
12280
12281 fi
12282 if test $ac_have_func = no; then
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12284 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12285 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12286 $as_echo_n "(cached) " >&6
12287 else
12288 ac_check_lib_save_LIBS=$LIBS
12289 LIBS="-lkvm $LIBS"
12290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291 /* end confdefs.h. */
12292
12293 /* Override any GCC internal prototype to avoid an error.
12294 Use char because int might match the return type of a GCC
12295 builtin and then its argument prototype would still apply. */
12296 #ifdef __cplusplus
12297 extern "C"
12298 #endif
12299 char kvm_open ();
12300 int
12301 main ()
12302 {
12303 return kvm_open ();
12304 ;
12305 return 0;
12306 }
12307 _ACEOF
12308 if ac_fn_c_try_link "$LINENO"; then :
12309 ac_cv_lib_kvm_kvm_open=yes
12310 else
12311 ac_cv_lib_kvm_kvm_open=no
12312 fi
12313 rm -f core conftest.err conftest.$ac_objext \
12314 conftest$ac_exeext conftest.$ac_ext
12315 LIBS=$ac_check_lib_save_LIBS
12316 fi
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12318 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12319 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
12320 LIBS="-lkvm $LIBS"
12321 fi
12322
12323 # Check for the 4.4BSD definition of getloadavg.
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12325 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12326 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 ac_check_lib_save_LIBS=$LIBS
12330 LIBS="-lutil $LIBS"
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12333
12334 /* Override any GCC internal prototype to avoid an error.
12335 Use char because int might match the return type of a GCC
12336 builtin and then its argument prototype would still apply. */
12337 #ifdef __cplusplus
12338 extern "C"
12339 #endif
12340 char getloadavg ();
12341 int
12342 main ()
12343 {
12344 return getloadavg ();
12345 ;
12346 return 0;
12347 }
12348 _ACEOF
12349 if ac_fn_c_try_link "$LINENO"; then :
12350 ac_cv_lib_util_getloadavg=yes
12351 else
12352 ac_cv_lib_util_getloadavg=no
12353 fi
12354 rm -f core conftest.err conftest.$ac_objext \
12355 conftest$ac_exeext conftest.$ac_ext
12356 LIBS=$ac_check_lib_save_LIBS
12357 fi
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12359 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12360 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
12361 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12362 fi
12363
12364 fi
12365
12366 if test $ac_have_func = no; then
12367 # There is a commonly available library for RS/6000 AIX.
12368 # Since it is not a standard part of AIX, it might be installed locally.
12369 ac_getloadavg_LIBS=$LIBS
12370 LIBS="-L/usr/local/lib $LIBS"
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12372 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12373 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12374 $as_echo_n "(cached) " >&6
12375 else
12376 ac_check_lib_save_LIBS=$LIBS
12377 LIBS="-lgetloadavg $LIBS"
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12380
12381 /* Override any GCC internal prototype to avoid an error.
12382 Use char because int might match the return type of a GCC
12383 builtin and then its argument prototype would still apply. */
12384 #ifdef __cplusplus
12385 extern "C"
12386 #endif
12387 char getloadavg ();
12388 int
12389 main ()
12390 {
12391 return getloadavg ();
12392 ;
12393 return 0;
12394 }
12395 _ACEOF
12396 if ac_fn_c_try_link "$LINENO"; then :
12397 ac_cv_lib_getloadavg_getloadavg=yes
12398 else
12399 ac_cv_lib_getloadavg_getloadavg=no
12400 fi
12401 rm -f core conftest.err conftest.$ac_objext \
12402 conftest$ac_exeext conftest.$ac_ext
12403 LIBS=$ac_check_lib_save_LIBS
12404 fi
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12406 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12407 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
12408 LIBS="-lgetloadavg $LIBS"
12409 else
12410 LIBS=$ac_getloadavg_LIBS
12411 fi
12412
12413 fi
12414
12415 # Make sure it is really in the library, if we think we found it,
12416 # otherwise set up the replacement function.
12417 for ac_func in getloadavg
12418 do :
12419 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12420 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12421 cat >>confdefs.h <<_ACEOF
12422 #define HAVE_GETLOADAVG 1
12423 _ACEOF
12424
12425 else
12426 case " $LIBOBJS " in
12427 *" getloadavg.$ac_objext "* ) ;;
12428 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12429 ;;
12430 esac
12431
12432
12433 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12434
12435 # Figure out what our getloadavg.c needs.
12436 ac_have_func=no
12437 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12438 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
12439 ac_have_func=yes
12440
12441 $as_echo "#define DGUX 1" >>confdefs.h
12442
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12444 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12445 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12446 $as_echo_n "(cached) " >&6
12447 else
12448 ac_check_lib_save_LIBS=$LIBS
12449 LIBS="-ldgc $LIBS"
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12452
12453 /* Override any GCC internal prototype to avoid an error.
12454 Use char because int might match the return type of a GCC
12455 builtin and then its argument prototype would still apply. */
12456 #ifdef __cplusplus
12457 extern "C"
12458 #endif
12459 char dg_sys_info ();
12460 int
12461 main ()
12462 {
12463 return dg_sys_info ();
12464 ;
12465 return 0;
12466 }
12467 _ACEOF
12468 if ac_fn_c_try_link "$LINENO"; then :
12469 ac_cv_lib_dgc_dg_sys_info=yes
12470 else
12471 ac_cv_lib_dgc_dg_sys_info=no
12472 fi
12473 rm -f core conftest.err conftest.$ac_objext \
12474 conftest$ac_exeext conftest.$ac_ext
12475 LIBS=$ac_check_lib_save_LIBS
12476 fi
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12478 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12479 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
12480 cat >>confdefs.h <<_ACEOF
12481 #define HAVE_LIBDGC 1
12482 _ACEOF
12483
12484 LIBS="-ldgc $LIBS"
12485
12486 fi
12487
12488 fi
12489
12490
12491
12492 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12493 if test "x$ac_cv_header_locale_h" = x""yes; then :
12494
12495 fi
12496
12497
12498 for ac_func in setlocale
12499 do :
12500 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12501 if test "x$ac_cv_func_setlocale" = x""yes; then :
12502 cat >>confdefs.h <<_ACEOF
12503 #define HAVE_SETLOCALE 1
12504 _ACEOF
12505
12506 fi
12507 done
12508
12509
12510 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12511 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12512 # Irix 4.0.5F has the header but not the library.
12513 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12514 ac_have_func=yes
12515
12516 $as_echo "#define SVR4 1" >>confdefs.h
12517
12518 fi
12519
12520 if test $ac_have_func = no; then
12521 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12522 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
12523 ac_have_func=yes
12524
12525 $as_echo "#define UMAX 1" >>confdefs.h
12526
12527
12528 $as_echo "#define UMAX4_3 1" >>confdefs.h
12529
12530 fi
12531
12532
12533 fi
12534
12535 if test $ac_have_func = no; then
12536 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12537 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
12538 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
12539
12540 fi
12541
12542
12543 fi
12544
12545 if test $ac_have_func = no; then
12546 for ac_header in mach/mach.h
12547 do :
12548 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12549 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
12550 cat >>confdefs.h <<_ACEOF
12551 #define HAVE_MACH_MACH_H 1
12552 _ACEOF
12553
12554 fi
12555
12556 done
12557
12558 fi
12559
12560 for ac_header in nlist.h
12561 do :
12562 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12563 if test "x$ac_cv_header_nlist_h" = x""yes; then :
12564 cat >>confdefs.h <<_ACEOF
12565 #define HAVE_NLIST_H 1
12566 _ACEOF
12567 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12568 "
12569 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
12570
12571 cat >>confdefs.h <<_ACEOF
12572 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12573 _ACEOF
12574
12575
12576 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12577
12578 fi
12579
12580
12581 fi
12582
12583 done
12584
12585 fi
12586 done
12587
12588
12589 # Some definitions of getloadavg require that the program be installed setgid.
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12591 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12592 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12598 #ifdef LDAV_PRIVILEGED
12599 Yowza Am I SETGID yet
12600 #endif
12601 _ACEOF
12602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12603 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
12604 ac_cv_func_getloadavg_setgid=yes
12605 else
12606 ac_cv_func_getloadavg_setgid=no
12607 fi
12608 rm -f conftest*
12609
12610 fi
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12612 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12613 if test $ac_cv_func_getloadavg_setgid = yes; then
12614 NEED_SETGID=true
12615
12616 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12617
12618 else
12619 NEED_SETGID=false
12620 fi
12621
12622 if test $ac_cv_func_getloadavg_setgid = yes; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12624 $as_echo_n "checking group of /dev/kmem... " >&6; }
12625 if test "${ac_cv_group_kmem+set}" = set; then :
12626 $as_echo_n "(cached) " >&6
12627 else
12628 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12629 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12630 # If we got an error (system does not support symlinks), try without -L.
12631 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12632 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
12633 | sed -ne 's/[ ][ ]*/ /g;
12634 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12635 / /s/.* //;p;'`
12636
12637 fi
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12639 $as_echo "$ac_cv_group_kmem" >&6; }
12640 KMEM_GROUP=$ac_cv_group_kmem
12641 fi
12642 if test "x$ac_save_LIBS" = x; then
12643 GETLOADAVG_LIBS=$LIBS
12644 else
12645 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12646 fi
12647 LIBS=$ac_save_LIBS
12648
12649
12650
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12652 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12653 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12654 $as_echo_n "(cached) " >&6
12655 else
12656 while :; do
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
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=no; break
12672 fi
12673 rm -f core conftest.err conftest.$ac_objext \
12674 conftest$ac_exeext conftest.$ac_ext
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12677 #define _LARGEFILE_SOURCE 1
12678 #include <sys/types.h> /* for off_t */
12679 #include <stdio.h>
12680 int
12681 main ()
12682 {
12683 int (*fp) (FILE *, off_t, int) = fseeko;
12684 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12685 ;
12686 return 0;
12687 }
12688 _ACEOF
12689 if ac_fn_c_try_link "$LINENO"; then :
12690 ac_cv_sys_largefile_source=1; break
12691 fi
12692 rm -f core conftest.err conftest.$ac_objext \
12693 conftest$ac_exeext conftest.$ac_ext
12694 ac_cv_sys_largefile_source=unknown
12695 break
12696 done
12697 fi
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12699 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12700 case $ac_cv_sys_largefile_source in #(
12701 no | unknown) ;;
12702 *)
12703 cat >>confdefs.h <<_ACEOF
12704 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12705 _ACEOF
12706 ;;
12707 esac
12708 rm -rf conftest*
12709
12710 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12711 # in glibc 2.1.3, but that breaks too many other things.
12712 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12713 if test $ac_cv_sys_largefile_source != unknown; then
12714
12715 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12716
12717 fi
12718
12719
12720 # Configure getopt.
12721 # getopt.m4 serial 10
12722
12723 # The getopt module assume you want GNU getopt, with getopt_long etc,
12724 # rather than vanilla POSIX getopt. This means your your code should
12725 # always include <getopt.h> for the getopt prototypes.
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737 # Prerequisites of lib/getopt*.
12738
12739
12740
12741
12742 GETOPT_H=
12743 for ac_header in getopt.h
12744 do :
12745 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12746 if test "x$ac_cv_header_getopt_h" = x""yes; then :
12747 cat >>confdefs.h <<_ACEOF
12748 #define HAVE_GETOPT_H 1
12749 _ACEOF
12750
12751 else
12752 GETOPT_H=getopt.h
12753 fi
12754
12755 done
12756
12757 if test -z "$GETOPT_H"; then
12758 for ac_func in getopt_long_only
12759 do :
12760 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12761 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
12762 cat >>confdefs.h <<_ACEOF
12763 #define HAVE_GETOPT_LONG_ONLY 1
12764 _ACEOF
12765
12766 else
12767 GETOPT_H=getopt.h
12768 fi
12769 done
12770
12771 fi
12772
12773 if test -z "$GETOPT_H"; then
12774 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12775 "
12776 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
12777 GETOPT_H=getopt.h
12778 fi
12779
12780 fi
12781
12782 if test -z "$GETOPT_H"; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12784 $as_echo_n "checking for working GNU getopt function... " >&6; }
12785 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 if test "$cross_compiling" = yes; then :
12789 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12790 "
12791 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12792 gl_cv_func_gnu_getopt=no
12793 else
12794 gl_cv_func_gnu_getopt=yes
12795 fi
12796
12797 else
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12800 #include <getopt.h>
12801 int
12802 main ()
12803 {
12804
12805 char *myargv[3];
12806 myargv[0] = "conftest";
12807 myargv[1] = "-+";
12808 myargv[2] = 0;
12809 return getopt (2, myargv, "+a") != '?';
12810
12811 ;
12812 return 0;
12813 }
12814 _ACEOF
12815 if ac_fn_c_try_run "$LINENO"; then :
12816 gl_cv_func_gnu_getopt=yes
12817 else
12818 gl_cv_func_gnu_getopt=no
12819 fi
12820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12821 conftest.$ac_objext conftest.beam conftest.$ac_ext
12822 fi
12823
12824 fi
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12826 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12827 if test "$gl_cv_func_gnu_getopt" = "no"; then
12828 GETOPT_H=getopt.h
12829 fi
12830 fi
12831
12832
12833
12834 if test -n "$GETOPT_H"; then :
12835
12836
12837 GETOPT_H=getopt.h
12838
12839 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12840
12841
12842
12843 :
12844 GETOPTOBJS='getopt.o getopt1.o'
12845
12846 fi
12847
12848
12849
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12851 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12852 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12853 $as_echo_n "(cached) " >&6
12854 else
12855 # Use it with a single arg.
12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h. */
12858 $ac_includes_default
12859 int
12860 main ()
12861 {
12862 getpgrp (0);
12863 ;
12864 return 0;
12865 }
12866 _ACEOF
12867 if ac_fn_c_try_compile "$LINENO"; then :
12868 ac_cv_func_getpgrp_void=no
12869 else
12870 ac_cv_func_getpgrp_void=yes
12871 fi
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873
12874 fi
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12876 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12877 if test $ac_cv_func_getpgrp_void = yes; then
12878
12879 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12880
12881 fi
12882
12883
12884 for ac_func in strftime
12885 do :
12886 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12887 if test "x$ac_cv_func_strftime" = x""yes; then :
12888 cat >>confdefs.h <<_ACEOF
12889 #define HAVE_STRFTIME 1
12890 _ACEOF
12891
12892 else
12893 # strftime is in -lintl on SCO UNIX.
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12895 $as_echo_n "checking for strftime in -lintl... " >&6; }
12896 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12897 $as_echo_n "(cached) " >&6
12898 else
12899 ac_check_lib_save_LIBS=$LIBS
12900 LIBS="-lintl $LIBS"
12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12903
12904 /* Override any GCC internal prototype to avoid an error.
12905 Use char because int might match the return type of a GCC
12906 builtin and then its argument prototype would still apply. */
12907 #ifdef __cplusplus
12908 extern "C"
12909 #endif
12910 char strftime ();
12911 int
12912 main ()
12913 {
12914 return strftime ();
12915 ;
12916 return 0;
12917 }
12918 _ACEOF
12919 if ac_fn_c_try_link "$LINENO"; then :
12920 ac_cv_lib_intl_strftime=yes
12921 else
12922 ac_cv_lib_intl_strftime=no
12923 fi
12924 rm -f core conftest.err conftest.$ac_objext \
12925 conftest$ac_exeext conftest.$ac_ext
12926 LIBS=$ac_check_lib_save_LIBS
12927 fi
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12929 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12930 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12931 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12932
12933 LIBS="-lintl $LIBS"
12934 fi
12935
12936 fi
12937 done
12938
12939
12940 # UNIX98 PTYs.
12941 for ac_func in grantpt
12942 do :
12943 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12944 if test "x$ac_cv_func_grantpt" = x""yes; then :
12945 cat >>confdefs.h <<_ACEOF
12946 #define HAVE_GRANTPT 1
12947 _ACEOF
12948
12949 fi
12950 done
12951
12952
12953 # PTY-related GNU extensions.
12954 for ac_func in getpt
12955 do :
12956 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12957 if test "x$ac_cv_func_getpt" = x""yes; then :
12958 cat >>confdefs.h <<_ACEOF
12959 #define HAVE_GETPT 1
12960 _ACEOF
12961
12962 fi
12963 done
12964
12965
12966 # Check this now, so that we will NOT find the above functions in ncurses.
12967 # That is because we have not set up to link ncurses in lib-src.
12968 # It's better to believe a function is not available
12969 # than to expect to find it in ncurses.
12970 # Also we need tputs and friends to be able to build at all.
12971 have_tputs_et_al=true
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12973 $as_echo_n "checking for library containing tputs... " >&6; }
12974 if test "${ac_cv_search_tputs+set}" = set; then :
12975 $as_echo_n "(cached) " >&6
12976 else
12977 ac_func_search_save_LIBS=$LIBS
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */
12980
12981 /* Override any GCC internal prototype to avoid an error.
12982 Use char because int might match the return type of a GCC
12983 builtin and then its argument prototype would still apply. */
12984 #ifdef __cplusplus
12985 extern "C"
12986 #endif
12987 char tputs ();
12988 int
12989 main ()
12990 {
12991 return tputs ();
12992 ;
12993 return 0;
12994 }
12995 _ACEOF
12996 for ac_lib in '' ncurses terminfo termcap; do
12997 if test -z "$ac_lib"; then
12998 ac_res="none required"
12999 else
13000 ac_res=-l$ac_lib
13001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13002 fi
13003 if ac_fn_c_try_link "$LINENO"; then :
13004 ac_cv_search_tputs=$ac_res
13005 fi
13006 rm -f core conftest.err conftest.$ac_objext \
13007 conftest$ac_exeext
13008 if test "${ac_cv_search_tputs+set}" = set; then :
13009 break
13010 fi
13011 done
13012 if test "${ac_cv_search_tputs+set}" = set; then :
13013
13014 else
13015 ac_cv_search_tputs=no
13016 fi
13017 rm conftest.$ac_ext
13018 LIBS=$ac_func_search_save_LIBS
13019 fi
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13021 $as_echo "$ac_cv_search_tputs" >&6; }
13022 ac_res=$ac_cv_search_tputs
13023 if test "$ac_res" != no; then :
13024 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13025
13026 else
13027 have_tputs_et_al=false
13028 fi
13029
13030 if test "$have_tputs_et_al" != true; then
13031 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
13032 Maybe some development libraries/packages are missing? Try installing
13033 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13034 fi
13035 # Must define this when any termcap library is found.
13036
13037 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13038
13039 ## FIXME This was the cpp logic, but I am not sure it is right.
13040 ## The above test has not necessarily found libncurses.
13041 HAVE_LIBNCURSES=yes
13042
13043 ## Use terminfo instead of termcap?
13044 ## Note only system files NOT using terminfo are:
13045 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13046 ## darwin|gnu without ncurses.
13047 TERMINFO=no
13048 LIBS_TERMCAP=
13049 case "$opsys" in
13050 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13051 ## hpux10-20: Use the system provided termcap(3) library.
13052 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13053 ## is necessary. Otherwise Emacs dumps core when run -nw.
13054 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
13055
13056 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13057 ## The ncurses library has been moved out of the System framework in
13058 ## Mac OS X 10.2. So if configure detects it, set the command-line
13059 ## option to use it.
13060 darwin|gnu*)
13061 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13062 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13063 TERMINFO=yes
13064 LIBS_TERMCAP="-lncurses"
13065 fi
13066 ;;
13067
13068 freebsd)
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13070 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13071 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13072 $as_echo_n "(cached) " >&6
13073 else
13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13076 #include <osreldate.h>
13077 int
13078 main ()
13079 {
13080 #if __FreeBSD_version < 400000
13081 fail;
13082 #endif
13083
13084 ;
13085 return 0;
13086 }
13087 _ACEOF
13088 if ac_fn_c_try_link "$LINENO"; then :
13089 emacs_cv_freebsd_terminfo=yes
13090 else
13091 emacs_cv_freebsd_terminfo=no
13092 fi
13093 rm -f core conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext conftest.$ac_ext
13095 fi
13096
13097
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13099 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13100
13101 if test $emacs_cv_freebsd_terminfo = yes; then
13102 TERMINFO=yes
13103 LIBS_TERMCAP="-lncurses"
13104 else
13105 LIBS_TERMCAP="-ltermcap"
13106 fi
13107 ;;
13108
13109 netbsd)
13110 if test $ac_cv_search_tputs = -lterminfo; then
13111 TERMINFO=yes
13112 LIBS_TERMCAP="-lterminfo"
13113 else
13114 LIBS_TERMCAP="-ltermcap"
13115 fi
13116 ;;
13117
13118 esac
13119
13120 case "$opsys" in
13121 ## hpux: Make sure we get select from libc rather than from libcurses
13122 ## because libcurses on HPUX 10.10 has a broken version of select.
13123 ## We used to use -lc -lcurses, but this may be cleaner.
13124 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13125
13126 openbsd) LIBS_TERMCAP="-lncurses" ;;
13127
13128 ## Must use system termcap, if we use any termcap. It does special things.
13129 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
13130 esac
13131
13132 TERMCAP_OBJ=tparam.o
13133 if test $TERMINFO = yes; then
13134
13135 $as_echo "#define TERMINFO 1" >>confdefs.h
13136
13137
13138 ## Default used to be -ltermcap. Add a case above if need something else.
13139 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
13140
13141 TERMCAP_OBJ=terminfo.o
13142 fi
13143
13144
13145
13146
13147 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13148 resolv=no
13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150 /* end confdefs.h. */
13151 #include <netinet/in.h>
13152 #include <arpa/nameser.h>
13153 #include <resolv.h>
13154 int
13155 main ()
13156 {
13157 return res_init();
13158 ;
13159 return 0;
13160 }
13161 _ACEOF
13162 if ac_fn_c_try_link "$LINENO"; then :
13163 have_res_init=yes
13164 else
13165 have_res_init=no
13166 fi
13167 rm -f core conftest.err conftest.$ac_objext \
13168 conftest$ac_exeext conftest.$ac_ext
13169 if test "$have_res_init" = no; then
13170 OLIBS="$LIBS"
13171 LIBS="$LIBS -lresolv"
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13173 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13176 #include <netinet/in.h>
13177 #include <arpa/nameser.h>
13178 #include <resolv.h>
13179 int
13180 main ()
13181 {
13182 return res_init();
13183 ;
13184 return 0;
13185 }
13186 _ACEOF
13187 if ac_fn_c_try_link "$LINENO"; then :
13188 have_res_init=yes
13189 else
13190 have_res_init=no
13191 fi
13192 rm -f core conftest.err conftest.$ac_objext \
13193 conftest$ac_exeext conftest.$ac_ext
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13195 $as_echo "$have_res_init" >&6; }
13196 if test "$have_res_init" = yes ; then
13197 resolv=yes
13198 fi
13199 LIBS="$OLIBS"
13200 fi
13201
13202 if test "$have_res_init" = yes; then
13203
13204 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13205
13206 fi
13207
13208 # Do we need the Hesiod library to provide the support routines?
13209 LIBHESIOD=
13210 if test "$with_hesiod" != no ; then
13211 # Don't set $LIBS here -- see comments above. FIXME which comments?
13212 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13213 if test "x$ac_cv_func_res_send" = x""yes; then :
13214
13215 else
13216 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13217 if test "x$ac_cv_func___res_send" = x""yes; then :
13218
13219 else
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13221 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13222 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13223 $as_echo_n "(cached) " >&6
13224 else
13225 ac_check_lib_save_LIBS=$LIBS
13226 LIBS="-lresolv $LIBS"
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13229
13230 /* Override any GCC internal prototype to avoid an error.
13231 Use char because int might match the return type of a GCC
13232 builtin and then its argument prototype would still apply. */
13233 #ifdef __cplusplus
13234 extern "C"
13235 #endif
13236 char res_send ();
13237 int
13238 main ()
13239 {
13240 return res_send ();
13241 ;
13242 return 0;
13243 }
13244 _ACEOF
13245 if ac_fn_c_try_link "$LINENO"; then :
13246 ac_cv_lib_resolv_res_send=yes
13247 else
13248 ac_cv_lib_resolv_res_send=no
13249 fi
13250 rm -f core conftest.err conftest.$ac_objext \
13251 conftest$ac_exeext conftest.$ac_ext
13252 LIBS=$ac_check_lib_save_LIBS
13253 fi
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13255 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13256 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13257 resolv=yes
13258 else
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13260 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13261 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13262 $as_echo_n "(cached) " >&6
13263 else
13264 ac_check_lib_save_LIBS=$LIBS
13265 LIBS="-lresolv $LIBS"
13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13268
13269 /* Override any GCC internal prototype to avoid an error.
13270 Use char because int might match the return type of a GCC
13271 builtin and then its argument prototype would still apply. */
13272 #ifdef __cplusplus
13273 extern "C"
13274 #endif
13275 char __res_send ();
13276 int
13277 main ()
13278 {
13279 return __res_send ();
13280 ;
13281 return 0;
13282 }
13283 _ACEOF
13284 if ac_fn_c_try_link "$LINENO"; then :
13285 ac_cv_lib_resolv___res_send=yes
13286 else
13287 ac_cv_lib_resolv___res_send=no
13288 fi
13289 rm -f core conftest.err conftest.$ac_objext \
13290 conftest$ac_exeext conftest.$ac_ext
13291 LIBS=$ac_check_lib_save_LIBS
13292 fi
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13294 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13295 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13296 resolv=yes
13297 fi
13298
13299 fi
13300
13301 fi
13302
13303 fi
13304
13305 if test "$resolv" = yes ; then
13306 RESOLVLIB=-lresolv
13307 else
13308 RESOLVLIB=
13309 fi
13310 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13311 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13312
13313 else
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13315 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13316 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13317 $as_echo_n "(cached) " >&6
13318 else
13319 ac_check_lib_save_LIBS=$LIBS
13320 LIBS="-lhesiod $RESOLVLIB $LIBS"
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13323
13324 /* Override any GCC internal prototype to avoid an error.
13325 Use char because int might match the return type of a GCC
13326 builtin and then its argument prototype would still apply. */
13327 #ifdef __cplusplus
13328 extern "C"
13329 #endif
13330 char hes_getmailhost ();
13331 int
13332 main ()
13333 {
13334 return hes_getmailhost ();
13335 ;
13336 return 0;
13337 }
13338 _ACEOF
13339 if ac_fn_c_try_link "$LINENO"; then :
13340 ac_cv_lib_hesiod_hes_getmailhost=yes
13341 else
13342 ac_cv_lib_hesiod_hes_getmailhost=no
13343 fi
13344 rm -f core conftest.err conftest.$ac_objext \
13345 conftest$ac_exeext conftest.$ac_ext
13346 LIBS=$ac_check_lib_save_LIBS
13347 fi
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13349 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13350 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13351 hesiod=yes
13352 else
13353 :
13354 fi
13355
13356 fi
13357
13358
13359 if test x"$hesiod" = xyes; then
13360
13361 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13362
13363 LIBHESIOD=-lhesiod
13364 fi
13365 fi
13366
13367
13368 # Do we need libresolv (due to res_init or Hesiod)?
13369 if test "$resolv" = yes ; then
13370
13371 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13372
13373 LIBRESOLV=-lresolv
13374 else
13375 LIBRESOLV=
13376 fi
13377
13378
13379 # These tell us which Kerberos-related libraries to use.
13380 COM_ERRLIB=
13381 CRYPTOLIB=
13382 KRB5LIB=
13383 DESLIB=
13384 KRB4LIB=
13385
13386 if test "${with_kerberos}" != no; then
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13388 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13389 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13390 $as_echo_n "(cached) " >&6
13391 else
13392 ac_check_lib_save_LIBS=$LIBS
13393 LIBS="-lcom_err $LIBS"
13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395 /* end confdefs.h. */
13396
13397 /* Override any GCC internal prototype to avoid an error.
13398 Use char because int might match the return type of a GCC
13399 builtin and then its argument prototype would still apply. */
13400 #ifdef __cplusplus
13401 extern "C"
13402 #endif
13403 char com_err ();
13404 int
13405 main ()
13406 {
13407 return com_err ();
13408 ;
13409 return 0;
13410 }
13411 _ACEOF
13412 if ac_fn_c_try_link "$LINENO"; then :
13413 ac_cv_lib_com_err_com_err=yes
13414 else
13415 ac_cv_lib_com_err_com_err=no
13416 fi
13417 rm -f core conftest.err conftest.$ac_objext \
13418 conftest$ac_exeext conftest.$ac_ext
13419 LIBS=$ac_check_lib_save_LIBS
13420 fi
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13422 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13423 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13424 have_com_err=yes
13425 else
13426 have_com_err=no
13427 fi
13428
13429 if test $have_com_err = yes; then
13430 COM_ERRLIB=-lcom_err
13431 LIBS="$COM_ERRLIB $LIBS"
13432
13433 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13434
13435 fi
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13437 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13438 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13439 $as_echo_n "(cached) " >&6
13440 else
13441 ac_check_lib_save_LIBS=$LIBS
13442 LIBS="-lcrypto $LIBS"
13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444 /* end confdefs.h. */
13445
13446 /* Override any GCC internal prototype to avoid an error.
13447 Use char because int might match the return type of a GCC
13448 builtin and then its argument prototype would still apply. */
13449 #ifdef __cplusplus
13450 extern "C"
13451 #endif
13452 char mit_des_cbc_encrypt ();
13453 int
13454 main ()
13455 {
13456 return mit_des_cbc_encrypt ();
13457 ;
13458 return 0;
13459 }
13460 _ACEOF
13461 if ac_fn_c_try_link "$LINENO"; then :
13462 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13463 else
13464 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13465 fi
13466 rm -f core conftest.err conftest.$ac_objext \
13467 conftest$ac_exeext conftest.$ac_ext
13468 LIBS=$ac_check_lib_save_LIBS
13469 fi
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13471 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13472 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13473 have_crypto=yes
13474 else
13475 have_crypto=no
13476 fi
13477
13478 if test $have_crypto = yes; then
13479 CRYPTOLIB=-lcrypto
13480 LIBS="$CRYPTOLIB $LIBS"
13481
13482 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13483
13484 fi
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13486 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13487 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13488 $as_echo_n "(cached) " >&6
13489 else
13490 ac_check_lib_save_LIBS=$LIBS
13491 LIBS="-lk5crypto $LIBS"
13492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13493 /* end confdefs.h. */
13494
13495 /* Override any GCC internal prototype to avoid an error.
13496 Use char because int might match the return type of a GCC
13497 builtin and then its argument prototype would still apply. */
13498 #ifdef __cplusplus
13499 extern "C"
13500 #endif
13501 char mit_des_cbc_encrypt ();
13502 int
13503 main ()
13504 {
13505 return mit_des_cbc_encrypt ();
13506 ;
13507 return 0;
13508 }
13509 _ACEOF
13510 if ac_fn_c_try_link "$LINENO"; then :
13511 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13512 else
13513 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13514 fi
13515 rm -f core conftest.err conftest.$ac_objext \
13516 conftest$ac_exeext conftest.$ac_ext
13517 LIBS=$ac_check_lib_save_LIBS
13518 fi
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13520 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13521 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13522 have_k5crypto=yes
13523 else
13524 have_k5crypto=no
13525 fi
13526
13527 if test $have_k5crypto = yes; then
13528 CRYPTOLIB=-lk5crypto
13529 LIBS="$CRYPTOLIB $LIBS"
13530
13531 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13532
13533 fi
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13535 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13536 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13537 $as_echo_n "(cached) " >&6
13538 else
13539 ac_check_lib_save_LIBS=$LIBS
13540 LIBS="-lkrb5 $LIBS"
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13543
13544 /* Override any GCC internal prototype to avoid an error.
13545 Use char because int might match the return type of a GCC
13546 builtin and then its argument prototype would still apply. */
13547 #ifdef __cplusplus
13548 extern "C"
13549 #endif
13550 char krb5_init_context ();
13551 int
13552 main ()
13553 {
13554 return krb5_init_context ();
13555 ;
13556 return 0;
13557 }
13558 _ACEOF
13559 if ac_fn_c_try_link "$LINENO"; then :
13560 ac_cv_lib_krb5_krb5_init_context=yes
13561 else
13562 ac_cv_lib_krb5_krb5_init_context=no
13563 fi
13564 rm -f core conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13566 LIBS=$ac_check_lib_save_LIBS
13567 fi
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13569 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13570 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13571 have_krb5=yes
13572 else
13573 have_krb5=no
13574 fi
13575
13576 if test $have_krb5=yes; then
13577 KRB5LIB=-lkrb5
13578 LIBS="$KRB5LIB $LIBS"
13579
13580 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13581
13582 fi
13583 if test "${with_kerberos5}" = no; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13585 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13586 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13587 $as_echo_n "(cached) " >&6
13588 else
13589 ac_check_lib_save_LIBS=$LIBS
13590 LIBS="-ldes425 $LIBS"
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13593
13594 /* Override any GCC internal prototype to avoid an error.
13595 Use char because int might match the return type of a GCC
13596 builtin and then its argument prototype would still apply. */
13597 #ifdef __cplusplus
13598 extern "C"
13599 #endif
13600 char des_cbc_encrypt ();
13601 int
13602 main ()
13603 {
13604 return des_cbc_encrypt ();
13605 ;
13606 return 0;
13607 }
13608 _ACEOF
13609 if ac_fn_c_try_link "$LINENO"; then :
13610 ac_cv_lib_des425_des_cbc_encrypt=yes
13611 else
13612 ac_cv_lib_des425_des_cbc_encrypt=no
13613 fi
13614 rm -f core conftest.err conftest.$ac_objext \
13615 conftest$ac_exeext conftest.$ac_ext
13616 LIBS=$ac_check_lib_save_LIBS
13617 fi
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13619 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13620 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13621 have_des425=yes
13622 else
13623 have_des425=no
13624 fi
13625
13626 if test $have_des425 = yes; then
13627 DESLIB=-ldes425
13628 LIBS="$DESLIB $LIBS"
13629
13630 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13631
13632 else
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13634 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13635 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13636 $as_echo_n "(cached) " >&6
13637 else
13638 ac_check_lib_save_LIBS=$LIBS
13639 LIBS="-ldes $LIBS"
13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h. */
13642
13643 /* Override any GCC internal prototype to avoid an error.
13644 Use char because int might match the return type of a GCC
13645 builtin and then its argument prototype would still apply. */
13646 #ifdef __cplusplus
13647 extern "C"
13648 #endif
13649 char des_cbc_encrypt ();
13650 int
13651 main ()
13652 {
13653 return des_cbc_encrypt ();
13654 ;
13655 return 0;
13656 }
13657 _ACEOF
13658 if ac_fn_c_try_link "$LINENO"; then :
13659 ac_cv_lib_des_des_cbc_encrypt=yes
13660 else
13661 ac_cv_lib_des_des_cbc_encrypt=no
13662 fi
13663 rm -f core conftest.err conftest.$ac_objext \
13664 conftest$ac_exeext conftest.$ac_ext
13665 LIBS=$ac_check_lib_save_LIBS
13666 fi
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13668 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13669 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13670 have_des=yes
13671 else
13672 have_des=no
13673 fi
13674
13675 if test $have_des = yes; then
13676 DESLIB=-ldes
13677 LIBS="$DESLIB $LIBS"
13678
13679 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13680
13681 fi
13682 fi
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13684 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13685 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13686 $as_echo_n "(cached) " >&6
13687 else
13688 ac_check_lib_save_LIBS=$LIBS
13689 LIBS="-lkrb4 $LIBS"
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13692
13693 /* Override any GCC internal prototype to avoid an error.
13694 Use char because int might match the return type of a GCC
13695 builtin and then its argument prototype would still apply. */
13696 #ifdef __cplusplus
13697 extern "C"
13698 #endif
13699 char krb_get_cred ();
13700 int
13701 main ()
13702 {
13703 return krb_get_cred ();
13704 ;
13705 return 0;
13706 }
13707 _ACEOF
13708 if ac_fn_c_try_link "$LINENO"; then :
13709 ac_cv_lib_krb4_krb_get_cred=yes
13710 else
13711 ac_cv_lib_krb4_krb_get_cred=no
13712 fi
13713 rm -f core conftest.err conftest.$ac_objext \
13714 conftest$ac_exeext conftest.$ac_ext
13715 LIBS=$ac_check_lib_save_LIBS
13716 fi
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13718 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13719 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13720 have_krb4=yes
13721 else
13722 have_krb4=no
13723 fi
13724
13725 if test $have_krb4 = yes; then
13726 KRB4LIB=-lkrb4
13727 LIBS="$KRB4LIB $LIBS"
13728
13729 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13730
13731 else
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13733 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13734 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13735 $as_echo_n "(cached) " >&6
13736 else
13737 ac_check_lib_save_LIBS=$LIBS
13738 LIBS="-lkrb $LIBS"
13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h. */
13741
13742 /* Override any GCC internal prototype to avoid an error.
13743 Use char because int might match the return type of a GCC
13744 builtin and then its argument prototype would still apply. */
13745 #ifdef __cplusplus
13746 extern "C"
13747 #endif
13748 char krb_get_cred ();
13749 int
13750 main ()
13751 {
13752 return krb_get_cred ();
13753 ;
13754 return 0;
13755 }
13756 _ACEOF
13757 if ac_fn_c_try_link "$LINENO"; then :
13758 ac_cv_lib_krb_krb_get_cred=yes
13759 else
13760 ac_cv_lib_krb_krb_get_cred=no
13761 fi
13762 rm -f core conftest.err conftest.$ac_objext \
13763 conftest$ac_exeext conftest.$ac_ext
13764 LIBS=$ac_check_lib_save_LIBS
13765 fi
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13767 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13768 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13769 have_krb=yes
13770 else
13771 have_krb=no
13772 fi
13773
13774 if test $have_krb = yes; then
13775 KRB4LIB=-lkrb
13776 LIBS="$KRB4LIB $LIBS"
13777
13778 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13779
13780 fi
13781 fi
13782 fi
13783
13784 if test "${with_kerberos5}" != no; then
13785 for ac_header in krb5.h
13786 do :
13787 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13788 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13789 cat >>confdefs.h <<_ACEOF
13790 #define HAVE_KRB5_H 1
13791 _ACEOF
13792 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13793 "
13794 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13795
13796 cat >>confdefs.h <<_ACEOF
13797 #define HAVE_KRB5_ERROR_TEXT 1
13798 _ACEOF
13799
13800
13801 fi
13802 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13803 "
13804 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13805
13806 cat >>confdefs.h <<_ACEOF
13807 #define HAVE_KRB5_ERROR_E_TEXT 1
13808 _ACEOF
13809
13810
13811 fi
13812
13813 fi
13814
13815 done
13816
13817 else
13818 for ac_header in des.h
13819 do :
13820 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13821 if test "x$ac_cv_header_des_h" = x""yes; then :
13822 cat >>confdefs.h <<_ACEOF
13823 #define HAVE_DES_H 1
13824 _ACEOF
13825
13826 else
13827 for ac_header in kerberosIV/des.h
13828 do :
13829 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13830 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
13831 cat >>confdefs.h <<_ACEOF
13832 #define HAVE_KERBEROSIV_DES_H 1
13833 _ACEOF
13834
13835 else
13836 for ac_header in kerberos/des.h
13837 do :
13838 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13839 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
13840 cat >>confdefs.h <<_ACEOF
13841 #define HAVE_KERBEROS_DES_H 1
13842 _ACEOF
13843
13844 fi
13845
13846 done
13847
13848 fi
13849
13850 done
13851
13852 fi
13853
13854 done
13855
13856 for ac_header in krb.h
13857 do :
13858 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13859 if test "x$ac_cv_header_krb_h" = x""yes; then :
13860 cat >>confdefs.h <<_ACEOF
13861 #define HAVE_KRB_H 1
13862 _ACEOF
13863
13864 else
13865 for ac_header in kerberosIV/krb.h
13866 do :
13867 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13868 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13869 cat >>confdefs.h <<_ACEOF
13870 #define HAVE_KERBEROSIV_KRB_H 1
13871 _ACEOF
13872
13873 else
13874 for ac_header in kerberos/krb.h
13875 do :
13876 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13877 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13878 cat >>confdefs.h <<_ACEOF
13879 #define HAVE_KERBEROS_KRB_H 1
13880 _ACEOF
13881
13882 fi
13883
13884 done
13885
13886 fi
13887
13888 done
13889
13890 fi
13891
13892 done
13893
13894 fi
13895 for ac_header in com_err.h
13896 do :
13897 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13898 if test "x$ac_cv_header_com_err_h" = x""yes; then :
13899 cat >>confdefs.h <<_ACEOF
13900 #define HAVE_COM_ERR_H 1
13901 _ACEOF
13902
13903 fi
13904
13905 done
13906
13907 fi
13908
13909
13910
13911
13912
13913
13914
13915 # Solaris requires -lintl if you want strerror (which calls dgettext)
13916 # to return localized messages.
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13918 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13919 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13920 $as_echo_n "(cached) " >&6
13921 else
13922 ac_check_lib_save_LIBS=$LIBS
13923 LIBS="-lintl $LIBS"
13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925 /* end confdefs.h. */
13926
13927 /* Override any GCC internal prototype to avoid an error.
13928 Use char because int might match the return type of a GCC
13929 builtin and then its argument prototype would still apply. */
13930 #ifdef __cplusplus
13931 extern "C"
13932 #endif
13933 char dgettext ();
13934 int
13935 main ()
13936 {
13937 return dgettext ();
13938 ;
13939 return 0;
13940 }
13941 _ACEOF
13942 if ac_fn_c_try_link "$LINENO"; then :
13943 ac_cv_lib_intl_dgettext=yes
13944 else
13945 ac_cv_lib_intl_dgettext=no
13946 fi
13947 rm -f core conftest.err conftest.$ac_objext \
13948 conftest$ac_exeext conftest.$ac_ext
13949 LIBS=$ac_check_lib_save_LIBS
13950 fi
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13952 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13953 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13954 cat >>confdefs.h <<_ACEOF
13955 #define HAVE_LIBINTL 1
13956 _ACEOF
13957
13958 LIBS="-lintl $LIBS"
13959
13960 fi
13961
13962
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13964 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13965 if test "${emacs_cv_localtime_cache+set}" = set; then :
13966 $as_echo_n "(cached) " >&6
13967 else
13968 if test x$ac_cv_func_tzset = xyes; then
13969 if test "$cross_compiling" = yes; then :
13970 # If we have tzset, assume the worst when cross-compiling.
13971 emacs_cv_localtime_cache=yes
13972 else
13973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h. */
13975 #include <time.h>
13976 char TZ_GMT0[] = "TZ=GMT0";
13977 char TZ_PST8[] = "TZ=PST8";
13978 main()
13979 {
13980 time_t now = time ((time_t *) 0);
13981 int hour_GMT0, hour_unset;
13982 if (putenv (TZ_GMT0) != 0)
13983 exit (1);
13984 hour_GMT0 = localtime (&now)->tm_hour;
13985 unsetenv("TZ");
13986 hour_unset = localtime (&now)->tm_hour;
13987 if (putenv (TZ_PST8) != 0)
13988 exit (1);
13989 if (localtime (&now)->tm_hour == hour_GMT0)
13990 exit (1);
13991 unsetenv("TZ");
13992 if (localtime (&now)->tm_hour != hour_unset)
13993 exit (1);
13994 exit (0);
13995 }
13996 _ACEOF
13997 if ac_fn_c_try_run "$LINENO"; then :
13998 emacs_cv_localtime_cache=no
13999 else
14000 emacs_cv_localtime_cache=yes
14001 fi
14002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14003 conftest.$ac_objext conftest.beam conftest.$ac_ext
14004 fi
14005
14006 else
14007 # If we lack tzset, report that localtime does not cache TZ,
14008 # since we can't invalidate the cache if we don't have tzset.
14009 emacs_cv_localtime_cache=no
14010 fi
14011 fi
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14013 $as_echo "$emacs_cv_localtime_cache" >&6; }
14014 if test $emacs_cv_localtime_cache = yes; then
14015
14016 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14017
14018 fi
14019
14020 if test "x$HAVE_TIMEVAL" = xyes; then
14021 for ac_func in gettimeofday
14022 do :
14023 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14024 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14025 cat >>confdefs.h <<_ACEOF
14026 #define HAVE_GETTIMEOFDAY 1
14027 _ACEOF
14028
14029 fi
14030 done
14031
14032 if test $ac_cv_func_gettimeofday = yes; then
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14034 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14035 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14036 $as_echo_n "(cached) " >&6
14037 else
14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h. */
14040
14041 #ifdef TIME_WITH_SYS_TIME
14042 #include <sys/time.h>
14043 #include <time.h>
14044 #else
14045 #ifdef HAVE_SYS_TIME_H
14046 #include <sys/time.h>
14047 #else
14048 #include <time.h>
14049 #endif
14050 #endif
14051 int
14052 main ()
14053 {
14054 struct timeval time;
14055 gettimeofday (&time, 0);
14056 ;
14057 return 0;
14058 }
14059 _ACEOF
14060 if ac_fn_c_try_compile "$LINENO"; then :
14061 emacs_cv_gettimeofday_two_arguments=yes
14062 else
14063 emacs_cv_gettimeofday_two_arguments=no
14064 fi
14065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14066 fi
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14068 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14069 if test $emacs_cv_gettimeofday_two_arguments = no; then
14070
14071 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14072
14073 fi
14074 fi
14075 fi
14076
14077 ok_so_far=yes
14078 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14079 if test "x$ac_cv_func_socket" = x""yes; then :
14080
14081 else
14082 ok_so_far=no
14083 fi
14084
14085 if test $ok_so_far = yes; then
14086 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14087 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14088
14089 else
14090 ok_so_far=no
14091 fi
14092
14093
14094 fi
14095 if test $ok_so_far = yes; then
14096 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14097 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14098
14099 else
14100 ok_so_far=no
14101 fi
14102
14103
14104 fi
14105 if test $ok_so_far = yes; then
14106
14107 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14108
14109 fi
14110
14111 if test -f /usr/lpp/X11/bin/smt.exp; then
14112
14113 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14114
14115 fi
14116
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14118 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14119 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14121 $as_echo "yes" >&6; }
14122
14123 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14124
14125 else
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14127 $as_echo "no" >&6; }
14128 fi
14129
14130 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14131 if test "x$ac_cv_type_pid_t" = x""yes; then :
14132
14133 else
14134
14135 cat >>confdefs.h <<_ACEOF
14136 #define pid_t int
14137 _ACEOF
14138
14139 fi
14140
14141 for ac_header in vfork.h
14142 do :
14143 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14144 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14145 cat >>confdefs.h <<_ACEOF
14146 #define HAVE_VFORK_H 1
14147 _ACEOF
14148
14149 fi
14150
14151 done
14152
14153 for ac_func in fork vfork
14154 do :
14155 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14156 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14157 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14158 cat >>confdefs.h <<_ACEOF
14159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14160 _ACEOF
14161
14162 fi
14163 done
14164
14165 if test "x$ac_cv_func_fork" = xyes; then
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14167 $as_echo_n "checking for working fork... " >&6; }
14168 if test "${ac_cv_func_fork_works+set}" = set; then :
14169 $as_echo_n "(cached) " >&6
14170 else
14171 if test "$cross_compiling" = yes; then :
14172 ac_cv_func_fork_works=cross
14173 else
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14176 $ac_includes_default
14177 int
14178 main ()
14179 {
14180
14181 /* By Ruediger Kuhlmann. */
14182 return fork () < 0;
14183
14184 ;
14185 return 0;
14186 }
14187 _ACEOF
14188 if ac_fn_c_try_run "$LINENO"; then :
14189 ac_cv_func_fork_works=yes
14190 else
14191 ac_cv_func_fork_works=no
14192 fi
14193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14194 conftest.$ac_objext conftest.beam conftest.$ac_ext
14195 fi
14196
14197 fi
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14199 $as_echo "$ac_cv_func_fork_works" >&6; }
14200
14201 else
14202 ac_cv_func_fork_works=$ac_cv_func_fork
14203 fi
14204 if test "x$ac_cv_func_fork_works" = xcross; then
14205 case $host in
14206 *-*-amigaos* | *-*-msdosdjgpp*)
14207 # Override, as these systems have only a dummy fork() stub
14208 ac_cv_func_fork_works=no
14209 ;;
14210 *)
14211 ac_cv_func_fork_works=yes
14212 ;;
14213 esac
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14215 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14216 fi
14217 ac_cv_func_vfork_works=$ac_cv_func_vfork
14218 if test "x$ac_cv_func_vfork" = xyes; then
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14220 $as_echo_n "checking for working vfork... " >&6; }
14221 if test "${ac_cv_func_vfork_works+set}" = set; then :
14222 $as_echo_n "(cached) " >&6
14223 else
14224 if test "$cross_compiling" = yes; then :
14225 ac_cv_func_vfork_works=cross
14226 else
14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h. */
14229 /* Thanks to Paul Eggert for this test. */
14230 $ac_includes_default
14231 #include <sys/wait.h>
14232 #ifdef HAVE_VFORK_H
14233 # include <vfork.h>
14234 #endif
14235 /* On some sparc systems, changes by the child to local and incoming
14236 argument registers are propagated back to the parent. The compiler
14237 is told about this with #include <vfork.h>, but some compilers
14238 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14239 static variable whose address is put into a register that is
14240 clobbered by the vfork. */
14241 static void
14242 #ifdef __cplusplus
14243 sparc_address_test (int arg)
14244 # else
14245 sparc_address_test (arg) int arg;
14246 #endif
14247 {
14248 static pid_t child;
14249 if (!child) {
14250 child = vfork ();
14251 if (child < 0) {
14252 perror ("vfork");
14253 _exit(2);
14254 }
14255 if (!child) {
14256 arg = getpid();
14257 write(-1, "", 0);
14258 _exit (arg);
14259 }
14260 }
14261 }
14262
14263 int
14264 main ()
14265 {
14266 pid_t parent = getpid ();
14267 pid_t child;
14268
14269 sparc_address_test (0);
14270
14271 child = vfork ();
14272
14273 if (child == 0) {
14274 /* Here is another test for sparc vfork register problems. This
14275 test uses lots of local variables, at least as many local
14276 variables as main has allocated so far including compiler
14277 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14278 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14279 reuse the register of parent for one of the local variables,
14280 since it will think that parent can't possibly be used any more
14281 in this routine. Assigning to the local variable will thus
14282 munge parent in the parent process. */
14283 pid_t
14284 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14285 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14286 /* Convince the compiler that p..p7 are live; otherwise, it might
14287 use the same hardware register for all 8 local variables. */
14288 if (p != p1 || p != p2 || p != p3 || p != p4
14289 || p != p5 || p != p6 || p != p7)
14290 _exit(1);
14291
14292 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14293 from child file descriptors. If the child closes a descriptor
14294 before it execs or exits, this munges the parent's descriptor
14295 as well. Test for this by closing stdout in the child. */
14296 _exit(close(fileno(stdout)) != 0);
14297 } else {
14298 int status;
14299 struct stat st;
14300
14301 while (wait(&status) != child)
14302 ;
14303 return (
14304 /* Was there some problem with vforking? */
14305 child < 0
14306
14307 /* Did the child fail? (This shouldn't happen.) */
14308 || status
14309
14310 /* Did the vfork/compiler bug occur? */
14311 || parent != getpid()
14312
14313 /* Did the file descriptor bug occur? */
14314 || fstat(fileno(stdout), &st) != 0
14315 );
14316 }
14317 }
14318 _ACEOF
14319 if ac_fn_c_try_run "$LINENO"; then :
14320 ac_cv_func_vfork_works=yes
14321 else
14322 ac_cv_func_vfork_works=no
14323 fi
14324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14325 conftest.$ac_objext conftest.beam conftest.$ac_ext
14326 fi
14327
14328 fi
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14330 $as_echo "$ac_cv_func_vfork_works" >&6; }
14331
14332 fi;
14333 if test "x$ac_cv_func_fork_works" = xcross; then
14334 ac_cv_func_vfork_works=$ac_cv_func_vfork
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14336 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14337 fi
14338
14339 if test "x$ac_cv_func_vfork_works" = xyes; then
14340
14341 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14342
14343 else
14344
14345 $as_echo "#define vfork fork" >>confdefs.h
14346
14347 fi
14348 if test "x$ac_cv_func_fork_works" = xyes; then
14349
14350 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14351
14352 fi
14353
14354
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14356 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14357 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14358 $as_echo_n "(cached) " >&6
14359 else
14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14362 #include <langinfo.h>
14363 int
14364 main ()
14365 {
14366 char* cs = nl_langinfo(CODESET);
14367 ;
14368 return 0;
14369 }
14370 _ACEOF
14371 if ac_fn_c_try_link "$LINENO"; then :
14372 emacs_cv_langinfo_codeset=yes
14373 else
14374 emacs_cv_langinfo_codeset=no
14375 fi
14376 rm -f core conftest.err conftest.$ac_objext \
14377 conftest$ac_exeext conftest.$ac_ext
14378
14379 fi
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14381 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14382 if test $emacs_cv_langinfo_codeset = yes; then
14383
14384 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14385
14386 fi
14387
14388 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14389 if test "x$ac_cv_type_size_t" = x""yes; then :
14390
14391 cat >>confdefs.h <<_ACEOF
14392 #define HAVE_SIZE_T 1
14393 _ACEOF
14394
14395
14396 fi
14397
14398
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14400 $as_echo_n "checking for mbstate_t... " >&6; }
14401 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14402 $as_echo_n "(cached) " >&6
14403 else
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14406 $ac_includes_default
14407 # include <wchar.h>
14408 int
14409 main ()
14410 {
14411 mbstate_t x; return sizeof x;
14412 ;
14413 return 0;
14414 }
14415 _ACEOF
14416 if ac_fn_c_try_compile "$LINENO"; then :
14417 ac_cv_type_mbstate_t=yes
14418 else
14419 ac_cv_type_mbstate_t=no
14420 fi
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14422 fi
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14424 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14425 if test $ac_cv_type_mbstate_t = yes; then
14426
14427 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14428
14429 else
14430
14431 $as_echo "#define mbstate_t int" >>confdefs.h
14432
14433 fi
14434
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14436 $as_echo_n "checking for C restrict keyword... " >&6; }
14437 if test "${emacs_cv_c_restrict+set}" = set; then :
14438 $as_echo_n "(cached) " >&6
14439 else
14440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14441 /* end confdefs.h. */
14442 void fred (int *restrict x);
14443 int
14444 main ()
14445 {
14446
14447 ;
14448 return 0;
14449 }
14450 _ACEOF
14451 if ac_fn_c_try_compile "$LINENO"; then :
14452 emacs_cv_c_restrict=yes
14453 else
14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h. */
14456 void fred (int *__restrict x);
14457 int
14458 main ()
14459 {
14460
14461 ;
14462 return 0;
14463 }
14464 _ACEOF
14465 if ac_fn_c_try_compile "$LINENO"; then :
14466 emacs_cv_c_restrict=__restrict
14467 else
14468 emacs_cv_c_restrict=no
14469 fi
14470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14471 fi
14472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14473 fi
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14475 $as_echo "$emacs_cv_c_restrict" >&6; }
14476 case "$emacs_cv_c_restrict" in
14477 yes) emacs_restrict=restrict;;
14478 no) emacs_restrict="";;
14479 *) emacs_restrict="$emacs_cv_c_restrict";;
14480 esac
14481 if test "$emacs_restrict" != __restrict; then
14482
14483 cat >>confdefs.h <<_ACEOF
14484 #define __restrict $emacs_restrict
14485 _ACEOF
14486
14487 fi
14488
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14490 $as_echo_n "checking for C restricted array declarations... " >&6; }
14491 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14492 $as_echo_n "(cached) " >&6
14493 else
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14496 void fred (int x[__restrict]);
14497 int
14498 main ()
14499 {
14500
14501 ;
14502 return 0;
14503 }
14504 _ACEOF
14505 if ac_fn_c_try_compile "$LINENO"; then :
14506 emacs_cv_c_restrict_arr=yes
14507 else
14508 emacs_cv_c_restrict_arr=no
14509 fi
14510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511 fi
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14513 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14514 if test "$emacs_cv_c_restrict_arr" = yes; then
14515
14516 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14517
14518 fi
14519
14520
14521
14522 # Set up the CFLAGS for real compilation, so we can substitute it.
14523 CFLAGS="$REAL_CFLAGS"
14524 CPPFLAGS="$REAL_CPPFLAGS"
14525
14526 ## Hack to detect a buggy GCC version.
14527 if test "x$GCC" = xyes \
14528 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14529 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14530 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14531 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14532 fi
14533
14534 #### Find out which version of Emacs this is.
14535 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14536 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14537 if test x"${version}" = x; then
14538 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14539 fi
14540 if test x"${version}" != x"$PACKAGE_VERSION"; then
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14542 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14543 fi
14544
14545 ### Specify what sort of things we'll be editing into Makefile and config.h.
14546 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14547
14548
14549 ## Unused?
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14571 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14572 ## end of LIBX_BASE, but nothing ever set it.
14573
14574
14575
14576
14577 ## Used in lwlib/Makefile.in.
14578
14579 if test -n "${machfile}"; then
14580 M_FILE="\$(srcdir)/${machfile}"
14581 else
14582 M_FILE=
14583 fi
14584 S_FILE="\$(srcdir)/${opsysfile}"
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596 cat >>confdefs.h <<_ACEOF
14597 #define EMACS_CONFIGURATION "${canonical}"
14598 _ACEOF
14599
14600
14601 cat >>confdefs.h <<_ACEOF
14602 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14603 _ACEOF
14604
14605 if test -n "$machfile"; then
14606
14607 cat >>confdefs.h <<_ACEOF
14608 #define config_machfile "${machfile}"
14609 _ACEOF
14610
14611 fi
14612
14613 cat >>confdefs.h <<_ACEOF
14614 #define config_opsysfile "${opsysfile}"
14615 _ACEOF
14616
14617
14618 XMENU_OBJ=
14619 XOBJ=
14620 FONT_OBJ=
14621 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14622
14623 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14624
14625 XMENU_OBJ=xmenu.o
14626 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14627 FONT_OBJ=xfont.o
14628 if test "$HAVE_XFT" = "yes"; then
14629 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14630 elif test "$HAVE_FREETYPE" = "yes"; then
14631 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14632 fi
14633
14634 fi
14635
14636
14637
14638
14639 WIDGET_OBJ=
14640 MOTIF_LIBW=
14641 if test "${USE_X_TOOLKIT}" != "none" ; then
14642 WIDGET_OBJ=widget.o
14643
14644 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14645
14646 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14647
14648 $as_echo "#define USE_LUCID 1" >>confdefs.h
14649
14650 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14651
14652 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14653
14654 MOTIF_LIBW=-lXm
14655 case "$opsys" in
14656 gnu-linux)
14657 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14658 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14659 ;;
14660
14661 unixware)
14662 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14663 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14664 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14665 ;;
14666
14667 aix4-2)
14668 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14669 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14670 ;;
14671 esac
14672 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14673 fi
14674 fi
14675
14676
14677 TOOLKIT_LIBW=
14678 case "$USE_X_TOOLKIT" in
14679 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14680 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14681 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14682 esac
14683
14684
14685 if test "$USE_X_TOOLKIT" = "none"; then
14686 LIBXT_OTHER="\$(LIBXSM)"
14687 OLDXMENU_TARGET="really-oldXMenu"
14688 else
14689 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14690 OLDXMENU_TARGET="really-lwlib"
14691 fi
14692
14693
14694 ## The X Menu stuff is present in the X10 distribution, but missing
14695 ## from X11. If we have X10, just use the installed library;
14696 ## otherwise, use our own copy.
14697 if test "${HAVE_X11}" = "yes" ; then
14698
14699 $as_echo "#define HAVE_X11 1" >>confdefs.h
14700
14701
14702 if test "$USE_X_TOOLKIT" = "none"; then
14703 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
14704 else
14705 OLDXMENU="\${lwlibdir}/liblw.a"
14706 fi
14707 LIBXMENU="\$(OLDXMENU)"
14708 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14709 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14710 else
14711 ## For a syntactically valid Makefile; not actually used for anything.
14712 ## See comments in src/Makefile.in.
14713 OLDXMENU=nothing
14714 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14715 if test "${HAVE_X_WINDOWS}" = "yes"; then
14716 LIBXMENU="-lXMenu"
14717 else
14718 LIBXMENU=
14719 fi
14720 LIBX_OTHER=
14721 OLDXMENU_DEPS=
14722 fi
14723
14724 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14725 OLDXMENU_TARGET=
14726 OLDXMENU=nothing
14727 LIBXMENU=
14728 OLDXMENU_DEPS=
14729 fi
14730
14731
14732
14733
14734
14735
14736
14737 if test "${HAVE_MENUS}" = "yes" ; then
14738
14739 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14740
14741 fi
14742
14743 if test "${GNU_MALLOC}" = "yes" ; then
14744
14745 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14746
14747 fi
14748
14749 RALLOC_OBJ=
14750 if test "${REL_ALLOC}" = "yes" ; then
14751
14752 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14753
14754
14755 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14756 fi
14757
14758
14759 if test "$opsys" = "cygwin"; then
14760 CYGWIN_OBJ="sheap.o"
14761 ## Cygwin differs because of its unexec().
14762 PRE_ALLOC_OBJ=
14763 POST_ALLOC_OBJ=lastfile.o
14764 else
14765 CYGWIN_OBJ=
14766 PRE_ALLOC_OBJ=lastfile.o
14767 POST_ALLOC_OBJ=
14768 fi
14769
14770
14771
14772
14773
14774 case "$opsys" in
14775 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14776
14777 darwin)
14778 ## The -headerpad option tells ld (see man page) to leave room at the
14779 ## end of the header for adding load commands. Needed for dumping.
14780 ## 0x690 is the total size of 30 segment load commands (at 56
14781 ## each); under Cocoa 31 commands are required.
14782 if test "$HAVE_NS" = "yes"; then
14783 libs_nsgui="-framework AppKit"
14784 headerpad_extra=6C8
14785 else
14786 libs_nsgui=
14787 headerpad_extra=690
14788 fi
14789 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14790
14791 ## This is here because src/Makefile.in did some extra fiddling around
14792 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14793 ## #ifndef LD_SWITCH_SYSTEM
14794 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14795 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14796 ## not using gcc, darwin system not on an alpha (ie darwin, since
14797 ## darwin + alpha does not occur).
14798 ## Because this was done in src/Makefile.in, the resulting part of
14799 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14800 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14801 ## rather than LD_SWITCH_SYSTEM.
14802 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14803 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14804 ;;
14805
14806 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14807 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14808 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14809 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14810 ## had different values in configure (in ac_link) and src/Makefile.in.
14811 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14812 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14813
14814 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14815 esac
14816
14817 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14818 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14819 fi
14820
14821
14822
14823
14824 LD_FIRSTFLAG=
14825 ORDINARY_LINK=
14826 case "$opsys" in
14827 ## gnu: GNU needs its own crt0.
14828 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14829
14830 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14831 ## library search parth, i.e. it won't search /usr/lib for libc and
14832 ## friends. Using -nostartfiles instead avoids this problem, and
14833 ## will also work on earlier NetBSD releases.
14834 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
14835
14836 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14837 ## MkLinux/LinuxPPC needs this.
14838 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14839 gnu-*)
14840 case "$machine" in
14841 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
14842 esac
14843 ;;
14844 esac
14845
14846
14847 if test "x$ORDINARY_LINK" = "xyes"; then
14848
14849 LD_FIRSTFLAG=""
14850
14851 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14852
14853
14854 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14855 ## freebsd, gnu-* not on macppc|ibms390x.
14856 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14857
14858 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14859 ## places that are difficult to figure out at make time. Fortunately,
14860 ## these same versions allow you to pass arbitrary flags on to the
14861 ## linker, so there is no reason not to use it as a linker.
14862 ##
14863 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14864 ## searching for libraries in its internal directories, so we have to
14865 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14866 LD_FIRSTFLAG="-nostdlib"
14867 fi
14868
14869 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14870 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
14871
14872
14873
14874
14875 ## FIXME? The logic here is not precisely the same as that above.
14876 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14877 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14878 LIB_GCC=
14879 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14880
14881 case "$opsys" in
14882 freebsd|netbsd|openbsd) LIB_GCC= ;;
14883
14884 gnu-*)
14885 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14886 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14887 case $host_cpu in
14888 arm*)
14889 LIB_GCC="-lgcc_s"
14890 ;;
14891 *)
14892 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14893 ## immediately undefine it again and redefine it to empty.
14894 ## Was the C_SWITCH_X_SITE part really necessary?
14895 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14896 LIB_GCC=
14897 ;;
14898 esac
14899 ;;
14900
14901 ## Ask GCC where to find libgcc.a.
14902 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14903 esac
14904 fi
14905
14906
14907 TOOLTIP_SUPPORT=
14908 WINDOW_SUPPORT=
14909 ## If we're using X11/GNUstep, define some consequences.
14910 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14911
14912 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14913
14914
14915 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14916
14917 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14918 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
14919
14920 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14921 test "$HAVE_X_WINDOWS" = "yes" && \
14922 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14923
14924 fi
14925
14926
14927
14928
14929
14930
14931
14932 #### Report on what we decided to do.
14933 #### Report GTK as a toolkit, even if it doesn't use Xt.
14934 #### It makes printing result more understandable as using GTK sets
14935 #### toolkit_scroll_bars to yes by default.
14936 if test "${HAVE_GTK}" = "yes"; then
14937 USE_X_TOOLKIT=GTK
14938 fi
14939
14940 and_machfile=
14941 if test -n "$machfile"; then
14942 and_machfile=" and \`${machfile}'"
14943 fi
14944
14945 echo "
14946 Configured for \`${canonical}'.
14947
14948 Where should the build process find the source code? ${srcdir}
14949 What operating system and machine description files should Emacs use?
14950 \`${opsysfile}'${and_machfile}
14951 What compiler should emacs be built with? ${CC} ${CFLAGS}
14952 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14953 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14954 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14955 What window system should Emacs use? ${window_system}
14956 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14957
14958 if test -n "${x_includes}"; then
14959 echo " Where do we find X Windows header files? ${x_includes}"
14960 else
14961 echo " Where do we find X Windows header files? Standard dirs"
14962 fi
14963 if test -n "${x_libraries}"; then
14964 echo " Where do we find X Windows libraries? ${x_libraries}"
14965 else
14966 echo " Where do we find X Windows libraries? Standard dirs"
14967 fi
14968
14969 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14970 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14971 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14972 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14973 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14974 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14975 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14976 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14977
14978 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14979 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14980 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14981 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14982 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
14983 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
14984
14985 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14986 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14987 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14988 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14989
14990 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14991 echo
14992
14993 if test $USE_XASSERTS = yes; then
14994 echo " Compiling with asserts turned on."
14995 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14996 fi
14997
14998 echo
14999
15000 if test "$HAVE_NS" = "yes"; then
15001 echo
15002 echo "You must run \"make install\" in order to test the built application.
15003 The installed application will go to nextstep/Emacs.app and can be
15004 run or moved from there."
15005 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
15006 echo "The application will be fully self-contained."
15007 else
15008 echo "The lisp resources for the application will be installed under ${prefix}.
15009 You may need to run \"make install\" with sudo. The application will fail
15010 to run if these resources are not installed."
15011 fi
15012 echo
15013 fi
15014
15015
15016 # Remove any trailing slashes in these variables.
15017 test "${prefix}" != NONE &&
15018 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15019 test "${exec_prefix}" != NONE &&
15020 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15021
15022 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 test/automated/Makefile"
15023
15024 ac_config_commands="$ac_config_commands default"
15025
15026 cat >confcache <<\_ACEOF
15027 # This file is a shell script that caches the results of configure
15028 # tests run on this system so they can be shared between configure
15029 # scripts and configure runs, see configure's option --config-cache.
15030 # It is not useful on other systems. If it contains results you don't
15031 # want to keep, you may remove or edit it.
15032 #
15033 # config.status only pays attention to the cache file if you give it
15034 # the --recheck option to rerun configure.
15035 #
15036 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15037 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15038 # following values.
15039
15040 _ACEOF
15041
15042 # The following way of writing the cache mishandles newlines in values,
15043 # but we know of no workaround that is simple, portable, and efficient.
15044 # So, we kill variables containing newlines.
15045 # Ultrix sh set writes to stderr and can't be redirected directly,
15046 # and sets the high bit in the cache file unless we assign to the vars.
15047 (
15048 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15049 eval ac_val=\$$ac_var
15050 case $ac_val in #(
15051 *${as_nl}*)
15052 case $ac_var in #(
15053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15055 esac
15056 case $ac_var in #(
15057 _ | IFS | as_nl) ;; #(
15058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15059 *) { eval $ac_var=; unset $ac_var;} ;;
15060 esac ;;
15061 esac
15062 done
15063
15064 (set) 2>&1 |
15065 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15066 *${as_nl}ac_space=\ *)
15067 # `set' does not quote correctly, so add quotes: double-quote
15068 # substitution turns \\\\ into \\, and sed turns \\ into \.
15069 sed -n \
15070 "s/'/'\\\\''/g;
15071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15072 ;; #(
15073 *)
15074 # `set' quotes correctly as required by POSIX, so do not add quotes.
15075 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15076 ;;
15077 esac |
15078 sort
15079 ) |
15080 sed '
15081 /^ac_cv_env_/b end
15082 t clear
15083 :clear
15084 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15085 t end
15086 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15087 :end' >>confcache
15088 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15089 if test -w "$cache_file"; then
15090 test "x$cache_file" != "x/dev/null" &&
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15092 $as_echo "$as_me: updating cache $cache_file" >&6;}
15093 cat confcache >$cache_file
15094 else
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15096 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15097 fi
15098 fi
15099 rm -f confcache
15100
15101 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15102 # Let make expand exec_prefix.
15103 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15104
15105 DEFS=-DHAVE_CONFIG_H
15106
15107 ac_libobjs=
15108 ac_ltlibobjs=
15109 U=
15110 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15111 # 1. Remove the extension, and $U if already installed.
15112 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15113 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15114 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15115 # will be set to the directory where LIBOBJS objects are built.
15116 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15117 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15118 done
15119 LIBOBJS=$ac_libobjs
15120
15121 LTLIBOBJS=$ac_ltlibobjs
15122
15123
15124
15125
15126 : ${CONFIG_STATUS=./config.status}
15127 ac_write_fail=0
15128 ac_clean_files_save=$ac_clean_files
15129 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15131 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15132 as_write_fail=0
15133 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15134 #! $SHELL
15135 # Generated by $as_me.
15136 # Run this file to recreate the current configuration.
15137 # Compiler output produced by configure, useful for debugging
15138 # configure, is in config.log if it exists.
15139
15140 debug=false
15141 ac_cs_recheck=false
15142 ac_cs_silent=false
15143
15144 SHELL=\${CONFIG_SHELL-$SHELL}
15145 export SHELL
15146 _ASEOF
15147 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15148 ## -------------------- ##
15149 ## M4sh Initialization. ##
15150 ## -------------------- ##
15151
15152 # Be more Bourne compatible
15153 DUALCASE=1; export DUALCASE # for MKS sh
15154 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15155 emulate sh
15156 NULLCMD=:
15157 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15158 # is contrary to our usage. Disable this feature.
15159 alias -g '${1+"$@"}'='"$@"'
15160 setopt NO_GLOB_SUBST
15161 else
15162 case `(set -o) 2>/dev/null` in #(
15163 *posix*) :
15164 set -o posix ;; #(
15165 *) :
15166 ;;
15167 esac
15168 fi
15169
15170
15171 as_nl='
15172 '
15173 export as_nl
15174 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15175 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15176 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15177 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15178 # Prefer a ksh shell builtin over an external printf program on Solaris,
15179 # but without wasting forks for bash or zsh.
15180 if test -z "$BASH_VERSION$ZSH_VERSION" \
15181 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15182 as_echo='print -r --'
15183 as_echo_n='print -rn --'
15184 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15185 as_echo='printf %s\n'
15186 as_echo_n='printf %s'
15187 else
15188 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15189 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15190 as_echo_n='/usr/ucb/echo -n'
15191 else
15192 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15193 as_echo_n_body='eval
15194 arg=$1;
15195 case $arg in #(
15196 *"$as_nl"*)
15197 expr "X$arg" : "X\\(.*\\)$as_nl";
15198 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15199 esac;
15200 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15201 '
15202 export as_echo_n_body
15203 as_echo_n='sh -c $as_echo_n_body as_echo'
15204 fi
15205 export as_echo_body
15206 as_echo='sh -c $as_echo_body as_echo'
15207 fi
15208
15209 # The user is always right.
15210 if test "${PATH_SEPARATOR+set}" != set; then
15211 PATH_SEPARATOR=:
15212 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15213 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15214 PATH_SEPARATOR=';'
15215 }
15216 fi
15217
15218
15219 # IFS
15220 # We need space, tab and new line, in precisely that order. Quoting is
15221 # there to prevent editors from complaining about space-tab.
15222 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15223 # splitting by setting IFS to empty value.)
15224 IFS=" "" $as_nl"
15225
15226 # Find who we are. Look in the path if we contain no directory separator.
15227 case $0 in #((
15228 *[\\/]* ) as_myself=$0 ;;
15229 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15230 for as_dir in $PATH
15231 do
15232 IFS=$as_save_IFS
15233 test -z "$as_dir" && as_dir=.
15234 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15235 done
15236 IFS=$as_save_IFS
15237
15238 ;;
15239 esac
15240 # We did not find ourselves, most probably we were run as `sh COMMAND'
15241 # in which case we are not to be found in the path.
15242 if test "x$as_myself" = x; then
15243 as_myself=$0
15244 fi
15245 if test ! -f "$as_myself"; then
15246 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15247 exit 1
15248 fi
15249
15250 # Unset variables that we do not need and which cause bugs (e.g. in
15251 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15252 # suppresses any "Segmentation fault" message there. '((' could
15253 # trigger a bug in pdksh 5.2.14.
15254 for as_var in BASH_ENV ENV MAIL MAILPATH
15255 do eval test x\${$as_var+set} = xset \
15256 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15257 done
15258 PS1='$ '
15259 PS2='> '
15260 PS4='+ '
15261
15262 # NLS nuisances.
15263 LC_ALL=C
15264 export LC_ALL
15265 LANGUAGE=C
15266 export LANGUAGE
15267
15268 # CDPATH.
15269 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15270
15271
15272 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15273 # ----------------------------------------
15274 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15275 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15276 # script with STATUS, using 1 if that was 0.
15277 as_fn_error ()
15278 {
15279 as_status=$1; test $as_status -eq 0 && as_status=1
15280 if test "$4"; then
15281 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15282 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15283 fi
15284 $as_echo "$as_me: error: $2" >&2
15285 as_fn_exit $as_status
15286 } # as_fn_error
15287
15288
15289 # as_fn_set_status STATUS
15290 # -----------------------
15291 # Set $? to STATUS, without forking.
15292 as_fn_set_status ()
15293 {
15294 return $1
15295 } # as_fn_set_status
15296
15297 # as_fn_exit STATUS
15298 # -----------------
15299 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15300 as_fn_exit ()
15301 {
15302 set +e
15303 as_fn_set_status $1
15304 exit $1
15305 } # as_fn_exit
15306
15307 # as_fn_unset VAR
15308 # ---------------
15309 # Portably unset VAR.
15310 as_fn_unset ()
15311 {
15312 { eval $1=; unset $1;}
15313 }
15314 as_unset=as_fn_unset
15315 # as_fn_append VAR VALUE
15316 # ----------------------
15317 # Append the text in VALUE to the end of the definition contained in VAR. Take
15318 # advantage of any shell optimizations that allow amortized linear growth over
15319 # repeated appends, instead of the typical quadratic growth present in naive
15320 # implementations.
15321 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15322 eval 'as_fn_append ()
15323 {
15324 eval $1+=\$2
15325 }'
15326 else
15327 as_fn_append ()
15328 {
15329 eval $1=\$$1\$2
15330 }
15331 fi # as_fn_append
15332
15333 # as_fn_arith ARG...
15334 # ------------------
15335 # Perform arithmetic evaluation on the ARGs, and store the result in the
15336 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15337 # must be portable across $(()) and expr.
15338 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15339 eval 'as_fn_arith ()
15340 {
15341 as_val=$(( $* ))
15342 }'
15343 else
15344 as_fn_arith ()
15345 {
15346 as_val=`expr "$@" || test $? -eq 1`
15347 }
15348 fi # as_fn_arith
15349
15350
15351 if expr a : '\(a\)' >/dev/null 2>&1 &&
15352 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15353 as_expr=expr
15354 else
15355 as_expr=false
15356 fi
15357
15358 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15359 as_basename=basename
15360 else
15361 as_basename=false
15362 fi
15363
15364 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15365 as_dirname=dirname
15366 else
15367 as_dirname=false
15368 fi
15369
15370 as_me=`$as_basename -- "$0" ||
15371 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15372 X"$0" : 'X\(//\)$' \| \
15373 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15374 $as_echo X/"$0" |
15375 sed '/^.*\/\([^/][^/]*\)\/*$/{
15376 s//\1/
15377 q
15378 }
15379 /^X\/\(\/\/\)$/{
15380 s//\1/
15381 q
15382 }
15383 /^X\/\(\/\).*/{
15384 s//\1/
15385 q
15386 }
15387 s/.*/./; q'`
15388
15389 # Avoid depending upon Character Ranges.
15390 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15391 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15392 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15393 as_cr_digits='0123456789'
15394 as_cr_alnum=$as_cr_Letters$as_cr_digits
15395
15396 ECHO_C= ECHO_N= ECHO_T=
15397 case `echo -n x` in #(((((
15398 -n*)
15399 case `echo 'xy\c'` in
15400 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15401 xy) ECHO_C='\c';;
15402 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15403 ECHO_T=' ';;
15404 esac;;
15405 *)
15406 ECHO_N='-n';;
15407 esac
15408
15409 rm -f conf$$ conf$$.exe conf$$.file
15410 if test -d conf$$.dir; then
15411 rm -f conf$$.dir/conf$$.file
15412 else
15413 rm -f conf$$.dir
15414 mkdir conf$$.dir 2>/dev/null
15415 fi
15416 if (echo >conf$$.file) 2>/dev/null; then
15417 if ln -s conf$$.file conf$$ 2>/dev/null; then
15418 as_ln_s='ln -s'
15419 # ... but there are two gotchas:
15420 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15421 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15422 # In both cases, we have to default to `cp -p'.
15423 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15424 as_ln_s='cp -p'
15425 elif ln conf$$.file conf$$ 2>/dev/null; then
15426 as_ln_s=ln
15427 else
15428 as_ln_s='cp -p'
15429 fi
15430 else
15431 as_ln_s='cp -p'
15432 fi
15433 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15434 rmdir conf$$.dir 2>/dev/null
15435
15436
15437 # as_fn_mkdir_p
15438 # -------------
15439 # Create "$as_dir" as a directory, including parents if necessary.
15440 as_fn_mkdir_p ()
15441 {
15442
15443 case $as_dir in #(
15444 -*) as_dir=./$as_dir;;
15445 esac
15446 test -d "$as_dir" || eval $as_mkdir_p || {
15447 as_dirs=
15448 while :; do
15449 case $as_dir in #(
15450 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15451 *) as_qdir=$as_dir;;
15452 esac
15453 as_dirs="'$as_qdir' $as_dirs"
15454 as_dir=`$as_dirname -- "$as_dir" ||
15455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15456 X"$as_dir" : 'X\(//\)[^/]' \| \
15457 X"$as_dir" : 'X\(//\)$' \| \
15458 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15459 $as_echo X"$as_dir" |
15460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15461 s//\1/
15462 q
15463 }
15464 /^X\(\/\/\)[^/].*/{
15465 s//\1/
15466 q
15467 }
15468 /^X\(\/\/\)$/{
15469 s//\1/
15470 q
15471 }
15472 /^X\(\/\).*/{
15473 s//\1/
15474 q
15475 }
15476 s/.*/./; q'`
15477 test -d "$as_dir" && break
15478 done
15479 test -z "$as_dirs" || eval "mkdir $as_dirs"
15480 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15481
15482
15483 } # as_fn_mkdir_p
15484 if mkdir -p . 2>/dev/null; then
15485 as_mkdir_p='mkdir -p "$as_dir"'
15486 else
15487 test -d ./-p && rmdir ./-p
15488 as_mkdir_p=false
15489 fi
15490
15491 if test -x / >/dev/null 2>&1; then
15492 as_test_x='test -x'
15493 else
15494 if ls -dL / >/dev/null 2>&1; then
15495 as_ls_L_option=L
15496 else
15497 as_ls_L_option=
15498 fi
15499 as_test_x='
15500 eval sh -c '\''
15501 if test -d "$1"; then
15502 test -d "$1/.";
15503 else
15504 case $1 in #(
15505 -*)set "./$1";;
15506 esac;
15507 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15508 ???[sx]*):;;*)false;;esac;fi
15509 '\'' sh
15510 '
15511 fi
15512 as_executable_p=$as_test_x
15513
15514 # Sed expression to map a string onto a valid CPP name.
15515 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15516
15517 # Sed expression to map a string onto a valid variable name.
15518 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15519
15520
15521 exec 6>&1
15522 ## ----------------------------------- ##
15523 ## Main body of $CONFIG_STATUS script. ##
15524 ## ----------------------------------- ##
15525 _ASEOF
15526 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15527
15528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15529 # Save the log message, to keep $0 and so on meaningful, and to
15530 # report actual input values of CONFIG_FILES etc. instead of their
15531 # values after options handling.
15532 ac_log="
15533 This file was extended by emacs $as_me 24.0.50, which was
15534 generated by GNU Autoconf 2.67. Invocation command line was
15535
15536 CONFIG_FILES = $CONFIG_FILES
15537 CONFIG_HEADERS = $CONFIG_HEADERS
15538 CONFIG_LINKS = $CONFIG_LINKS
15539 CONFIG_COMMANDS = $CONFIG_COMMANDS
15540 $ $0 $@
15541
15542 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15543 "
15544
15545 _ACEOF
15546
15547 case $ac_config_files in *"
15548 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15549 esac
15550
15551 case $ac_config_headers in *"
15552 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15553 esac
15554
15555
15556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15557 # Files that config.status was made for.
15558 config_files="$ac_config_files"
15559 config_headers="$ac_config_headers"
15560 config_commands="$ac_config_commands"
15561
15562 _ACEOF
15563
15564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15565 ac_cs_usage="\
15566 \`$as_me' instantiates files and other configuration actions
15567 from templates according to the current configuration. Unless the files
15568 and actions are specified as TAGs, all are instantiated by default.
15569
15570 Usage: $0 [OPTION]... [TAG]...
15571
15572 -h, --help print this help, then exit
15573 -V, --version print version number and configuration settings, then exit
15574 --config print configuration, then exit
15575 -q, --quiet, --silent
15576 do not print progress messages
15577 -d, --debug don't remove temporary files
15578 --recheck update $as_me by reconfiguring in the same conditions
15579 --file=FILE[:TEMPLATE]
15580 instantiate the configuration file FILE
15581 --header=FILE[:TEMPLATE]
15582 instantiate the configuration header FILE
15583
15584 Configuration files:
15585 $config_files
15586
15587 Configuration headers:
15588 $config_headers
15589
15590 Configuration commands:
15591 $config_commands
15592
15593 Report bugs to the package provider."
15594
15595 _ACEOF
15596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15597 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15598 ac_cs_version="\\
15599 emacs config.status 24.0.50
15600 configured by $0, generated by GNU Autoconf 2.67,
15601 with options \\"\$ac_cs_config\\"
15602
15603 Copyright (C) 2010 Free Software Foundation, Inc.
15604 This config.status script is free software; the Free Software Foundation
15605 gives unlimited permission to copy, distribute and modify it."
15606
15607 ac_pwd='$ac_pwd'
15608 srcdir='$srcdir'
15609 INSTALL='$INSTALL'
15610 test -n "\$AWK" || AWK=awk
15611 _ACEOF
15612
15613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15614 # The default lists apply if the user does not specify any file.
15615 ac_need_defaults=:
15616 while test $# != 0
15617 do
15618 case $1 in
15619 --*=?*)
15620 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15621 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15622 ac_shift=:
15623 ;;
15624 --*=)
15625 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15626 ac_optarg=
15627 ac_shift=:
15628 ;;
15629 *)
15630 ac_option=$1
15631 ac_optarg=$2
15632 ac_shift=shift
15633 ;;
15634 esac
15635
15636 case $ac_option in
15637 # Handling of the options.
15638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15639 ac_cs_recheck=: ;;
15640 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15641 $as_echo "$ac_cs_version"; exit ;;
15642 --config | --confi | --conf | --con | --co | --c )
15643 $as_echo "$ac_cs_config"; exit ;;
15644 --debug | --debu | --deb | --de | --d | -d )
15645 debug=: ;;
15646 --file | --fil | --fi | --f )
15647 $ac_shift
15648 case $ac_optarg in
15649 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15650 '') as_fn_error $? "missing file argument" ;;
15651 esac
15652 as_fn_append CONFIG_FILES " '$ac_optarg'"
15653 ac_need_defaults=false;;
15654 --header | --heade | --head | --hea )
15655 $ac_shift
15656 case $ac_optarg in
15657 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15658 esac
15659 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15660 ac_need_defaults=false;;
15661 --he | --h)
15662 # Conflict between --help and --header
15663 as_fn_error $? "ambiguous option: \`$1'
15664 Try \`$0 --help' for more information.";;
15665 --help | --hel | -h )
15666 $as_echo "$ac_cs_usage"; exit ;;
15667 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15668 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15669 ac_cs_silent=: ;;
15670
15671 # This is an error.
15672 -*) as_fn_error $? "unrecognized option: \`$1'
15673 Try \`$0 --help' for more information." ;;
15674
15675 *) as_fn_append ac_config_targets " $1"
15676 ac_need_defaults=false ;;
15677
15678 esac
15679 shift
15680 done
15681
15682 ac_configure_extra_args=
15683
15684 if $ac_cs_silent; then
15685 exec 6>/dev/null
15686 ac_configure_extra_args="$ac_configure_extra_args --silent"
15687 fi
15688
15689 _ACEOF
15690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15691 if \$ac_cs_recheck; then
15692 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15693 shift
15694 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15695 CONFIG_SHELL='$SHELL'
15696 export CONFIG_SHELL
15697 exec "\$@"
15698 fi
15699
15700 _ACEOF
15701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15702 exec 5>>config.log
15703 {
15704 echo
15705 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15706 ## Running $as_me. ##
15707 _ASBOX
15708 $as_echo "$ac_log"
15709 } >&5
15710
15711 _ACEOF
15712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15713 #
15714 # INIT-COMMANDS
15715 #
15716 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15717
15718 _ACEOF
15719
15720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15721
15722 # Handling of arguments.
15723 for ac_config_target in $ac_config_targets
15724 do
15725 case $ac_config_target in
15726 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15727 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15728 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15729 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15730 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15731 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15732 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15733 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15734 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15735 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15736 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15737 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15738 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
15739 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15740
15741 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15742 esac
15743 done
15744
15745
15746 # If the user did not use the arguments to specify the items to instantiate,
15747 # then the envvar interface is used. Set only those that are not.
15748 # We use the long form for the default assignment because of an extremely
15749 # bizarre bug on SunOS 4.1.3.
15750 if $ac_need_defaults; then
15751 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15752 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15753 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15754 fi
15755
15756 # Have a temporary directory for convenience. Make it in the build tree
15757 # simply because there is no reason against having it here, and in addition,
15758 # creating and moving files from /tmp can sometimes cause problems.
15759 # Hook for its removal unless debugging.
15760 # Note that there is a small window in which the directory will not be cleaned:
15761 # after its creation but before its name has been assigned to `$tmp'.
15762 $debug ||
15763 {
15764 tmp=
15765 trap 'exit_status=$?
15766 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15767 ' 0
15768 trap 'as_fn_exit 1' 1 2 13 15
15769 }
15770 # Create a (secure) tmp directory for tmp files.
15771
15772 {
15773 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15774 test -n "$tmp" && test -d "$tmp"
15775 } ||
15776 {
15777 tmp=./conf$$-$RANDOM
15778 (umask 077 && mkdir "$tmp")
15779 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15780
15781 # Set up the scripts for CONFIG_FILES section.
15782 # No need to generate them if there are no CONFIG_FILES.
15783 # This happens for instance with `./config.status config.h'.
15784 if test -n "$CONFIG_FILES"; then
15785
15786 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15787 ac_cs_awk_getline=:
15788 ac_cs_awk_pipe_init=
15789 ac_cs_awk_read_file='
15790 while ((getline aline < (F[key])) > 0)
15791 print(aline)
15792 close(F[key])'
15793 ac_cs_awk_pipe_fini=
15794 else
15795 ac_cs_awk_getline=false
15796 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15797 ac_cs_awk_read_file='
15798 print "|#_!!_#|"
15799 print "cat " F[key] " &&"
15800 '$ac_cs_awk_pipe_init
15801 # The final `:' finishes the AND list.
15802 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15803 fi
15804 ac_cr=`echo X | tr X '\015'`
15805 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15806 # But we know of no other shell where ac_cr would be empty at this
15807 # point, so we can use a bashism as a fallback.
15808 if test "x$ac_cr" = x; then
15809 eval ac_cr=\$\'\\r\'
15810 fi
15811 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15812 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15813 ac_cs_awk_cr='\\r'
15814 else
15815 ac_cs_awk_cr=$ac_cr
15816 fi
15817
15818 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15819 _ACEOF
15820
15821 # Create commands to substitute file output variables.
15822 {
15823 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15824 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15825 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15826 echo "_ACAWK" &&
15827 echo "_ACEOF"
15828 } >conf$$files.sh &&
15829 . ./conf$$files.sh ||
15830 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15831 rm -f conf$$files.sh
15832
15833 {
15834 echo "cat >conf$$subs.awk <<_ACEOF" &&
15835 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15836 echo "_ACEOF"
15837 } >conf$$subs.sh ||
15838 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15839 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15840 ac_delim='%!_!# '
15841 for ac_last_try in false false false false false :; do
15842 . ./conf$$subs.sh ||
15843 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15844
15845 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15846 if test $ac_delim_n = $ac_delim_num; then
15847 break
15848 elif $ac_last_try; then
15849 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15850 else
15851 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15852 fi
15853 done
15854 rm -f conf$$subs.sh
15855
15856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15857 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15858 _ACEOF
15859 sed -n '
15860 h
15861 s/^/S["/; s/!.*/"]=/
15862 p
15863 g
15864 s/^[^!]*!//
15865 :repl
15866 t repl
15867 s/'"$ac_delim"'$//
15868 t delim
15869 :nl
15870 h
15871 s/\(.\{148\}\)..*/\1/
15872 t more1
15873 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15874 p
15875 n
15876 b repl
15877 :more1
15878 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15879 p
15880 g
15881 s/.\{148\}//
15882 t nl
15883 :delim
15884 h
15885 s/\(.\{148\}\)..*/\1/
15886 t more2
15887 s/["\\]/\\&/g; s/^/"/; s/$/"/
15888 p
15889 b
15890 :more2
15891 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15892 p
15893 g
15894 s/.\{148\}//
15895 t delim
15896 ' <conf$$subs.awk | sed '
15897 /^[^""]/{
15898 N
15899 s/\n//
15900 }
15901 ' >>$CONFIG_STATUS || ac_write_fail=1
15902 rm -f conf$$subs.awk
15903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15904 _ACAWK
15905 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15906 for (key in S) S_is_set[key] = 1
15907 FS = "\a"
15908 \$ac_cs_awk_pipe_init
15909 }
15910 {
15911 line = $ 0
15912 nfields = split(line, field, "@")
15913 substed = 0
15914 len = length(field[1])
15915 for (i = 2; i < nfields; i++) {
15916 key = field[i]
15917 keylen = length(key)
15918 if (S_is_set[key]) {
15919 value = S[key]
15920 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15921 len += length(value) + length(field[++i])
15922 substed = 1
15923 } else
15924 len += 1 + keylen
15925 }
15926 if (nfields == 3 && !substed) {
15927 key = field[2]
15928 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15929 \$ac_cs_awk_read_file
15930 next
15931 }
15932 }
15933 print line
15934 }
15935 \$ac_cs_awk_pipe_fini
15936 _ACAWK
15937 _ACEOF
15938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15939 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15940 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15941 else
15942 cat
15943 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15944 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15945 _ACEOF
15946
15947 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15948 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15949 # trailing colons and then remove the whole line if VPATH becomes empty
15950 # (actually we leave an empty line to preserve line numbers).
15951 if test "x$srcdir" = x.; then
15952 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15953 h
15954 s///
15955 s/^/:/
15956 s/[ ]*$/:/
15957 s/:\$(srcdir):/:/g
15958 s/:\${srcdir}:/:/g
15959 s/:@srcdir@:/:/g
15960 s/^:*//
15961 s/:*$//
15962 x
15963 s/\(=[ ]*\).*/\1/
15964 G
15965 s/\n//
15966 s/^[^=]*=[ ]*$//
15967 }'
15968 fi
15969
15970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15971 fi # test -n "$CONFIG_FILES"
15972
15973 # Set up the scripts for CONFIG_HEADERS section.
15974 # No need to generate them if there are no CONFIG_HEADERS.
15975 # This happens for instance with `./config.status Makefile'.
15976 if test -n "$CONFIG_HEADERS"; then
15977 cat >"$tmp/defines.awk" <<\_ACAWK ||
15978 BEGIN {
15979 _ACEOF
15980
15981 # Transform confdefs.h into an awk script `defines.awk', embedded as
15982 # here-document in config.status, that substitutes the proper values into
15983 # config.h.in to produce config.h.
15984
15985 # Create a delimiter string that does not exist in confdefs.h, to ease
15986 # handling of long lines.
15987 ac_delim='%!_!# '
15988 for ac_last_try in false false :; do
15989 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15990 if test -z "$ac_t"; then
15991 break
15992 elif $ac_last_try; then
15993 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15994 else
15995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15996 fi
15997 done
15998
15999 # For the awk script, D is an array of macro values keyed by name,
16000 # likewise P contains macro parameters if any. Preserve backslash
16001 # newline sequences.
16002
16003 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16004 sed -n '
16005 s/.\{148\}/&'"$ac_delim"'/g
16006 t rset
16007 :rset
16008 s/^[ ]*#[ ]*define[ ][ ]*/ /
16009 t def
16010 d
16011 :def
16012 s/\\$//
16013 t bsnl
16014 s/["\\]/\\&/g
16015 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16016 D["\1"]=" \3"/p
16017 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16018 d
16019 :bsnl
16020 s/["\\]/\\&/g
16021 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16022 D["\1"]=" \3\\\\\\n"\\/p
16023 t cont
16024 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16025 t cont
16026 d
16027 :cont
16028 n
16029 s/.\{148\}/&'"$ac_delim"'/g
16030 t clear
16031 :clear
16032 s/\\$//
16033 t bsnlc
16034 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16035 d
16036 :bsnlc
16037 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16038 b cont
16039 ' <confdefs.h | sed '
16040 s/'"$ac_delim"'/"\\\
16041 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16042
16043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16044 for (key in D) D_is_set[key] = 1
16045 FS = "\a"
16046 }
16047 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16048 line = \$ 0
16049 split(line, arg, " ")
16050 if (arg[1] == "#") {
16051 defundef = arg[2]
16052 mac1 = arg[3]
16053 } else {
16054 defundef = substr(arg[1], 2)
16055 mac1 = arg[2]
16056 }
16057 split(mac1, mac2, "(") #)
16058 macro = mac2[1]
16059 prefix = substr(line, 1, index(line, defundef) - 1)
16060 if (D_is_set[macro]) {
16061 # Preserve the white space surrounding the "#".
16062 print prefix "define", macro P[macro] D[macro]
16063 next
16064 } else {
16065 # Replace #undef with comments. This is necessary, for example,
16066 # in the case of _POSIX_SOURCE, which is predefined and required
16067 # on some systems where configure will not decide to define it.
16068 if (defundef == "undef") {
16069 print "/*", prefix defundef, macro, "*/"
16070 next
16071 }
16072 }
16073 }
16074 { print }
16075 _ACAWK
16076 _ACEOF
16077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16078 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16079 fi # test -n "$CONFIG_HEADERS"
16080
16081
16082 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16083 shift
16084 for ac_tag
16085 do
16086 case $ac_tag in
16087 :[FHLC]) ac_mode=$ac_tag; continue;;
16088 esac
16089 case $ac_mode$ac_tag in
16090 :[FHL]*:*);;
16091 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16092 :[FH]-) ac_tag=-:-;;
16093 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16094 esac
16095 ac_save_IFS=$IFS
16096 IFS=:
16097 set x $ac_tag
16098 IFS=$ac_save_IFS
16099 shift
16100 ac_file=$1
16101 shift
16102
16103 case $ac_mode in
16104 :L) ac_source=$1;;
16105 :[FH])
16106 ac_file_inputs=
16107 for ac_f
16108 do
16109 case $ac_f in
16110 -) ac_f="$tmp/stdin";;
16111 *) # Look for the file first in the build tree, then in the source tree
16112 # (if the path is not absolute). The absolute path cannot be DOS-style,
16113 # because $ac_f cannot contain `:'.
16114 test -f "$ac_f" ||
16115 case $ac_f in
16116 [\\/$]*) false;;
16117 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16118 esac ||
16119 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16120 esac
16121 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16122 as_fn_append ac_file_inputs " '$ac_f'"
16123 done
16124
16125 # Let's still pretend it is `configure' which instantiates (i.e., don't
16126 # use $as_me), people would be surprised to read:
16127 # /* config.h. Generated by config.status. */
16128 configure_input='Generated from '`
16129 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16130 `' by configure.'
16131 if test x"$ac_file" != x-; then
16132 configure_input="$ac_file. $configure_input"
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16134 $as_echo "$as_me: creating $ac_file" >&6;}
16135 fi
16136 # Neutralize special characters interpreted by sed in replacement strings.
16137 case $configure_input in #(
16138 *\&* | *\|* | *\\* )
16139 ac_sed_conf_input=`$as_echo "$configure_input" |
16140 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16141 *) ac_sed_conf_input=$configure_input;;
16142 esac
16143
16144 case $ac_tag in
16145 *:-:* | *:-) cat >"$tmp/stdin" \
16146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16147 esac
16148 ;;
16149 esac
16150
16151 ac_dir=`$as_dirname -- "$ac_file" ||
16152 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16153 X"$ac_file" : 'X\(//\)[^/]' \| \
16154 X"$ac_file" : 'X\(//\)$' \| \
16155 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16156 $as_echo X"$ac_file" |
16157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16158 s//\1/
16159 q
16160 }
16161 /^X\(\/\/\)[^/].*/{
16162 s//\1/
16163 q
16164 }
16165 /^X\(\/\/\)$/{
16166 s//\1/
16167 q
16168 }
16169 /^X\(\/\).*/{
16170 s//\1/
16171 q
16172 }
16173 s/.*/./; q'`
16174 as_dir="$ac_dir"; as_fn_mkdir_p
16175 ac_builddir=.
16176
16177 case "$ac_dir" in
16178 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16179 *)
16180 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16181 # A ".." for each directory in $ac_dir_suffix.
16182 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16183 case $ac_top_builddir_sub in
16184 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16185 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16186 esac ;;
16187 esac
16188 ac_abs_top_builddir=$ac_pwd
16189 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16190 # for backward compatibility:
16191 ac_top_builddir=$ac_top_build_prefix
16192
16193 case $srcdir in
16194 .) # We are building in place.
16195 ac_srcdir=.
16196 ac_top_srcdir=$ac_top_builddir_sub
16197 ac_abs_top_srcdir=$ac_pwd ;;
16198 [\\/]* | ?:[\\/]* ) # Absolute name.
16199 ac_srcdir=$srcdir$ac_dir_suffix;
16200 ac_top_srcdir=$srcdir
16201 ac_abs_top_srcdir=$srcdir ;;
16202 *) # Relative name.
16203 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16204 ac_top_srcdir=$ac_top_build_prefix$srcdir
16205 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16206 esac
16207 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16208
16209
16210 case $ac_mode in
16211 :F)
16212 #
16213 # CONFIG_FILE
16214 #
16215
16216 case $INSTALL in
16217 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16218 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16219 esac
16220 _ACEOF
16221
16222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16223 # If the template does not know about datarootdir, expand it.
16224 # FIXME: This hack should be removed a few years after 2.60.
16225 ac_datarootdir_hack=; ac_datarootdir_seen=
16226 ac_sed_dataroot='
16227 /datarootdir/ {
16228 p
16229 q
16230 }
16231 /@datadir@/p
16232 /@docdir@/p
16233 /@infodir@/p
16234 /@localedir@/p
16235 /@mandir@/p'
16236 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16237 *datarootdir*) ac_datarootdir_seen=yes;;
16238 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16240 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16241 _ACEOF
16242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16243 ac_datarootdir_hack='
16244 s&@datadir@&$datadir&g
16245 s&@docdir@&$docdir&g
16246 s&@infodir@&$infodir&g
16247 s&@localedir@&$localedir&g
16248 s&@mandir@&$mandir&g
16249 s&\\\${datarootdir}&$datarootdir&g' ;;
16250 esac
16251 _ACEOF
16252
16253 # Neutralize VPATH when `$srcdir' = `.'.
16254 # Shell code in configure.ac might set extrasub.
16255 # FIXME: do we really want to maintain this feature?
16256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16257 ac_sed_extra="$ac_vpsub
16258 $extrasub
16259 _ACEOF
16260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16261 :t
16262 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16263 s|@configure_input@|$ac_sed_conf_input|;t t
16264 s&@top_builddir@&$ac_top_builddir_sub&;t t
16265 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16266 s&@srcdir@&$ac_srcdir&;t t
16267 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16268 s&@top_srcdir@&$ac_top_srcdir&;t t
16269 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16270 s&@builddir@&$ac_builddir&;t t
16271 s&@abs_builddir@&$ac_abs_builddir&;t t
16272 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16273 s&@INSTALL@&$ac_INSTALL&;t t
16274 $ac_datarootdir_hack
16275 "
16276 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16277 if $ac_cs_awk_getline; then
16278 $AWK -f "$tmp/subs.awk"
16279 else
16280 $AWK -f "$tmp/subs.awk" | $SHELL
16281 fi >$tmp/out \
16282 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16283
16284 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16285 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16286 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16288 which seems to be undefined. Please make sure it is defined" >&5
16289 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16290 which seems to be undefined. Please make sure it is defined" >&2;}
16291
16292 rm -f "$tmp/stdin"
16293 case $ac_file in
16294 -) cat "$tmp/out" && rm -f "$tmp/out";;
16295 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16296 esac \
16297 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16298 ;;
16299 :H)
16300 #
16301 # CONFIG_HEADER
16302 #
16303 if test x"$ac_file" != x-; then
16304 {
16305 $as_echo "/* $configure_input */" \
16306 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16307 } >"$tmp/config.h" \
16308 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16309 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16311 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16312 else
16313 rm -f "$ac_file"
16314 mv "$tmp/config.h" "$ac_file" \
16315 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16316 fi
16317 else
16318 $as_echo "/* $configure_input */" \
16319 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16320 || as_fn_error $? "could not create -" "$LINENO" 5
16321 fi
16322 ;;
16323
16324 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16325 $as_echo "$as_me: executing $ac_file commands" >&6;}
16326 ;;
16327 esac
16328
16329
16330 case $ac_file$ac_mode in
16331 "default":C)
16332
16333 ### Make the necessary directories, if they don't exist.
16334 for dir in etc lisp ; do
16335 test -d ${dir} || mkdir ${dir}
16336 done
16337
16338 echo creating src/epaths.h
16339 ${MAKE-make} epaths-force
16340
16341 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
16342 echo creating src/.gdbinit
16343 echo source $srcdir/src/.gdbinit > src/.gdbinit
16344 fi
16345
16346 ;;
16347
16348 esac
16349 done # for ac_tag
16350
16351
16352 as_fn_exit 0
16353 _ACEOF
16354 ac_clean_files=$ac_clean_files_save
16355
16356 test $ac_write_fail = 0 ||
16357 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16358
16359
16360 # configure is writing to config.log, and then calls config.status.
16361 # config.status does its own redirection, appending to config.log.
16362 # Unfortunately, on DOS this fails, as config.log is still kept open
16363 # by configure, so config.status won't be able to write to it; its
16364 # output is simply discarded. So we exec the FD to /dev/null,
16365 # effectively closing config.log, so it can be properly (re)opened and
16366 # appended to by config.status. When coming back to configure, we
16367 # need to make the FD available again.
16368 if test "$no_create" != yes; then
16369 ac_cs_success=:
16370 ac_config_status_args=
16371 test "$silent" = yes &&
16372 ac_config_status_args="$ac_config_status_args --quiet"
16373 exec 5>/dev/null
16374 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16375 exec 5>>config.log
16376 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16377 # would make configure fail if this is the last instruction.
16378 $ac_cs_success || as_fn_exit 1
16379 fi
16380 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16382 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16383 fi
16384
16385