]> code.delx.au - gnu-emacs/blob - configure
Merged from trunk.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201 fi
202 fi
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243 fi
244 exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262 { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271 return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342 else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359 else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378 fi
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469 *)
470 ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494 else
495 as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
539
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545 #
546 # Initializations.
547 #
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
556
557 # Identity of this package.
558 PACKAGE_NAME='emacs'
559 PACKAGE_TARNAME='emacs'
560 PACKAGE_VERSION='24.0.50'
561 PACKAGE_STRING='emacs 24.0.50'
562 PACKAGE_BUGREPORT=''
563 PACKAGE_URL=''
564
565 ac_unique_file="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_config_libobj_dir=src
603 ac_header_list=
604 ac_func_list=
605 ac_subst_vars='LTLIBOBJS
606 WINDOW_SUPPORT
607 TOOLTIP_SUPPORT
608 MOUSE_SUPPORT
609 LIB_GCC
610 LD_FIRSTFLAG
611 LD_SWITCH_SYSTEM_TEMACS
612 POST_ALLOC_OBJ
613 PRE_ALLOC_OBJ
614 CYGWIN_OBJ
615 RALLOC_OBJ
616 OLDXMENU_DEPS
617 LIBX_OTHER
618 LIBXMENU
619 OLDXMENU
620 OLDXMENU_TARGET
621 LIBXT_OTHER
622 TOOLKIT_LIBW
623 WIDGET_OBJ
624 XOBJ
625 XMENU_OBJ
626 FONT_OBJ
627 OTHER_FILES
628 GNU_OBJC_CFLAGS
629 ns_appsrc
630 ns_appresdir
631 ns_appbindir
632 ns_appdir
633 S_FILE
634 M_FILE
635 X_TOOLKIT_TYPE
636 C_SWITCH_X_SYSTEM
637 C_SWITCH_X_SITE
638 LD_SWITCH_X_SITE
639 gameuser
640 gamedir
641 bitmapdir
642 archlibdir
643 etcdir
644 x_default_search_path
645 lisppath
646 locallisppath
647 lispdir
648 srcdir
649 canonical
650 configuration
651 version
652 KRB4LIB
653 DESLIB
654 KRB5LIB
655 CRYPTOLIB
656 COM_ERRLIB
657 LIBRESOLV
658 LIBHESIOD
659 TERMCAP_OBJ
660 LIBS_TERMCAP
661 GETOPTOBJS
662 GETOPT_H
663 GETLOADAVG_LIBS
664 KMEM_GROUP
665 NEED_SETGID
666 LIBOBJS
667 BLESSMAIL_TARGET
668 LIBS_MAIL
669 liblockfile
670 ALLOCA
671 LIBXML2_LIBS
672 LIBXML2_CFLAGS
673 LIBXSM
674 LIBGPM
675 LIBGIF
676 LIBTIFF
677 LIBPNG
678 LIBJPEG
679 LIBXPM
680 FREETYPE_LIBS
681 FREETYPE_CFLAGS
682 M17N_FLT_LIBS
683 M17N_FLT_CFLAGS
684 LIBOTF_LIBS
685 LIBOTF_CFLAGS
686 XFT_LIBS
687 XFT_CFLAGS
688 FONTCONFIG_LIBS
689 FONTCONFIG_CFLAGS
690 LIBXMU
691 LIBXTR6
692 LIBGNUTLS_LIBS
693 LIBGNUTLS_CFLAGS
694 LIBSELINUX_LIBS
695 GCONF_LIBS
696 GCONF_CFLAGS
697 DBUS_OBJ
698 DBUS_LIBS
699 DBUS_CFLAGS
700 GTK_OBJ
701 GTK_LIBS
702 GTK_CFLAGS
703 IMAGEMAGICK_LIBS
704 IMAGEMAGICK_CFLAGS
705 RSVG_LIBS
706 RSVG_CFLAGS
707 VMLIMIT_OBJ
708 GMALLOC_OBJ
709 HAVE_XSERVER
710 LIB_STANDARD
711 NS_SUPPORT
712 NS_OBJ
713 TEMACS_LDFLAGS2
714 LD_SWITCH_X_SITE_AUX_RPATH
715 LD_SWITCH_X_SITE_AUX
716 XMKMF
717 DEPFLAGS
718 MKDEPDIR
719 SET_MAKE
720 CFLAGS_SOUND
721 ALSA_LIBS
722 ALSA_CFLAGS
723 PKG_CONFIG
724 LIBSOUND
725 START_FILES
726 LIB_MATH
727 CRT_DIR
728 LIBS_SYSTEM
729 C_SWITCH_SYSTEM
730 UNEXEC_OBJ
731 C_SWITCH_MACHINE
732 LD_SWITCH_SYSTEM
733 CANNOT_DUMP
734 HAVE_MAKEINFO
735 MAKEINFO
736 GZIP_PROG
737 INSTALL_INFO
738 RANLIB
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 C_WARNINGS_SWITCH
743 EGREP
744 GREP
745 CPP
746 OBJEXT
747 EXEEXT
748 ac_ct_CC
749 CPPFLAGS
750 LDFLAGS
751 CFLAGS
752 CC
753 host_os
754 host_vendor
755 host_cpu
756 host
757 build_os
758 build_vendor
759 build_cpu
760 build
761 PROFILING_CFLAGS
762 MAINT
763 GZIP_INFO
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files='deps_frag
803 ns_frag'
804 ac_user_opts='
805 enable_option_checking
806 with_pop
807 with_kerberos
808 with_kerberos5
809 with_hesiod
810 with_mmdf
811 with_mail_unlink
812 with_mailhost
813 with_sound
814 with_sync_input
815 with_x_toolkit
816 with_xpm
817 with_jpeg
818 with_tiff
819 with_gif
820 with_png
821 with_rsvg
822 with_xml2
823 with_imagemagick
824 with_xft
825 with_libotf
826 with_m17n_flt
827 with_toolkit_scroll_bars
828 with_xaw3d
829 with_xim
830 with_ns
831 with_gpm
832 with_dbus
833 with_gconf
834 with_selinux
835 with_gnutls
836 with_makeinfo
837 with_compress_info
838 with_pkg_config_prog
839 with_crt_dir
840 with_gameuser
841 with_gnustep_conf
842 enable_ns_self_contained
843 enable_asserts
844 enable_maintainer_mode
845 enable_locallisppath
846 enable_checking
847 enable_use_lisp_union_type
848 enable_profiling
849 enable_autodepend
850 enable_largefile
851 with_x
852 '
853 ac_precious_vars='build_alias
854 host_alias
855 target_alias
856 CC
857 CFLAGS
858 LDFLAGS
859 LIBS
860 CPPFLAGS
861 CPP
862 XMKMF'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
886
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 includedir='${prefix}/include'
902 oldincludedir='/usr/include'
903 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904 infodir='${datarootdir}/info'
905 htmldir='${docdir}'
906 dvidir='${docdir}'
907 pdfdir='${docdir}'
908 psdir='${docdir}'
909 libdir='${exec_prefix}/lib'
910 localedir='${datarootdir}/locale'
911 mandir='${datarootdir}/man'
912
913 ac_prev=
914 ac_dashdash=
915 for ac_option
916 do
917 # If the previous option needs an argument, assign it.
918 if test -n "$ac_prev"; then
919 eval $ac_prev=\$ac_option
920 ac_prev=
921 continue
922 fi
923
924 case $ac_option in
925 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926 *=) ac_optarg= ;;
927 *) ac_optarg=yes ;;
928 esac
929
930 # Accept the important Cygnus configure options, so we can diagnose typos.
931
932 case $ac_dashdash$ac_option in
933 --)
934 ac_dashdash=yes ;;
935
936 -bindir | --bindir | --bindi | --bind | --bin | --bi)
937 ac_prev=bindir ;;
938 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939 bindir=$ac_optarg ;;
940
941 -build | --build | --buil | --bui | --bu)
942 ac_prev=build_alias ;;
943 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
944 build_alias=$ac_optarg ;;
945
946 -cache-file | --cache-file | --cache-fil | --cache-fi \
947 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948 ac_prev=cache_file ;;
949 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
951 cache_file=$ac_optarg ;;
952
953 --config-cache | -C)
954 cache_file=config.cache ;;
955
956 -datadir | --datadir | --datadi | --datad)
957 ac_prev=datadir ;;
958 -datadir=* | --datadir=* | --datadi=* | --datad=*)
959 datadir=$ac_optarg ;;
960
961 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962 | --dataroo | --dataro | --datar)
963 ac_prev=datarootdir ;;
964 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966 datarootdir=$ac_optarg ;;
967
968 -disable-* | --disable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=no ;;
983
984 -docdir | --docdir | --docdi | --doc | --do)
985 ac_prev=docdir ;;
986 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 docdir=$ac_optarg ;;
988
989 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990 ac_prev=dvidir ;;
991 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 dvidir=$ac_optarg ;;
993
994 -enable-* | --enable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 as_fn_error $? "invalid feature name: $ac_useropt"
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1002 *"
1003 "enable_$ac_useropt"
1004 "*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=\$ac_optarg ;;
1009
1010 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012 | --exec | --exe | --ex)
1013 ac_prev=exec_prefix ;;
1014 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016 | --exec=* | --exe=* | --ex=*)
1017 exec_prefix=$ac_optarg ;;
1018
1019 -gas | --gas | --ga | --g)
1020 # Obsolete; use --with-gas.
1021 with_gas=yes ;;
1022
1023 -help | --help | --hel | --he | -h)
1024 ac_init_help=long ;;
1025 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026 ac_init_help=recursive ;;
1027 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028 ac_init_help=short ;;
1029
1030 -host | --host | --hos | --ho)
1031 ac_prev=host_alias ;;
1032 -host=* | --host=* | --hos=* | --ho=*)
1033 host_alias=$ac_optarg ;;
1034
1035 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 ac_prev=htmldir ;;
1037 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 | --ht=*)
1039 htmldir=$ac_optarg ;;
1040
1041 -includedir | --includedir | --includedi | --included | --include \
1042 | --includ | --inclu | --incl | --inc)
1043 ac_prev=includedir ;;
1044 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045 | --includ=* | --inclu=* | --incl=* | --inc=*)
1046 includedir=$ac_optarg ;;
1047
1048 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 ac_prev=infodir ;;
1050 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051 infodir=$ac_optarg ;;
1052
1053 -libdir | --libdir | --libdi | --libd)
1054 ac_prev=libdir ;;
1055 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056 libdir=$ac_optarg ;;
1057
1058 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059 | --libexe | --libex | --libe)
1060 ac_prev=libexecdir ;;
1061 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062 | --libexe=* | --libex=* | --libe=*)
1063 libexecdir=$ac_optarg ;;
1064
1065 -localedir | --localedir | --localedi | --localed | --locale)
1066 ac_prev=localedir ;;
1067 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068 localedir=$ac_optarg ;;
1069
1070 -localstatedir | --localstatedir | --localstatedi | --localstated \
1071 | --localstate | --localstat | --localsta | --localst | --locals)
1072 ac_prev=localstatedir ;;
1073 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075 localstatedir=$ac_optarg ;;
1076
1077 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 ac_prev=mandir ;;
1079 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080 mandir=$ac_optarg ;;
1081
1082 -nfp | --nfp | --nf)
1083 # Obsolete; use --without-fp.
1084 with_fp=no ;;
1085
1086 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087 | --no-cr | --no-c | -n)
1088 no_create=yes ;;
1089
1090 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092 no_recursion=yes ;;
1093
1094 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096 | --oldin | --oldi | --old | --ol | --o)
1097 ac_prev=oldincludedir ;;
1098 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101 oldincludedir=$ac_optarg ;;
1102
1103 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 ac_prev=prefix ;;
1105 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106 prefix=$ac_optarg ;;
1107
1108 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109 | --program-pre | --program-pr | --program-p)
1110 ac_prev=program_prefix ;;
1111 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113 program_prefix=$ac_optarg ;;
1114
1115 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116 | --program-suf | --program-su | --program-s)
1117 ac_prev=program_suffix ;;
1118 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120 program_suffix=$ac_optarg ;;
1121
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 ac_prev=program_transform_name ;;
1130 -program-transform-name=* | --program-transform-name=* \
1131 | --program-transform-nam=* | --program-transform-na=* \
1132 | --program-transform-n=* | --program-transform-=* \
1133 | --program-transform=* | --program-transfor=* \
1134 | --program-transfo=* | --program-transf=* \
1135 | --program-trans=* | --program-tran=* \
1136 | --progr-tra=* | --program-tr=* | --program-t=*)
1137 program_transform_name=$ac_optarg ;;
1138
1139 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 ac_prev=pdfdir ;;
1141 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142 pdfdir=$ac_optarg ;;
1143
1144 -psdir | --psdir | --psdi | --psd | --ps)
1145 ac_prev=psdir ;;
1146 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147 psdir=$ac_optarg ;;
1148
1149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150 | -silent | --silent | --silen | --sile | --sil)
1151 silent=yes ;;
1152
1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 ac_prev=sbindir ;;
1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 | --sbi=* | --sb=*)
1157 sbindir=$ac_optarg ;;
1158
1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161 | --sharedst | --shareds | --shared | --share | --shar \
1162 | --sha | --sh)
1163 ac_prev=sharedstatedir ;;
1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 | --sha=* | --sh=*)
1168 sharedstatedir=$ac_optarg ;;
1169
1170 -site | --site | --sit)
1171 ac_prev=site ;;
1172 -site=* | --site=* | --sit=*)
1173 site=$ac_optarg ;;
1174
1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 ac_prev=srcdir ;;
1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178 srcdir=$ac_optarg ;;
1179
1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181 | --syscon | --sysco | --sysc | --sys | --sy)
1182 ac_prev=sysconfdir ;;
1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185 sysconfdir=$ac_optarg ;;
1186
1187 -target | --target | --targe | --targ | --tar | --ta | --t)
1188 ac_prev=target_alias ;;
1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190 target_alias=$ac_optarg ;;
1191
1192 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 verbose=yes ;;
1194
1195 -version | --version | --versio | --versi | --vers | -V)
1196 ac_init_version=: ;;
1197
1198 -with-* | --with-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: $ac_useropt"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=\$ac_optarg ;;
1213
1214 -without-* | --without-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error $? "invalid package name: $ac_useropt"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223 "with_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=no ;;
1229
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1233
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1240
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1247
1248 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1249 Try \`$0 --help' for more information"
1250 ;;
1251
1252 *=*)
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 case $ac_envvar in #(
1256 '' | [0-9]* | *[!_$as_cr_alnum]* )
1257 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1258 esac
1259 eval $ac_envvar=\$ac_optarg
1260 export $ac_envvar ;;
1261
1262 *)
1263 # FIXME: should be removed in autoconf 3.0.
1264 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268 ;;
1269
1270 esac
1271 done
1272
1273 if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 as_fn_error $? "missing argument to $ac_option"
1276 fi
1277
1278 if test -n "$ac_unrecognized_opts"; then
1279 case $enable_option_checking in
1280 no) ;;
1281 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1282 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283 esac
1284 fi
1285
1286 # Check all directory arguments for consistency.
1287 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290 libdir localedir mandir
1291 do
1292 eval ac_val=\$$ac_var
1293 # Remove trailing slashes.
1294 case $ac_val in
1295 */ )
1296 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1297 eval $ac_var=\$ac_val;;
1298 esac
1299 # Be sure to have absolute directory names.
1300 case $ac_val in
1301 [\\/$]* | ?:[\\/]* ) continue;;
1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303 esac
1304 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1305 done
1306
1307 # There might be people who depend on the old broken behavior: `$host'
1308 # used to hold the argument of --host etc.
1309 # FIXME: To remove some day.
1310 build=$build_alias
1311 host=$host_alias
1312 target=$target_alias
1313
1314 # FIXME: To remove some day.
1315 if test "x$host_alias" != x; then
1316 if test "x$build_alias" = x; then
1317 cross_compiling=maybe
1318 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1319 If a cross compiler is detected then cross compile mode will be used" >&2
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1322 fi
1323 fi
1324
1325 ac_tool_prefix=
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327
1328 test "$silent" = yes && exec 6>/dev/null
1329
1330
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334 as_fn_error $? "working directory cannot be determined"
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 as_fn_error $? "pwd does not report name of working directory"
1337
1338
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$as_myself" ||
1344 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$as_myself" : 'X\(//\)[^/]' \| \
1346 X"$as_myself" : 'X\(//\)$' \| \
1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348 $as_echo X"$as_myself" |
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)[^/].*/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\).*/{
1362 s//\1/
1363 q
1364 }
1365 s/.*/./; q'`
1366 srcdir=$ac_confdir
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 srcdir=..
1369 fi
1370 else
1371 ac_srcdir_defaulted=no
1372 fi
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1376 fi
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1380 pwd)`
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 srcdir=.
1384 fi
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1388 case $srcdir in
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 esac
1391 for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 done
1397
1398 #
1399 # Report the --help message.
1400 #
1401 if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1404 cat <<_ACEOF
1405 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1406
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE. See below for descriptions of some of the useful variables.
1411
1412 Defaults for the options are specified in brackets.
1413
1414 Configuration:
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
1419 -q, --quiet, --silent do not print \`checking ...' messages
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424
1425 Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 [PREFIX]
1430
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1435
1436 For better control, use the options below.
1437
1438 Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --libdir=DIR object code libraries [EPREFIX/lib]
1446 --includedir=DIR C header files [PREFIX/include]
1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450 --infodir=DIR info documentation [DATAROOTDIR/info]
1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452 --mandir=DIR man documentation [DATAROOTDIR/man]
1453 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1454 --htmldir=DIR html documentation [DOCDIR]
1455 --dvidir=DIR dvi documentation [DOCDIR]
1456 --pdfdir=DIR pdf documentation [DOCDIR]
1457 --psdir=DIR ps documentation [DOCDIR]
1458 _ACEOF
1459
1460 cat <<\_ACEOF
1461
1462 Program names:
1463 --program-prefix=PREFIX prepend PREFIX to installed program names
1464 --program-suffix=SUFFIX append SUFFIX to installed program names
1465 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1466
1467 X features:
1468 --x-includes=DIR X include files are in DIR
1469 --x-libraries=DIR X library files are in DIR
1470
1471 System types:
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1474 _ACEOF
1475 fi
1476
1477 if test -n "$ac_init_help"; then
1478 case $ac_init_help in
1479 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1480 esac
1481 cat <<\_ACEOF
1482
1483 Optional Features:
1484 --disable-option-checking ignore unrecognized --enable/--with options
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --disable-ns-self-contained
1488 disable self contained build under NeXTstep
1489 --enable-asserts compile code with asserts enabled
1490 --enable-maintainer-mode
1491 enable make rules and dependencies not useful (and
1492 sometimes confusing) to the casual installer
1493 --enable-locallisppath=PATH
1494 directories Emacs should search for lisp files
1495 specific to this site
1496 --enable-checking[=LIST]
1497 enable expensive run-time checks. With LIST, enable
1498 only specific categories of checks. Categories are:
1499 all,yes,no. Flags are: stringbytes, stringoverrun,
1500 stringfreelist, xmallocoverrun, conslist
1501 --enable-use-lisp-union-type
1502 use a union for the Lisp_Object data type. This is
1503 only useful for development for catching certain
1504 types of bugs.
1505 --enable-profiling build emacs with profiling support. This might not
1506 work on all platforms
1507 --enable-autodepend automatically generate dependencies to .h-files.
1508 Requires GNU Make and Gcc. Enabled if GNU Make and
1509 Gcc is found
1510 --disable-largefile omit support for large files
1511
1512 Optional Packages:
1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1515 --without-pop don't support POP mail retrieval with movemail
1516 --with-kerberos support Kerberos-authenticated POP
1517 --with-kerberos5 support Kerberos version 5 authenticated POP
1518 --with-hesiod support Hesiod to get the POP server host
1519 --with-mmdf support MMDF mailboxes
1520 --with-mail-unlink unlink, rather than empty, mail spool after reading
1521 --with-mailhost=HOSTNAME
1522 string giving default POP mail host
1523 --without-sound don't compile with sound support
1524 --without-sync-input process async input synchronously
1525 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1526 lucid or athena, motif, no)
1527 --without-xpm don't compile with XPM image support
1528 --without-jpeg don't compile with JPEG image support
1529 --without-tiff don't compile with TIFF image support
1530 --without-gif don't compile with GIF image support
1531 --without-png don't compile with PNG image support
1532 --without-rsvg don't compile with SVG image support
1533 --without-xml2 don't compile with XML parsing support
1534 --without-imagemagick don't compile with ImageMagick image support
1535 --without-xft don't use XFT for anti aliased fonts
1536 --without-libotf don't use libotf for OpenType font support
1537 --without-m17n-flt don't use m17n-flt for text shaping
1538 --without-toolkit-scroll-bars
1539 don't use Motif or Xaw3d scroll bars
1540 --without-xaw3d don't use Xaw3d
1541 --without-xim don't use X11 XIM
1542 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1543 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1544 console
1545 --without-dbus don't compile with D-Bus support
1546 --without-gconf don't compile with GConf support
1547 --without-selinux don't compile with SELinux support
1548 --without-gnutls don't use -lgnutls for SSL/TLS support
1549 --without-makeinfo don't require makeinfo for building manuals
1550 --without-compress-info don't compress the installed Info pages
1551 --with-pkg-config-prog=PATH
1552 path to pkg-config for finding GTK and librsvg
1553 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1554 /usr/lib, or /usr/lib64 on some platforms.
1555 --with-gameuser=USER user for shared game score files
1556 --with-gnustep-conf=PATH
1557 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1558 or /etc/GNUstep/GNUstep.conf
1559 --with-x use the X Window System
1560
1561 Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
1569 CPP C preprocessor
1570 XMKMF Path to xmkmf, Makefile generator for X Window System
1571
1572 Use these variables to override the choices made by `configure' or to help
1573 it to find libraries and programs with nonstandard names/locations.
1574
1575 Report bugs to the package provider.
1576 _ACEOF
1577 ac_status=$?
1578 fi
1579
1580 if test "$ac_init_help" = "recursive"; then
1581 # If there are subdirs, report their specific --help.
1582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583 test -d "$ac_dir" ||
1584 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1585 continue
1586 ac_builddir=.
1587
1588 case "$ac_dir" in
1589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *)
1591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1592 # A ".." for each directory in $ac_dir_suffix.
1593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1594 case $ac_top_builddir_sub in
1595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597 esac ;;
1598 esac
1599 ac_abs_top_builddir=$ac_pwd
1600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601 # for backward compatibility:
1602 ac_top_builddir=$ac_top_build_prefix
1603
1604 case $srcdir in
1605 .) # We are building in place.
1606 ac_srcdir=.
1607 ac_top_srcdir=$ac_top_builddir_sub
1608 ac_abs_top_srcdir=$ac_pwd ;;
1609 [\\/]* | ?:[\\/]* ) # Absolute name.
1610 ac_srcdir=$srcdir$ac_dir_suffix;
1611 ac_top_srcdir=$srcdir
1612 ac_abs_top_srcdir=$srcdir ;;
1613 *) # Relative name.
1614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615 ac_top_srcdir=$ac_top_build_prefix$srcdir
1616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617 esac
1618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619
1620 cd "$ac_dir" || { ac_status=$?; continue; }
1621 # Check for guested configure.
1622 if test -f "$ac_srcdir/configure.gnu"; then
1623 echo &&
1624 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625 elif test -f "$ac_srcdir/configure"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure" --help=recursive
1628 else
1629 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630 fi || ac_status=$?
1631 cd "$ac_pwd" || { ac_status=$?; break; }
1632 done
1633 fi
1634
1635 test -n "$ac_init_help" && exit $ac_status
1636 if $ac_init_version; then
1637 cat <<\_ACEOF
1638 emacs configure 24.0.50
1639 generated by GNU Autoconf 2.68
1640
1641 Copyright (C) 2010 Free Software Foundation, Inc.
1642 This configure script is free software; the Free Software Foundation
1643 gives unlimited permission to copy, distribute and modify it.
1644 _ACEOF
1645 exit
1646 fi
1647
1648 ## ------------------------ ##
1649 ## Autoconf initialization. ##
1650 ## ------------------------ ##
1651
1652 # ac_fn_c_try_compile LINENO
1653 # --------------------------
1654 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_compile ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext
1659 if { { ac_try="$ac_compile"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_compile") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1672 fi
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest.$ac_objext; then :
1678 ac_retval=0
1679 else
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1
1684 fi
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1687
1688 } # ac_fn_c_try_compile
1689
1690 # ac_fn_c_try_link LINENO
1691 # -----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_link ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext conftest$ac_exeext
1697 if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>conftest.err
1705 ac_status=$?
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1710 fi
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest$ac_exeext && {
1716 test "$cross_compiling" = yes ||
1717 $as_test_x conftest$ac_exeext
1718 }; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725 fi
1726 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1727 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1728 # interfere with the next link command; also delete a directory that is
1729 # left behind by Apple's compiler. We do this before executing the actions.
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_link
1735
1736 # ac_fn_c_try_cpp LINENO
1737 # ----------------------
1738 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1739 ac_fn_c_try_cpp ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_cpp conftest.$ac_ext"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } > conftest.i && {
1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 }; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767 fi
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1770
1771 } # ac_fn_c_try_cpp
1772
1773 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776 # the include files in INCLUDES and setting the cache variable VAR
1777 # accordingly.
1778 ac_fn_c_check_header_mongrel ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if eval \${$3+:} false; then :
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1786 fi
1787 eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 else
1791 # Is the header compilable?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793 $as_echo_n "checking $2 usability... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 $4
1797 #include <$2>
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800 ac_header_compiler=yes
1801 else
1802 ac_header_compiler=no
1803 fi
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806 $as_echo "$ac_header_compiler" >&6; }
1807
1808 # Is the header present?
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810 $as_echo_n "checking $2 presence... " >&6; }
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1813 #include <$2>
1814 _ACEOF
1815 if ac_fn_c_try_cpp "$LINENO"; then :
1816 ac_header_preproc=yes
1817 else
1818 ac_header_preproc=no
1819 fi
1820 rm -f conftest.err conftest.i conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822 $as_echo "$ac_header_preproc" >&6; }
1823
1824 # So? What about this header?
1825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1826 yes:no: )
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831 ;;
1832 no:yes:* )
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1836 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1840 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 ;;
1844 esac
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1849 else
1850 eval "$3=\$ac_header_compiler"
1851 fi
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 fi
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858 } # ac_fn_c_check_header_mongrel
1859
1860 # ac_fn_c_try_run LINENO
1861 # ----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1863 # that executables *can* be run.
1864 ac_fn_c_try_run ()
1865 {
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>&5
1875 ac_status=$?
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1878 { { case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_try") 2>&5
1885 ac_status=$?
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; }; }; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: program exited with status $ac_status" >&5
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894 ac_retval=$ac_status
1895 fi
1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 as_fn_set_status $ac_retval
1899
1900 } # ac_fn_c_try_run
1901
1902 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1903 # -------------------------------------------------------
1904 # Tests whether HEADER exists and can be compiled using the include files in
1905 # INCLUDES, setting the cache variable VAR accordingly.
1906 ac_fn_c_check_header_compile ()
1907 {
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if eval \${$3+:} false; then :
1912 $as_echo_n "(cached) " >&6
1913 else
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1916 $4
1917 #include <$2>
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 eval "$3=yes"
1921 else
1922 eval "$3=no"
1923 fi
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 fi
1926 eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931 } # ac_fn_c_check_header_compile
1932
1933 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1934 # ---------------------------------------------
1935 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1936 # accordingly.
1937 ac_fn_c_check_decl ()
1938 {
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 as_decl_name=`echo $2|sed 's/ *(.*//'`
1941 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1943 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1944 if eval \${$3+:} false; then :
1945 $as_echo_n "(cached) " >&6
1946 else
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1949 $4
1950 int
1951 main ()
1952 {
1953 #ifndef $as_decl_name
1954 #ifdef __cplusplus
1955 (void) $as_decl_use;
1956 #else
1957 (void) $as_decl_name;
1958 #endif
1959 #endif
1960
1961 ;
1962 return 0;
1963 }
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"; then :
1966 eval "$3=yes"
1967 else
1968 eval "$3=no"
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 fi
1972 eval ac_res=\$$3
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976
1977 } # ac_fn_c_check_decl
1978
1979 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1980 # ----------------------------------------------
1981 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1982 ac_fn_c_check_header_preproc ()
1983 {
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1989 else
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 #include <$2>
1993 _ACEOF
1994 if ac_fn_c_try_cpp "$LINENO"; then :
1995 eval "$3=yes"
1996 else
1997 eval "$3=no"
1998 fi
1999 rm -f conftest.err conftest.i conftest.$ac_ext
2000 fi
2001 eval ac_res=\$$3
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005
2006 } # ac_fn_c_check_header_preproc
2007
2008 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2009 # ----------------------------------------------------
2010 # Tries to find if the field MEMBER exists in type AGGR, after including
2011 # INCLUDES, setting cache variable VAR accordingly.
2012 ac_fn_c_check_member ()
2013 {
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2016 $as_echo_n "checking for $2.$3... " >&6; }
2017 if eval \${$4+:} false; then :
2018 $as_echo_n "(cached) " >&6
2019 else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $5
2023 int
2024 main ()
2025 {
2026 static $2 ac_aggr;
2027 if (ac_aggr.$3)
2028 return 0;
2029 ;
2030 return 0;
2031 }
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 eval "$4=yes"
2035 else
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2038 $5
2039 int
2040 main ()
2041 {
2042 static $2 ac_aggr;
2043 if (sizeof ac_aggr.$3)
2044 return 0;
2045 ;
2046 return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050 eval "$4=yes"
2051 else
2052 eval "$4=no"
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 fi
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 fi
2058 eval ac_res=\$$4
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062
2063 } # ac_fn_c_check_member
2064
2065 # ac_fn_c_check_func LINENO FUNC VAR
2066 # ----------------------------------
2067 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2068 ac_fn_c_check_func ()
2069 {
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2080 #define $2 innocuous_$2
2081
2082 /* System header to define __stub macros and hopefully few prototypes,
2083 which can conflict with char $2 (); below.
2084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2085 <limits.h> exists even on freestanding compilers. */
2086
2087 #ifdef __STDC__
2088 # include <limits.h>
2089 #else
2090 # include <assert.h>
2091 #endif
2092
2093 #undef $2
2094
2095 /* Override any GCC internal prototype to avoid an error.
2096 Use char because int might match the return type of a GCC
2097 builtin and then its argument prototype would still apply. */
2098 #ifdef __cplusplus
2099 extern "C"
2100 #endif
2101 char $2 ();
2102 /* The GNU C library defines this for functions which it implements
2103 to always fail with ENOSYS. Some functions are actually named
2104 something starting with __ and the normal name is an alias. */
2105 #if defined __stub_$2 || defined __stub___$2
2106 choke me
2107 #endif
2108
2109 int
2110 main ()
2111 {
2112 return $2 ();
2113 ;
2114 return 0;
2115 }
2116 _ACEOF
2117 if ac_fn_c_try_link "$LINENO"; then :
2118 eval "$3=yes"
2119 else
2120 eval "$3=no"
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext \
2123 conftest$ac_exeext conftest.$ac_ext
2124 fi
2125 eval ac_res=\$$3
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129
2130 } # ac_fn_c_check_func
2131
2132 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2133 # -------------------------------------------
2134 # Tests whether TYPE exists after having included INCLUDES, setting cache
2135 # variable VAR accordingly.
2136 ac_fn_c_check_type ()
2137 {
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140 $as_echo_n "checking for $2... " >&6; }
2141 if eval \${$3+:} false; then :
2142 $as_echo_n "(cached) " >&6
2143 else
2144 eval "$3=no"
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2147 $4
2148 int
2149 main ()
2150 {
2151 if (sizeof ($2))
2152 return 0;
2153 ;
2154 return 0;
2155 }
2156 _ACEOF
2157 if ac_fn_c_try_compile "$LINENO"; then :
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2160 $4
2161 int
2162 main ()
2163 {
2164 if (sizeof (($2)))
2165 return 0;
2166 ;
2167 return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171
2172 else
2173 eval "$3=yes"
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 fi
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 fi
2179 eval ac_res=\$$3
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 $as_echo "$ac_res" >&6; }
2182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183
2184 } # ac_fn_c_check_type
2185 cat >config.log <<_ACEOF
2186 This file contains any messages produced by compilers while
2187 running configure, to aid debugging if configure makes a mistake.
2188
2189 It was created by emacs $as_me 24.0.50, which was
2190 generated by GNU Autoconf 2.68. Invocation command line was
2191
2192 $ $0 $@
2193
2194 _ACEOF
2195 exec 5>>config.log
2196 {
2197 cat <<_ASUNAME
2198 ## --------- ##
2199 ## Platform. ##
2200 ## --------- ##
2201
2202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2207
2208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2209 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2210
2211 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2212 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2214 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2215 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2216 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2217 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2218
2219 _ASUNAME
2220
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224 IFS=$as_save_IFS
2225 test -z "$as_dir" && as_dir=.
2226 $as_echo "PATH: $as_dir"
2227 done
2228 IFS=$as_save_IFS
2229
2230 } >&5
2231
2232 cat >&5 <<_ACEOF
2233
2234
2235 ## ----------- ##
2236 ## Core tests. ##
2237 ## ----------- ##
2238
2239 _ACEOF
2240
2241
2242 # Keep a trace of the command line.
2243 # Strip out --no-create and --no-recursion so they do not pile up.
2244 # Strip out --silent because we don't want to record it for future runs.
2245 # Also quote any args containing shell meta-characters.
2246 # Make two passes to allow for proper duplicate-argument suppression.
2247 ac_configure_args=
2248 ac_configure_args0=
2249 ac_configure_args1=
2250 ac_must_keep_next=false
2251 for ac_pass in 1 2
2252 do
2253 for ac_arg
2254 do
2255 case $ac_arg in
2256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2258 | -silent | --silent | --silen | --sile | --sil)
2259 continue ;;
2260 *\'*)
2261 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2262 esac
2263 case $ac_pass in
2264 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2265 2)
2266 as_fn_append ac_configure_args1 " '$ac_arg'"
2267 if test $ac_must_keep_next = true; then
2268 ac_must_keep_next=false # Got value, back to normal.
2269 else
2270 case $ac_arg in
2271 *=* | --config-cache | -C | -disable-* | --disable-* \
2272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2274 | -with-* | --with-* | -without-* | --without-* | --x)
2275 case "$ac_configure_args0 " in
2276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2277 esac
2278 ;;
2279 -* ) ac_must_keep_next=true ;;
2280 esac
2281 fi
2282 as_fn_append ac_configure_args " '$ac_arg'"
2283 ;;
2284 esac
2285 done
2286 done
2287 { ac_configure_args0=; unset ac_configure_args0;}
2288 { ac_configure_args1=; unset ac_configure_args1;}
2289
2290 # When interrupted or exit'd, cleanup temporary files, and complete
2291 # config.log. We remove comments because anyway the quotes in there
2292 # would cause problems or look ugly.
2293 # WARNING: Use '\'' to represent an apostrophe within the trap.
2294 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2295 trap 'exit_status=$?
2296 # Save into config.log some information that might help in debugging.
2297 {
2298 echo
2299
2300 $as_echo "## ---------------- ##
2301 ## Cache variables. ##
2302 ## ---------------- ##"
2303 echo
2304 # The following way of writing the cache mishandles newlines in values,
2305 (
2306 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2307 eval ac_val=\$$ac_var
2308 case $ac_val in #(
2309 *${as_nl}*)
2310 case $ac_var in #(
2311 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2312 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2313 esac
2314 case $ac_var in #(
2315 _ | IFS | as_nl) ;; #(
2316 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2317 *) { eval $ac_var=; unset $ac_var;} ;;
2318 esac ;;
2319 esac
2320 done
2321 (set) 2>&1 |
2322 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2323 *${as_nl}ac_space=\ *)
2324 sed -n \
2325 "s/'\''/'\''\\\\'\'''\''/g;
2326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2327 ;; #(
2328 *)
2329 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2330 ;;
2331 esac |
2332 sort
2333 )
2334 echo
2335
2336 $as_echo "## ----------------- ##
2337 ## Output variables. ##
2338 ## ----------------- ##"
2339 echo
2340 for ac_var in $ac_subst_vars
2341 do
2342 eval ac_val=\$$ac_var
2343 case $ac_val in
2344 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2345 esac
2346 $as_echo "$ac_var='\''$ac_val'\''"
2347 done | sort
2348 echo
2349
2350 if test -n "$ac_subst_files"; then
2351 $as_echo "## ------------------- ##
2352 ## File substitutions. ##
2353 ## ------------------- ##"
2354 echo
2355 for ac_var in $ac_subst_files
2356 do
2357 eval ac_val=\$$ac_var
2358 case $ac_val in
2359 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2360 esac
2361 $as_echo "$ac_var='\''$ac_val'\''"
2362 done | sort
2363 echo
2364 fi
2365
2366 if test -s confdefs.h; then
2367 $as_echo "## ----------- ##
2368 ## confdefs.h. ##
2369 ## ----------- ##"
2370 echo
2371 cat confdefs.h
2372 echo
2373 fi
2374 test "$ac_signal" != 0 &&
2375 $as_echo "$as_me: caught signal $ac_signal"
2376 $as_echo "$as_me: exit $exit_status"
2377 } >&5
2378 rm -f core *.core core.conftest.* &&
2379 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2380 exit $exit_status
2381 ' 0
2382 for ac_signal in 1 2 13 15; do
2383 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2384 done
2385 ac_signal=0
2386
2387 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2388 rm -f -r conftest* confdefs.h
2389
2390 $as_echo "/* confdefs.h */" > confdefs.h
2391
2392 # Predefined preprocessor variables.
2393
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_NAME "$PACKAGE_NAME"
2396 _ACEOF
2397
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2400 _ACEOF
2401
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2404 _ACEOF
2405
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_STRING "$PACKAGE_STRING"
2408 _ACEOF
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2412 _ACEOF
2413
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_URL "$PACKAGE_URL"
2416 _ACEOF
2417
2418
2419 # Let the site file select an alternate cache file if it wants to.
2420 # Prefer an explicitly selected file to automatically selected ones.
2421 ac_site_file1=NONE
2422 ac_site_file2=NONE
2423 if test -n "$CONFIG_SITE"; then
2424 # We do not want a PATH search for config.site.
2425 case $CONFIG_SITE in #((
2426 -*) ac_site_file1=./$CONFIG_SITE;;
2427 */*) ac_site_file1=$CONFIG_SITE;;
2428 *) ac_site_file1=./$CONFIG_SITE;;
2429 esac
2430 elif test "x$prefix" != xNONE; then
2431 ac_site_file1=$prefix/share/config.site
2432 ac_site_file2=$prefix/etc/config.site
2433 else
2434 ac_site_file1=$ac_default_prefix/share/config.site
2435 ac_site_file2=$ac_default_prefix/etc/config.site
2436 fi
2437 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2438 do
2439 test "x$ac_site_file" = xNONE && continue
2440 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2442 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2443 sed 's/^/| /' "$ac_site_file" >&5
2444 . "$ac_site_file" \
2445 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2447 as_fn_error $? "failed to load site script $ac_site_file
2448 See \`config.log' for more details" "$LINENO" 5; }
2449 fi
2450 done
2451
2452 if test -r "$cache_file"; then
2453 # Some versions of bash will fail to source /dev/null (special files
2454 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2455 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2457 $as_echo "$as_me: loading cache $cache_file" >&6;}
2458 case $cache_file in
2459 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2460 *) . "./$cache_file";;
2461 esac
2462 fi
2463 else
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2465 $as_echo "$as_me: creating cache $cache_file" >&6;}
2466 >$cache_file
2467 fi
2468
2469 as_fn_append ac_header_list " stdlib.h"
2470 as_fn_append ac_header_list " unistd.h"
2471 as_fn_append ac_header_list " sys/param.h"
2472 as_fn_append ac_header_list " sys/time.h"
2473 as_fn_append ac_func_list " alarm"
2474 # Check that the precious variables saved in the cache have kept the same
2475 # value.
2476 ac_cache_corrupted=false
2477 for ac_var in $ac_precious_vars; do
2478 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2479 eval ac_new_set=\$ac_env_${ac_var}_set
2480 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2481 eval ac_new_val=\$ac_env_${ac_var}_value
2482 case $ac_old_set,$ac_new_set in
2483 set,)
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2485 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2486 ac_cache_corrupted=: ;;
2487 ,set)
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2489 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2490 ac_cache_corrupted=: ;;
2491 ,);;
2492 *)
2493 if test "x$ac_old_val" != "x$ac_new_val"; then
2494 # differences in whitespace do not lead to failure.
2495 ac_old_val_w=`echo x $ac_old_val`
2496 ac_new_val_w=`echo x $ac_new_val`
2497 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2499 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2500 ac_cache_corrupted=:
2501 else
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2503 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2504 eval $ac_var=\$ac_old_val
2505 fi
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2507 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2509 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2510 fi;;
2511 esac
2512 # Pass precious variables to config.status.
2513 if test "$ac_new_set" = set; then
2514 case $ac_new_val in
2515 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2516 *) ac_arg=$ac_var=$ac_new_val ;;
2517 esac
2518 case " $ac_configure_args " in
2519 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2520 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2521 esac
2522 fi
2523 done
2524 if $ac_cache_corrupted; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2528 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2529 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2530 fi
2531 ## -------------------- ##
2532 ## Main body of script. ##
2533 ## -------------------- ##
2534
2535 ac_ext=c
2536 ac_cpp='$CPP $CPPFLAGS'
2537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540
2541
2542 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2543
2544
2545
2546 test "$program_prefix" != NONE &&
2547 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2548 # Use a double $ so make ignores it.
2549 test "$program_suffix" != NONE &&
2550 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2551 # Double any \ or $.
2552 # By default was `s,x,x', remove it if useless.
2553 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2554 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2555
2556
2557 lispdir='${datadir}/emacs/${version}/lisp'
2558 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2559 '${datadir}/emacs/site-lisp'
2560 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2561 etcdir='${datadir}/emacs/${version}/etc'
2562 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2563 docdir='${datadir}/emacs/${version}/etc'
2564 gamedir='${localstatedir}/games/emacs'
2565
2566
2567
2568
2569 # Check whether --with-pop was given.
2570 if test "${with_pop+set}" = set; then :
2571 withval=$with_pop;
2572 else
2573 with_pop=yes
2574 fi
2575
2576 if test "$with_pop" = yes; then
2577 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2578
2579 fi
2580
2581
2582 # Check whether --with-kerberos was given.
2583 if test "${with_kerberos+set}" = set; then :
2584 withval=$with_kerberos;
2585 else
2586 with_kerberos=no
2587 fi
2588
2589 if test "$with_kerberos" != no; then
2590 $as_echo "#define KERBEROS 1" >>confdefs.h
2591
2592 fi
2593
2594
2595 # Check whether --with-kerberos5 was given.
2596 if test "${with_kerberos5+set}" = set; then :
2597 withval=$with_kerberos5;
2598 else
2599 with_kerberos5=no
2600 fi
2601
2602 if test "${with_kerberos5}" != no; then
2603 if test "${with_kerberos}" = no; then
2604 with_kerberos=yes
2605 $as_echo "#define KERBEROS 1" >>confdefs.h
2606
2607 fi
2608
2609 $as_echo "#define KERBEROS5 1" >>confdefs.h
2610
2611 fi
2612
2613
2614 # Check whether --with-hesiod was given.
2615 if test "${with_hesiod+set}" = set; then :
2616 withval=$with_hesiod;
2617 else
2618 with_hesiod=no
2619 fi
2620
2621 if test "$with_hesiod" != no; then
2622
2623 $as_echo "#define HESIOD 1" >>confdefs.h
2624
2625 fi
2626
2627
2628 # Check whether --with-mmdf was given.
2629 if test "${with_mmdf+set}" = set; then :
2630 withval=$with_mmdf;
2631 else
2632 with_mmdf=no
2633 fi
2634
2635 if test "$with_mmdf" != no; then
2636
2637 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2638
2639 fi
2640
2641
2642 # Check whether --with-mail-unlink was given.
2643 if test "${with_mail_unlink+set}" = set; then :
2644 withval=$with_mail_unlink;
2645 else
2646 with_mail_unlink=no
2647 fi
2648
2649 if test "$with_mail_unlink" != no; then
2650
2651 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2652
2653 fi
2654
2655
2656 # Check whether --with-mailhost was given.
2657 if test "${with_mailhost+set}" = set; then :
2658 withval=$with_mailhost;
2659 cat >>confdefs.h <<_ACEOF
2660 #define MAILHOST "$withval"
2661 _ACEOF
2662
2663 fi
2664
2665
2666
2667 # Check whether --with-sound was given.
2668 if test "${with_sound+set}" = set; then :
2669 withval=$with_sound;
2670 else
2671 with_sound=yes
2672 fi
2673
2674
2675
2676 # Check whether --with-sync-input was given.
2677 if test "${with_sync_input+set}" = set; then :
2678 withval=$with_sync_input;
2679 else
2680 with_sync_input=yes
2681 fi
2682
2683 if test "$with_sync_input" = yes; then
2684
2685 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2686
2687 fi
2688
2689
2690 # Check whether --with-x-toolkit was given.
2691 if test "${with_x_toolkit+set}" = set; then :
2692 withval=$with_x_toolkit; case "${withval}" in
2693 y | ye | yes ) val=gtk ;;
2694 n | no ) val=no ;;
2695 l | lu | luc | luci | lucid ) val=lucid ;;
2696 a | at | ath | athe | athen | athena ) val=athena ;;
2697 m | mo | mot | moti | motif ) val=motif ;;
2698 g | gt | gtk ) val=gtk ;;
2699 gtk3 ) val=gtk3 ;;
2700 * )
2701 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
2702 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2703 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2704 ;;
2705 esac
2706 with_x_toolkit=$val
2707
2708 fi
2709
2710
2711
2712 # Check whether --with-xpm was given.
2713 if test "${with_xpm+set}" = set; then :
2714 withval=$with_xpm;
2715 else
2716 with_xpm=yes
2717 fi
2718
2719
2720 # Check whether --with-jpeg was given.
2721 if test "${with_jpeg+set}" = set; then :
2722 withval=$with_jpeg;
2723 else
2724 with_jpeg=yes
2725 fi
2726
2727
2728 # Check whether --with-tiff was given.
2729 if test "${with_tiff+set}" = set; then :
2730 withval=$with_tiff;
2731 else
2732 with_tiff=yes
2733 fi
2734
2735
2736 # Check whether --with-gif was given.
2737 if test "${with_gif+set}" = set; then :
2738 withval=$with_gif;
2739 else
2740 with_gif=yes
2741 fi
2742
2743
2744 # Check whether --with-png was given.
2745 if test "${with_png+set}" = set; then :
2746 withval=$with_png;
2747 else
2748 with_png=yes
2749 fi
2750
2751
2752 # Check whether --with-rsvg was given.
2753 if test "${with_rsvg+set}" = set; then :
2754 withval=$with_rsvg;
2755 else
2756 with_rsvg=yes
2757 fi
2758
2759
2760 # Check whether --with-xml2 was given.
2761 if test "${with_xml2+set}" = set; then :
2762 withval=$with_xml2;
2763 else
2764 with_xml2=yes
2765 fi
2766
2767
2768 # Check whether --with-imagemagick was given.
2769 if test "${with_imagemagick+set}" = set; then :
2770 withval=$with_imagemagick;
2771 else
2772 with_imagemagick=yes
2773 fi
2774
2775
2776
2777 # Check whether --with-xft was given.
2778 if test "${with_xft+set}" = set; then :
2779 withval=$with_xft;
2780 else
2781 with_xft=yes
2782 fi
2783
2784
2785 # Check whether --with-libotf was given.
2786 if test "${with_libotf+set}" = set; then :
2787 withval=$with_libotf;
2788 else
2789 with_libotf=yes
2790 fi
2791
2792
2793 # Check whether --with-m17n-flt was given.
2794 if test "${with_m17n_flt+set}" = set; then :
2795 withval=$with_m17n_flt;
2796 else
2797 with_m17n_flt=yes
2798 fi
2799
2800
2801
2802 # Check whether --with-toolkit-scroll-bars was given.
2803 if test "${with_toolkit_scroll_bars+set}" = set; then :
2804 withval=$with_toolkit_scroll_bars;
2805 else
2806 with_toolkit_scroll_bars=yes
2807 fi
2808
2809
2810 # Check whether --with-xaw3d was given.
2811 if test "${with_xaw3d+set}" = set; then :
2812 withval=$with_xaw3d;
2813 else
2814 with_xaw3d=yes
2815 fi
2816
2817
2818 # Check whether --with-xim was given.
2819 if test "${with_xim+set}" = set; then :
2820 withval=$with_xim;
2821 else
2822 with_xim=yes
2823 fi
2824
2825
2826 # Check whether --with-ns was given.
2827 if test "${with_ns+set}" = set; then :
2828 withval=$with_ns;
2829 else
2830 with_ns=no
2831 fi
2832
2833
2834
2835 # Check whether --with-gpm was given.
2836 if test "${with_gpm+set}" = set; then :
2837 withval=$with_gpm;
2838 else
2839 with_gpm=yes
2840 fi
2841
2842
2843 # Check whether --with-dbus was given.
2844 if test "${with_dbus+set}" = set; then :
2845 withval=$with_dbus;
2846 else
2847 with_dbus=yes
2848 fi
2849
2850
2851 # Check whether --with-gconf was given.
2852 if test "${with_gconf+set}" = set; then :
2853 withval=$with_gconf;
2854 else
2855 with_gconf=yes
2856 fi
2857
2858
2859 # Check whether --with-selinux was given.
2860 if test "${with_selinux+set}" = set; then :
2861 withval=$with_selinux;
2862 else
2863 with_selinux=yes
2864 fi
2865
2866
2867 # Check whether --with-gnutls was given.
2868 if test "${with_gnutls+set}" = set; then :
2869 withval=$with_gnutls;
2870 else
2871 with_gnutls=yes
2872 fi
2873
2874
2875 ## For the times when you want to build Emacs but don't have
2876 ## a suitable makeinfo, and can live without the manuals.
2877
2878 # Check whether --with-makeinfo was given.
2879 if test "${with_makeinfo+set}" = set; then :
2880 withval=$with_makeinfo;
2881 else
2882 with_makeinfo=yes
2883 fi
2884
2885
2886 ## This is an option because I do not know if all info/man support
2887 ## compressed files, nor how to test if they do so.
2888
2889 # Check whether --with-compress-info was given.
2890 if test "${with_compress_info+set}" = set; then :
2891 withval=$with_compress_info;
2892 else
2893 with_compress_info=yes
2894 fi
2895
2896 if test $with_compress_info = yes; then
2897 GZIP_INFO=yes
2898 else
2899 GZIP_INFO=
2900 fi
2901
2902
2903
2904 # Check whether --with-pkg-config-prog was given.
2905 if test "${with_pkg_config_prog+set}" = set; then :
2906 withval=$with_pkg_config_prog;
2907 fi
2908
2909 if test "X${with_pkg_config_prog}" != X; then
2910 if test "${with_pkg_config_prog}" != yes; then
2911 PKG_CONFIG="${with_pkg_config_prog}"
2912 fi
2913 fi
2914
2915 CRT_DIR=
2916
2917 # Check whether --with-crt-dir was given.
2918 if test "${with_crt_dir+set}" = set; then :
2919 withval=$with_crt_dir;
2920 fi
2921
2922 CRT_DIR="${with_crt_dir}"
2923
2924
2925 # Check whether --with-gameuser was given.
2926 if test "${with_gameuser+set}" = set; then :
2927 withval=$with_gameuser;
2928 fi
2929
2930 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
2931 && gameuser="${with_gameuser}"
2932 test "X$gameuser" = X && gameuser=games
2933
2934
2935 # Check whether --with-gnustep-conf was given.
2936 if test "${with_gnustep_conf+set}" = set; then :
2937 withval=$with_gnustep_conf;
2938 fi
2939
2940 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2941 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2942 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2943 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2944
2945 # Check whether --enable-ns-self-contained was given.
2946 if test "${enable_ns_self_contained+set}" = set; then :
2947 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2948 else
2949 EN_NS_SELF_CONTAINED=yes
2950 fi
2951
2952
2953 # Check whether --enable-asserts was given.
2954 if test "${enable_asserts+set}" = set; then :
2955 enableval=$enable_asserts; USE_XASSERTS=$enableval
2956 else
2957 USE_XASSERTS=no
2958 fi
2959
2960
2961 # Check whether --enable-maintainer-mode was given.
2962 if test "${enable_maintainer_mode+set}" = set; then :
2963 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2964 else
2965 USE_MAINTAINER_MODE=no
2966 fi
2967
2968 if test $USE_MAINTAINER_MODE = yes; then
2969 MAINT=
2970 else
2971 MAINT=#
2972 fi
2973
2974
2975 # Check whether --enable-locallisppath was given.
2976 if test "${enable_locallisppath+set}" = set; then :
2977 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2978 locallisppath=
2979 elif test "${enableval}" != "yes"; then
2980 locallisppath=${enableval}
2981 fi
2982 fi
2983
2984
2985 # Check whether --enable-checking was given.
2986 if test "${enable_checking+set}" = set; then :
2987 enableval=$enable_checking; ac_checking_flags="${enableval}"
2988 fi
2989
2990 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2991 for check in $ac_checking_flags
2992 do
2993 case $check in
2994 # these set all the flags to specific states
2995 yes) ac_enable_checking=1 ;;
2996 no) ac_enable_checking= ;
2997 ac_gc_check_stringbytes= ;
2998 ac_gc_check_string_overrun= ;
2999 ac_gc_check_string_free_list= ;
3000 ac_xmalloc_overrun= ;
3001 ac_gc_check_cons_list= ;;
3002 all) ac_enable_checking=1 ;
3003 ac_gc_check_stringbytes=1 ;
3004 ac_gc_check_string_overrun=1 ;
3005 ac_gc_check_string_free_list=1 ;
3006 ac_xmalloc_overrun=1 ;
3007 ac_gc_check_cons_list=1 ;;
3008 # these enable particular checks
3009 stringbytes) ac_gc_check_stringbytes=1 ;;
3010 stringoverrun) ac_gc_check_string_overrun=1 ;;
3011 stringfreelist) ac_gc_check_string_free_list=1 ;;
3012 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3013 conslist) ac_gc_check_cons_list=1 ;;
3014 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3015 esac
3016 done
3017 IFS="$ac_save_IFS"
3018
3019 if test x$ac_enable_checking != x ; then
3020
3021 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3022
3023 fi
3024 if test x$ac_gc_check_stringbytes != x ; then
3025
3026 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3027
3028 fi
3029 if test x$ac_gc_check_stringoverrun != x ; then
3030
3031 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3032
3033 fi
3034 if test x$ac_gc_check_string_free_list != x ; then
3035
3036 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3037
3038 fi
3039 if test x$ac_xmalloc_overrun != x ; then
3040
3041 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3042
3043 fi
3044 if test x$ac_gc_check_cons_list != x ; then
3045
3046 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3047
3048 fi
3049
3050 # Check whether --enable-use-lisp-union-type was given.
3051 if test "${enable_use_lisp_union_type+set}" = set; then :
3052 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3053
3054 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3055
3056 fi
3057 fi
3058
3059
3060
3061 # Check whether --enable-profiling was given.
3062 if test "${enable_profiling+set}" = set; then :
3063 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3064 fi
3065
3066 if test x$ac_enable_profiling != x ; then
3067 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3068 else
3069 PROFILING_CFLAGS=
3070 fi
3071
3072
3073 # Check whether --enable-autodepend was given.
3074 if test "${enable_autodepend+set}" = set; then :
3075 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3076 else
3077 ac_enable_autodepend=yes
3078 fi
3079
3080
3081 #### Make srcdir absolute, if it isn't already. It's important to
3082 #### avoid running the path through pwd unnecessarily, since pwd can
3083 #### give you automounter prefixes, which can go away. We do all this
3084 #### so Emacs can find its files when run uninstalled.
3085 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3086 unset CDPATH
3087 case "${srcdir}" in
3088 /* ) ;;
3089 . )
3090 ## We may be able to use the $PWD environment variable to make this
3091 ## absolute. But sometimes PWD is inaccurate.
3092 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3093 ## but that tested only for a well-formed and valid PWD,
3094 ## it did not object when PWD was well-formed and valid but just wrong.
3095 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3096 then
3097 srcdir="$PWD"
3098 else
3099 srcdir="`(cd ${srcdir}; pwd)`"
3100 fi
3101 ;;
3102 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3103 esac
3104
3105 #### Check if the source directory already has a configured system in it.
3106 if test `pwd` != `(cd ${srcdir} && pwd)` \
3107 && test -f "${srcdir}/src/config.h" ; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3109 as a build directory right now; it has been configured in its own
3110 right. To configure in another directory as well, you MUST
3111 use GNU make. If you do not have GNU make, then you must
3112 now do \`make distclean' in ${srcdir},
3113 and then run $0 again." >&5
3114 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3115 as a build directory right now; it has been configured in its own
3116 right. To configure in another directory as well, you MUST
3117 use GNU make. If you do not have GNU make, then you must
3118 now do \`make distclean' in ${srcdir},
3119 and then run $0 again." >&2;}
3120 fi
3121
3122 #### Given the configuration name, set machfile and opsysfile to the
3123 #### names of the m/*.h and s/*.h files we should use.
3124
3125 ### Canonicalize the configuration name.
3126
3127 ac_aux_dir=
3128 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3129 if test -f "$ac_dir/install-sh"; then
3130 ac_aux_dir=$ac_dir
3131 ac_install_sh="$ac_aux_dir/install-sh -c"
3132 break
3133 elif test -f "$ac_dir/install.sh"; then
3134 ac_aux_dir=$ac_dir
3135 ac_install_sh="$ac_aux_dir/install.sh -c"
3136 break
3137 elif test -f "$ac_dir/shtool"; then
3138 ac_aux_dir=$ac_dir
3139 ac_install_sh="$ac_aux_dir/shtool install -c"
3140 break
3141 fi
3142 done
3143 if test -z "$ac_aux_dir"; then
3144 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3145 fi
3146
3147 # These three variables are undocumented and unsupported,
3148 # and are intended to be withdrawn in a future Autoconf release.
3149 # They can cause serious problems if a builder's source tree is in a directory
3150 # whose full name contains unusual characters.
3151 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3152 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3153 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3154
3155
3156 # Make sure we can run config.sub.
3157 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3158 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3159
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3161 $as_echo_n "checking build system type... " >&6; }
3162 if ${ac_cv_build+:} false; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 ac_build_alias=$build_alias
3166 test "x$ac_build_alias" = x &&
3167 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3168 test "x$ac_build_alias" = x &&
3169 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3170 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3171 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3172
3173 fi
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3175 $as_echo "$ac_cv_build" >&6; }
3176 case $ac_cv_build in
3177 *-*-*) ;;
3178 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3179 esac
3180 build=$ac_cv_build
3181 ac_save_IFS=$IFS; IFS='-'
3182 set x $ac_cv_build
3183 shift
3184 build_cpu=$1
3185 build_vendor=$2
3186 shift; shift
3187 # Remember, the first character of IFS is used to create $*,
3188 # except with old shells:
3189 build_os=$*
3190 IFS=$ac_save_IFS
3191 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3192
3193
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3195 $as_echo_n "checking host system type... " >&6; }
3196 if ${ac_cv_host+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 if test "x$host_alias" = x; then
3200 ac_cv_host=$ac_cv_build
3201 else
3202 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3203 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3204 fi
3205
3206 fi
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3208 $as_echo "$ac_cv_host" >&6; }
3209 case $ac_cv_host in
3210 *-*-*) ;;
3211 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3212 esac
3213 host=$ac_cv_host
3214 ac_save_IFS=$IFS; IFS='-'
3215 set x $ac_cv_host
3216 shift
3217 host_cpu=$1
3218 host_vendor=$2
3219 shift; shift
3220 # Remember, the first character of IFS is used to create $*,
3221 # except with old shells:
3222 host_os=$*
3223 IFS=$ac_save_IFS
3224 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3225
3226
3227 canonical=$host
3228 configuration=${host_alias-${build_alias-$host}}
3229
3230
3231
3232 ### If you add support for a new configuration, add code to this
3233 ### switch statement to recognize your configuration name and select
3234 ### the appropriate operating system and machine description files.
3235
3236 ### You would hope that you could choose an m/*.h file pretty much
3237 ### based on the machine portion of the configuration name, and an s/*.h
3238 ### file based on the operating system portion. However, it turns out
3239 ### that each m/*.h file is pretty manufacturer-specific - for
3240 ### example mips.h is MIPS
3241 ### So we basically have to have a special case for each
3242 ### configuration name.
3243 ###
3244 ### As far as handling version numbers on operating systems is
3245 ### concerned, make sure things will fail in a fixable way. If
3246 ### /etc/MACHINES doesn't say anything about version numbers, be
3247 ### prepared to handle anything reasonably. If version numbers
3248 ### matter, be sure /etc/MACHINES says something about it.
3249
3250 machine='' opsys='' unported=no
3251 case "${canonical}" in
3252
3253 ## GNU/Linux ports
3254 *-*-linux-gnu*)
3255 opsys=gnu-linux
3256 case ${canonical} in
3257 alpha*) machine=alpha ;;
3258 s390-*) machine=ibms390 ;;
3259 s390x-*) machine=ibms390x ;;
3260 powerpc*) machine=macppc ;;
3261 sparc*) machine=sparc ;;
3262 ia64*) machine=ia64 ;;
3263 m68k*) machine=m68k ;;
3264 x86_64*) machine=amdx86-64 ;;
3265 esac
3266 ;;
3267
3268 ## FreeBSD ports
3269 *-*-freebsd* )
3270 opsys=freebsd
3271 case "${canonical}" in
3272 alpha*) machine=alpha ;;
3273 amd64-*|x86_64-*) machine=amdx86-64 ;;
3274 ia64-*) machine=ia64 ;;
3275 i[3456]86-*) machine=intel386 ;;
3276 powerpc-*) machine=macppc ;;
3277 sparc-*) machine=sparc ;;
3278 sparc64-*) machine=sparc ;;
3279 esac
3280 ;;
3281
3282 ## FreeBSD kernel + glibc based userland
3283 *-*-kfreebsd*gnu* )
3284 opsys=gnu-kfreebsd
3285 case "${canonical}" in
3286 alpha*) machine=alpha ;;
3287 amd64-*|x86_64-*) machine=amdx86-64 ;;
3288 ia64-*) machine=ia64 ;;
3289 i[3456]86-*) machine=intel386 ;;
3290 powerpc-*) machine=macppc ;;
3291 sparc-*) machine=sparc ;;
3292 sparc64-*) machine=sparc ;;
3293 esac
3294 ;;
3295
3296 ## NetBSD ports
3297 *-*-netbsd* )
3298 opsys=netbsd
3299 case "${canonical}" in
3300 alpha*) machine=alpha ;;
3301 x86_64-*) machine=amdx86-64 ;;
3302 i[3456]86-*) machine=intel386 ;;
3303 m68k-*) machine=m68k ;;
3304 powerpc-*) machine=macppc ;;
3305 sparc*-) machine=sparc ;;
3306 vax-*) machine=vax ;;
3307 esac
3308 ;;
3309
3310 ## OpenBSD ports
3311 *-*-openbsd* )
3312 opsys=openbsd
3313 case "${canonical}" in
3314 alpha*) machine=alpha ;;
3315 x86_64-*) machine=amdx86-64 ;;
3316 i386-*) machine=intel386 ;;
3317 powerpc-*) machine=macppc ;;
3318 sparc*) machine=sparc ;;
3319 vax-*) machine=vax ;;
3320 esac
3321 ;;
3322
3323 ## Apple Darwin / Mac OS X
3324 *-apple-darwin* )
3325 case "${canonical}" in
3326 i[3456]86-* ) machine=intel386 ;;
3327 powerpc-* ) machine=macppc ;;
3328 x86_64-* ) machine=amdx86-64 ;;
3329 * ) unported=yes ;;
3330 esac
3331 opsys=darwin
3332 # Define CPP as follows to make autoconf work correctly.
3333 CPP="${CC-cc} -E -no-cpp-precomp"
3334 # Use fink packages if available.
3335 if test -d /sw/include && test -d /sw/lib; then
3336 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3337 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3338 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3339 fi
3340 ;;
3341
3342 ## HP 9000 series 700 and 800, running HP/UX
3343 hppa*-hp-hpux10.2* )
3344 opsys=hpux10-20
3345 ;;
3346 hppa*-hp-hpux1[1-9]* )
3347 opsys=hpux11
3348 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3349 ;;
3350
3351 ## IBM machines
3352 rs6000-ibm-aix4.[23]* )
3353 machine=ibmrs6000 opsys=aix4-2
3354 ;;
3355 powerpc-ibm-aix4.[23]* )
3356 machine=ibmrs6000 opsys=aix4-2
3357 ;;
3358 rs6000-ibm-aix[56]* )
3359 machine=ibmrs6000 opsys=aix4-2
3360 ;;
3361 powerpc-ibm-aix[56]* )
3362 machine=ibmrs6000 opsys=aix4-2
3363 ;;
3364
3365 ## Silicon Graphics machines
3366 ## Iris 4D
3367 mips-sgi-irix6.5 )
3368 machine=iris4d opsys=irix6-5
3369 # Without defining _LANGUAGE_C, things get masked out in the headers
3370 # so that, for instance, grepping for `free' in stdlib.h fails and
3371 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3372 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3373 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3374 ;;
3375
3376 ## Suns
3377 *-sun-solaris* \
3378 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3379 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3380 case "${canonical}" in
3381 i[3456]86-*-* ) machine=intel386 ;;
3382 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3383 sparc* ) machine=sparc ;;
3384 * ) unported=yes ;;
3385 esac
3386 case "${canonical}" in
3387 *-sunos5.6* | *-solaris2.6* )
3388 opsys=sol2-6
3389 NON_GNU_CPP=/usr/ccs/lib/cpp
3390 RANLIB="ar -ts"
3391 ;;
3392 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3393 opsys=sol2-6
3394 emacs_check_sunpro_c=yes
3395 NON_GNU_CPP=/usr/ccs/lib/cpp
3396 ;;
3397 *-sunos5* | *-solaris* )
3398 opsys=sol2-10
3399 emacs_check_sunpro_c=yes
3400 NON_GNU_CPP=/usr/ccs/lib/cpp
3401 ;;
3402 esac
3403 ## Watch out for a compiler that we know will not work.
3404 case "${canonical}" in
3405 *-solaris* | *-sunos5* )
3406 if [ "x$CC" = x/usr/ucb/cc ]; then
3407 ## /usr/ucb/cc doesn't work;
3408 ## we should find some other compiler that does work.
3409 unset CC
3410 fi
3411 ;;
3412 *) ;;
3413 esac
3414 ;;
3415
3416 ## Intel 386 machines where we don't care about the manufacturer.
3417 i[3456]86-*-* )
3418 machine=intel386
3419 case "${canonical}" in
3420 *-cygwin ) opsys=cygwin ;;
3421 *-darwin* ) opsys=darwin
3422 CPP="${CC-cc} -E -no-cpp-precomp"
3423 ;;
3424 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3425 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3426 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3427 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3428 esac
3429 ;;
3430
3431 * )
3432 unported=yes
3433 ;;
3434 esac
3435
3436 ### If the code above didn't choose an operating system, just choose
3437 ### an operating system based on the configuration name. You really
3438 ### only want to use this when you have no idea what the right
3439 ### operating system is; if you know what operating systems a machine
3440 ### runs, it's cleaner to make it explicit in the case statement
3441 ### above.
3442 if test x"${opsys}" = x; then
3443 case "${canonical}" in
3444 *-gnu* ) opsys=gnu ;;
3445 * )
3446 unported=yes
3447 ;;
3448 esac
3449 fi
3450
3451
3452
3453 if test $unported = yes; then
3454 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
3455 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3456 fi
3457
3458 if test -n "$machine"; then
3459 machfile="m/${machine}.h"
3460 else
3461 machfile=
3462 fi
3463 opsysfile="s/${opsys}.h"
3464
3465
3466 #### Choose a compiler.
3467 test -n "$CC" && cc_specified=yes
3468
3469 # Save the value of CFLAGS that the user specified.
3470 SPECIFIED_CFLAGS="$CFLAGS"
3471
3472 ac_ext=c
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477 if test -n "$ac_tool_prefix"; then
3478 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3479 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if ${ac_cv_prog_CC+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 if test -n "$CC"; then
3486 ac_cv_prog_CC="$CC" # Let the user override the test.
3487 else
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3490 do
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3495 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3498 fi
3499 done
3500 done
3501 IFS=$as_save_IFS
3502
3503 fi
3504 fi
3505 CC=$ac_cv_prog_CC
3506 if test -n "$CC"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508 $as_echo "$CC" >&6; }
3509 else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3512 fi
3513
3514
3515 fi
3516 if test -z "$ac_cv_prog_CC"; then
3517 ac_ct_CC=$CC
3518 # Extract the first word of "gcc", so it can be a program name with args.
3519 set dummy gcc; ac_word=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3523 $as_echo_n "(cached) " >&6
3524 else
3525 if test -n "$ac_ct_CC"; then
3526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3527 else
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3530 do
3531 IFS=$as_save_IFS
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535 ac_cv_prog_ac_ct_CC="gcc"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 break 2
3538 fi
3539 done
3540 done
3541 IFS=$as_save_IFS
3542
3543 fi
3544 fi
3545 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3546 if test -n "$ac_ct_CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3548 $as_echo "$ac_ct_CC" >&6; }
3549 else
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3552 fi
3553
3554 if test "x$ac_ct_CC" = x; then
3555 CC=""
3556 else
3557 case $cross_compiling:$ac_tool_warned in
3558 yes:)
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3561 ac_tool_warned=yes ;;
3562 esac
3563 CC=$ac_ct_CC
3564 fi
3565 else
3566 CC="$ac_cv_prog_CC"
3567 fi
3568
3569 if test -z "$CC"; then
3570 if test -n "$ac_tool_prefix"; then
3571 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3572 set dummy ${ac_tool_prefix}cc; ac_word=$2
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3574 $as_echo_n "checking for $ac_word... " >&6; }
3575 if ${ac_cv_prog_CC+:} false; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 if test -n "$CC"; then
3579 ac_cv_prog_CC="$CC" # Let the user override the test.
3580 else
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH
3583 do
3584 IFS=$as_save_IFS
3585 test -z "$as_dir" && as_dir=.
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3588 ac_cv_prog_CC="${ac_tool_prefix}cc"
3589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3590 break 2
3591 fi
3592 done
3593 done
3594 IFS=$as_save_IFS
3595
3596 fi
3597 fi
3598 CC=$ac_cv_prog_CC
3599 if test -n "$CC"; then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3601 $as_echo "$CC" >&6; }
3602 else
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 $as_echo "no" >&6; }
3605 fi
3606
3607
3608 fi
3609 fi
3610 if test -z "$CC"; then
3611 # Extract the first word of "cc", so it can be a program name with args.
3612 set dummy cc; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if ${ac_cv_prog_CC+:} false; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC="$CC" # Let the user override the test.
3620 else
3621 ac_prog_rejected=no
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH
3624 do
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3630 ac_prog_rejected=yes
3631 continue
3632 fi
3633 ac_cv_prog_CC="cc"
3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 break 2
3636 fi
3637 done
3638 done
3639 IFS=$as_save_IFS
3640
3641 if test $ac_prog_rejected = yes; then
3642 # We found a bogon in the path, so make sure we never use it.
3643 set dummy $ac_cv_prog_CC
3644 shift
3645 if test $# != 0; then
3646 # We chose a different compiler from the bogus one.
3647 # However, it has the same basename, so the bogon will be chosen
3648 # first if we set CC to just the basename; use the full file name.
3649 shift
3650 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3651 fi
3652 fi
3653 fi
3654 fi
3655 CC=$ac_cv_prog_CC
3656 if test -n "$CC"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658 $as_echo "$CC" >&6; }
3659 else
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3662 fi
3663
3664
3665 fi
3666 if test -z "$CC"; then
3667 if test -n "$ac_tool_prefix"; then
3668 for ac_prog in cl.exe
3669 do
3670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3671 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673 $as_echo_n "checking for $ac_word... " >&6; }
3674 if ${ac_cv_prog_CC+:} false; then :
3675 $as_echo_n "(cached) " >&6
3676 else
3677 if test -n "$CC"; then
3678 ac_cv_prog_CC="$CC" # Let the user override the test.
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3687 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 break 2
3690 fi
3691 done
3692 done
3693 IFS=$as_save_IFS
3694
3695 fi
3696 fi
3697 CC=$ac_cv_prog_CC
3698 if test -n "$CC"; then
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3700 $as_echo "$CC" >&6; }
3701 else
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 $as_echo "no" >&6; }
3704 fi
3705
3706
3707 test -n "$CC" && break
3708 done
3709 fi
3710 if test -z "$CC"; then
3711 ac_ct_CC=$CC
3712 for ac_prog in cl.exe
3713 do
3714 # Extract the first word of "$ac_prog", so it can be a program name with args.
3715 set dummy $ac_prog; ac_word=$2
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3717 $as_echo_n "checking for $ac_word... " >&6; }
3718 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3719 $as_echo_n "(cached) " >&6
3720 else
3721 if test -n "$ac_ct_CC"; then
3722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3723 else
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH
3726 do
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3731 ac_cv_prog_ac_ct_CC="$ac_prog"
3732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 break 2
3734 fi
3735 done
3736 done
3737 IFS=$as_save_IFS
3738
3739 fi
3740 fi
3741 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3742 if test -n "$ac_ct_CC"; then
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3744 $as_echo "$ac_ct_CC" >&6; }
3745 else
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 $as_echo "no" >&6; }
3748 fi
3749
3750
3751 test -n "$ac_ct_CC" && break
3752 done
3753
3754 if test "x$ac_ct_CC" = x; then
3755 CC=""
3756 else
3757 case $cross_compiling:$ac_tool_warned in
3758 yes:)
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3761 ac_tool_warned=yes ;;
3762 esac
3763 CC=$ac_ct_CC
3764 fi
3765 fi
3766
3767 fi
3768
3769
3770 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772 as_fn_error $? "no acceptable C compiler found in \$PATH
3773 See \`config.log' for more details" "$LINENO" 5; }
3774
3775 # Provide some information about the compiler.
3776 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3777 set X $ac_compile
3778 ac_compiler=$2
3779 for ac_option in --version -v -V -qversion; do
3780 { { ac_try="$ac_compiler $ac_option >&5"
3781 case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784 esac
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3788 ac_status=$?
3789 if test -s conftest.err; then
3790 sed '10a\
3791 ... rest of stderr output deleted ...
3792 10q' conftest.err >conftest.er1
3793 cat conftest.er1 >&5
3794 fi
3795 rm -f conftest.er1 conftest.err
3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797 test $ac_status = 0; }
3798 done
3799
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3802
3803 int
3804 main ()
3805 {
3806
3807 ;
3808 return 0;
3809 }
3810 _ACEOF
3811 ac_clean_files_save=$ac_clean_files
3812 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3813 # Try to create an executable without -o first, disregard a.out.
3814 # It will help us diagnose broken compilers, and finding out an intuition
3815 # of exeext.
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3817 $as_echo_n "checking whether the C compiler works... " >&6; }
3818 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3819
3820 # The possible output files:
3821 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3822
3823 ac_rmfiles=
3824 for ac_file in $ac_files
3825 do
3826 case $ac_file in
3827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3828 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3829 esac
3830 done
3831 rm -f $ac_rmfiles
3832
3833 if { { ac_try="$ac_link_default"
3834 case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837 esac
3838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839 $as_echo "$ac_try_echo"; } >&5
3840 (eval "$ac_link_default") 2>&5
3841 ac_status=$?
3842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843 test $ac_status = 0; }; then :
3844 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3845 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3846 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3847 # so that the user can short-circuit this test for compilers unknown to
3848 # Autoconf.
3849 for ac_file in $ac_files ''
3850 do
3851 test -f "$ac_file" || continue
3852 case $ac_file in
3853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3854 ;;
3855 [ab].out )
3856 # We found the default executable, but exeext='' is most
3857 # certainly right.
3858 break;;
3859 *.* )
3860 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3861 then :; else
3862 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3863 fi
3864 # We set ac_cv_exeext here because the later test for it is not
3865 # safe: cross compilers may not add the suffix if given an `-o'
3866 # argument, so we may need to know it at that point already.
3867 # Even if this section looks crufty: it has the advantage of
3868 # actually working.
3869 break;;
3870 * )
3871 break;;
3872 esac
3873 done
3874 test "$ac_cv_exeext" = no && ac_cv_exeext=
3875
3876 else
3877 ac_file=''
3878 fi
3879 if test -z "$ac_file"; then :
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3882 $as_echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3887 as_fn_error 77 "C compiler cannot create executables
3888 See \`config.log' for more details" "$LINENO" 5; }
3889 else
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3891 $as_echo "yes" >&6; }
3892 fi
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3894 $as_echo_n "checking for C compiler default output file name... " >&6; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3896 $as_echo "$ac_file" >&6; }
3897 ac_exeext=$ac_cv_exeext
3898
3899 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3900 ac_clean_files=$ac_clean_files_save
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3902 $as_echo_n "checking for suffix of executables... " >&6; }
3903 if { { ac_try="$ac_link"
3904 case "(($ac_try" in
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3907 esac
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 $as_echo "$ac_try_echo"; } >&5
3910 (eval "$ac_link") 2>&5
3911 ac_status=$?
3912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913 test $ac_status = 0; }; then :
3914 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3915 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3916 # work properly (i.e., refer to `conftest.exe'), while it won't with
3917 # `rm'.
3918 for ac_file in conftest.exe conftest conftest.*; do
3919 test -f "$ac_file" || continue
3920 case $ac_file in
3921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3922 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3923 break;;
3924 * ) break;;
3925 esac
3926 done
3927 else
3928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3930 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3931 See \`config.log' for more details" "$LINENO" 5; }
3932 fi
3933 rm -f conftest conftest$ac_cv_exeext
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3935 $as_echo "$ac_cv_exeext" >&6; }
3936
3937 rm -f conftest.$ac_ext
3938 EXEEXT=$ac_cv_exeext
3939 ac_exeext=$EXEEXT
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3942 #include <stdio.h>
3943 int
3944 main ()
3945 {
3946 FILE *f = fopen ("conftest.out", "w");
3947 return ferror (f) || fclose (f) != 0;
3948
3949 ;
3950 return 0;
3951 }
3952 _ACEOF
3953 ac_clean_files="$ac_clean_files conftest.out"
3954 # Check that the compiler produces executables we can run. If not, either
3955 # the compiler is broken, or we cross compile.
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3957 $as_echo_n "checking whether we are cross compiling... " >&6; }
3958 if test "$cross_compiling" != yes; then
3959 { { ac_try="$ac_link"
3960 case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3963 esac
3964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965 $as_echo "$ac_try_echo"; } >&5
3966 (eval "$ac_link") 2>&5
3967 ac_status=$?
3968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969 test $ac_status = 0; }
3970 if { ac_try='./conftest$ac_cv_exeext'
3971 { { case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974 esac
3975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976 $as_echo "$ac_try_echo"; } >&5
3977 (eval "$ac_try") 2>&5
3978 ac_status=$?
3979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980 test $ac_status = 0; }; }; then
3981 cross_compiling=no
3982 else
3983 if test "$cross_compiling" = maybe; then
3984 cross_compiling=yes
3985 else
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error $? "cannot run C compiled programs.
3989 If you meant to cross compile, use \`--host'.
3990 See \`config.log' for more details" "$LINENO" 5; }
3991 fi
3992 fi
3993 fi
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3995 $as_echo "$cross_compiling" >&6; }
3996
3997 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3998 ac_clean_files=$ac_clean_files_save
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4000 $as_echo_n "checking for suffix of object files... " >&6; }
4001 if ${ac_cv_objext+:} false; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4006
4007 int
4008 main ()
4009 {
4010
4011 ;
4012 return 0;
4013 }
4014 _ACEOF
4015 rm -f conftest.o conftest.obj
4016 if { { ac_try="$ac_compile"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_compile") 2>&5
4024 ac_status=$?
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }; then :
4027 for ac_file in conftest.o conftest.obj conftest.*; do
4028 test -f "$ac_file" || continue;
4029 case $ac_file in
4030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4032 break;;
4033 esac
4034 done
4035 else
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4038
4039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error $? "cannot compute suffix of object files: cannot compile
4042 See \`config.log' for more details" "$LINENO" 5; }
4043 fi
4044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4045 fi
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4047 $as_echo "$ac_cv_objext" >&6; }
4048 OBJEXT=$ac_cv_objext
4049 ac_objext=$OBJEXT
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4051 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4052 if ${ac_cv_c_compiler_gnu+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057
4058 int
4059 main ()
4060 {
4061 #ifndef __GNUC__
4062 choke me
4063 #endif
4064
4065 ;
4066 return 0;
4067 }
4068 _ACEOF
4069 if ac_fn_c_try_compile "$LINENO"; then :
4070 ac_compiler_gnu=yes
4071 else
4072 ac_compiler_gnu=no
4073 fi
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4076
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4079 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4080 if test $ac_compiler_gnu = yes; then
4081 GCC=yes
4082 else
4083 GCC=
4084 fi
4085 ac_test_CFLAGS=${CFLAGS+set}
4086 ac_save_CFLAGS=$CFLAGS
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4088 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4089 if ${ac_cv_prog_cc_g+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 ac_save_c_werror_flag=$ac_c_werror_flag
4093 ac_c_werror_flag=yes
4094 ac_cv_prog_cc_g=no
4095 CFLAGS="-g"
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4098
4099 int
4100 main ()
4101 {
4102
4103 ;
4104 return 0;
4105 }
4106 _ACEOF
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108 ac_cv_prog_cc_g=yes
4109 else
4110 CFLAGS=""
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113
4114 int
4115 main ()
4116 {
4117
4118 ;
4119 return 0;
4120 }
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"; then :
4123
4124 else
4125 ac_c_werror_flag=$ac_save_c_werror_flag
4126 CFLAGS="-g"
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4129
4130 int
4131 main ()
4132 {
4133
4134 ;
4135 return 0;
4136 }
4137 _ACEOF
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_cv_prog_cc_g=yes
4140 fi
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 fi
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 ac_c_werror_flag=$ac_save_c_werror_flag
4147 fi
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4149 $as_echo "$ac_cv_prog_cc_g" >&6; }
4150 if test "$ac_test_CFLAGS" = set; then
4151 CFLAGS=$ac_save_CFLAGS
4152 elif test $ac_cv_prog_cc_g = yes; then
4153 if test "$GCC" = yes; then
4154 CFLAGS="-g -O2"
4155 else
4156 CFLAGS="-g"
4157 fi
4158 else
4159 if test "$GCC" = yes; then
4160 CFLAGS="-O2"
4161 else
4162 CFLAGS=
4163 fi
4164 fi
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4166 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4167 if ${ac_cv_prog_cc_c89+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 ac_cv_prog_cc_c89=no
4171 ac_save_CC=$CC
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174 #include <stdarg.h>
4175 #include <stdio.h>
4176 #include <sys/types.h>
4177 #include <sys/stat.h>
4178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4179 struct buf { int x; };
4180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4181 static char *e (p, i)
4182 char **p;
4183 int i;
4184 {
4185 return p[i];
4186 }
4187 static char *f (char * (*g) (char **, int), char **p, ...)
4188 {
4189 char *s;
4190 va_list v;
4191 va_start (v,p);
4192 s = g (p, va_arg (v,int));
4193 va_end (v);
4194 return s;
4195 }
4196
4197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4198 function prototypes and stuff, but not '\xHH' hex character constants.
4199 These don't provoke an error unfortunately, instead are silently treated
4200 as 'x'. The following induces an error, until -std is added to get
4201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4202 array size at least. It's necessary to write '\x00'==0 to get something
4203 that's true only with -std. */
4204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4205
4206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4207 inside strings and character constants. */
4208 #define FOO(x) 'x'
4209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4210
4211 int test (int i, double x);
4212 struct s1 {int (*f) (int a);};
4213 struct s2 {int (*f) (double a);};
4214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4215 int argc;
4216 char **argv;
4217 int
4218 main ()
4219 {
4220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4221 ;
4222 return 0;
4223 }
4224 _ACEOF
4225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4227 do
4228 CC="$ac_save_CC $ac_arg"
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230 ac_cv_prog_cc_c89=$ac_arg
4231 fi
4232 rm -f core conftest.err conftest.$ac_objext
4233 test "x$ac_cv_prog_cc_c89" != "xno" && break
4234 done
4235 rm -f conftest.$ac_ext
4236 CC=$ac_save_CC
4237
4238 fi
4239 # AC_CACHE_VAL
4240 case "x$ac_cv_prog_cc_c89" in
4241 x)
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4243 $as_echo "none needed" >&6; } ;;
4244 xno)
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4246 $as_echo "unsupported" >&6; } ;;
4247 *)
4248 CC="$CC $ac_cv_prog_cc_c89"
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4250 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4251 esac
4252 if test "x$ac_cv_prog_cc_c89" != xno; then :
4253
4254 fi
4255
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262
4263 # On Suns, sometimes $CPP names a directory.
4264 if test -n "$CPP" && test -d "$CPP"; then
4265 CPP=
4266 fi
4267
4268 ## If not using gcc, and on Solaris, and no CPP specified, see if
4269 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4270 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4271 test x"$CPP" = x; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4273 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4274
4275 if ${emacs_cv_sunpro_c+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280
4281 int
4282 main ()
4283 {
4284 #ifndef __SUNPRO_C
4285 fail;
4286 #endif
4287
4288 ;
4289 return 0;
4290 }
4291 _ACEOF
4292 if ac_fn_c_try_link "$LINENO"; then :
4293 emacs_cv_sunpro_c=yes
4294 else
4295 emacs_cv_sunpro_c=no
4296 fi
4297 rm -f core conftest.err conftest.$ac_objext \
4298 conftest$ac_exeext conftest.$ac_ext
4299 fi
4300
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4302 $as_echo "$emacs_cv_sunpro_c" >&6; }
4303
4304 if test x"$emacs_cv_sunpro_c" = xyes; then
4305 NON_GNU_CPP="$CC -E -Xs"
4306 fi
4307 fi
4308
4309 #### Some systems specify a CPP 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_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4313 then
4314 CPP="$NON_GNU_CPP"
4315 fi
4316
4317 #### Some systems specify a CC to use unless we are using GCC.
4318 #### Now that we know whether we are using GCC, we can decide whether
4319 #### to use that one.
4320 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4321 test x$cc_specified != xyes
4322 then
4323 CC="$NON_GNU_CC"
4324 fi
4325
4326 if test x$GCC = xyes; then
4327 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4328 else
4329 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4330 fi
4331
4332 ac_ext=c
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4338 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4339 # On Suns, sometimes $CPP names a directory.
4340 if test -n "$CPP" && test -d "$CPP"; then
4341 CPP=
4342 fi
4343 if test -z "$CPP"; then
4344 if ${ac_cv_prog_CPP+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 # Double quotes because CPP needs to be expanded
4348 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4349 do
4350 ac_preproc_ok=false
4351 for ac_c_preproc_warn_flag in '' yes
4352 do
4353 # Use a header file that comes with gcc, so configuring glibc
4354 # with a fresh cross-compiler works.
4355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4356 # <limits.h> exists even on freestanding compilers.
4357 # On the NeXT, cc -E runs the code through the compiler's parser,
4358 # not just through cpp. "Syntax error" is here to catch this case.
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4361 #ifdef __STDC__
4362 # include <limits.h>
4363 #else
4364 # include <assert.h>
4365 #endif
4366 Syntax error
4367 _ACEOF
4368 if ac_fn_c_try_cpp "$LINENO"; then :
4369
4370 else
4371 # Broken: fails on valid input.
4372 continue
4373 fi
4374 rm -f conftest.err conftest.i conftest.$ac_ext
4375
4376 # OK, works on sane cases. Now check whether nonexistent headers
4377 # can be detected and how.
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380 #include <ac_nonexistent.h>
4381 _ACEOF
4382 if ac_fn_c_try_cpp "$LINENO"; then :
4383 # Broken: success on invalid input.
4384 continue
4385 else
4386 # Passes both tests.
4387 ac_preproc_ok=:
4388 break
4389 fi
4390 rm -f conftest.err conftest.i conftest.$ac_ext
4391
4392 done
4393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4394 rm -f conftest.i conftest.err conftest.$ac_ext
4395 if $ac_preproc_ok; then :
4396 break
4397 fi
4398
4399 done
4400 ac_cv_prog_CPP=$CPP
4401
4402 fi
4403 CPP=$ac_cv_prog_CPP
4404 else
4405 ac_cv_prog_CPP=$CPP
4406 fi
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4408 $as_echo "$CPP" >&6; }
4409 ac_preproc_ok=false
4410 for ac_c_preproc_warn_flag in '' yes
4411 do
4412 # Use a header file that comes with gcc, so configuring glibc
4413 # with a fresh cross-compiler works.
4414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4415 # <limits.h> exists even on freestanding compilers.
4416 # On the NeXT, cc -E runs the code through the compiler's parser,
4417 # not just through cpp. "Syntax error" is here to catch this case.
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 #ifdef __STDC__
4421 # include <limits.h>
4422 #else
4423 # include <assert.h>
4424 #endif
4425 Syntax error
4426 _ACEOF
4427 if ac_fn_c_try_cpp "$LINENO"; then :
4428
4429 else
4430 # Broken: fails on valid input.
4431 continue
4432 fi
4433 rm -f conftest.err conftest.i conftest.$ac_ext
4434
4435 # OK, works on sane cases. Now check whether nonexistent headers
4436 # can be detected and how.
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #include <ac_nonexistent.h>
4440 _ACEOF
4441 if ac_fn_c_try_cpp "$LINENO"; then :
4442 # Broken: success on invalid input.
4443 continue
4444 else
4445 # Passes both tests.
4446 ac_preproc_ok=:
4447 break
4448 fi
4449 rm -f conftest.err conftest.i conftest.$ac_ext
4450
4451 done
4452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4453 rm -f conftest.i conftest.err conftest.$ac_ext
4454 if $ac_preproc_ok; then :
4455
4456 else
4457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4459 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4460 See \`config.log' for more details" "$LINENO" 5; }
4461 fi
4462
4463 ac_ext=c
4464 ac_cpp='$CPP $CPPFLAGS'
4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4468
4469
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4471 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4472 if ${ac_cv_path_GREP+:} false; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 if test -z "$GREP"; then
4476 ac_path_GREP_found=false
4477 # Loop through the user's path and test for each of PROGNAME-LIST
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4480 do
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_prog in grep ggrep; do
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4486 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4487 # Check for GNU ac_path_GREP and select it if it is found.
4488 # Check for GNU $ac_path_GREP
4489 case `"$ac_path_GREP" --version 2>&1` in
4490 *GNU*)
4491 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4492 *)
4493 ac_count=0
4494 $as_echo_n 0123456789 >"conftest.in"
4495 while :
4496 do
4497 cat "conftest.in" "conftest.in" >"conftest.tmp"
4498 mv "conftest.tmp" "conftest.in"
4499 cp "conftest.in" "conftest.nl"
4500 $as_echo 'GREP' >> "conftest.nl"
4501 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4503 as_fn_arith $ac_count + 1 && ac_count=$as_val
4504 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4505 # Best one so far, save it but keep looking for a better one
4506 ac_cv_path_GREP="$ac_path_GREP"
4507 ac_path_GREP_max=$ac_count
4508 fi
4509 # 10*(2^10) chars as input seems more than enough
4510 test $ac_count -gt 10 && break
4511 done
4512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4513 esac
4514
4515 $ac_path_GREP_found && break 3
4516 done
4517 done
4518 done
4519 IFS=$as_save_IFS
4520 if test -z "$ac_cv_path_GREP"; then
4521 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4522 fi
4523 else
4524 ac_cv_path_GREP=$GREP
4525 fi
4526
4527 fi
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4529 $as_echo "$ac_cv_path_GREP" >&6; }
4530 GREP="$ac_cv_path_GREP"
4531
4532
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4534 $as_echo_n "checking for egrep... " >&6; }
4535 if ${ac_cv_path_EGREP+:} false; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4539 then ac_cv_path_EGREP="$GREP -E"
4540 else
4541 if test -z "$EGREP"; then
4542 ac_path_EGREP_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4546 do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_prog in egrep; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4552 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4553 # Check for GNU ac_path_EGREP and select it if it is found.
4554 # Check for GNU $ac_path_EGREP
4555 case `"$ac_path_EGREP" --version 2>&1` in
4556 *GNU*)
4557 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4558 *)
4559 ac_count=0
4560 $as_echo_n 0123456789 >"conftest.in"
4561 while :
4562 do
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo 'EGREP' >> "conftest.nl"
4567 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569 as_fn_arith $ac_count + 1 && ac_count=$as_val
4570 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_EGREP="$ac_path_EGREP"
4573 ac_path_EGREP_max=$ac_count
4574 fi
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4577 done
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579 esac
4580
4581 $ac_path_EGREP_found && break 3
4582 done
4583 done
4584 done
4585 IFS=$as_save_IFS
4586 if test -z "$ac_cv_path_EGREP"; then
4587 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4588 fi
4589 else
4590 ac_cv_path_EGREP=$EGREP
4591 fi
4592
4593 fi
4594 fi
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4596 $as_echo "$ac_cv_path_EGREP" >&6; }
4597 EGREP="$ac_cv_path_EGREP"
4598
4599
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4601 $as_echo_n "checking for ANSI C header files... " >&6; }
4602 if ${ac_cv_header_stdc+:} false; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607 #include <stdlib.h>
4608 #include <stdarg.h>
4609 #include <string.h>
4610 #include <float.h>
4611
4612 int
4613 main ()
4614 {
4615
4616 ;
4617 return 0;
4618 }
4619 _ACEOF
4620 if ac_fn_c_try_compile "$LINENO"; then :
4621 ac_cv_header_stdc=yes
4622 else
4623 ac_cv_header_stdc=no
4624 fi
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626
4627 if test $ac_cv_header_stdc = yes; then
4628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4631 #include <string.h>
4632
4633 _ACEOF
4634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4635 $EGREP "memchr" >/dev/null 2>&1; then :
4636
4637 else
4638 ac_cv_header_stdc=no
4639 fi
4640 rm -f conftest*
4641
4642 fi
4643
4644 if test $ac_cv_header_stdc = yes; then
4645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648 #include <stdlib.h>
4649
4650 _ACEOF
4651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4652 $EGREP "free" >/dev/null 2>&1; then :
4653
4654 else
4655 ac_cv_header_stdc=no
4656 fi
4657 rm -f conftest*
4658
4659 fi
4660
4661 if test $ac_cv_header_stdc = yes; then
4662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4663 if test "$cross_compiling" = yes; then :
4664 :
4665 else
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668 #include <ctype.h>
4669 #include <stdlib.h>
4670 #if ((' ' & 0x0FF) == 0x020)
4671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4673 #else
4674 # define ISLOWER(c) \
4675 (('a' <= (c) && (c) <= 'i') \
4676 || ('j' <= (c) && (c) <= 'r') \
4677 || ('s' <= (c) && (c) <= 'z'))
4678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4679 #endif
4680
4681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4682 int
4683 main ()
4684 {
4685 int i;
4686 for (i = 0; i < 256; i++)
4687 if (XOR (islower (i), ISLOWER (i))
4688 || toupper (i) != TOUPPER (i))
4689 return 2;
4690 return 0;
4691 }
4692 _ACEOF
4693 if ac_fn_c_try_run "$LINENO"; then :
4694
4695 else
4696 ac_cv_header_stdc=no
4697 fi
4698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4699 conftest.$ac_objext conftest.beam conftest.$ac_ext
4700 fi
4701
4702 fi
4703 fi
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4705 $as_echo "$ac_cv_header_stdc" >&6; }
4706 if test $ac_cv_header_stdc = yes; then
4707
4708 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4709
4710 fi
4711
4712 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4713 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4714 inttypes.h stdint.h unistd.h
4715 do :
4716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4717 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4718 "
4719 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4720 cat >>confdefs.h <<_ACEOF
4721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4722 _ACEOF
4723
4724 fi
4725
4726 done
4727
4728
4729
4730 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4731 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4732 MINIX=yes
4733 else
4734 MINIX=
4735 fi
4736
4737
4738 if test "$MINIX" = yes; then
4739
4740 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4741
4742
4743 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4744
4745
4746 $as_echo "#define _MINIX 1" >>confdefs.h
4747
4748 fi
4749
4750
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4752 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4753 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758
4759 # define __EXTENSIONS__ 1
4760 $ac_includes_default
4761 int
4762 main ()
4763 {
4764
4765 ;
4766 return 0;
4767 }
4768 _ACEOF
4769 if ac_fn_c_try_compile "$LINENO"; then :
4770 ac_cv_safe_to_define___extensions__=yes
4771 else
4772 ac_cv_safe_to_define___extensions__=no
4773 fi
4774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775 fi
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4777 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4778 test $ac_cv_safe_to_define___extensions__ = yes &&
4779 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4780
4781 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4782
4783 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4784
4785 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4786
4787 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4788
4789
4790
4791 ### Use -Wno-pointer-sign if the compiler supports it
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4793 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4794 SAVE_CFLAGS="$CFLAGS"
4795 CFLAGS="$CFLAGS -Wno-pointer-sign"
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4798
4799 int
4800 main ()
4801 {
4802
4803 ;
4804 return 0;
4805 }
4806 _ACEOF
4807 if ac_fn_c_try_compile "$LINENO"; then :
4808 has_option=yes
4809 else
4810 has_option=no
4811 fi
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 if test $has_option = yes; then
4814 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4815 fi
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4817 $as_echo "$has_option" >&6; }
4818 CFLAGS="$SAVE_CFLAGS"
4819 unset has_option
4820 unset SAVE_CFLAGS
4821
4822 ### Use -Wdeclaration-after-statement if the compiler supports it
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4824 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4825 SAVE_CFLAGS="$CFLAGS"
4826 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4829
4830 int
4831 main ()
4832 {
4833
4834 ;
4835 return 0;
4836 }
4837 _ACEOF
4838 if ac_fn_c_try_compile "$LINENO"; then :
4839 has_option=yes
4840 else
4841 has_option=no
4842 fi
4843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4844 if test $has_option = yes; then
4845 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4846 fi
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4848 $as_echo "$has_option" >&6; }
4849 CFLAGS="$SAVE_CFLAGS"
4850 unset has_option
4851 unset SAVE_CFLAGS
4852
4853 ### Use -Wold-style-definition if the compiler supports it
4854 # This can be removed when conversion to standard C is finished.
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4856 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4857 SAVE_CFLAGS="$CFLAGS"
4858 CFLAGS="$CFLAGS -Wold-style-definition"
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861
4862 int
4863 main ()
4864 {
4865
4866 ;
4867 return 0;
4868 }
4869 _ACEOF
4870 if ac_fn_c_try_compile "$LINENO"; then :
4871 has_option=yes
4872 else
4873 has_option=no
4874 fi
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876 if test $has_option = yes; then
4877 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4878 fi
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4880 $as_echo "$has_option" >&6; }
4881 CFLAGS="$SAVE_CFLAGS"
4882 unset has_option
4883 unset SAVE_CFLAGS
4884
4885 ### Use -Wimplicit-function-declaration if the compiler supports it
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4887 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4888 SAVE_CFLAGS="$CFLAGS"
4889 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4892
4893 int
4894 main ()
4895 {
4896
4897 ;
4898 return 0;
4899 }
4900 _ACEOF
4901 if ac_fn_c_try_compile "$LINENO"; then :
4902 has_option=yes
4903 else
4904 has_option=no
4905 fi
4906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4907 if test $has_option = yes; then
4908 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4909 fi
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4911 $as_echo "$has_option" >&6; }
4912 CFLAGS="$SAVE_CFLAGS"
4913 unset has_option
4914 unset SAVE_CFLAGS
4915
4916
4917
4918
4919 #### Some other nice autoconf tests.
4920
4921 ac_ext=c
4922 ac_cpp='$CPP $CPPFLAGS'
4923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4927 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4928 # On Suns, sometimes $CPP names a directory.
4929 if test -n "$CPP" && test -d "$CPP"; then
4930 CPP=
4931 fi
4932 if test -z "$CPP"; then
4933 if ${ac_cv_prog_CPP+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 # Double quotes because CPP needs to be expanded
4937 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4938 do
4939 ac_preproc_ok=false
4940 for ac_c_preproc_warn_flag in '' yes
4941 do
4942 # Use a header file that comes with gcc, so configuring glibc
4943 # with a fresh cross-compiler works.
4944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4945 # <limits.h> exists even on freestanding compilers.
4946 # On the NeXT, cc -E runs the code through the compiler's parser,
4947 # not just through cpp. "Syntax error" is here to catch this case.
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 #ifdef __STDC__
4951 # include <limits.h>
4952 #else
4953 # include <assert.h>
4954 #endif
4955 Syntax error
4956 _ACEOF
4957 if ac_fn_c_try_cpp "$LINENO"; then :
4958
4959 else
4960 # Broken: fails on valid input.
4961 continue
4962 fi
4963 rm -f conftest.err conftest.i conftest.$ac_ext
4964
4965 # OK, works on sane cases. Now check whether nonexistent headers
4966 # can be detected and how.
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4969 #include <ac_nonexistent.h>
4970 _ACEOF
4971 if ac_fn_c_try_cpp "$LINENO"; then :
4972 # Broken: success on invalid input.
4973 continue
4974 else
4975 # Passes both tests.
4976 ac_preproc_ok=:
4977 break
4978 fi
4979 rm -f conftest.err conftest.i conftest.$ac_ext
4980
4981 done
4982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4983 rm -f conftest.i conftest.err conftest.$ac_ext
4984 if $ac_preproc_ok; then :
4985 break
4986 fi
4987
4988 done
4989 ac_cv_prog_CPP=$CPP
4990
4991 fi
4992 CPP=$ac_cv_prog_CPP
4993 else
4994 ac_cv_prog_CPP=$CPP
4995 fi
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4997 $as_echo "$CPP" >&6; }
4998 ac_preproc_ok=false
4999 for ac_c_preproc_warn_flag in '' yes
5000 do
5001 # Use a header file that comes with gcc, so configuring glibc
5002 # with a fresh cross-compiler works.
5003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5004 # <limits.h> exists even on freestanding compilers.
5005 # On the NeXT, cc -E runs the code through the compiler's parser,
5006 # not just through cpp. "Syntax error" is here to catch this case.
5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008 /* end confdefs.h. */
5009 #ifdef __STDC__
5010 # include <limits.h>
5011 #else
5012 # include <assert.h>
5013 #endif
5014 Syntax error
5015 _ACEOF
5016 if ac_fn_c_try_cpp "$LINENO"; then :
5017
5018 else
5019 # Broken: fails on valid input.
5020 continue
5021 fi
5022 rm -f conftest.err conftest.i conftest.$ac_ext
5023
5024 # OK, works on sane cases. Now check whether nonexistent headers
5025 # can be detected and how.
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5028 #include <ac_nonexistent.h>
5029 _ACEOF
5030 if ac_fn_c_try_cpp "$LINENO"; then :
5031 # Broken: success on invalid input.
5032 continue
5033 else
5034 # Passes both tests.
5035 ac_preproc_ok=:
5036 break
5037 fi
5038 rm -f conftest.err conftest.i conftest.$ac_ext
5039
5040 done
5041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5042 rm -f conftest.i conftest.err conftest.$ac_ext
5043 if $ac_preproc_ok; then :
5044
5045 else
5046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5048 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5049 See \`config.log' for more details" "$LINENO" 5; }
5050 fi
5051
5052 ac_ext=c
5053 ac_cpp='$CPP $CPPFLAGS'
5054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5057
5058 # Find a good install program. We prefer a C program (faster),
5059 # so one script is as good as another. But avoid the broken or
5060 # incompatible versions:
5061 # SysV /etc/install, /usr/sbin/install
5062 # SunOS /usr/etc/install
5063 # IRIX /sbin/install
5064 # AIX /bin/install
5065 # AmigaOS /C/install, which installs bootblocks on floppy discs
5066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5069 # OS/2's system install, which has a completely different semantic
5070 # ./install, which can be erroneously created by make from ./install.sh.
5071 # Reject install programs that cannot install multiple files.
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5073 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5074 if test -z "$INSTALL"; then
5075 if ${ac_cv_path_install+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 # Account for people who put trailing slashes in PATH elements.
5084 case $as_dir/ in #((
5085 ./ | .// | /[cC]/* | \
5086 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5087 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5088 /usr/ucb/* ) ;;
5089 *)
5090 # OSF1 and SCO ODT 3.0 have their own names for install.
5091 # Don't use installbsd from OSF since it installs stuff as root
5092 # by default.
5093 for ac_prog in ginstall scoinst install; do
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5096 if test $ac_prog = install &&
5097 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5098 # AIX install. It has an incompatible calling convention.
5099 :
5100 elif test $ac_prog = install &&
5101 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5102 # program-specific install script used by HP pwplus--don't use.
5103 :
5104 else
5105 rm -rf conftest.one conftest.two conftest.dir
5106 echo one > conftest.one
5107 echo two > conftest.two
5108 mkdir conftest.dir
5109 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5110 test -s conftest.one && test -s conftest.two &&
5111 test -s conftest.dir/conftest.one &&
5112 test -s conftest.dir/conftest.two
5113 then
5114 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5115 break 3
5116 fi
5117 fi
5118 fi
5119 done
5120 done
5121 ;;
5122 esac
5123
5124 done
5125 IFS=$as_save_IFS
5126
5127 rm -rf conftest.one conftest.two conftest.dir
5128
5129 fi
5130 if test "${ac_cv_path_install+set}" = set; then
5131 INSTALL=$ac_cv_path_install
5132 else
5133 # As a last resort, use the slow shell script. Don't cache a
5134 # value for INSTALL within a source directory, because that will
5135 # break other packages using the cache if that directory is
5136 # removed, or if the value is a relative name.
5137 INSTALL=$ac_install_sh
5138 fi
5139 fi
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5141 $as_echo "$INSTALL" >&6; }
5142
5143 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5144 # It thinks the first close brace ends the variable substitution.
5145 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5146
5147 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5148
5149 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5150
5151 if test "x$RANLIB" = x; then
5152 if test -n "$ac_tool_prefix"; then
5153 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5154 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if ${ac_cv_prog_RANLIB+:} false; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 if test -n "$RANLIB"; then
5161 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5162 else
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5173 fi
5174 done
5175 done
5176 IFS=$as_save_IFS
5177
5178 fi
5179 fi
5180 RANLIB=$ac_cv_prog_RANLIB
5181 if test -n "$RANLIB"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5183 $as_echo "$RANLIB" >&6; }
5184 else
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5187 fi
5188
5189
5190 fi
5191 if test -z "$ac_cv_prog_RANLIB"; then
5192 ac_ct_RANLIB=$RANLIB
5193 # Extract the first word of "ranlib", so it can be a program name with args.
5194 set dummy ranlib; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 if test -n "$ac_ct_RANLIB"; then
5201 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210 ac_cv_prog_ac_ct_RANLIB="ranlib"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5213 fi
5214 done
5215 done
5216 IFS=$as_save_IFS
5217
5218 fi
5219 fi
5220 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5221 if test -n "$ac_ct_RANLIB"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5223 $as_echo "$ac_ct_RANLIB" >&6; }
5224 else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5227 fi
5228
5229 if test "x$ac_ct_RANLIB" = x; then
5230 RANLIB=":"
5231 else
5232 case $cross_compiling:$ac_tool_warned in
5233 yes:)
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236 ac_tool_warned=yes ;;
5237 esac
5238 RANLIB=$ac_ct_RANLIB
5239 fi
5240 else
5241 RANLIB="$ac_cv_prog_RANLIB"
5242 fi
5243
5244 fi
5245
5246 ## Although we're running on an amd64 kernel, we're actually compiling for
5247 ## the x86 architecture. The user should probably have provided an
5248 ## explicit --build to `configure', but if everything else than the kernel
5249 ## is running in i386 mode, we can help them out.
5250 if test "$machine" = "amdx86-64"; then
5251 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5252 if test "x$ac_cv_have_decl_i386" = xyes; then :
5253
5254 fi
5255
5256 if test "$ac_cv_have_decl_i386" = "yes"; then
5257 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5258 machine=intel386
5259 machfile="m/${machine}.h"
5260 fi
5261 fi
5262
5263 # Extract the first word of "install-info", so it can be a program name with args.
5264 set dummy install-info; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 case $INSTALL_INFO in
5271 [\\/]* | ?:[\\/]*)
5272 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5273 ;;
5274 *)
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5285 fi
5286 done
5287 done
5288 IFS=$as_save_IFS
5289
5290 ;;
5291 esac
5292 fi
5293 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5294 if test -n "$INSTALL_INFO"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5296 $as_echo "$INSTALL_INFO" >&6; }
5297 else
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5300 fi
5301
5302
5303 # Extract the first word of "install-info", so it can be a program name with args.
5304 set dummy install-info; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 case $INSTALL_INFO in
5311 [\\/]* | ?:[\\/]*)
5312 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5313 ;;
5314 *)
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in /usr/sbin
5317 do
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 break 2
5325 fi
5326 done
5327 done
5328 IFS=$as_save_IFS
5329
5330 ;;
5331 esac
5332 fi
5333 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5334 if test -n "$INSTALL_INFO"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5336 $as_echo "$INSTALL_INFO" >&6; }
5337 else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5340 fi
5341
5342
5343 # Extract the first word of "install-info", so it can be a program name with args.
5344 set dummy install-info; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 case $INSTALL_INFO in
5351 [\\/]* | ?:[\\/]*)
5352 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5353 ;;
5354 *)
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in /sbin
5357 do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5365 fi
5366 done
5367 done
5368 IFS=$as_save_IFS
5369
5370 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5371 ;;
5372 esac
5373 fi
5374 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5375 if test -n "$INSTALL_INFO"; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5377 $as_echo "$INSTALL_INFO" >&6; }
5378 else
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380 $as_echo "no" >&6; }
5381 fi
5382
5383
5384 # Extract the first word of "gzip", so it can be a program name with args.
5385 set dummy gzip; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_path_GZIP_PROG+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 case $GZIP_PROG in
5392 [\\/]* | ?:[\\/]*)
5393 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5394 ;;
5395 *)
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 break 2
5406 fi
5407 done
5408 done
5409 IFS=$as_save_IFS
5410
5411 ;;
5412 esac
5413 fi
5414 GZIP_PROG=$ac_cv_path_GZIP_PROG
5415 if test -n "$GZIP_PROG"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5417 $as_echo "$GZIP_PROG" >&6; }
5418 else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5421 fi
5422
5423
5424
5425
5426 ## Need makeinfo >= 4.6 (?) to build the manuals.
5427 # Extract the first word of "makeinfo", so it can be a program name with args.
5428 set dummy makeinfo; ac_word=$2
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if ${ac_cv_path_MAKEINFO+:} false; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 case $MAKEINFO in
5435 [\\/]* | ?:[\\/]*)
5436 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5437 ;;
5438 *)
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5441 do
5442 IFS=$as_save_IFS
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 break 2
5449 fi
5450 done
5451 done
5452 IFS=$as_save_IFS
5453
5454 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5455 ;;
5456 esac
5457 fi
5458 MAKEINFO=$ac_cv_path_MAKEINFO
5459 if test -n "$MAKEINFO"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5461 $as_echo "$MAKEINFO" >&6; }
5462 else
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5465 fi
5466
5467
5468 if test "$MAKEINFO" != "no" && \
5469 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
5470 MAKEINFO=no
5471 fi
5472
5473 ## Makeinfo is unusual. For a released Emacs, the manuals are
5474 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5475 ## therefore in the category of "special tools" not normally required, which
5476 ## configure does not have to check for (eg autoconf itself).
5477 ## In a Bazaar checkout on the other hand, the manuals are not included.
5478 ## So makeinfo is a requirement to build from Bazaar, and configure
5479 ## should test for it as it does for any other build requirement.
5480 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5481 ## with pre-built manuals, from a Bazaar checkout.
5482 HAVE_MAKEINFO=yes
5483
5484 if test "$MAKEINFO" = "no"; then
5485 MAKEINFO=makeinfo
5486 if test "x${with_makeinfo}" = "xno"; then
5487 HAVE_MAKEINFO=no
5488 elif test ! -e $srcdir/info/emacs; then
5489 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
5490 source tree does not seem to have pre-built manuals in the \`info' directory.
5491 Either install a suitable version of makeinfo, or re-run configure
5492 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5493 fi
5494 fi
5495
5496
5497
5498 if test x$GCC = xyes; then
5499 test "x$GCC_LINK_TEST_OPTIONS" != x && \
5500 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5501 else
5502 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
5503 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5504 fi
5505
5506
5507 late_LDFLAGS=$LDFLAGS
5508 if test x$GCC = xyes; then
5509 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5510 else
5511 LDFLAGS="$LDFLAGS -znocombreloc"
5512 fi
5513
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5515 $as_echo_n "checking for -znocombreloc... " >&6; }
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518
5519 int
5520 main ()
5521 {
5522
5523 ;
5524 return 0;
5525 }
5526 _ACEOF
5527 if ac_fn_c_try_link "$LINENO"; then :
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5529 $as_echo "yes" >&6; }
5530 else
5531 LDFLAGS=$late_LDFLAGS
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5534 fi
5535 rm -f core conftest.err conftest.$ac_objext \
5536 conftest$ac_exeext conftest.$ac_ext
5537
5538
5539 # The value of CPP is a quoted variable reference, so we need to do this
5540 # to get its actual value...
5541 CPP=`eval "echo $CPP"`
5542
5543
5544 CANNOT_DUMP=no
5545 case "$opsys" in
5546 your-opsys-here)
5547 CANNOT_DUMP=yes
5548
5549 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5550
5551 ;;
5552 esac
5553
5554
5555
5556 UNEXEC_OBJ=unexelf.o
5557 case "$opsys" in
5558 # MSDOS uses unexcoff.o
5559 # MSWindows uses unexw32.o
5560 aix4-2)
5561 UNEXEC_OBJ=unexaix.o
5562 ;;
5563 cygwin)
5564 UNEXEC_OBJ=unexcw.o
5565 ;;
5566 darwin)
5567 UNEXEC_OBJ=unexmacosx.o
5568 ;;
5569 hpux10-20 | hpux11)
5570 UNEXEC_OBJ=unexhp9k800.o
5571 ;;
5572 sol2-10)
5573 # Use the Solaris dldump() function, called from unexsol.c, to dump
5574 # emacs, instead of the generic ELF dump code found in unexelf.c.
5575 # The resulting binary has a complete symbol table, and is better
5576 # for debugging and other observability tools (debuggers, pstack, etc).
5577 #
5578 # If you encounter a problem using dldump(), please consider sending
5579 # a message to the OpenSolaris tools-linking mailing list:
5580 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5581 #
5582 # It is likely that dldump() works with older Solaris too, but this has
5583 # not been tested, so for now this change is for Solaris 10 or newer.
5584 UNEXEC_OBJ=unexsol.o
5585 ;;
5586 esac
5587
5588 LD_SWITCH_SYSTEM=
5589 case "$opsys" in
5590 freebsd)
5591 ## Let `ld' find image libs and similar things in /usr/local/lib.
5592 ## The system compiler, GCC, has apparently been modified to not
5593 ## look there, contrary to what a stock GCC would do.
5594 LD_SWITCH_SYSTEM=-L/usr/local/lib
5595 ;;
5596
5597 gnu-linux)
5598 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5599 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
5600 ;;
5601
5602 netbsd)
5603 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5604 ;;
5605
5606 openbsd)
5607 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5608 ## otherwise Emacs dumps core on elf systems.
5609 LD_SWITCH_SYSTEM="-Z"
5610 ;;
5611 esac
5612
5613
5614 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5615
5616 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5617 ## which has not been defined yet. When this was handled with cpp,
5618 ## it was expanded to null when configure sourced the s/*.h file.
5619 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5620 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5621 ## (or somesuch), but because it is supposed to go at the _front_
5622 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5623 ## Compare with the gnu-linux case below, which added to the end
5624 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5625 ## LD_SWITCH_SYSTEM_TEMACS.
5626 case "$opsys" in
5627 netbsd|openbsd)
5628 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5629 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5630 esac
5631
5632
5633 C_SWITCH_MACHINE=
5634 if test "$machine" = "alpha"; then
5635 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5636 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
5637
5638 fi
5639
5640 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5641 ## With ELF, make sure that all common symbols get allocated to in the
5642 ## data section. Otherwise, the dump of temacs may miss variables in
5643 ## the shared library that have been initialized. For example, with
5644 ## GNU libc, __malloc_initialized would normally be resolved to the
5645 ## shared library's .bss section, which is fatal.
5646 if test "x$GCC" = "xyes"; then
5647 C_SWITCH_MACHINE="-fno-common"
5648 else
5649 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5650 fi
5651 else
5652 UNEXEC_OBJ=unexalpha.o
5653 fi
5654 fi
5655
5656
5657
5658
5659 C_SWITCH_SYSTEM=
5660 ## Some programs in src produce warnings saying certain subprograms
5661 ## are too complex and need a MAXMEM value greater than 2000 for
5662 ## additional optimization. --nils@exp-math.uni-essen.de
5663 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5664 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5665 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5666 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5667
5668
5669
5670 LIBS_SYSTEM=
5671 case "$opsys" in
5672 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5673 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5674
5675 freebsd) LIBS_SYSTEM="-lutil" ;;
5676
5677 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5678
5679 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5680
5681 ## Motif needs -lgen.
5682 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5683 esac
5684
5685
5686
5687 ### Make sure subsequent tests use flags consistent with the build flags.
5688
5689 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5690 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5691 else
5692 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5693 fi
5694
5695
5696
5697 # Check whether --enable-largefile was given.
5698 if test "${enable_largefile+set}" = set; then :
5699 enableval=$enable_largefile;
5700 fi
5701
5702 if test "$enable_largefile" != no; then
5703
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5705 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5706 if ${ac_cv_sys_largefile_CC+:} false; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 ac_cv_sys_largefile_CC=no
5710 if test "$GCC" != yes; then
5711 ac_save_CC=$CC
5712 while :; do
5713 # IRIX 6.2 and later do not support large files by default,
5714 # so use the C compiler's -n32 option if that helps.
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717 #include <sys/types.h>
5718 /* Check that off_t can represent 2**63 - 1 correctly.
5719 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5720 since some C++ compilers masquerading as C compilers
5721 incorrectly reject 9223372036854775807. */
5722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5723 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5724 && LARGE_OFF_T % 2147483647 == 1)
5725 ? 1 : -1];
5726 int
5727 main ()
5728 {
5729
5730 ;
5731 return 0;
5732 }
5733 _ACEOF
5734 if ac_fn_c_try_compile "$LINENO"; then :
5735 break
5736 fi
5737 rm -f core conftest.err conftest.$ac_objext
5738 CC="$CC -n32"
5739 if ac_fn_c_try_compile "$LINENO"; then :
5740 ac_cv_sys_largefile_CC=' -n32'; break
5741 fi
5742 rm -f core conftest.err conftest.$ac_objext
5743 break
5744 done
5745 CC=$ac_save_CC
5746 rm -f conftest.$ac_ext
5747 fi
5748 fi
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5750 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5751 if test "$ac_cv_sys_largefile_CC" != no; then
5752 CC=$CC$ac_cv_sys_largefile_CC
5753 fi
5754
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5756 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5757 if ${ac_cv_sys_file_offset_bits+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 while :; do
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 #include <sys/types.h>
5764 /* Check that off_t can represent 2**63 - 1 correctly.
5765 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5766 since some C++ compilers masquerading as C compilers
5767 incorrectly reject 9223372036854775807. */
5768 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5769 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5770 && LARGE_OFF_T % 2147483647 == 1)
5771 ? 1 : -1];
5772 int
5773 main ()
5774 {
5775
5776 ;
5777 return 0;
5778 }
5779 _ACEOF
5780 if ac_fn_c_try_compile "$LINENO"; then :
5781 ac_cv_sys_file_offset_bits=no; break
5782 fi
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5786 #define _FILE_OFFSET_BITS 64
5787 #include <sys/types.h>
5788 /* Check that off_t can represent 2**63 - 1 correctly.
5789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5790 since some C++ compilers masquerading as C compilers
5791 incorrectly reject 9223372036854775807. */
5792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5794 && LARGE_OFF_T % 2147483647 == 1)
5795 ? 1 : -1];
5796 int
5797 main ()
5798 {
5799
5800 ;
5801 return 0;
5802 }
5803 _ACEOF
5804 if ac_fn_c_try_compile "$LINENO"; then :
5805 ac_cv_sys_file_offset_bits=64; break
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 ac_cv_sys_file_offset_bits=unknown
5809 break
5810 done
5811 fi
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5813 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5814 case $ac_cv_sys_file_offset_bits in #(
5815 no | unknown) ;;
5816 *)
5817 cat >>confdefs.h <<_ACEOF
5818 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5819 _ACEOF
5820 ;;
5821 esac
5822 rm -rf conftest*
5823 if test $ac_cv_sys_file_offset_bits = unknown; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5825 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5826 if ${ac_cv_sys_large_files+:} false; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 while :; do
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 #include <sys/types.h>
5833 /* Check that off_t can represent 2**63 - 1 correctly.
5834 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5835 since some C++ compilers masquerading as C compilers
5836 incorrectly reject 9223372036854775807. */
5837 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5838 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5839 && LARGE_OFF_T % 2147483647 == 1)
5840 ? 1 : -1];
5841 int
5842 main ()
5843 {
5844
5845 ;
5846 return 0;
5847 }
5848 _ACEOF
5849 if ac_fn_c_try_compile "$LINENO"; then :
5850 ac_cv_sys_large_files=no; break
5851 fi
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5855 #define _LARGE_FILES 1
5856 #include <sys/types.h>
5857 /* Check that off_t can represent 2**63 - 1 correctly.
5858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5859 since some C++ compilers masquerading as C compilers
5860 incorrectly reject 9223372036854775807. */
5861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5863 && LARGE_OFF_T % 2147483647 == 1)
5864 ? 1 : -1];
5865 int
5866 main ()
5867 {
5868
5869 ;
5870 return 0;
5871 }
5872 _ACEOF
5873 if ac_fn_c_try_compile "$LINENO"; then :
5874 ac_cv_sys_large_files=1; break
5875 fi
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 ac_cv_sys_large_files=unknown
5878 break
5879 done
5880 fi
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5882 $as_echo "$ac_cv_sys_large_files" >&6; }
5883 case $ac_cv_sys_large_files in #(
5884 no | unknown) ;;
5885 *)
5886 cat >>confdefs.h <<_ACEOF
5887 #define _LARGE_FILES $ac_cv_sys_large_files
5888 _ACEOF
5889 ;;
5890 esac
5891 rm -rf conftest*
5892 fi
5893 fi
5894
5895
5896
5897 ## If user specified a crt-dir, use that unconditionally.
5898 if test "X$CRT_DIR" = "X"; then
5899
5900 case "$canonical" in
5901 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5902 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5903 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5904 ## For anything else (eg /usr/lib32), it is up the user to specify
5905 ## the location (bug#5655).
5906 ## Test for crtn.o, not just the directory, because sometimes the
5907 ## directory exists but does not have the relevant files (bug#1287).
5908 ## FIXME better to test for binary compatibility somehow.
5909 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5910 ;;
5911
5912 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5913 esac
5914
5915 case "$opsys" in
5916 hpux10-20) CRT_DIR=/lib ;;
5917 esac
5918
5919 ## Default is /usr/lib.
5920 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5921
5922 else
5923
5924 ## Some platforms don't use any of these files, so it is not
5925 ## appropriate to put this test outside the if block.
5926 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5927 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
5928
5929 fi
5930
5931
5932
5933 LIB_MATH=-lm
5934 LIB_STANDARD=
5935 START_FILES=
5936
5937 case $opsys in
5938 cygwin )
5939 LIB_MATH=
5940 START_FILES='pre-crt0.o'
5941 ;;
5942 darwin )
5943 ## Adding -lm confuses the dynamic linker, so omit it.
5944 LIB_MATH=
5945 START_FILES='pre-crt0.o'
5946 ;;
5947 freebsd )
5948 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5949 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5950 ;;
5951 gnu-linux | gnu-kfreebsd )
5952 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5953 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5954 ;;
5955 hpux10-20 | hpux11 )
5956 LIB_STANDARD=-lc
5957 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5958 ;;
5959 netbsd | openbsd )
5960 if test -f $CRT_DIR/crti.o; then
5961 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5962 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5963 else
5964 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5965 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5966 fi
5967 ;;
5968 esac
5969
5970
5971
5972
5973
5974
5975
5976 if test "${with_sound}" != "no"; then
5977 # Sound support for GNU/Linux and the free BSDs.
5978 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5979 do :
5980 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5981 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5982 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5983 cat >>confdefs.h <<_ACEOF
5984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5985 _ACEOF
5986 have_sound_header=yes
5987 fi
5988
5989 done
5990
5991 # Emulation library used on NetBSD.
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5993 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5994 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5997 ac_check_lib_save_LIBS=$LIBS
5998 LIBS="-lossaudio $LIBS"
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6001
6002 /* Override any GCC internal prototype to avoid an error.
6003 Use char because int might match the return type of a GCC
6004 builtin and then its argument prototype would still apply. */
6005 #ifdef __cplusplus
6006 extern "C"
6007 #endif
6008 char _oss_ioctl ();
6009 int
6010 main ()
6011 {
6012 return _oss_ioctl ();
6013 ;
6014 return 0;
6015 }
6016 _ACEOF
6017 if ac_fn_c_try_link "$LINENO"; then :
6018 ac_cv_lib_ossaudio__oss_ioctl=yes
6019 else
6020 ac_cv_lib_ossaudio__oss_ioctl=no
6021 fi
6022 rm -f core conftest.err conftest.$ac_objext \
6023 conftest$ac_exeext conftest.$ac_ext
6024 LIBS=$ac_check_lib_save_LIBS
6025 fi
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6027 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6028 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
6029 LIBSOUND=-lossaudio
6030 else
6031 LIBSOUND=
6032 fi
6033
6034
6035
6036 ALSA_REQUIRED=1.0.0
6037 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6038
6039 succeeded=no
6040
6041 # Extract the first word of "pkg-config", so it can be a program name with args.
6042 set dummy pkg-config; ac_word=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 case $PKG_CONFIG in
6049 [\\/]* | ?:[\\/]*)
6050 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6051 ;;
6052 *)
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056 IFS=$as_save_IFS
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 break 2
6063 fi
6064 done
6065 done
6066 IFS=$as_save_IFS
6067
6068 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6069 ;;
6070 esac
6071 fi
6072 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6073 if test -n "$PKG_CONFIG"; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6075 $as_echo "$PKG_CONFIG" >&6; }
6076 else
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078 $as_echo "no" >&6; }
6079 fi
6080
6081
6082
6083 if test "$PKG_CONFIG" = "no" ; then
6084 HAVE_ALSA=no
6085 else
6086 PKG_CONFIG_MIN_VERSION=0.9.0
6087 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6089 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6090
6091 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6093 $as_echo "yes" >&6; }
6094 succeeded=yes
6095
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6097 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6098 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6100 $as_echo "$ALSA_CFLAGS" >&6; }
6101
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6103 $as_echo_n "checking ALSA_LIBS... " >&6; }
6104 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6106 $as_echo "$ALSA_LIBS" >&6; }
6107 else
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6110 ALSA_CFLAGS=""
6111 ALSA_LIBS=""
6112 ## If we have a custom action on failure, don't print errors, but
6113 ## do set a variable so people can do so.
6114 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6115
6116 fi
6117
6118
6119
6120 else
6121 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6122 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6123 fi
6124 fi
6125
6126 if test $succeeded = yes; then
6127 HAVE_ALSA=yes
6128 else
6129 HAVE_ALSA=no
6130 fi
6131
6132 if test $HAVE_ALSA = yes; then
6133 SAVE_CFLAGS="$CFLAGS"
6134 SAVE_LDFLAGS="$LDFLAGS"
6135 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6136 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6139 #include <asoundlib.h>
6140 int
6141 main ()
6142 {
6143 snd_lib_error_set_handler (0);
6144 ;
6145 return 0;
6146 }
6147 _ACEOF
6148 if ac_fn_c_try_compile "$LINENO"; then :
6149 emacs_alsa_normal=yes
6150 else
6151 emacs_alsa_normal=no
6152 fi
6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 if test "$emacs_alsa_normal" != yes; then
6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h. */
6157 #include <alsa/asoundlib.h>
6158 int
6159 main ()
6160 {
6161 snd_lib_error_set_handler (0);
6162 ;
6163 return 0;
6164 }
6165 _ACEOF
6166 if ac_fn_c_try_compile "$LINENO"; then :
6167 emacs_alsa_subdir=yes
6168 else
6169 emacs_alsa_subdir=no
6170 fi
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 if test "$emacs_alsa_subdir" != yes; then
6173 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6174 fi
6175 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6176 fi
6177
6178 CFLAGS="$SAVE_CFLAGS"
6179 LDFLAGS="$SAVE_LDFLAGS"
6180 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6181 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6182
6183 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6184
6185 fi
6186
6187 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6188 case "$opsys" in
6189 gnu-linux|freebsd|netbsd)
6190
6191 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6192
6193 ;;
6194 esac
6195 fi
6196
6197
6198 fi
6199
6200 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
6201 linux/version.h sys/systeminfo.h limits.h \
6202 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
6203 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6204 sys/utsname.h pwd.h utmp.h dirent.h util.h
6205 do :
6206 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6207 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6208 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6209 cat >>confdefs.h <<_ACEOF
6210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6211 _ACEOF
6212
6213 fi
6214
6215 done
6216
6217
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6219 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 #include <sys/personality.h>
6223 int
6224 main ()
6225 {
6226 personality (PER_LINUX32)
6227 ;
6228 return 0;
6229 }
6230 _ACEOF
6231 if ac_fn_c_try_compile "$LINENO"; then :
6232 emacs_cv_personality_linux32=yes
6233 else
6234 emacs_cv_personality_linux32=no
6235 fi
6236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6238 $as_echo "$emacs_cv_personality_linux32" >&6; }
6239
6240 if test $emacs_cv_personality_linux32 = yes; then
6241
6242 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6243
6244 fi
6245
6246 for ac_header in term.h
6247 do :
6248 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6249 if test "x$ac_cv_header_term_h" = xyes; then :
6250 cat >>confdefs.h <<_ACEOF
6251 #define HAVE_TERM_H 1
6252 _ACEOF
6253
6254 fi
6255
6256 done
6257
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6259 $as_echo_n "checking for ANSI C header files... " >&6; }
6260 if ${ac_cv_header_stdc+:} false; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6265 #include <stdlib.h>
6266 #include <stdarg.h>
6267 #include <string.h>
6268 #include <float.h>
6269
6270 int
6271 main ()
6272 {
6273
6274 ;
6275 return 0;
6276 }
6277 _ACEOF
6278 if ac_fn_c_try_compile "$LINENO"; then :
6279 ac_cv_header_stdc=yes
6280 else
6281 ac_cv_header_stdc=no
6282 fi
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284
6285 if test $ac_cv_header_stdc = yes; then
6286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6289 #include <string.h>
6290
6291 _ACEOF
6292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6293 $EGREP "memchr" >/dev/null 2>&1; then :
6294
6295 else
6296 ac_cv_header_stdc=no
6297 fi
6298 rm -f conftest*
6299
6300 fi
6301
6302 if test $ac_cv_header_stdc = yes; then
6303 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6306 #include <stdlib.h>
6307
6308 _ACEOF
6309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6310 $EGREP "free" >/dev/null 2>&1; then :
6311
6312 else
6313 ac_cv_header_stdc=no
6314 fi
6315 rm -f conftest*
6316
6317 fi
6318
6319 if test $ac_cv_header_stdc = yes; then
6320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6321 if test "$cross_compiling" = yes; then :
6322 :
6323 else
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6326 #include <ctype.h>
6327 #include <stdlib.h>
6328 #if ((' ' & 0x0FF) == 0x020)
6329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6331 #else
6332 # define ISLOWER(c) \
6333 (('a' <= (c) && (c) <= 'i') \
6334 || ('j' <= (c) && (c) <= 'r') \
6335 || ('s' <= (c) && (c) <= 'z'))
6336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6337 #endif
6338
6339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6340 int
6341 main ()
6342 {
6343 int i;
6344 for (i = 0; i < 256; i++)
6345 if (XOR (islower (i), ISLOWER (i))
6346 || toupper (i) != TOUPPER (i))
6347 return 2;
6348 return 0;
6349 }
6350 _ACEOF
6351 if ac_fn_c_try_run "$LINENO"; then :
6352
6353 else
6354 ac_cv_header_stdc=no
6355 fi
6356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6357 conftest.$ac_objext conftest.beam conftest.$ac_ext
6358 fi
6359
6360 fi
6361 fi
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6363 $as_echo "$ac_cv_header_stdc" >&6; }
6364 if test $ac_cv_header_stdc = yes; then
6365
6366 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6367
6368 fi
6369
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6371 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6372 if ${ac_cv_header_time+:} false; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6377 #include <sys/types.h>
6378 #include <sys/time.h>
6379 #include <time.h>
6380
6381 int
6382 main ()
6383 {
6384 if ((struct tm *) 0)
6385 return 0;
6386 ;
6387 return 0;
6388 }
6389 _ACEOF
6390 if ac_fn_c_try_compile "$LINENO"; then :
6391 ac_cv_header_time=yes
6392 else
6393 ac_cv_header_time=no
6394 fi
6395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6396 fi
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6398 $as_echo "$ac_cv_header_time" >&6; }
6399 if test $ac_cv_header_time = yes; then
6400
6401 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6402
6403 fi
6404
6405 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6406 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
6407 ac_have_decl=1
6408 else
6409 ac_have_decl=0
6410 fi
6411
6412 cat >>confdefs.h <<_ACEOF
6413 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6414 _ACEOF
6415
6416 if test $ac_cv_have_decl_sys_siglist != yes; then
6417 # For Tru64, at least:
6418 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6419 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
6420 ac_have_decl=1
6421 else
6422 ac_have_decl=0
6423 fi
6424
6425 cat >>confdefs.h <<_ACEOF
6426 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6427 _ACEOF
6428
6429 if test $ac_cv_have_decl___sys_siglist = yes; then
6430
6431 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6432
6433 fi
6434 fi
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6436 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6437 if ${ac_cv_header_sys_wait_h+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442 #include <sys/types.h>
6443 #include <sys/wait.h>
6444 #ifndef WEXITSTATUS
6445 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6446 #endif
6447 #ifndef WIFEXITED
6448 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6449 #endif
6450
6451 int
6452 main ()
6453 {
6454 int s;
6455 wait (&s);
6456 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6457 ;
6458 return 0;
6459 }
6460 _ACEOF
6461 if ac_fn_c_try_compile "$LINENO"; then :
6462 ac_cv_header_sys_wait_h=yes
6463 else
6464 ac_cv_header_sys_wait_h=no
6465 fi
6466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6467 fi
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6469 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6470 if test $ac_cv_header_sys_wait_h = yes; then
6471
6472 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6473
6474 fi
6475
6476
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6478 $as_echo_n "checking for struct utimbuf... " >&6; }
6479 if ${emacs_cv_struct_utimbuf+:} false; then :
6480 $as_echo_n "(cached) " >&6
6481 else
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6484 #ifdef TIME_WITH_SYS_TIME
6485 #include <sys/time.h>
6486 #include <time.h>
6487 #else
6488 #ifdef HAVE_SYS_TIME_H
6489 #include <sys/time.h>
6490 #else
6491 #include <time.h>
6492 #endif
6493 #endif
6494 #ifdef HAVE_UTIME_H
6495 #include <utime.h>
6496 #endif
6497 int
6498 main ()
6499 {
6500 static struct utimbuf x; x.actime = x.modtime;
6501 ;
6502 return 0;
6503 }
6504 _ACEOF
6505 if ac_fn_c_try_compile "$LINENO"; then :
6506 emacs_cv_struct_utimbuf=yes
6507 else
6508 emacs_cv_struct_utimbuf=no
6509 fi
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511 fi
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6513 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6514 if test $emacs_cv_struct_utimbuf = yes; then
6515
6516 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6517
6518 fi
6519
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6521 $as_echo_n "checking return type of signal handlers... " >&6; }
6522 if ${ac_cv_type_signal+:} false; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527 #include <sys/types.h>
6528 #include <signal.h>
6529
6530 int
6531 main ()
6532 {
6533 return *(signal (0, 0)) (0) == 1;
6534 ;
6535 return 0;
6536 }
6537 _ACEOF
6538 if ac_fn_c_try_compile "$LINENO"; then :
6539 ac_cv_type_signal=int
6540 else
6541 ac_cv_type_signal=void
6542 fi
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 fi
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6546 $as_echo "$ac_cv_type_signal" >&6; }
6547
6548 cat >>confdefs.h <<_ACEOF
6549 #define RETSIGTYPE $ac_cv_type_signal
6550 _ACEOF
6551
6552
6553
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6555 $as_echo_n "checking for speed_t... " >&6; }
6556 if ${emacs_cv_speed_t+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561 #include <termios.h>
6562 int
6563 main ()
6564 {
6565 speed_t x = 1;
6566 ;
6567 return 0;
6568 }
6569 _ACEOF
6570 if ac_fn_c_try_compile "$LINENO"; then :
6571 emacs_cv_speed_t=yes
6572 else
6573 emacs_cv_speed_t=no
6574 fi
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 fi
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6578 $as_echo "$emacs_cv_speed_t" >&6; }
6579 if test $emacs_cv_speed_t = yes; then
6580
6581 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6582
6583 fi
6584
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6586 $as_echo_n "checking for struct timeval... " >&6; }
6587 if ${emacs_cv_struct_timeval+:} false; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 #ifdef TIME_WITH_SYS_TIME
6593 #include <sys/time.h>
6594 #include <time.h>
6595 #else
6596 #ifdef HAVE_SYS_TIME_H
6597 #include <sys/time.h>
6598 #else
6599 #include <time.h>
6600 #endif
6601 #endif
6602 int
6603 main ()
6604 {
6605 static struct timeval x; x.tv_sec = x.tv_usec;
6606 ;
6607 return 0;
6608 }
6609 _ACEOF
6610 if ac_fn_c_try_compile "$LINENO"; then :
6611 emacs_cv_struct_timeval=yes
6612 else
6613 emacs_cv_struct_timeval=no
6614 fi
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 fi
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6618 $as_echo "$emacs_cv_struct_timeval" >&6; }
6619 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6620 if test $emacs_cv_struct_timeval = yes; then
6621
6622 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6623
6624 fi
6625
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6627 $as_echo_n "checking for struct exception... " >&6; }
6628 if ${emacs_cv_struct_exception+:} false; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632 /* end confdefs.h. */
6633 #include <math.h>
6634 int
6635 main ()
6636 {
6637 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6638 ;
6639 return 0;
6640 }
6641 _ACEOF
6642 if ac_fn_c_try_compile "$LINENO"; then :
6643 emacs_cv_struct_exception=yes
6644 else
6645 emacs_cv_struct_exception=no
6646 fi
6647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648 fi
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6650 $as_echo "$emacs_cv_struct_exception" >&6; }
6651 HAVE_EXCEPTION=$emacs_cv_struct_exception
6652 if test $emacs_cv_struct_exception != yes; then
6653
6654 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6655
6656 fi
6657
6658 for ac_header in sys/socket.h
6659 do :
6660 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6661 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
6662 cat >>confdefs.h <<_ACEOF
6663 #define HAVE_SYS_SOCKET_H 1
6664 _ACEOF
6665
6666 fi
6667
6668 done
6669
6670 for ac_header in net/if.h
6671 do :
6672 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6673 #if HAVE_SYS_SOCKET_H
6674 #include <sys/socket.h>
6675 #endif
6676 "
6677 if test "x$ac_cv_header_net_if_h" = xyes; then :
6678 cat >>confdefs.h <<_ACEOF
6679 #define HAVE_NET_IF_H 1
6680 _ACEOF
6681
6682 fi
6683
6684 done
6685
6686
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6688 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6689 if ${ac_cv_struct_tm+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 #include <sys/types.h>
6695 #include <time.h>
6696
6697 int
6698 main ()
6699 {
6700 struct tm tm;
6701 int *p = &tm.tm_sec;
6702 return !p;
6703 ;
6704 return 0;
6705 }
6706 _ACEOF
6707 if ac_fn_c_try_compile "$LINENO"; then :
6708 ac_cv_struct_tm=time.h
6709 else
6710 ac_cv_struct_tm=sys/time.h
6711 fi
6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713 fi
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6715 $as_echo "$ac_cv_struct_tm" >&6; }
6716 if test $ac_cv_struct_tm = sys/time.h; then
6717
6718 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6719
6720 fi
6721
6722 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6723 #include <$ac_cv_struct_tm>
6724
6725 "
6726 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6727
6728 cat >>confdefs.h <<_ACEOF
6729 #define HAVE_STRUCT_TM_TM_ZONE 1
6730 _ACEOF
6731
6732
6733 fi
6734
6735 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6736
6737 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6738
6739 else
6740 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6741 "
6742 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6743 ac_have_decl=1
6744 else
6745 ac_have_decl=0
6746 fi
6747
6748 cat >>confdefs.h <<_ACEOF
6749 #define HAVE_DECL_TZNAME $ac_have_decl
6750 _ACEOF
6751
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6753 $as_echo_n "checking for tzname... " >&6; }
6754 if ${ac_cv_var_tzname+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6759 #include <time.h>
6760 #if !HAVE_DECL_TZNAME
6761 extern char *tzname[];
6762 #endif
6763
6764 int
6765 main ()
6766 {
6767 return tzname[0][0];
6768 ;
6769 return 0;
6770 }
6771 _ACEOF
6772 if ac_fn_c_try_link "$LINENO"; then :
6773 ac_cv_var_tzname=yes
6774 else
6775 ac_cv_var_tzname=no
6776 fi
6777 rm -f core conftest.err conftest.$ac_objext \
6778 conftest$ac_exeext conftest.$ac_ext
6779 fi
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6781 $as_echo "$ac_cv_var_tzname" >&6; }
6782 if test $ac_cv_var_tzname = yes; then
6783
6784 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6785
6786 fi
6787 fi
6788
6789 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6790 "
6791 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6792
6793 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6794
6795 fi
6796
6797 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6798 #if HAVE_SYS_SOCKET_H
6799 #include <sys/socket.h>
6800 #endif
6801 #if HAVE_NET_IF_H
6802 #include <net/if.h>
6803 #endif
6804 "
6805 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
6806
6807 cat >>confdefs.h <<_ACEOF
6808 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6809 _ACEOF
6810
6811
6812 fi
6813 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6814 #if HAVE_SYS_SOCKET_H
6815 #include <sys/socket.h>
6816 #endif
6817 #if HAVE_NET_IF_H
6818 #include <net/if.h>
6819 #endif
6820 "
6821 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
6822
6823 cat >>confdefs.h <<_ACEOF
6824 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6825 _ACEOF
6826
6827
6828 fi
6829 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6830 #if HAVE_SYS_SOCKET_H
6831 #include <sys/socket.h>
6832 #endif
6833 #if HAVE_NET_IF_H
6834 #include <net/if.h>
6835 #endif
6836 "
6837 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
6838
6839 cat >>confdefs.h <<_ACEOF
6840 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6841 _ACEOF
6842
6843
6844 fi
6845 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6846 #if HAVE_SYS_SOCKET_H
6847 #include <sys/socket.h>
6848 #endif
6849 #if HAVE_NET_IF_H
6850 #include <net/if.h>
6851 #endif
6852 "
6853 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
6854
6855 cat >>confdefs.h <<_ACEOF
6856 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6857 _ACEOF
6858
6859
6860 fi
6861 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6862 #if HAVE_SYS_SOCKET_H
6863 #include <sys/socket.h>
6864 #endif
6865 #if HAVE_NET_IF_H
6866 #include <net/if.h>
6867 #endif
6868 "
6869 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
6870
6871 cat >>confdefs.h <<_ACEOF
6872 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6873 _ACEOF
6874
6875
6876 fi
6877
6878
6879
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6881 $as_echo_n "checking for function prototypes... " >&6; }
6882 if test "$ac_cv_prog_cc_c89" != no; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6884 $as_echo "yes" >&6; }
6885
6886 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6887
6888
6889 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6890
6891 else
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 $as_echo "no" >&6; }
6894 fi
6895
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6897 $as_echo_n "checking for working volatile... " >&6; }
6898 if ${ac_cv_c_volatile+:} false; then :
6899 $as_echo_n "(cached) " >&6
6900 else
6901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902 /* end confdefs.h. */
6903
6904 int
6905 main ()
6906 {
6907
6908 volatile int x;
6909 int * volatile y = (int *) 0;
6910 return !x && !y;
6911 ;
6912 return 0;
6913 }
6914 _ACEOF
6915 if ac_fn_c_try_compile "$LINENO"; then :
6916 ac_cv_c_volatile=yes
6917 else
6918 ac_cv_c_volatile=no
6919 fi
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 fi
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6923 $as_echo "$ac_cv_c_volatile" >&6; }
6924 if test $ac_cv_c_volatile = no; then
6925
6926 $as_echo "#define volatile /**/" >>confdefs.h
6927
6928 fi
6929
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6931 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6932 if ${ac_cv_c_const+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6937
6938 int
6939 main ()
6940 {
6941 /* FIXME: Include the comments suggested by Paul. */
6942 #ifndef __cplusplus
6943 /* Ultrix mips cc rejects this. */
6944 typedef int charset[2];
6945 const charset cs;
6946 /* SunOS 4.1.1 cc rejects this. */
6947 char const *const *pcpcc;
6948 char **ppc;
6949 /* NEC SVR4.0.2 mips cc rejects this. */
6950 struct point {int x, y;};
6951 static struct point const zero = {0,0};
6952 /* AIX XL C 1.02.0.0 rejects this.
6953 It does not let you subtract one const X* pointer from another in
6954 an arm of an if-expression whose if-part is not a constant
6955 expression */
6956 const char *g = "string";
6957 pcpcc = &g + (g ? g-g : 0);
6958 /* HPUX 7.0 cc rejects these. */
6959 ++pcpcc;
6960 ppc = (char**) pcpcc;
6961 pcpcc = (char const *const *) ppc;
6962 { /* SCO 3.2v4 cc rejects this. */
6963 char *t;
6964 char const *s = 0 ? (char *) 0 : (char const *) 0;
6965
6966 *t++ = 0;
6967 if (s) return 0;
6968 }
6969 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6970 int x[] = {25, 17};
6971 const int *foo = &x[0];
6972 ++foo;
6973 }
6974 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6975 typedef const int *iptr;
6976 iptr p = 0;
6977 ++p;
6978 }
6979 { /* AIX XL C 1.02.0.0 rejects this saying
6980 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6981 struct s { int j; const int *ap[3]; };
6982 struct s *b; b->j = 5;
6983 }
6984 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6985 const int foo = 10;
6986 if (!foo) return 0;
6987 }
6988 return !cs[0] && !zero.x;
6989 #endif
6990
6991 ;
6992 return 0;
6993 }
6994 _ACEOF
6995 if ac_fn_c_try_compile "$LINENO"; then :
6996 ac_cv_c_const=yes
6997 else
6998 ac_cv_c_const=no
6999 fi
7000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7001 fi
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7003 $as_echo "$ac_cv_c_const" >&6; }
7004 if test $ac_cv_c_const = no; then
7005
7006 $as_echo "#define const /**/" >>confdefs.h
7007
7008 fi
7009
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7011 $as_echo_n "checking for void * support... " >&6; }
7012 if ${emacs_cv_void_star+:} false; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7017
7018 int
7019 main ()
7020 {
7021 void * foo;
7022 ;
7023 return 0;
7024 }
7025 _ACEOF
7026 if ac_fn_c_try_compile "$LINENO"; then :
7027 emacs_cv_void_star=yes
7028 else
7029 emacs_cv_void_star=no
7030 fi
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032 fi
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7034 $as_echo "$emacs_cv_void_star" >&6; }
7035 if test $emacs_cv_void_star = yes; then
7036 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7037
7038 else
7039 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7040
7041 fi
7042
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7044 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7045 if ${ac_cv_c_bigendian+:} false; then :
7046 $as_echo_n "(cached) " >&6
7047 else
7048 ac_cv_c_bigendian=unknown
7049 # See if we're dealing with a universal compiler.
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 #ifndef __APPLE_CC__
7053 not a universal capable compiler
7054 #endif
7055 typedef int dummy;
7056
7057 _ACEOF
7058 if ac_fn_c_try_compile "$LINENO"; then :
7059
7060 # Check for potential -arch flags. It is not universal unless
7061 # there are at least two -arch flags with different values.
7062 ac_arch=
7063 ac_prev=
7064 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7065 if test -n "$ac_prev"; then
7066 case $ac_word in
7067 i?86 | x86_64 | ppc | ppc64)
7068 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7069 ac_arch=$ac_word
7070 else
7071 ac_cv_c_bigendian=universal
7072 break
7073 fi
7074 ;;
7075 esac
7076 ac_prev=
7077 elif test "x$ac_word" = "x-arch"; then
7078 ac_prev=arch
7079 fi
7080 done
7081 fi
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083 if test $ac_cv_c_bigendian = unknown; then
7084 # See if sys/param.h defines the BYTE_ORDER macro.
7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7087 #include <sys/types.h>
7088 #include <sys/param.h>
7089
7090 int
7091 main ()
7092 {
7093 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7094 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7095 && LITTLE_ENDIAN)
7096 bogus endian macros
7097 #endif
7098
7099 ;
7100 return 0;
7101 }
7102 _ACEOF
7103 if ac_fn_c_try_compile "$LINENO"; then :
7104 # It does; now see whether it defined to BIG_ENDIAN or not.
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7107 #include <sys/types.h>
7108 #include <sys/param.h>
7109
7110 int
7111 main ()
7112 {
7113 #if BYTE_ORDER != BIG_ENDIAN
7114 not big endian
7115 #endif
7116
7117 ;
7118 return 0;
7119 }
7120 _ACEOF
7121 if ac_fn_c_try_compile "$LINENO"; then :
7122 ac_cv_c_bigendian=yes
7123 else
7124 ac_cv_c_bigendian=no
7125 fi
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127 fi
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129 fi
7130 if test $ac_cv_c_bigendian = unknown; then
7131 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134 #include <limits.h>
7135
7136 int
7137 main ()
7138 {
7139 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7140 bogus endian macros
7141 #endif
7142
7143 ;
7144 return 0;
7145 }
7146 _ACEOF
7147 if ac_fn_c_try_compile "$LINENO"; then :
7148 # It does; now see whether it defined to _BIG_ENDIAN or not.
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7151 #include <limits.h>
7152
7153 int
7154 main ()
7155 {
7156 #ifndef _BIG_ENDIAN
7157 not big endian
7158 #endif
7159
7160 ;
7161 return 0;
7162 }
7163 _ACEOF
7164 if ac_fn_c_try_compile "$LINENO"; then :
7165 ac_cv_c_bigendian=yes
7166 else
7167 ac_cv_c_bigendian=no
7168 fi
7169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170 fi
7171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172 fi
7173 if test $ac_cv_c_bigendian = unknown; then
7174 # Compile a test program.
7175 if test "$cross_compiling" = yes; then :
7176 # Try to guess by grepping values from an object file.
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7179 short int ascii_mm[] =
7180 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7181 short int ascii_ii[] =
7182 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7183 int use_ascii (int i) {
7184 return ascii_mm[i] + ascii_ii[i];
7185 }
7186 short int ebcdic_ii[] =
7187 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7188 short int ebcdic_mm[] =
7189 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7190 int use_ebcdic (int i) {
7191 return ebcdic_mm[i] + ebcdic_ii[i];
7192 }
7193 extern int foo;
7194
7195 int
7196 main ()
7197 {
7198 return use_ascii (foo) == use_ebcdic (foo);
7199 ;
7200 return 0;
7201 }
7202 _ACEOF
7203 if ac_fn_c_try_compile "$LINENO"; then :
7204 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7205 ac_cv_c_bigendian=yes
7206 fi
7207 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7208 if test "$ac_cv_c_bigendian" = unknown; then
7209 ac_cv_c_bigendian=no
7210 else
7211 # finding both strings is unlikely to happen, but who knows?
7212 ac_cv_c_bigendian=unknown
7213 fi
7214 fi
7215 fi
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 else
7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7220 $ac_includes_default
7221 int
7222 main ()
7223 {
7224
7225 /* Are we little or big endian? From Harbison&Steele. */
7226 union
7227 {
7228 long int l;
7229 char c[sizeof (long int)];
7230 } u;
7231 u.l = 1;
7232 return u.c[sizeof (long int) - 1] == 1;
7233
7234 ;
7235 return 0;
7236 }
7237 _ACEOF
7238 if ac_fn_c_try_run "$LINENO"; then :
7239 ac_cv_c_bigendian=no
7240 else
7241 ac_cv_c_bigendian=yes
7242 fi
7243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7244 conftest.$ac_objext conftest.beam conftest.$ac_ext
7245 fi
7246
7247 fi
7248 fi
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7250 $as_echo "$ac_cv_c_bigendian" >&6; }
7251 case $ac_cv_c_bigendian in #(
7252 yes)
7253 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7254 ;; #(
7255 no)
7256 ;; #(
7257 universal)
7258
7259 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7260
7261 ;; #(
7262 *)
7263 as_fn_error $? "unknown endianness
7264 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7265 esac
7266
7267
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7269 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7270 set x ${MAKE-make}
7271 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7272 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 cat >conftest.make <<\_ACEOF
7276 SHELL = /bin/sh
7277 all:
7278 @echo '@@@%%%=$(MAKE)=@@@%%%'
7279 _ACEOF
7280 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7281 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7282 *@@@%%%=?*=@@@%%%*)
7283 eval ac_cv_prog_make_${ac_make}_set=yes;;
7284 *)
7285 eval ac_cv_prog_make_${ac_make}_set=no;;
7286 esac
7287 rm -f conftest.make
7288 fi
7289 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7291 $as_echo "yes" >&6; }
7292 SET_MAKE=
7293 else
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7296 SET_MAKE="MAKE=${MAKE-make}"
7297 fi
7298
7299
7300 DEPFLAGS=
7301 MKDEPDIR=":"
7302 deps_frag=deps.mk
7303 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7305 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7306 HAVE_GNU_MAKE=no
7307 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7308 if test "x$testval" != x; then
7309 HAVE_GNU_MAKE=yes
7310 else
7311 ac_enable_autodepend=no
7312 fi
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7314 $as_echo "$HAVE_GNU_MAKE" >&6; }
7315 if test $HAVE_GNU_MAKE = yes; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7317 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7318 SAVE_CFLAGS="$CFLAGS"
7319 CFLAGS="$CFLAGS -MMD -MF deps.d"
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322
7323 int
7324 main ()
7325 {
7326
7327 ;
7328 return 0;
7329 }
7330 _ACEOF
7331 if ac_fn_c_try_compile "$LINENO"; then :
7332
7333 else
7334 ac_enable_autodepend=no
7335 fi
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 CFLAGS="$SAVE_CFLAGS"
7338 test -f deps.d || ac_enable_autodepend=no
7339 rm -rf deps.d
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7341 $as_echo "$ac_enable_autodepend" >&6; }
7342 fi
7343 if test $ac_enable_autodepend = yes; then
7344 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7345 ## In parallel builds, another make might create depdir between
7346 ## the first test and mkdir, so stick another test on the end.
7347 ## Or use mkinstalldirs? mkdir -p is not portable.
7348 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7349 deps_frag=autodeps.mk
7350 fi
7351 fi
7352 deps_frag=$srcdir/src/$deps_frag
7353
7354
7355
7356
7357
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7359 $as_echo_n "checking for long file names... " >&6; }
7360 if ${ac_cv_sys_long_file_names+:} false; then :
7361 $as_echo_n "(cached) " >&6
7362 else
7363 ac_cv_sys_long_file_names=yes
7364 # Test for long file names in all the places we know might matter:
7365 # . the current directory, where building will happen
7366 # $prefix/lib where we will be installing things
7367 # $exec_prefix/lib likewise
7368 # $TMPDIR if set, where it might want to write temporary files
7369 # /tmp where it might want to write temporary files
7370 # /var/tmp likewise
7371 # /usr/tmp likewise
7372 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7373 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7374 # in the usual case where exec_prefix is '${prefix}'.
7375 case $ac_dir in #(
7376 . | /* | ?:[\\/]*) ;; #(
7377 *) continue;;
7378 esac
7379 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7380 ac_xdir=$ac_dir/cf$$
7381 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7382 ac_tf1=$ac_xdir/conftest9012345
7383 ac_tf2=$ac_xdir/conftest9012346
7384 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7385 ac_cv_sys_long_file_names=no
7386 rm -f -r "$ac_xdir" 2>/dev/null
7387 test $ac_cv_sys_long_file_names = no && break
7388 done
7389 fi
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7391 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7392 if test $ac_cv_sys_long_file_names = yes; then
7393
7394 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7395
7396 fi
7397
7398
7399 #### Choose a window system.
7400
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7402 $as_echo_n "checking for X... " >&6; }
7403
7404
7405 # Check whether --with-x was given.
7406 if test "${with_x+set}" = set; then :
7407 withval=$with_x;
7408 fi
7409
7410 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7411 if test "x$with_x" = xno; then
7412 # The user explicitly disabled X.
7413 have_x=disabled
7414 else
7415 case $x_includes,$x_libraries in #(
7416 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7417 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 # One or both of the vars are not set, and there is no cached value.
7421 ac_x_includes=no ac_x_libraries=no
7422 rm -f -r conftest.dir
7423 if mkdir conftest.dir; then
7424 cd conftest.dir
7425 cat >Imakefile <<'_ACEOF'
7426 incroot:
7427 @echo incroot='${INCROOT}'
7428 usrlibdir:
7429 @echo usrlibdir='${USRLIBDIR}'
7430 libdir:
7431 @echo libdir='${LIBDIR}'
7432 _ACEOF
7433 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7434 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7435 for ac_var in incroot usrlibdir libdir; do
7436 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7437 done
7438 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7439 for ac_extension in a so sl dylib la dll; do
7440 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7441 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7442 ac_im_usrlibdir=$ac_im_libdir; break
7443 fi
7444 done
7445 # Screen out bogus values from the imake configuration. They are
7446 # bogus both because they are the default anyway, and because
7447 # using them would break gcc on systems where it needs fixed includes.
7448 case $ac_im_incroot in
7449 /usr/include) ac_x_includes= ;;
7450 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7451 esac
7452 case $ac_im_usrlibdir in
7453 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7454 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7455 esac
7456 fi
7457 cd ..
7458 rm -f -r conftest.dir
7459 fi
7460
7461 # Standard set of common directories for X headers.
7462 # Check X11 before X11Rn because it is often a symlink to the current release.
7463 ac_x_header_dirs='
7464 /usr/X11/include
7465 /usr/X11R7/include
7466 /usr/X11R6/include
7467 /usr/X11R5/include
7468 /usr/X11R4/include
7469
7470 /usr/include/X11
7471 /usr/include/X11R7
7472 /usr/include/X11R6
7473 /usr/include/X11R5
7474 /usr/include/X11R4
7475
7476 /usr/local/X11/include
7477 /usr/local/X11R7/include
7478 /usr/local/X11R6/include
7479 /usr/local/X11R5/include
7480 /usr/local/X11R4/include
7481
7482 /usr/local/include/X11
7483 /usr/local/include/X11R7
7484 /usr/local/include/X11R6
7485 /usr/local/include/X11R5
7486 /usr/local/include/X11R4
7487
7488 /usr/X386/include
7489 /usr/x386/include
7490 /usr/XFree86/include/X11
7491
7492 /usr/include
7493 /usr/local/include
7494 /usr/unsupported/include
7495 /usr/athena/include
7496 /usr/local/x11r5/include
7497 /usr/lpp/Xamples/include
7498
7499 /usr/openwin/include
7500 /usr/openwin/share/include'
7501
7502 if test "$ac_x_includes" = no; then
7503 # Guess where to find include files, by looking for Xlib.h.
7504 # First, try using that file with no special directory specified.
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7507 #include <X11/Xlib.h>
7508 _ACEOF
7509 if ac_fn_c_try_cpp "$LINENO"; then :
7510 # We can compile using X headers with no special include directory.
7511 ac_x_includes=
7512 else
7513 for ac_dir in $ac_x_header_dirs; do
7514 if test -r "$ac_dir/X11/Xlib.h"; then
7515 ac_x_includes=$ac_dir
7516 break
7517 fi
7518 done
7519 fi
7520 rm -f conftest.err conftest.i conftest.$ac_ext
7521 fi # $ac_x_includes = no
7522
7523 if test "$ac_x_libraries" = no; then
7524 # Check for the libraries.
7525 # See if we find them without any special options.
7526 # Don't add to $LIBS permanently.
7527 ac_save_LIBS=$LIBS
7528 LIBS="-lX11 $LIBS"
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7531 #include <X11/Xlib.h>
7532 int
7533 main ()
7534 {
7535 XrmInitialize ()
7536 ;
7537 return 0;
7538 }
7539 _ACEOF
7540 if ac_fn_c_try_link "$LINENO"; then :
7541 LIBS=$ac_save_LIBS
7542 # We can link X programs with no special library path.
7543 ac_x_libraries=
7544 else
7545 LIBS=$ac_save_LIBS
7546 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7547 do
7548 # Don't even attempt the hair of trying to link an X program!
7549 for ac_extension in a so sl dylib la dll; do
7550 if test -r "$ac_dir/libX11.$ac_extension"; then
7551 ac_x_libraries=$ac_dir
7552 break 2
7553 fi
7554 done
7555 done
7556 fi
7557 rm -f core conftest.err conftest.$ac_objext \
7558 conftest$ac_exeext conftest.$ac_ext
7559 fi # $ac_x_libraries = no
7560
7561 case $ac_x_includes,$ac_x_libraries in #(
7562 no,* | *,no | *\'*)
7563 # Didn't find X, or a directory has "'" in its name.
7564 ac_cv_have_x="have_x=no";; #(
7565 *)
7566 # Record where we found X for the cache.
7567 ac_cv_have_x="have_x=yes\
7568 ac_x_includes='$ac_x_includes'\
7569 ac_x_libraries='$ac_x_libraries'"
7570 esac
7571 fi
7572 ;; #(
7573 *) have_x=yes;;
7574 esac
7575 eval "$ac_cv_have_x"
7576 fi # $with_x != no
7577
7578 if test "$have_x" != yes; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7580 $as_echo "$have_x" >&6; }
7581 no_x=yes
7582 else
7583 # If each of the values was on the command line, it overrides each guess.
7584 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7585 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7586 # Update the cache value to reflect the command line values.
7587 ac_cv_have_x="have_x=yes\
7588 ac_x_includes='$x_includes'\
7589 ac_x_libraries='$x_libraries'"
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7591 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7592 fi
7593
7594 if test "$no_x" = yes; then
7595 window_system=none
7596 else
7597 window_system=x11
7598 fi
7599
7600 ## Workaround for bug in autoconf <= 2.62.
7601 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7602 ## No need to do anything special for these standard directories.
7603 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7604
7605 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7606
7607 fi
7608
7609 LD_SWITCH_X_SITE_AUX=
7610 LD_SWITCH_X_SITE_AUX_RPATH=
7611 if test "${x_libraries}" != NONE; then
7612 if test -n "${x_libraries}"; then
7613 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7614 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7615 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7616 fi
7617 x_default_search_path=""
7618 x_search_path=${x_libraries}
7619 if test -z "${x_search_path}"; then
7620 x_search_path=/usr/lib
7621 fi
7622 for x_library in `echo ${x_search_path}: | \
7623 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7624 x_search_path="\
7625 ${x_library}/X11/%L/%T/%N%C%S:\
7626 ${x_library}/X11/%l/%T/%N%C%S:\
7627 ${x_library}/X11/%T/%N%C%S:\
7628 ${x_library}/X11/%L/%T/%N%S:\
7629 ${x_library}/X11/%l/%T/%N%S:\
7630 ${x_library}/X11/%T/%N%S"
7631 if test x"${x_default_search_path}" = x; then
7632 x_default_search_path=${x_search_path}
7633 else
7634 x_default_search_path="${x_search_path}:${x_default_search_path}"
7635 fi
7636 done
7637 fi
7638
7639
7640
7641 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7642 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7643 fi
7644
7645 if test x"${x_includes}" = x; then
7646 bitmapdir=/usr/include/X11/bitmaps
7647 else
7648 # accumulate include directories that have X11 bitmap subdirectories
7649 bmd_acc="dummyval"
7650 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7651 if test -d "${bmd}/X11/bitmaps"; then
7652 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7653 fi
7654 if test -d "${bmd}/bitmaps"; then
7655 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7656 fi
7657 done
7658 if test ${bmd_acc} != "dummyval"; then
7659 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7660 fi
7661 fi
7662
7663 HAVE_NS=no
7664 NS_IMPL_COCOA=no
7665 NS_IMPL_GNUSTEP=no
7666 tmp_CPPFLAGS="$CPPFLAGS"
7667 tmp_CFLAGS="$CFLAGS"
7668 CPPFLAGS="$CPPFLAGS -x objective-c"
7669 CFLAGS="$CFLAGS -x objective-c"
7670 TEMACS_LDFLAGS2="\${LDFLAGS}"
7671 if test "${with_ns}" != no; then
7672 if test "${opsys}" = darwin; then
7673 NS_IMPL_COCOA=yes
7674 ns_appdir=`pwd`/nextstep/Emacs.app
7675 ns_appbindir=${ns_appdir}/Contents/MacOS/
7676 ns_appresdir=${ns_appdir}/Contents/Resources
7677 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7678 elif test -f $GNUSTEP_CONFIG_FILE; then
7679 NS_IMPL_GNUSTEP=yes
7680 ns_appdir=`pwd`/nextstep/Emacs.app
7681 ns_appbindir=${ns_appdir}/
7682 ns_appresdir=${ns_appdir}/Resources
7683 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7684 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7685 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7686 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7687 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7688 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7689 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7690 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7691 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7692 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7693 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7694 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7695 LIB_STANDARD=
7696 START_FILES=
7697 TEMACS_LDFLAGS2=
7698 fi
7699 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7700 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
7701 HAVE_NS=yes
7702 else
7703 as_fn_error $? "\`--with-ns' was specified, but the include
7704 files are missing or cannot be compiled." "$LINENO" 5
7705 fi
7706
7707
7708 NS_HAVE_NSINTEGER=yes
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711 #include <Foundation/NSObjCRuntime.h>
7712 int
7713 main ()
7714 {
7715 NSInteger i;
7716 ;
7717 return 0;
7718 }
7719 _ACEOF
7720 if ac_fn_c_try_compile "$LINENO"; then :
7721 ns_have_nsinteger=yes
7722 else
7723 ns_have_nsinteger=no
7724 fi
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 if test $ns_have_nsinteger = no; then
7727 NS_HAVE_NSINTEGER=no
7728 fi
7729 fi
7730
7731
7732 ns_frag=/dev/null
7733 NS_OBJ=
7734 NS_SUPPORT=
7735 if test "${HAVE_NS}" = yes; then
7736 window_system=nextstep
7737 with_xft=no
7738 # set up packaging dirs
7739 exec_prefix=${ns_appbindir}
7740 libexecdir=${ns_appbindir}/libexec
7741 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7742 prefix=${ns_appresdir}
7743 fi
7744 ns_frag=$srcdir/src/ns.mk
7745 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7746 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
7747 fi
7748 CFLAGS="$tmp_CFLAGS"
7749 CPPFLAGS="$tmp_CPPFLAGS"
7750
7751
7752
7753
7754
7755 case "${window_system}" in
7756 x11 )
7757 HAVE_X_WINDOWS=yes
7758 HAVE_X11=yes
7759 case "${with_x_toolkit}" in
7760 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7761 motif ) USE_X_TOOLKIT=MOTIF ;;
7762 gtk ) with_gtk=yes
7763 USE_X_TOOLKIT=none ;;
7764 gtk3 ) with_gtk3=yes
7765 USE_X_TOOLKIT=none ;;
7766 no ) USE_X_TOOLKIT=none ;;
7767 * ) USE_X_TOOLKIT=maybe ;;
7768 esac
7769 ;;
7770 nextstep | none )
7771 HAVE_X_WINDOWS=no
7772 HAVE_X11=no
7773 USE_X_TOOLKIT=none
7774 ;;
7775 esac
7776
7777 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7778 # Extract the first word of "X", so it can be a program name with args.
7779 set dummy X; ac_word=$2
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781 $as_echo_n "checking for $ac_word... " >&6; }
7782 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
7783 $as_echo_n "(cached) " >&6
7784 else
7785 if test -n "$HAVE_XSERVER"; then
7786 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7787 else
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7790 do
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7795 ac_cv_prog_HAVE_XSERVER="true"
7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 break 2
7798 fi
7799 done
7800 done
7801 IFS=$as_save_IFS
7802
7803 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7804 fi
7805 fi
7806 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7807 if test -n "$HAVE_XSERVER"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7809 $as_echo "$HAVE_XSERVER" >&6; }
7810 else
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7813 fi
7814
7815
7816 if test "$HAVE_XSERVER" = true ||
7817 test -n "$DISPLAY" ||
7818 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7819 as_fn_error $? "You seem to be running X, but no X development libraries
7820 were found. You should install the relevant development files for X
7821 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7822 sure you have development files for image handling, i.e.
7823 tiff, gif, jpeg, png and xpm.
7824 If you are sure you want Emacs compiled without X window support, pass
7825 --without-x
7826 to configure." "$LINENO" 5
7827 fi
7828 fi
7829
7830 ### If we're using X11, we should use the X menu package.
7831 HAVE_MENUS=no
7832 case ${HAVE_X11} in
7833 yes ) HAVE_MENUS=yes ;;
7834 esac
7835
7836 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7837 # Assume not, until told otherwise.
7838 GNU_MALLOC=yes
7839 doug_lea_malloc=yes
7840 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7841 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
7842
7843 else
7844 doug_lea_malloc=no
7845 fi
7846
7847 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7848 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
7849
7850 else
7851 doug_lea_malloc=no
7852 fi
7853
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7855 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7856 if ${emacs_cv_var___after_morecore_hook+:} false; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h. */
7861 extern void (* __after_morecore_hook)();
7862 int
7863 main ()
7864 {
7865 __after_morecore_hook = 0
7866 ;
7867 return 0;
7868 }
7869 _ACEOF
7870 if ac_fn_c_try_link "$LINENO"; then :
7871 emacs_cv_var___after_morecore_hook=yes
7872 else
7873 emacs_cv_var___after_morecore_hook=no
7874 fi
7875 rm -f core conftest.err conftest.$ac_objext \
7876 conftest$ac_exeext conftest.$ac_ext
7877 fi
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7879 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7880 if test $emacs_cv_var___after_morecore_hook = no; then
7881 doug_lea_malloc=no
7882 fi
7883
7884
7885 system_malloc=no
7886 case "$opsys" in
7887 ## darwin ld insists on the use of malloc routines in the System framework.
7888 darwin|sol2-10) system_malloc=yes ;;
7889 esac
7890
7891 if test "${system_malloc}" = "yes"; then
7892
7893 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7894
7895 GNU_MALLOC=no
7896 GNU_MALLOC_reason="
7897 (The GNU allocators don't work with this system configuration.)"
7898 GMALLOC_OBJ=
7899 VMLIMIT_OBJ=
7900 else
7901 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7902 VMLIMIT_OBJ=vm-limit.o
7903 fi
7904
7905
7906
7907 if test "$doug_lea_malloc" = "yes" ; then
7908 if test "$GNU_MALLOC" = yes ; then
7909 GNU_MALLOC_reason="
7910 (Using Doug Lea's new malloc from the GNU C Library.)"
7911 fi
7912
7913 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7914
7915
7916 ## Use mmap directly for allocating larger buffers.
7917 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7918 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7919 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7920 case "$opsys" in
7921 gnu*) REL_ALLOC=no ;;
7922 esac
7923 fi
7924
7925 if test x"${REL_ALLOC}" = x; then
7926 REL_ALLOC=${GNU_MALLOC}
7927 fi
7928
7929 use_mmap_for_buffers=no
7930 case "$opsys" in
7931 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7932 esac
7933
7934
7935
7936
7937 for ac_header in $ac_header_list
7938 do :
7939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7940 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7941 "
7942 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7943 cat >>confdefs.h <<_ACEOF
7944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7945 _ACEOF
7946
7947 fi
7948
7949 done
7950
7951
7952
7953
7954
7955
7956
7957
7958 for ac_func in getpagesize
7959 do :
7960 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7961 if test "x$ac_cv_func_getpagesize" = xyes; then :
7962 cat >>confdefs.h <<_ACEOF
7963 #define HAVE_GETPAGESIZE 1
7964 _ACEOF
7965
7966 fi
7967 done
7968
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7970 $as_echo_n "checking for working mmap... " >&6; }
7971 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 if test "$cross_compiling" = yes; then :
7975 ac_cv_func_mmap_fixed_mapped=no
7976 else
7977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978 /* end confdefs.h. */
7979 $ac_includes_default
7980 /* malloc might have been renamed as rpl_malloc. */
7981 #undef malloc
7982
7983 /* Thanks to Mike Haertel and Jim Avera for this test.
7984 Here is a matrix of mmap possibilities:
7985 mmap private not fixed
7986 mmap private fixed at somewhere currently unmapped
7987 mmap private fixed at somewhere already mapped
7988 mmap shared not fixed
7989 mmap shared fixed at somewhere currently unmapped
7990 mmap shared fixed at somewhere already mapped
7991 For private mappings, we should verify that changes cannot be read()
7992 back from the file, nor mmap's back from the file at a different
7993 address. (There have been systems where private was not correctly
7994 implemented like the infamous i386 svr4.0, and systems where the
7995 VM page cache was not coherent with the file system buffer cache
7996 like early versions of FreeBSD and possibly contemporary NetBSD.)
7997 For shared mappings, we should conversely verify that changes get
7998 propagated back to all the places they're supposed to be.
7999
8000 Grep wants private fixed already mapped.
8001 The main things grep needs to know about mmap are:
8002 * does it exist and is it safe to write into the mmap'd area
8003 * how to use it (BSD variants) */
8004
8005 #include <fcntl.h>
8006 #include <sys/mman.h>
8007
8008 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8009 char *malloc ();
8010 #endif
8011
8012 /* This mess was copied from the GNU getpagesize.h. */
8013 #ifndef HAVE_GETPAGESIZE
8014 # ifdef _SC_PAGESIZE
8015 # define getpagesize() sysconf(_SC_PAGESIZE)
8016 # else /* no _SC_PAGESIZE */
8017 # ifdef HAVE_SYS_PARAM_H
8018 # include <sys/param.h>
8019 # ifdef EXEC_PAGESIZE
8020 # define getpagesize() EXEC_PAGESIZE
8021 # else /* no EXEC_PAGESIZE */
8022 # ifdef NBPG
8023 # define getpagesize() NBPG * CLSIZE
8024 # ifndef CLSIZE
8025 # define CLSIZE 1
8026 # endif /* no CLSIZE */
8027 # else /* no NBPG */
8028 # ifdef NBPC
8029 # define getpagesize() NBPC
8030 # else /* no NBPC */
8031 # ifdef PAGESIZE
8032 # define getpagesize() PAGESIZE
8033 # endif /* PAGESIZE */
8034 # endif /* no NBPC */
8035 # endif /* no NBPG */
8036 # endif /* no EXEC_PAGESIZE */
8037 # else /* no HAVE_SYS_PARAM_H */
8038 # define getpagesize() 8192 /* punt totally */
8039 # endif /* no HAVE_SYS_PARAM_H */
8040 # endif /* no _SC_PAGESIZE */
8041
8042 #endif /* no HAVE_GETPAGESIZE */
8043
8044 int
8045 main ()
8046 {
8047 char *data, *data2, *data3;
8048 const char *cdata2;
8049 int i, pagesize;
8050 int fd, fd2;
8051
8052 pagesize = getpagesize ();
8053
8054 /* First, make a file with some known garbage in it. */
8055 data = (char *) malloc (pagesize);
8056 if (!data)
8057 return 1;
8058 for (i = 0; i < pagesize; ++i)
8059 *(data + i) = rand ();
8060 umask (0);
8061 fd = creat ("conftest.mmap", 0600);
8062 if (fd < 0)
8063 return 2;
8064 if (write (fd, data, pagesize) != pagesize)
8065 return 3;
8066 close (fd);
8067
8068 /* Next, check that the tail of a page is zero-filled. File must have
8069 non-zero length, otherwise we risk SIGBUS for entire page. */
8070 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8071 if (fd2 < 0)
8072 return 4;
8073 cdata2 = "";
8074 if (write (fd2, cdata2, 1) != 1)
8075 return 5;
8076 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8077 if (data2 == MAP_FAILED)
8078 return 6;
8079 for (i = 0; i < pagesize; ++i)
8080 if (*(data2 + i))
8081 return 7;
8082 close (fd2);
8083 if (munmap (data2, pagesize))
8084 return 8;
8085
8086 /* Next, try to mmap the file at a fixed address which already has
8087 something else allocated at it. If we can, also make sure that
8088 we see the same garbage. */
8089 fd = open ("conftest.mmap", O_RDWR);
8090 if (fd < 0)
8091 return 9;
8092 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8093 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8094 return 10;
8095 for (i = 0; i < pagesize; ++i)
8096 if (*(data + i) != *(data2 + i))
8097 return 11;
8098
8099 /* Finally, make sure that changes to the mapped area do not
8100 percolate back to the file as seen by read(). (This is a bug on
8101 some variants of i386 svr4.0.) */
8102 for (i = 0; i < pagesize; ++i)
8103 *(data2 + i) = *(data2 + i) + 1;
8104 data3 = (char *) malloc (pagesize);
8105 if (!data3)
8106 return 12;
8107 if (read (fd, data3, pagesize) != pagesize)
8108 return 13;
8109 for (i = 0; i < pagesize; ++i)
8110 if (*(data + i) != *(data3 + i))
8111 return 14;
8112 close (fd);
8113 return 0;
8114 }
8115 _ACEOF
8116 if ac_fn_c_try_run "$LINENO"; then :
8117 ac_cv_func_mmap_fixed_mapped=yes
8118 else
8119 ac_cv_func_mmap_fixed_mapped=no
8120 fi
8121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8122 conftest.$ac_objext conftest.beam conftest.$ac_ext
8123 fi
8124
8125 fi
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8127 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8128 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8129
8130 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8131
8132 fi
8133 rm -f conftest.mmap conftest.txt
8134
8135 if test $use_mmap_for_buffers = yes; then
8136
8137 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8138
8139 REL_ALLOC=no
8140 fi
8141
8142 LIBS="$LIBS_SYSTEM $LIBS"
8143
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8145 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8146 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8147 $as_echo_n "(cached) " >&6
8148 else
8149 ac_check_lib_save_LIBS=$LIBS
8150 LIBS="-ldnet $LIBS"
8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8153
8154 /* Override any GCC internal prototype to avoid an error.
8155 Use char because int might match the return type of a GCC
8156 builtin and then its argument prototype would still apply. */
8157 #ifdef __cplusplus
8158 extern "C"
8159 #endif
8160 char dnet_ntoa ();
8161 int
8162 main ()
8163 {
8164 return dnet_ntoa ();
8165 ;
8166 return 0;
8167 }
8168 _ACEOF
8169 if ac_fn_c_try_link "$LINENO"; then :
8170 ac_cv_lib_dnet_dnet_ntoa=yes
8171 else
8172 ac_cv_lib_dnet_dnet_ntoa=no
8173 fi
8174 rm -f core conftest.err conftest.$ac_objext \
8175 conftest$ac_exeext conftest.$ac_ext
8176 LIBS=$ac_check_lib_save_LIBS
8177 fi
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8179 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8180 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8181 cat >>confdefs.h <<_ACEOF
8182 #define HAVE_LIBDNET 1
8183 _ACEOF
8184
8185 LIBS="-ldnet $LIBS"
8186
8187 fi
8188
8189
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8191 $as_echo_n "checking for main in -lXbsd... " >&6; }
8192 if ${ac_cv_lib_Xbsd_main+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 ac_check_lib_save_LIBS=$LIBS
8196 LIBS="-lXbsd $LIBS"
8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8199
8200
8201 int
8202 main ()
8203 {
8204 return main ();
8205 ;
8206 return 0;
8207 }
8208 _ACEOF
8209 if ac_fn_c_try_link "$LINENO"; then :
8210 ac_cv_lib_Xbsd_main=yes
8211 else
8212 ac_cv_lib_Xbsd_main=no
8213 fi
8214 rm -f core conftest.err conftest.$ac_objext \
8215 conftest$ac_exeext conftest.$ac_ext
8216 LIBS=$ac_check_lib_save_LIBS
8217 fi
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8219 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8220 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
8221 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8222 fi
8223
8224
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8226 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8227 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
8228 $as_echo_n "(cached) " >&6
8229 else
8230 ac_check_lib_save_LIBS=$LIBS
8231 LIBS="-lpthreads $LIBS"
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8234
8235 /* Override any GCC internal prototype to avoid an error.
8236 Use char because int might match the return type of a GCC
8237 builtin and then its argument prototype would still apply. */
8238 #ifdef __cplusplus
8239 extern "C"
8240 #endif
8241 char cma_open ();
8242 int
8243 main ()
8244 {
8245 return cma_open ();
8246 ;
8247 return 0;
8248 }
8249 _ACEOF
8250 if ac_fn_c_try_link "$LINENO"; then :
8251 ac_cv_lib_pthreads_cma_open=yes
8252 else
8253 ac_cv_lib_pthreads_cma_open=no
8254 fi
8255 rm -f core conftest.err conftest.$ac_objext \
8256 conftest$ac_exeext conftest.$ac_ext
8257 LIBS=$ac_check_lib_save_LIBS
8258 fi
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8260 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8261 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
8262 cat >>confdefs.h <<_ACEOF
8263 #define HAVE_LIBPTHREADS 1
8264 _ACEOF
8265
8266 LIBS="-lpthreads $LIBS"
8267
8268 fi
8269
8270
8271 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8272 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8273 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8274 ## added to LIBS in configure would never contain the pthreads part,
8275 ## but the value used in Makefiles might. FIXME?
8276 ##
8277 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8278 ## be harmless on older versions of X where it happens to exist.
8279 test "$opsys" = "aix4-2" && \
8280 test $ac_cv_lib_pthreads_cma_open = yes && \
8281 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8282
8283
8284 case ${host_os} in
8285 aix*)
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8287 $as_echo_n "checking for -bbigtoc option... " >&6; }
8288 if ${gdb_cv_bigtoc+:} false; then :
8289 $as_echo_n "(cached) " >&6
8290 else
8291
8292 case $GCC in
8293 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8294 *) gdb_cv_bigtoc=-bbigtoc ;;
8295 esac
8296
8297 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8300
8301 int
8302 main ()
8303 {
8304 int i;
8305 ;
8306 return 0;
8307 }
8308 _ACEOF
8309 if ac_fn_c_try_link "$LINENO"; then :
8310
8311 else
8312 gdb_cv_bigtoc=
8313 fi
8314 rm -f core conftest.err conftest.$ac_objext \
8315 conftest$ac_exeext conftest.$ac_ext
8316
8317 fi
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8319 $as_echo "$gdb_cv_bigtoc" >&6; }
8320 ;;
8321 esac
8322
8323 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8324 # used for the tests that follow. We set them back to REAL_CFLAGS and
8325 # REAL_CPPFLAGS later on.
8326
8327 REAL_CFLAGS="$CFLAGS"
8328 REAL_CPPFLAGS="$CPPFLAGS"
8329
8330 if test "${HAVE_X11}" = "yes"; then
8331 DEFS="$C_SWITCH_X_SITE $DEFS"
8332 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8333 LIBS="-lX11 $LIBS"
8334 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8335 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8336
8337 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8338 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8339 # but it's more convenient here to set LD_RUN_PATH
8340 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8341 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8342 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8343 export LD_RUN_PATH
8344 fi
8345
8346 if test "${opsys}" = "gnu-linux"; then
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8348 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h. */
8351
8352 int
8353 main ()
8354 {
8355 XOpenDisplay ("foo");
8356 ;
8357 return 0;
8358 }
8359 _ACEOF
8360 if ac_fn_c_try_link "$LINENO"; then :
8361 xlinux_first_failure=no
8362 else
8363 xlinux_first_failure=yes
8364 fi
8365 rm -f core conftest.err conftest.$ac_objext \
8366 conftest$ac_exeext conftest.$ac_ext
8367 if test "${xlinux_first_failure}" = "yes"; then
8368 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8369 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8370 OLD_CPPFLAGS="$CPPFLAGS"
8371 OLD_LIBS="$LIBS"
8372 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8373 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8374 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8375 LIBS="$LIBS -b i486-linuxaout"
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8378
8379 int
8380 main ()
8381 {
8382 XOpenDisplay ("foo");
8383 ;
8384 return 0;
8385 }
8386 _ACEOF
8387 if ac_fn_c_try_link "$LINENO"; then :
8388 xlinux_second_failure=no
8389 else
8390 xlinux_second_failure=yes
8391 fi
8392 rm -f core conftest.err conftest.$ac_objext \
8393 conftest$ac_exeext conftest.$ac_ext
8394 if test "${xlinux_second_failure}" = "yes"; then
8395 # If we get the same failure with -b, there is no use adding -b.
8396 # So take it out. This plays safe.
8397 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8398 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8399 CPPFLAGS="$OLD_CPPFLAGS"
8400 LIBS="$OLD_LIBS"
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402 $as_echo "no" >&6; }
8403 else
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8405 $as_echo "yes" >&6; }
8406 fi
8407 else
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8410 fi
8411 fi
8412
8413 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8414 # header files included from there.
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8416 $as_echo_n "checking for Xkb... " >&6; }
8417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8419 #include <X11/Xlib.h>
8420 #include <X11/XKBlib.h>
8421 int
8422 main ()
8423 {
8424 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8425 ;
8426 return 0;
8427 }
8428 _ACEOF
8429 if ac_fn_c_try_link "$LINENO"; then :
8430 emacs_xkb=yes
8431 else
8432 emacs_xkb=no
8433 fi
8434 rm -f core conftest.err conftest.$ac_objext \
8435 conftest$ac_exeext conftest.$ac_ext
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8437 $as_echo "$emacs_xkb" >&6; }
8438 if test $emacs_xkb = yes; then
8439
8440 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8441
8442 fi
8443
8444 for ac_func in XrmSetDatabase XScreenResourceString \
8445 XScreenNumberOfScreen XSetWMProtocols
8446 do :
8447 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8448 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8449 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8450 cat >>confdefs.h <<_ACEOF
8451 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8452 _ACEOF
8453
8454 fi
8455 done
8456
8457 fi
8458
8459 if test "${window_system}" = "x11"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8461 $as_echo_n "checking X11 version 6... " >&6; }
8462 if ${emacs_cv_x11_version_6+:} false; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8467 #include <X11/Xlib.h>
8468 int
8469 main ()
8470 {
8471 #if XlibSpecificationRelease < 6
8472 fail;
8473 #endif
8474
8475 ;
8476 return 0;
8477 }
8478 _ACEOF
8479 if ac_fn_c_try_link "$LINENO"; then :
8480 emacs_cv_x11_version_6=yes
8481 else
8482 emacs_cv_x11_version_6=no
8483 fi
8484 rm -f core conftest.err conftest.$ac_objext \
8485 conftest$ac_exeext conftest.$ac_ext
8486 fi
8487
8488 if test $emacs_cv_x11_version_6 = yes; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8490 $as_echo "6 or newer" >&6; }
8491
8492 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8493
8494
8495 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8496
8497 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8498 ## XIM support.
8499 case "$opsys" in
8500 sol2-*) : ;;
8501 *)
8502 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8503
8504 ;;
8505 esac
8506 else
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8508 $as_echo "before 6" >&6; }
8509 fi
8510 fi
8511
8512
8513 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8514 HAVE_RSVG=no
8515 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8516 if test "${with_rsvg}" != "no"; then
8517 RSVG_REQUIRED=2.11.0
8518 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8519
8520
8521 succeeded=no
8522
8523 # Extract the first word of "pkg-config", so it can be a program name with args.
8524 set dummy pkg-config; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8528 $as_echo_n "(cached) " >&6
8529 else
8530 case $PKG_CONFIG in
8531 [\\/]* | ?:[\\/]*)
8532 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8533 ;;
8534 *)
8535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536 for as_dir in $PATH
8537 do
8538 IFS=$as_save_IFS
8539 test -z "$as_dir" && as_dir=.
8540 for ac_exec_ext in '' $ac_executable_extensions; do
8541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8542 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8544 break 2
8545 fi
8546 done
8547 done
8548 IFS=$as_save_IFS
8549
8550 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8551 ;;
8552 esac
8553 fi
8554 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8555 if test -n "$PKG_CONFIG"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8557 $as_echo "$PKG_CONFIG" >&6; }
8558 else
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8561 fi
8562
8563
8564
8565 if test "$PKG_CONFIG" = "no" ; then
8566 :
8567 else
8568 PKG_CONFIG_MIN_VERSION=0.9.0
8569 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8571 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8572
8573 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8575 $as_echo "yes" >&6; }
8576 succeeded=yes
8577
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8579 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8580 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8582 $as_echo "$RSVG_CFLAGS" >&6; }
8583
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8585 $as_echo_n "checking RSVG_LIBS... " >&6; }
8586 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8588 $as_echo "$RSVG_LIBS" >&6; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8592 RSVG_CFLAGS=""
8593 RSVG_LIBS=""
8594 ## If we have a custom action on failure, don't print errors, but
8595 ## do set a variable so people can do so.
8596 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8597
8598 fi
8599
8600
8601
8602 else
8603 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8604 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8605 fi
8606 fi
8607
8608 if test $succeeded = yes; then
8609 HAVE_RSVG=yes
8610 else
8611 :
8612 fi
8613
8614
8615
8616
8617 if test $HAVE_RSVG = yes; then
8618
8619 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8620
8621 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8622 LIBS="$RSVG_LIBS $LIBS"
8623 fi
8624 fi
8625 fi
8626
8627 HAVE_IMAGEMAGICK=no
8628 if test "${HAVE_X11}" = "yes"; then
8629 if test "${with_imagemagick}" != "no"; then
8630 IMAGEMAGICK_MODULE="Wand"
8631
8632 succeeded=no
8633
8634 # Extract the first word of "pkg-config", so it can be a program name with args.
8635 set dummy pkg-config; ac_word=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 case $PKG_CONFIG in
8642 [\\/]* | ?:[\\/]*)
8643 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8644 ;;
8645 *)
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647 for as_dir in $PATH
8648 do
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8653 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8655 break 2
8656 fi
8657 done
8658 done
8659 IFS=$as_save_IFS
8660
8661 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8662 ;;
8663 esac
8664 fi
8665 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8666 if test -n "$PKG_CONFIG"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8668 $as_echo "$PKG_CONFIG" >&6; }
8669 else
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8672 fi
8673
8674
8675
8676 if test "$PKG_CONFIG" = "no" ; then
8677 :
8678 else
8679 PKG_CONFIG_MIN_VERSION=0.9.0
8680 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8682 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8683
8684 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8686 $as_echo "yes" >&6; }
8687 succeeded=yes
8688
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8690 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8691 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8693 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8694
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8696 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8697 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8699 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8700 else
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8703 IMAGEMAGICK_CFLAGS=""
8704 IMAGEMAGICK_LIBS=""
8705 ## If we have a custom action on failure, don't print errors, but
8706 ## do set a variable so people can do so.
8707 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8708
8709 fi
8710
8711
8712
8713 else
8714 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8715 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8716 fi
8717 fi
8718
8719 if test $succeeded = yes; then
8720 HAVE_IMAGEMAGICK=yes
8721 else
8722 :
8723 fi
8724
8725
8726
8727
8728 if test $HAVE_IMAGEMAGICK = yes; then
8729
8730 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8731
8732 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
8733 LIBS="$IMAGEMAGICK_LIBS $LIBS"
8734 for ac_func in MagickExportImagePixels
8735 do :
8736 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8737 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
8738 cat >>confdefs.h <<_ACEOF
8739 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8740 _ACEOF
8741
8742 fi
8743 done
8744
8745 fi
8746 fi
8747 fi
8748
8749
8750 HAVE_GTK=no
8751 if test "${with_gtk3}" = "yes"; then
8752 GLIB_REQUIRED=2.6
8753 GTK_REQUIRED=2.90
8754 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8755
8756
8757 succeeded=no
8758
8759 # Extract the first word of "pkg-config", so it can be a program name with args.
8760 set dummy pkg-config; ac_word=$2
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 $as_echo_n "checking for $ac_word... " >&6; }
8763 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8764 $as_echo_n "(cached) " >&6
8765 else
8766 case $PKG_CONFIG in
8767 [\\/]* | ?:[\\/]*)
8768 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8769 ;;
8770 *)
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8773 do
8774 IFS=$as_save_IFS
8775 test -z "$as_dir" && as_dir=.
8776 for ac_exec_ext in '' $ac_executable_extensions; do
8777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8778 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780 break 2
8781 fi
8782 done
8783 done
8784 IFS=$as_save_IFS
8785
8786 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8787 ;;
8788 esac
8789 fi
8790 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8791 if test -n "$PKG_CONFIG"; then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8793 $as_echo "$PKG_CONFIG" >&6; }
8794 else
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 $as_echo "no" >&6; }
8797 fi
8798
8799
8800
8801 if test "$PKG_CONFIG" = "no" ; then
8802 pkg_check_gtk=no
8803 else
8804 PKG_CONFIG_MIN_VERSION=0.9.0
8805 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8807 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8808
8809 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8811 $as_echo "yes" >&6; }
8812 succeeded=yes
8813
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8815 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8816 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8818 $as_echo "$GTK_CFLAGS" >&6; }
8819
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8821 $as_echo_n "checking GTK_LIBS... " >&6; }
8822 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8824 $as_echo "$GTK_LIBS" >&6; }
8825 else
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8828 GTK_CFLAGS=""
8829 GTK_LIBS=""
8830 ## If we have a custom action on failure, don't print errors, but
8831 ## do set a variable so people can do so.
8832 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8833
8834 fi
8835
8836
8837
8838 else
8839 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8840 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8841 fi
8842 fi
8843
8844 if test $succeeded = yes; then
8845 pkg_check_gtk=yes
8846 else
8847 pkg_check_gtk=no
8848 fi
8849
8850 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8851 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8852 fi
8853 fi
8854
8855 if test "$pkg_check_gtk" != "yes"; then
8856 HAVE_GTK=no
8857 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8858 GLIB_REQUIRED=2.6
8859 GTK_REQUIRED=2.6
8860 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8861
8862
8863 succeeded=no
8864
8865 # Extract the first word of "pkg-config", so it can be a program name with args.
8866 set dummy pkg-config; ac_word=$2
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8868 $as_echo_n "checking for $ac_word... " >&6; }
8869 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8870 $as_echo_n "(cached) " >&6
8871 else
8872 case $PKG_CONFIG in
8873 [\\/]* | ?:[\\/]*)
8874 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8875 ;;
8876 *)
8877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878 for as_dir in $PATH
8879 do
8880 IFS=$as_save_IFS
8881 test -z "$as_dir" && as_dir=.
8882 for ac_exec_ext in '' $ac_executable_extensions; do
8883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8884 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8886 break 2
8887 fi
8888 done
8889 done
8890 IFS=$as_save_IFS
8891
8892 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8893 ;;
8894 esac
8895 fi
8896 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8897 if test -n "$PKG_CONFIG"; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8899 $as_echo "$PKG_CONFIG" >&6; }
8900 else
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8902 $as_echo "no" >&6; }
8903 fi
8904
8905
8906
8907 if test "$PKG_CONFIG" = "no" ; then
8908 pkg_check_gtk=no
8909 else
8910 PKG_CONFIG_MIN_VERSION=0.9.0
8911 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8913 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8914
8915 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8917 $as_echo "yes" >&6; }
8918 succeeded=yes
8919
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8921 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8922 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8924 $as_echo "$GTK_CFLAGS" >&6; }
8925
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8927 $as_echo_n "checking GTK_LIBS... " >&6; }
8928 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8930 $as_echo "$GTK_LIBS" >&6; }
8931 else
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8934 GTK_CFLAGS=""
8935 GTK_LIBS=""
8936 ## If we have a custom action on failure, don't print errors, but
8937 ## do set a variable so people can do so.
8938 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8939
8940 fi
8941
8942
8943
8944 else
8945 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8946 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8947 fi
8948 fi
8949
8950 if test $succeeded = yes; then
8951 pkg_check_gtk=yes
8952 else
8953 pkg_check_gtk=no
8954 fi
8955
8956 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8957 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8958 fi
8959 fi
8960 fi
8961
8962 GTK_OBJ=
8963 if test x"$pkg_check_gtk" = xyes; then
8964
8965
8966
8967 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8968 CFLAGS="$CFLAGS $GTK_CFLAGS"
8969 LIBS="$GTK_LIBS $LIBS"
8970 GTK_COMPILES=no
8971 for ac_func in gtk_main
8972 do :
8973 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8974 if test "x$ac_cv_func_gtk_main" = xyes; then :
8975 cat >>confdefs.h <<_ACEOF
8976 #define HAVE_GTK_MAIN 1
8977 _ACEOF
8978 GTK_COMPILES=yes
8979 fi
8980 done
8981
8982 if test "${GTK_COMPILES}" != "yes"; then
8983 if test "$USE_X_TOOLKIT" != "maybe"; then
8984 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8985 fi
8986 else
8987 HAVE_GTK=yes
8988
8989 $as_echo "#define USE_GTK 1" >>confdefs.h
8990
8991 GTK_OBJ=gtkutil.o
8992 USE_X_TOOLKIT=none
8993 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8994 :
8995 else
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8997 closing open displays. This is no problem if you just use
8998 one display, but if you use more than one and close one of them
8999 Emacs may crash." >&5
9000 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
9001 closing open displays. This is no problem if you just use
9002 one display, but if you use more than one and close one of them
9003 Emacs may crash." >&2;}
9004 sleep 3
9005 fi
9006 fi
9007
9008 fi
9009
9010
9011
9012 if test "${HAVE_GTK}" = "yes"; then
9013
9014 if test "$with_toolkit_scroll_bars" != no; then
9015 with_toolkit_scroll_bars=yes
9016 fi
9017
9018 HAVE_GTK_FILE_SELECTION=no
9019 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9020 #include <gtk/gtk.h>
9021 "
9022 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
9023 HAVE_GTK_FILE_SELECTION=yes
9024 else
9025 HAVE_GTK_FILE_SELECTION=no
9026 fi
9027
9028 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9029 for ac_func in gtk_file_selection_new
9030 do :
9031 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9032 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
9033 cat >>confdefs.h <<_ACEOF
9034 #define HAVE_GTK_FILE_SELECTION_NEW 1
9035 _ACEOF
9036
9037 fi
9038 done
9039
9040 fi
9041
9042 HAVE_GTK_AND_PTHREAD=no
9043 for ac_header in pthread.h
9044 do :
9045 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9046 if test "x$ac_cv_header_pthread_h" = xyes; then :
9047 cat >>confdefs.h <<_ACEOF
9048 #define HAVE_PTHREAD_H 1
9049 _ACEOF
9050
9051 fi
9052
9053 done
9054
9055 if test "$ac_cv_header_pthread_h"; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9057 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9058 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
9059 $as_echo_n "(cached) " >&6
9060 else
9061 ac_check_lib_save_LIBS=$LIBS
9062 LIBS="-lpthread $LIBS"
9063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064 /* end confdefs.h. */
9065
9066 /* Override any GCC internal prototype to avoid an error.
9067 Use char because int might match the return type of a GCC
9068 builtin and then its argument prototype would still apply. */
9069 #ifdef __cplusplus
9070 extern "C"
9071 #endif
9072 char pthread_self ();
9073 int
9074 main ()
9075 {
9076 return pthread_self ();
9077 ;
9078 return 0;
9079 }
9080 _ACEOF
9081 if ac_fn_c_try_link "$LINENO"; then :
9082 ac_cv_lib_pthread_pthread_self=yes
9083 else
9084 ac_cv_lib_pthread_pthread_self=no
9085 fi
9086 rm -f core conftest.err conftest.$ac_objext \
9087 conftest$ac_exeext conftest.$ac_ext
9088 LIBS=$ac_check_lib_save_LIBS
9089 fi
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9091 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9092 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
9093 HAVE_GTK_AND_PTHREAD=yes
9094 fi
9095
9096 fi
9097 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9098 case "${canonical}" in
9099 *-hpux*) ;;
9100 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
9101 esac
9102
9103 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9104
9105 fi
9106
9107 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
9108 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9109 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9110 gtk_orientable_set_orientation
9111 do :
9112 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9113 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9114 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9115 cat >>confdefs.h <<_ACEOF
9116 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9117 _ACEOF
9118
9119 fi
9120 done
9121
9122
9123 fi
9124
9125 HAVE_DBUS=no
9126 DBUS_OBJ=
9127 if test "${with_dbus}" = "yes"; then
9128
9129 succeeded=no
9130
9131 # Extract the first word of "pkg-config", so it can be a program name with args.
9132 set dummy pkg-config; ac_word=$2
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9134 $as_echo_n "checking for $ac_word... " >&6; }
9135 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9136 $as_echo_n "(cached) " >&6
9137 else
9138 case $PKG_CONFIG in
9139 [\\/]* | ?:[\\/]*)
9140 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9141 ;;
9142 *)
9143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9144 for as_dir in $PATH
9145 do
9146 IFS=$as_save_IFS
9147 test -z "$as_dir" && as_dir=.
9148 for ac_exec_ext in '' $ac_executable_extensions; do
9149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9150 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9152 break 2
9153 fi
9154 done
9155 done
9156 IFS=$as_save_IFS
9157
9158 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9159 ;;
9160 esac
9161 fi
9162 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9163 if test -n "$PKG_CONFIG"; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9165 $as_echo "$PKG_CONFIG" >&6; }
9166 else
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9169 fi
9170
9171
9172
9173 if test "$PKG_CONFIG" = "no" ; then
9174 HAVE_DBUS=no
9175 else
9176 PKG_CONFIG_MIN_VERSION=0.9.0
9177 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9179 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9180
9181 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9183 $as_echo "yes" >&6; }
9184 succeeded=yes
9185
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9187 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9188 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9190 $as_echo "$DBUS_CFLAGS" >&6; }
9191
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9193 $as_echo_n "checking DBUS_LIBS... " >&6; }
9194 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9196 $as_echo "$DBUS_LIBS" >&6; }
9197 else
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199 $as_echo "no" >&6; }
9200 DBUS_CFLAGS=""
9201 DBUS_LIBS=""
9202 ## If we have a custom action on failure, don't print errors, but
9203 ## do set a variable so people can do so.
9204 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9205
9206 fi
9207
9208
9209
9210 else
9211 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9212 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9213 fi
9214 fi
9215
9216 if test $succeeded = yes; then
9217 HAVE_DBUS=yes
9218 else
9219 HAVE_DBUS=no
9220 fi
9221
9222 if test "$HAVE_DBUS" = yes; then
9223 LIBS="$LIBS $DBUS_LIBS"
9224
9225 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9226
9227 for ac_func in dbus_watch_get_unix_fd
9228 do :
9229 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9230 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
9231 cat >>confdefs.h <<_ACEOF
9232 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9233 _ACEOF
9234
9235 fi
9236 done
9237
9238 DBUS_OBJ=dbusbind.o
9239 fi
9240 fi
9241
9242
9243 HAVE_GCONF=no
9244 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9245
9246 succeeded=no
9247
9248 # Extract the first word of "pkg-config", so it can be a program name with args.
9249 set dummy pkg-config; ac_word=$2
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251 $as_echo_n "checking for $ac_word... " >&6; }
9252 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9253 $as_echo_n "(cached) " >&6
9254 else
9255 case $PKG_CONFIG in
9256 [\\/]* | ?:[\\/]*)
9257 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9258 ;;
9259 *)
9260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9261 for as_dir in $PATH
9262 do
9263 IFS=$as_save_IFS
9264 test -z "$as_dir" && as_dir=.
9265 for ac_exec_ext in '' $ac_executable_extensions; do
9266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9267 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9269 break 2
9270 fi
9271 done
9272 done
9273 IFS=$as_save_IFS
9274
9275 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9276 ;;
9277 esac
9278 fi
9279 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9280 if test -n "$PKG_CONFIG"; then
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9282 $as_echo "$PKG_CONFIG" >&6; }
9283 else
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9285 $as_echo "no" >&6; }
9286 fi
9287
9288
9289
9290 if test "$PKG_CONFIG" = "no" ; then
9291 HAVE_GCONF=no
9292 else
9293 PKG_CONFIG_MIN_VERSION=0.9.0
9294 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9296 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9297
9298 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9300 $as_echo "yes" >&6; }
9301 succeeded=yes
9302
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9304 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9305 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9307 $as_echo "$GCONF_CFLAGS" >&6; }
9308
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9310 $as_echo_n "checking GCONF_LIBS... " >&6; }
9311 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9313 $as_echo "$GCONF_LIBS" >&6; }
9314 else
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9316 $as_echo "no" >&6; }
9317 GCONF_CFLAGS=""
9318 GCONF_LIBS=""
9319 ## If we have a custom action on failure, don't print errors, but
9320 ## do set a variable so people can do so.
9321 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9322
9323 fi
9324
9325
9326
9327 else
9328 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9329 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9330 fi
9331 fi
9332
9333 if test $succeeded = yes; then
9334 HAVE_GCONF=yes
9335 else
9336 HAVE_GCONF=no
9337 fi
9338
9339 if test "$HAVE_GCONF" = yes; then
9340
9341 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9342
9343 for ac_func in g_type_init
9344 do :
9345 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
9346 if test "x$ac_cv_func_g_type_init" = xyes; then :
9347 cat >>confdefs.h <<_ACEOF
9348 #define HAVE_G_TYPE_INIT 1
9349 _ACEOF
9350
9351 fi
9352 done
9353
9354 fi
9355 fi
9356
9357 HAVE_LIBSELINUX=no
9358 LIBSELINUX_LIBS=
9359 if test "${with_selinux}" = "yes"; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9361 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9362 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
9363 $as_echo_n "(cached) " >&6
9364 else
9365 ac_check_lib_save_LIBS=$LIBS
9366 LIBS="-lselinux $LIBS"
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369
9370 /* Override any GCC internal prototype to avoid an error.
9371 Use char because int might match the return type of a GCC
9372 builtin and then its argument prototype would still apply. */
9373 #ifdef __cplusplus
9374 extern "C"
9375 #endif
9376 char lgetfilecon ();
9377 int
9378 main ()
9379 {
9380 return lgetfilecon ();
9381 ;
9382 return 0;
9383 }
9384 _ACEOF
9385 if ac_fn_c_try_link "$LINENO"; then :
9386 ac_cv_lib_selinux_lgetfilecon=yes
9387 else
9388 ac_cv_lib_selinux_lgetfilecon=no
9389 fi
9390 rm -f core conftest.err conftest.$ac_objext \
9391 conftest$ac_exeext conftest.$ac_ext
9392 LIBS=$ac_check_lib_save_LIBS
9393 fi
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9395 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9396 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
9397 HAVE_LIBSELINUX=yes
9398 else
9399 HAVE_LIBSELINUX=no
9400 fi
9401
9402 if test "$HAVE_LIBSELINUX" = yes; then
9403
9404 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9405
9406 LIBSELINUX_LIBS=-lselinux
9407 fi
9408 fi
9409
9410
9411 HAVE_GNUTLS=no
9412 if test "${with_gnutls}" = "yes" ; then
9413
9414 succeeded=no
9415
9416 # Extract the first word of "pkg-config", so it can be a program name with args.
9417 set dummy pkg-config; ac_word=$2
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419 $as_echo_n "checking for $ac_word... " >&6; }
9420 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 case $PKG_CONFIG in
9424 [\\/]* | ?:[\\/]*)
9425 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9426 ;;
9427 *)
9428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429 for as_dir in $PATH
9430 do
9431 IFS=$as_save_IFS
9432 test -z "$as_dir" && as_dir=.
9433 for ac_exec_ext in '' $ac_executable_extensions; do
9434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9435 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9437 break 2
9438 fi
9439 done
9440 done
9441 IFS=$as_save_IFS
9442
9443 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9444 ;;
9445 esac
9446 fi
9447 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9448 if test -n "$PKG_CONFIG"; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9450 $as_echo "$PKG_CONFIG" >&6; }
9451 else
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 $as_echo "no" >&6; }
9454 fi
9455
9456
9457
9458 if test "$PKG_CONFIG" = "no" ; then
9459 HAVE_GNUTLS=no
9460 else
9461 PKG_CONFIG_MIN_VERSION=0.9.0
9462 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9464 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9465
9466 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9468 $as_echo "yes" >&6; }
9469 succeeded=yes
9470
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9472 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9473 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9475 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9476
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9478 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9479 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9481 $as_echo "$LIBGNUTLS_LIBS" >&6; }
9482 else
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484 $as_echo "no" >&6; }
9485 LIBGNUTLS_CFLAGS=""
9486 LIBGNUTLS_LIBS=""
9487 ## If we have a custom action on failure, don't print errors, but
9488 ## do set a variable so people can do so.
9489 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9490
9491 fi
9492
9493
9494
9495 else
9496 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9497 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9498 fi
9499 fi
9500
9501 if test $succeeded = yes; then
9502 HAVE_GNUTLS=yes
9503 else
9504 HAVE_GNUTLS=no
9505 fi
9506
9507 if test "${HAVE_GNUTLS}" = "yes"; then
9508
9509 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9510
9511 fi
9512 fi
9513
9514
9515
9516 HAVE_XAW3D=no
9517 LUCID_LIBW=
9518 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9519 if test "$with_xaw3d" != no; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9521 $as_echo_n "checking for xaw3d... " >&6; }
9522 if ${emacs_cv_xaw3d+:} false; then :
9523 $as_echo_n "(cached) " >&6
9524 else
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9527
9528 #include <X11/Intrinsic.h>
9529 #include <X11/Xaw3d/Simple.h>
9530 int
9531 main ()
9532 {
9533
9534 ;
9535 return 0;
9536 }
9537 _ACEOF
9538 if ac_fn_c_try_link "$LINENO"; then :
9539 emacs_cv_xaw3d=yes
9540 else
9541 emacs_cv_xaw3d=no
9542 fi
9543 rm -f core conftest.err conftest.$ac_objext \
9544 conftest$ac_exeext conftest.$ac_ext
9545 fi
9546
9547 else
9548 emacs_cv_xaw3d=no
9549 fi
9550 if test $emacs_cv_xaw3d = yes; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9552 $as_echo "yes; using Lucid toolkit" >&6; }
9553 USE_X_TOOLKIT=LUCID
9554 HAVE_XAW3D=yes
9555 LUCID_LIBW=-lXaw3d
9556
9557 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9558
9559 else
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9563 $as_echo_n "checking for libXaw... " >&6; }
9564 if ${emacs_cv_xaw+:} false; then :
9565 $as_echo_n "(cached) " >&6
9566 else
9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h. */
9569
9570 #include <X11/Intrinsic.h>
9571 #include <X11/Xaw/Simple.h>
9572 int
9573 main ()
9574 {
9575
9576 ;
9577 return 0;
9578 }
9579 _ACEOF
9580 if ac_fn_c_try_link "$LINENO"; then :
9581 emacs_cv_xaw=yes
9582 else
9583 emacs_cv_xaw=no
9584 fi
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9587 fi
9588
9589 if test $emacs_cv_xaw = yes; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9591 $as_echo "yes; using Lucid toolkit" >&6; }
9592 USE_X_TOOLKIT=LUCID
9593 LUCID_LIBW=-lXaw
9594 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9595 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9596 else
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9598 $as_echo "no; do not use toolkit by default" >&6; }
9599 USE_X_TOOLKIT=none
9600 fi
9601 fi
9602 fi
9603
9604 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9605
9606 LIBXTR6=
9607 if test "${USE_X_TOOLKIT}" != "none"; then
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9609 $as_echo_n "checking X11 toolkit version... " >&6; }
9610 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
9611 $as_echo_n "(cached) " >&6
9612 else
9613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9615 #include <X11/Intrinsic.h>
9616 int
9617 main ()
9618 {
9619 #if XtSpecificationRelease < 6
9620 fail;
9621 #endif
9622
9623 ;
9624 return 0;
9625 }
9626 _ACEOF
9627 if ac_fn_c_try_link "$LINENO"; then :
9628 emacs_cv_x11_toolkit_version_6=yes
9629 else
9630 emacs_cv_x11_toolkit_version_6=no
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634 fi
9635
9636 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9637 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9639 $as_echo "6 or newer" >&6; }
9640
9641 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9642
9643 LIBXTR6="-lSM -lICE"
9644 case "$opsys" in
9645 ## Use libw.a along with X11R6 Xt.
9646 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9647 esac
9648 else
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9650 $as_echo "before 6" >&6; }
9651 fi
9652
9653 OLDLIBS="$LIBS"
9654 if test x$HAVE_X11XTR6 = xyes; then
9655 LIBS="-lXt -lSM -lICE $LIBS"
9656 else
9657 LIBS="-lXt $LIBS"
9658 fi
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9660 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9661 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
9662 $as_echo_n "(cached) " >&6
9663 else
9664 ac_check_lib_save_LIBS=$LIBS
9665 LIBS="-lXmu $LIBS"
9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9668
9669 /* Override any GCC internal prototype to avoid an error.
9670 Use char because int might match the return type of a GCC
9671 builtin and then its argument prototype would still apply. */
9672 #ifdef __cplusplus
9673 extern "C"
9674 #endif
9675 char XmuConvertStandardSelection ();
9676 int
9677 main ()
9678 {
9679 return XmuConvertStandardSelection ();
9680 ;
9681 return 0;
9682 }
9683 _ACEOF
9684 if ac_fn_c_try_link "$LINENO"; then :
9685 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9686 else
9687 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9688 fi
9689 rm -f core conftest.err conftest.$ac_objext \
9690 conftest$ac_exeext conftest.$ac_ext
9691 LIBS=$ac_check_lib_save_LIBS
9692 fi
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9694 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9695 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
9696 cat >>confdefs.h <<_ACEOF
9697 #define HAVE_LIBXMU 1
9698 _ACEOF
9699
9700 LIBS="-lXmu $LIBS"
9701
9702 fi
9703
9704 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9705 fi
9706
9707
9708 LIBXMU=-lXmu
9709 case $opsys in
9710 ## These systems don't supply Xmu.
9711 hpux* | aix4-2 )
9712 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9713 ;;
9714 esac
9715
9716
9717 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9718 if test "${HAVE_X11}" = "yes"; then
9719 if test "${USE_X_TOOLKIT}" != "none"; then
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9721 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9722 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9723 $as_echo_n "(cached) " >&6
9724 else
9725 ac_check_lib_save_LIBS=$LIBS
9726 LIBS="-lXext $LIBS"
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9729
9730 /* Override any GCC internal prototype to avoid an error.
9731 Use char because int might match the return type of a GCC
9732 builtin and then its argument prototype would still apply. */
9733 #ifdef __cplusplus
9734 extern "C"
9735 #endif
9736 char XShapeQueryExtension ();
9737 int
9738 main ()
9739 {
9740 return XShapeQueryExtension ();
9741 ;
9742 return 0;
9743 }
9744 _ACEOF
9745 if ac_fn_c_try_link "$LINENO"; then :
9746 ac_cv_lib_Xext_XShapeQueryExtension=yes
9747 else
9748 ac_cv_lib_Xext_XShapeQueryExtension=no
9749 fi
9750 rm -f core conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
9752 LIBS=$ac_check_lib_save_LIBS
9753 fi
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9755 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9756 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9757 cat >>confdefs.h <<_ACEOF
9758 #define HAVE_LIBXEXT 1
9759 _ACEOF
9760
9761 LIBS="-lXext $LIBS"
9762
9763 fi
9764
9765 fi
9766 fi
9767
9768 LIBXP=
9769 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9771 $as_echo_n "checking for Motif version 2.1... " >&6; }
9772 if ${emacs_cv_motif_version_2_1+:} false; then :
9773 $as_echo_n "(cached) " >&6
9774 else
9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776 /* end confdefs.h. */
9777 #include <Xm/Xm.h>
9778 int
9779 main ()
9780 {
9781 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9782 int x = 5;
9783 #else
9784 Motif version prior to 2.1.
9785 #endif
9786 ;
9787 return 0;
9788 }
9789 _ACEOF
9790 if ac_fn_c_try_compile "$LINENO"; then :
9791 emacs_cv_motif_version_2_1=yes
9792 else
9793 emacs_cv_motif_version_2_1=no
9794 fi
9795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9796 fi
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9798 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9799 if test $emacs_cv_motif_version_2_1 = yes; then
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9801 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9802 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
9803 $as_echo_n "(cached) " >&6
9804 else
9805 ac_check_lib_save_LIBS=$LIBS
9806 LIBS="-lXp $LIBS"
9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h. */
9809
9810 /* Override any GCC internal prototype to avoid an error.
9811 Use char because int might match the return type of a GCC
9812 builtin and then its argument prototype would still apply. */
9813 #ifdef __cplusplus
9814 extern "C"
9815 #endif
9816 char XpCreateContext ();
9817 int
9818 main ()
9819 {
9820 return XpCreateContext ();
9821 ;
9822 return 0;
9823 }
9824 _ACEOF
9825 if ac_fn_c_try_link "$LINENO"; then :
9826 ac_cv_lib_Xp_XpCreateContext=yes
9827 else
9828 ac_cv_lib_Xp_XpCreateContext=no
9829 fi
9830 rm -f core conftest.err conftest.$ac_objext \
9831 conftest$ac_exeext conftest.$ac_ext
9832 LIBS=$ac_check_lib_save_LIBS
9833 fi
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9835 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9836 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
9837 LIBXP=-lXp
9838 fi
9839
9840 else
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9842 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9843 if ${emacs_cv_lesstif+:} false; then :
9844 $as_echo_n "(cached) " >&6
9845 else
9846 # We put this in CFLAGS temporarily to precede other -I options
9847 # that might be in CFLAGS temporarily.
9848 # We put this in CPPFLAGS where it precedes the other -I options.
9849 OLD_CPPFLAGS=$CPPFLAGS
9850 OLD_CFLAGS=$CFLAGS
9851 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9852 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854 /* end confdefs.h. */
9855 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9856 int
9857 main ()
9858 {
9859 int x = 5;
9860 ;
9861 return 0;
9862 }
9863 _ACEOF
9864 if ac_fn_c_try_compile "$LINENO"; then :
9865 emacs_cv_lesstif=yes
9866 else
9867 emacs_cv_lesstif=no
9868 fi
9869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9870 fi
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9872 $as_echo "$emacs_cv_lesstif" >&6; }
9873 if test $emacs_cv_lesstif = yes; then
9874 # Make sure this -I option remains in CPPFLAGS after it is set
9875 # back to REAL_CPPFLAGS.
9876 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9877 # have those other -I options anyway. Ultimately, having this
9878 # directory ultimately in CPPFLAGS will be enough.
9879 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9880 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9881 else
9882 CFLAGS=$OLD_CFLAGS
9883 CPPFLAGS=$OLD_CPPFLAGS
9884 fi
9885 fi
9886 fi
9887
9888
9889 USE_TOOLKIT_SCROLL_BARS=no
9890 if test "${with_toolkit_scroll_bars}" != "no"; then
9891 if test "${USE_X_TOOLKIT}" != "none"; then
9892 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9893 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9894
9895 HAVE_XAW3D=no
9896 USE_TOOLKIT_SCROLL_BARS=yes
9897 elif test "${HAVE_XAW3D}" = "yes"; then
9898 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9899
9900 USE_TOOLKIT_SCROLL_BARS=yes
9901 fi
9902 elif test "${HAVE_GTK}" = "yes"; then
9903 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9904
9905 USE_TOOLKIT_SCROLL_BARS=yes
9906 elif test "${HAVE_NS}" = "yes"; then
9907 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9908
9909 USE_TOOLKIT_SCROLL_BARS=yes
9910 fi
9911 fi
9912
9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h. */
9915
9916 #include <X11/Xlib.h>
9917 #include <X11/Xresource.h>
9918 int
9919 main ()
9920 {
9921 XIMProc callback;
9922 ;
9923 return 0;
9924 }
9925 _ACEOF
9926 if ac_fn_c_try_compile "$LINENO"; then :
9927 HAVE_XIM=yes
9928
9929 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9930
9931 else
9932 HAVE_XIM=no
9933 fi
9934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9935
9936
9937 if test "${with_xim}" != "no"; then
9938
9939 $as_echo "#define USE_XIM 1" >>confdefs.h
9940
9941 fi
9942
9943
9944 if test "${HAVE_XIM}" != "no"; then
9945 late_CFLAGS=$CFLAGS
9946 if test "$GCC" = yes; then
9947 CFLAGS="$CFLAGS --pedantic-errors"
9948 fi
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9951
9952 #include <X11/Xlib.h>
9953 #include <X11/Xresource.h>
9954 int
9955 main ()
9956 {
9957 Display *display;
9958 XrmDatabase db;
9959 char *res_name;
9960 char *res_class;
9961 XIMProc callback;
9962 XPointer *client_data;
9963 #ifndef __GNUC__
9964 /* If we're not using GCC, it's probably not XFree86, and this is
9965 probably right, but we can't use something like --pedantic-errors. */
9966 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9967 char*, XIMProc, XPointer*);
9968 #endif
9969 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9970 client_data);
9971 ;
9972 return 0;
9973 }
9974 _ACEOF
9975 if ac_fn_c_try_compile "$LINENO"; then :
9976 emacs_cv_arg6_star=yes
9977 fi
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 if test "$emacs_cv_arg6_star" = yes; then
9980 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9981
9982 else
9983 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9984
9985 fi
9986 CFLAGS=$late_CFLAGS
9987 fi
9988
9989 ### Start of font-backend (under any platform) section.
9990 # (nothing here yet -- this is a placeholder)
9991 ### End of font-backend (under any platform) section.
9992
9993 ### Start of font-backend (under X11) section.
9994 if test "${HAVE_X11}" = "yes"; then
9995
9996 succeeded=no
9997
9998 # Extract the first word of "pkg-config", so it can be a program name with args.
9999 set dummy pkg-config; ac_word=$2
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10001 $as_echo_n "checking for $ac_word... " >&6; }
10002 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10003 $as_echo_n "(cached) " >&6
10004 else
10005 case $PKG_CONFIG in
10006 [\\/]* | ?:[\\/]*)
10007 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10008 ;;
10009 *)
10010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011 for as_dir in $PATH
10012 do
10013 IFS=$as_save_IFS
10014 test -z "$as_dir" && as_dir=.
10015 for ac_exec_ext in '' $ac_executable_extensions; do
10016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10017 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 break 2
10020 fi
10021 done
10022 done
10023 IFS=$as_save_IFS
10024
10025 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10026 ;;
10027 esac
10028 fi
10029 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10030 if test -n "$PKG_CONFIG"; then
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10032 $as_echo "$PKG_CONFIG" >&6; }
10033 else
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 $as_echo "no" >&6; }
10036 fi
10037
10038
10039
10040 if test "$PKG_CONFIG" = "no" ; then
10041 HAVE_FC=no
10042 else
10043 PKG_CONFIG_MIN_VERSION=0.9.0
10044 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10046 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10047
10048 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10050 $as_echo "yes" >&6; }
10051 succeeded=yes
10052
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10054 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10055 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10057 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10058
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10060 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10061 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10063 $as_echo "$FONTCONFIG_LIBS" >&6; }
10064 else
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066 $as_echo "no" >&6; }
10067 FONTCONFIG_CFLAGS=""
10068 FONTCONFIG_LIBS=""
10069 ## If we have a custom action on failure, don't print errors, but
10070 ## do set a variable so people can do so.
10071 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10072
10073 fi
10074
10075
10076
10077 else
10078 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10079 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10080 fi
10081 fi
10082
10083 if test $succeeded = yes; then
10084 HAVE_FC=yes
10085 else
10086 HAVE_FC=no
10087 fi
10088
10089
10090 ## Use -lXft if available, unless `--with-xft=no'.
10091 HAVE_XFT=maybe
10092 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
10093 with_xft="no";
10094 fi
10095 if test "x${with_xft}" != "xno"; then
10096
10097
10098 succeeded=no
10099
10100 # Extract the first word of "pkg-config", so it can be a program name with args.
10101 set dummy pkg-config; ac_word=$2
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10103 $as_echo_n "checking for $ac_word... " >&6; }
10104 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107 case $PKG_CONFIG in
10108 [\\/]* | ?:[\\/]*)
10109 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10110 ;;
10111 *)
10112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113 for as_dir in $PATH
10114 do
10115 IFS=$as_save_IFS
10116 test -z "$as_dir" && as_dir=.
10117 for ac_exec_ext in '' $ac_executable_extensions; do
10118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10119 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10121 break 2
10122 fi
10123 done
10124 done
10125 IFS=$as_save_IFS
10126
10127 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10128 ;;
10129 esac
10130 fi
10131 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10132 if test -n "$PKG_CONFIG"; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10134 $as_echo "$PKG_CONFIG" >&6; }
10135 else
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10138 fi
10139
10140
10141
10142 if test "$PKG_CONFIG" = "no" ; then
10143 HAVE_XFT=no
10144 else
10145 PKG_CONFIG_MIN_VERSION=0.9.0
10146 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10148 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10149
10150 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10152 $as_echo "yes" >&6; }
10153 succeeded=yes
10154
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10156 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10157 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10159 $as_echo "$XFT_CFLAGS" >&6; }
10160
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10162 $as_echo_n "checking XFT_LIBS... " >&6; }
10163 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10165 $as_echo "$XFT_LIBS" >&6; }
10166 else
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10169 XFT_CFLAGS=""
10170 XFT_LIBS=""
10171 ## If we have a custom action on failure, don't print errors, but
10172 ## do set a variable so people can do so.
10173 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10174
10175 fi
10176
10177
10178
10179 else
10180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10182 fi
10183 fi
10184
10185 if test $succeeded = yes; then
10186 :
10187 else
10188 HAVE_XFT=no
10189 fi
10190
10191 ## Because xftfont.c uses XRenderQueryExtension, we also
10192 ## need to link to -lXrender.
10193 HAVE_XRENDER=no
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10195 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10196 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
10197 $as_echo_n "(cached) " >&6
10198 else
10199 ac_check_lib_save_LIBS=$LIBS
10200 LIBS="-lXrender $LIBS"
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10203
10204 /* Override any GCC internal prototype to avoid an error.
10205 Use char because int might match the return type of a GCC
10206 builtin and then its argument prototype would still apply. */
10207 #ifdef __cplusplus
10208 extern "C"
10209 #endif
10210 char XRenderQueryExtension ();
10211 int
10212 main ()
10213 {
10214 return XRenderQueryExtension ();
10215 ;
10216 return 0;
10217 }
10218 _ACEOF
10219 if ac_fn_c_try_link "$LINENO"; then :
10220 ac_cv_lib_Xrender_XRenderQueryExtension=yes
10221 else
10222 ac_cv_lib_Xrender_XRenderQueryExtension=no
10223 fi
10224 rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10226 LIBS=$ac_check_lib_save_LIBS
10227 fi
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10229 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10230 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
10231 HAVE_XRENDER=yes
10232 fi
10233
10234 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
10235 OLD_CPPFLAGS="$CPPFLAGS"
10236 OLD_CFLAGS="$CFLAGS"
10237 OLD_LIBS="$LIBS"
10238 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
10239 CFLAGS="$CFLAGS $XFT_CFLAGS"
10240 XFT_LIBS="-lXrender $XFT_LIBS"
10241 LIBS="$XFT_LIBS $LIBS"
10242 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10243 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10245 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10246 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
10247 $as_echo_n "(cached) " >&6
10248 else
10249 ac_check_lib_save_LIBS=$LIBS
10250 LIBS="-lXft $XFT_LIBS $LIBS"
10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10253
10254 /* Override any GCC internal prototype to avoid an error.
10255 Use char because int might match the return type of a GCC
10256 builtin and then its argument prototype would still apply. */
10257 #ifdef __cplusplus
10258 extern "C"
10259 #endif
10260 char XftFontOpen ();
10261 int
10262 main ()
10263 {
10264 return XftFontOpen ();
10265 ;
10266 return 0;
10267 }
10268 _ACEOF
10269 if ac_fn_c_try_link "$LINENO"; then :
10270 ac_cv_lib_Xft_XftFontOpen=yes
10271 else
10272 ac_cv_lib_Xft_XftFontOpen=no
10273 fi
10274 rm -f core conftest.err conftest.$ac_objext \
10275 conftest$ac_exeext conftest.$ac_ext
10276 LIBS=$ac_check_lib_save_LIBS
10277 fi
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10279 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10280 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
10281 HAVE_XFT=yes
10282 fi
10283
10284 fi
10285
10286
10287
10288 if test "${HAVE_XFT}" = "yes"; then
10289
10290 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10291
10292
10293 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
10294 else
10295 CPPFLAGS="$OLD_CPPFLAGS"
10296 CFLAGS="$OLD_CFLAGS"
10297 LIBS="$OLD_LIBS"
10298 fi # "${HAVE_XFT}" = "yes"
10299 fi # "$HAVE_XFT" != no
10300 fi # "x${with_xft}" != "xno"
10301
10302 if test "$HAVE_XFT" != "yes"; then
10303 HAVE_XFT=no
10304 fi
10305
10306
10307 HAVE_FREETYPE=no
10308 ## We used to allow building with FreeType and without Xft.
10309 ## However, the ftx font backend driver is not in good shape.
10310 if test "${HAVE_XFT}" = "yes"; then
10311 HAVE_FREETYPE=yes
10312 FONTCONFIG_CFLAGS=
10313 FONTCONFIG_LIBS=
10314 fi
10315
10316 HAVE_LIBOTF=no
10317 if test "${HAVE_FREETYPE}" = "yes"; then
10318
10319 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10320
10321 if test "${with_libotf}" != "no"; then
10322
10323 succeeded=no
10324
10325 # Extract the first word of "pkg-config", so it can be a program name with args.
10326 set dummy pkg-config; ac_word=$2
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328 $as_echo_n "checking for $ac_word... " >&6; }
10329 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10330 $as_echo_n "(cached) " >&6
10331 else
10332 case $PKG_CONFIG in
10333 [\\/]* | ?:[\\/]*)
10334 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10335 ;;
10336 *)
10337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338 for as_dir in $PATH
10339 do
10340 IFS=$as_save_IFS
10341 test -z "$as_dir" && as_dir=.
10342 for ac_exec_ext in '' $ac_executable_extensions; do
10343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10344 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10346 break 2
10347 fi
10348 done
10349 done
10350 IFS=$as_save_IFS
10351
10352 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10353 ;;
10354 esac
10355 fi
10356 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10357 if test -n "$PKG_CONFIG"; then
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10359 $as_echo "$PKG_CONFIG" >&6; }
10360 else
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362 $as_echo "no" >&6; }
10363 fi
10364
10365
10366
10367 if test "$PKG_CONFIG" = "no" ; then
10368 HAVE_LIBOTF=no
10369 else
10370 PKG_CONFIG_MIN_VERSION=0.9.0
10371 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10373 $as_echo_n "checking for libotf... " >&6; }
10374
10375 if $PKG_CONFIG --exists "libotf" 2>&5; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10377 $as_echo "yes" >&6; }
10378 succeeded=yes
10379
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10381 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10382 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10384 $as_echo "$LIBOTF_CFLAGS" >&6; }
10385
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10387 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10388 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10390 $as_echo "$LIBOTF_LIBS" >&6; }
10391 else
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393 $as_echo "no" >&6; }
10394 LIBOTF_CFLAGS=""
10395 LIBOTF_LIBS=""
10396 ## If we have a custom action on failure, don't print errors, but
10397 ## do set a variable so people can do so.
10398 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10399
10400 fi
10401
10402
10403
10404 else
10405 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10406 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10407 fi
10408 fi
10409
10410 if test $succeeded = yes; then
10411 HAVE_LIBOTF=yes
10412 else
10413 HAVE_LIBOTF=no
10414 fi
10415
10416 if test "$HAVE_LIBOTF" = "yes"; then
10417
10418 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10419
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10421 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10422 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
10423 $as_echo_n "(cached) " >&6
10424 else
10425 ac_check_lib_save_LIBS=$LIBS
10426 LIBS="-lotf $LIBS"
10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h. */
10429
10430 /* Override any GCC internal prototype to avoid an error.
10431 Use char because int might match the return type of a GCC
10432 builtin and then its argument prototype would still apply. */
10433 #ifdef __cplusplus
10434 extern "C"
10435 #endif
10436 char OTF_get_variation_glyphs ();
10437 int
10438 main ()
10439 {
10440 return OTF_get_variation_glyphs ();
10441 ;
10442 return 0;
10443 }
10444 _ACEOF
10445 if ac_fn_c_try_link "$LINENO"; then :
10446 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
10447 else
10448 ac_cv_lib_otf_OTF_get_variation_glyphs=no
10449 fi
10450 rm -f core conftest.err conftest.$ac_objext \
10451 conftest$ac_exeext conftest.$ac_ext
10452 LIBS=$ac_check_lib_save_LIBS
10453 fi
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10455 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10456 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
10457 HAVE_OTF_GET_VARIATION_GLYPHS=yes
10458 else
10459 HAVE_OTF_GET_VARIATION_GLYPHS=no
10460 fi
10461
10462 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10463
10464 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10465
10466 fi
10467 fi
10468 fi
10469 fi
10470
10471 HAVE_M17N_FLT=no
10472 if test "${HAVE_LIBOTF}" = yes; then
10473 if test "${with_m17n_flt}" != "no"; then
10474
10475 succeeded=no
10476
10477 # Extract the first word of "pkg-config", so it can be a program name with args.
10478 set dummy pkg-config; ac_word=$2
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10480 $as_echo_n "checking for $ac_word... " >&6; }
10481 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10482 $as_echo_n "(cached) " >&6
10483 else
10484 case $PKG_CONFIG in
10485 [\\/]* | ?:[\\/]*)
10486 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10487 ;;
10488 *)
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490 for as_dir in $PATH
10491 do
10492 IFS=$as_save_IFS
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10496 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10498 break 2
10499 fi
10500 done
10501 done
10502 IFS=$as_save_IFS
10503
10504 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10505 ;;
10506 esac
10507 fi
10508 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10509 if test -n "$PKG_CONFIG"; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10511 $as_echo "$PKG_CONFIG" >&6; }
10512 else
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514 $as_echo "no" >&6; }
10515 fi
10516
10517
10518
10519 if test "$PKG_CONFIG" = "no" ; then
10520 HAVE_M17N_FLT=no
10521 else
10522 PKG_CONFIG_MIN_VERSION=0.9.0
10523 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10525 $as_echo_n "checking for m17n-flt... " >&6; }
10526
10527 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10529 $as_echo "yes" >&6; }
10530 succeeded=yes
10531
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10533 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10534 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10536 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10537
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10539 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10540 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10542 $as_echo "$M17N_FLT_LIBS" >&6; }
10543 else
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10546 M17N_FLT_CFLAGS=""
10547 M17N_FLT_LIBS=""
10548 ## If we have a custom action on failure, don't print errors, but
10549 ## do set a variable so people can do so.
10550 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10551
10552 fi
10553
10554
10555
10556 else
10557 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10558 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10559 fi
10560 fi
10561
10562 if test $succeeded = yes; then
10563 HAVE_M17N_FLT=yes
10564 else
10565 HAVE_M17N_FLT=no
10566 fi
10567
10568 if test "$HAVE_M17N_FLT" = "yes"; then
10569
10570 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10571
10572 fi
10573 fi
10574 fi
10575 else
10576 HAVE_XFT=no
10577 HAVE_FREETYPE=no
10578 HAVE_LIBOTF=no
10579 HAVE_M17N_FLT=no
10580 fi
10581
10582 ### End of font-backend (under X11) section.
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593 ### Use -lXpm if available, unless `--with-xpm=no'.
10594 HAVE_XPM=no
10595 LIBXPM=
10596 if test "${HAVE_X11}" = "yes"; then
10597 if test "${with_xpm}" != "no"; then
10598 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10599 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10601 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10602 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
10603 $as_echo_n "(cached) " >&6
10604 else
10605 ac_check_lib_save_LIBS=$LIBS
10606 LIBS="-lXpm -lX11 $LIBS"
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10609
10610 /* Override any GCC internal prototype to avoid an error.
10611 Use char because int might match the return type of a GCC
10612 builtin and then its argument prototype would still apply. */
10613 #ifdef __cplusplus
10614 extern "C"
10615 #endif
10616 char XpmReadFileToPixmap ();
10617 int
10618 main ()
10619 {
10620 return XpmReadFileToPixmap ();
10621 ;
10622 return 0;
10623 }
10624 _ACEOF
10625 if ac_fn_c_try_link "$LINENO"; then :
10626 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10627 else
10628 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10629 fi
10630 rm -f core conftest.err conftest.$ac_objext \
10631 conftest$ac_exeext conftest.$ac_ext
10632 LIBS=$ac_check_lib_save_LIBS
10633 fi
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10635 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10636 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
10637 HAVE_XPM=yes
10638 fi
10639
10640 fi
10641
10642
10643 if test "${HAVE_XPM}" = "yes"; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10645 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10648 #include "X11/xpm.h"
10649 #ifndef XpmReturnAllocPixels
10650 no_return_alloc_pixels
10651 #endif
10652
10653 _ACEOF
10654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10655 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10656 HAVE_XPM=no
10657 else
10658 HAVE_XPM=yes
10659 fi
10660 rm -f conftest*
10661
10662
10663 if test "${HAVE_XPM}" = "yes"; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10665 $as_echo "yes" >&6; }
10666 else
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668 $as_echo "no" >&6; }
10669 fi
10670 fi
10671 fi
10672
10673 if test "${HAVE_XPM}" = "yes"; then
10674
10675 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10676
10677 LIBXPM=-lXpm
10678 fi
10679 fi
10680
10681
10682 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10683 HAVE_JPEG=no
10684 LIBJPEG=
10685 if test "${HAVE_X11}" = "yes"; then
10686 if test "${with_jpeg}" != "no"; then
10687 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10688 if test "x$ac_cv_header_jerror_h" = xyes; then :
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10690 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10691 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
10692 $as_echo_n "(cached) " >&6
10693 else
10694 ac_check_lib_save_LIBS=$LIBS
10695 LIBS="-ljpeg $LIBS"
10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10698
10699 /* Override any GCC internal prototype to avoid an error.
10700 Use char because int might match the return type of a GCC
10701 builtin and then its argument prototype would still apply. */
10702 #ifdef __cplusplus
10703 extern "C"
10704 #endif
10705 char jpeg_destroy_compress ();
10706 int
10707 main ()
10708 {
10709 return jpeg_destroy_compress ();
10710 ;
10711 return 0;
10712 }
10713 _ACEOF
10714 if ac_fn_c_try_link "$LINENO"; then :
10715 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10716 else
10717 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10718 fi
10719 rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10721 LIBS=$ac_check_lib_save_LIBS
10722 fi
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10724 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10725 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
10726 HAVE_JPEG=yes
10727 fi
10728
10729 fi
10730
10731
10732 fi
10733
10734 if test "${HAVE_JPEG}" = "yes"; then
10735 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10736
10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739 #include <jpeglib.h>
10740 version=JPEG_LIB_VERSION
10741
10742 _ACEOF
10743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10744 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10745 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10746
10747 else
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10749 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10750 HAVE_JPEG=no
10751 fi
10752 rm -f conftest*
10753
10754 fi
10755 if test "${HAVE_JPEG}" = "yes"; then
10756 LIBJPEG=-ljpeg
10757 fi
10758 fi
10759
10760
10761 ### Use -lpng if available, unless `--with-png=no'.
10762 HAVE_PNG=no
10763 LIBPNG=
10764 if test "${HAVE_X11}" = "yes"; then
10765 if test "${with_png}" != "no"; then
10766 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10767 # in /usr/include/libpng.
10768 for ac_header in png.h libpng/png.h
10769 do :
10770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10771 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10772 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10773 cat >>confdefs.h <<_ACEOF
10774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10775 _ACEOF
10776
10777 fi
10778
10779 done
10780
10781 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10783 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10784 if ${ac_cv_lib_png_png_get_channels+:} false; then :
10785 $as_echo_n "(cached) " >&6
10786 else
10787 ac_check_lib_save_LIBS=$LIBS
10788 LIBS="-lpng -lz -lm $LIBS"
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10791
10792 /* Override any GCC internal prototype to avoid an error.
10793 Use char because int might match the return type of a GCC
10794 builtin and then its argument prototype would still apply. */
10795 #ifdef __cplusplus
10796 extern "C"
10797 #endif
10798 char png_get_channels ();
10799 int
10800 main ()
10801 {
10802 return png_get_channels ();
10803 ;
10804 return 0;
10805 }
10806 _ACEOF
10807 if ac_fn_c_try_link "$LINENO"; then :
10808 ac_cv_lib_png_png_get_channels=yes
10809 else
10810 ac_cv_lib_png_png_get_channels=no
10811 fi
10812 rm -f core conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10815 fi
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10817 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10818 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
10819 HAVE_PNG=yes
10820 fi
10821
10822 fi
10823 fi
10824
10825 if test "${HAVE_PNG}" = "yes"; then
10826
10827 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10828
10829 LIBPNG="-lpng -lz -lm"
10830 fi
10831 fi
10832
10833
10834 ### Use -ltiff if available, unless `--with-tiff=no'.
10835 HAVE_TIFF=no
10836 LIBTIFF=
10837 if test "${HAVE_X11}" = "yes"; then
10838 if test "${with_tiff}" != "no"; then
10839 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10840 if test "x$ac_cv_header_tiffio_h" = xyes; then :
10841 tifflibs="-lz -lm"
10842 # At least one tiff package requires the jpeg library.
10843 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10845 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10846 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 ac_check_lib_save_LIBS=$LIBS
10850 LIBS="-ltiff $tifflibs $LIBS"
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10853
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char TIFFGetVersion ();
10861 int
10862 main ()
10863 {
10864 return TIFFGetVersion ();
10865 ;
10866 return 0;
10867 }
10868 _ACEOF
10869 if ac_fn_c_try_link "$LINENO"; then :
10870 ac_cv_lib_tiff_TIFFGetVersion=yes
10871 else
10872 ac_cv_lib_tiff_TIFFGetVersion=no
10873 fi
10874 rm -f core conftest.err conftest.$ac_objext \
10875 conftest$ac_exeext conftest.$ac_ext
10876 LIBS=$ac_check_lib_save_LIBS
10877 fi
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10879 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10880 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
10881 HAVE_TIFF=yes
10882 fi
10883
10884 fi
10885
10886
10887 fi
10888
10889 if test "${HAVE_TIFF}" = "yes"; then
10890
10891 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10892
10893 LIBTIFF=-ltiff
10894 fi
10895 fi
10896
10897
10898 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10899 HAVE_GIF=no
10900 LIBGIF=
10901 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10902 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10903 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
10904 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10905 # Earlier versions can crash Emacs.
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10907 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10908 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
10909 $as_echo_n "(cached) " >&6
10910 else
10911 ac_check_lib_save_LIBS=$LIBS
10912 LIBS="-lgif $LIBS"
10913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10914 /* end confdefs.h. */
10915
10916 /* Override any GCC internal prototype to avoid an error.
10917 Use char because int might match the return type of a GCC
10918 builtin and then its argument prototype would still apply. */
10919 #ifdef __cplusplus
10920 extern "C"
10921 #endif
10922 char EGifPutExtensionLast ();
10923 int
10924 main ()
10925 {
10926 return EGifPutExtensionLast ();
10927 ;
10928 return 0;
10929 }
10930 _ACEOF
10931 if ac_fn_c_try_link "$LINENO"; then :
10932 ac_cv_lib_gif_EGifPutExtensionLast=yes
10933 else
10934 ac_cv_lib_gif_EGifPutExtensionLast=no
10935 fi
10936 rm -f core conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext conftest.$ac_ext
10938 LIBS=$ac_check_lib_save_LIBS
10939 fi
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10941 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10942 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
10943 HAVE_GIF=yes
10944 else
10945 HAVE_GIF=maybe
10946 fi
10947
10948 fi
10949
10950
10951
10952 if test "$HAVE_GIF" = yes; then
10953 LIBGIF=-lgif
10954 elif test "$HAVE_GIF" = maybe; then
10955 # If gif_lib.h but no libgif, try libungif.
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10957 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10958 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
10959 $as_echo_n "(cached) " >&6
10960 else
10961 ac_check_lib_save_LIBS=$LIBS
10962 LIBS="-lungif $LIBS"
10963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h. */
10965
10966 /* Override any GCC internal prototype to avoid an error.
10967 Use char because int might match the return type of a GCC
10968 builtin and then its argument prototype would still apply. */
10969 #ifdef __cplusplus
10970 extern "C"
10971 #endif
10972 char EGifPutExtensionLast ();
10973 int
10974 main ()
10975 {
10976 return EGifPutExtensionLast ();
10977 ;
10978 return 0;
10979 }
10980 _ACEOF
10981 if ac_fn_c_try_link "$LINENO"; then :
10982 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10983 else
10984 ac_cv_lib_ungif_EGifPutExtensionLast=no
10985 fi
10986 rm -f core conftest.err conftest.$ac_objext \
10987 conftest$ac_exeext conftest.$ac_ext
10988 LIBS=$ac_check_lib_save_LIBS
10989 fi
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10991 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10992 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
10993 HAVE_GIF=yes
10994 else
10995 HAVE_GIF=no
10996 fi
10997
10998 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10999 fi
11000
11001 if test "${HAVE_GIF}" = "yes"; then
11002
11003 $as_echo "#define HAVE_GIF 1" >>confdefs.h
11004
11005 fi
11006 fi
11007
11008
11009 if test "${HAVE_X11}" = "yes"; then
11010 MISSING=""
11011 WITH_NO=""
11012 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11013 MISSING="libXpm" && WITH_NO="--with-xpm=no"
11014 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11015 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
11016 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11017 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
11018 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11019 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
11020 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11021 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
11022
11023 if test "X${MISSING}" != X; then
11024 as_fn_error $? "The following required libraries were not found:
11025 $MISSING
11026 Maybe some development libraries/packages are missing?
11027 If you don't want to link with them give
11028 $WITH_NO
11029 as options to configure" "$LINENO" 5
11030 fi
11031 fi
11032
11033 ### Use -lgpm if available, unless `--with-gpm=no'.
11034 HAVE_GPM=no
11035 LIBGPM=
11036 MOUSE_SUPPORT=
11037 if test "${with_gpm}" != "no"; then
11038 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11039 if test "x$ac_cv_header_gpm_h" = xyes; then :
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11041 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11042 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
11043 $as_echo_n "(cached) " >&6
11044 else
11045 ac_check_lib_save_LIBS=$LIBS
11046 LIBS="-lgpm $LIBS"
11047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h. */
11049
11050 /* Override any GCC internal prototype to avoid an error.
11051 Use char because int might match the return type of a GCC
11052 builtin and then its argument prototype would still apply. */
11053 #ifdef __cplusplus
11054 extern "C"
11055 #endif
11056 char Gpm_Open ();
11057 int
11058 main ()
11059 {
11060 return Gpm_Open ();
11061 ;
11062 return 0;
11063 }
11064 _ACEOF
11065 if ac_fn_c_try_link "$LINENO"; then :
11066 ac_cv_lib_gpm_Gpm_Open=yes
11067 else
11068 ac_cv_lib_gpm_Gpm_Open=no
11069 fi
11070 rm -f core conftest.err conftest.$ac_objext \
11071 conftest$ac_exeext conftest.$ac_ext
11072 LIBS=$ac_check_lib_save_LIBS
11073 fi
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11075 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11076 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
11077 HAVE_GPM=yes
11078 fi
11079
11080 fi
11081
11082
11083
11084 if test "${HAVE_GPM}" = "yes"; then
11085
11086 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11087
11088 LIBGPM=-lgpm
11089 ## May be reset below.
11090 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
11091 fi
11092 fi
11093
11094
11095 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11096 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
11097
11098 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11099
11100 fi
11101
11102
11103
11104 C_SWITCH_X_SYSTEM=
11105 ### Use NeXTstep API to implement GUI.
11106 if test "${HAVE_NS}" = "yes"; then
11107
11108 $as_echo "#define HAVE_NS 1" >>confdefs.h
11109
11110 if test "${NS_IMPL_COCOA}" = "yes"; then
11111
11112 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11113
11114 GNU_OBJC_CFLAGS=
11115 fi
11116 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11117
11118 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11119
11120 # See also .m.o rule in Makefile.in */
11121 # FIXME: are all these flags really needed? Document here why. */
11122 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
11123 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11124 fi
11125 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11126
11127 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11128
11129 fi
11130 # We also have mouse menus.
11131 HAVE_MENUS=yes
11132 OTHER_FILES=ns-app
11133 fi
11134
11135
11136 ### Use session management (-lSM -lICE) if available
11137 HAVE_X_SM=no
11138 LIBXSM=
11139 if test "${HAVE_X11}" = "yes"; then
11140 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11141 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11143 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11144 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
11145 $as_echo_n "(cached) " >&6
11146 else
11147 ac_check_lib_save_LIBS=$LIBS
11148 LIBS="-lSM -lICE $LIBS"
11149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11151
11152 /* Override any GCC internal prototype to avoid an error.
11153 Use char because int might match the return type of a GCC
11154 builtin and then its argument prototype would still apply. */
11155 #ifdef __cplusplus
11156 extern "C"
11157 #endif
11158 char SmcOpenConnection ();
11159 int
11160 main ()
11161 {
11162 return SmcOpenConnection ();
11163 ;
11164 return 0;
11165 }
11166 _ACEOF
11167 if ac_fn_c_try_link "$LINENO"; then :
11168 ac_cv_lib_SM_SmcOpenConnection=yes
11169 else
11170 ac_cv_lib_SM_SmcOpenConnection=no
11171 fi
11172 rm -f core conftest.err conftest.$ac_objext \
11173 conftest$ac_exeext conftest.$ac_ext
11174 LIBS=$ac_check_lib_save_LIBS
11175 fi
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11177 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11178 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
11179 HAVE_X_SM=yes
11180 fi
11181
11182 fi
11183
11184
11185
11186 if test "${HAVE_X_SM}" = "yes"; then
11187
11188 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11189
11190 LIBXSM="-lSM -lICE"
11191 case "$LIBS" in
11192 *-lSM*) ;;
11193 *) LIBS="$LIBXSM $LIBS" ;;
11194 esac
11195 fi
11196 fi
11197
11198
11199 ### Use libxml (-lxml2) if available
11200 if test "${with_xml2}" != "no"; then
11201 ### I'm not sure what the version number should be, so I just guessed.
11202
11203 succeeded=no
11204
11205 # Extract the first word of "pkg-config", so it can be a program name with args.
11206 set dummy pkg-config; ac_word=$2
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11208 $as_echo_n "checking for $ac_word... " >&6; }
11209 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11212 case $PKG_CONFIG in
11213 [\\/]* | ?:[\\/]*)
11214 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11215 ;;
11216 *)
11217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in $PATH
11219 do
11220 IFS=$as_save_IFS
11221 test -z "$as_dir" && as_dir=.
11222 for ac_exec_ext in '' $ac_executable_extensions; do
11223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11224 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11226 break 2
11227 fi
11228 done
11229 done
11230 IFS=$as_save_IFS
11231
11232 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11233 ;;
11234 esac
11235 fi
11236 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11237 if test -n "$PKG_CONFIG"; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11239 $as_echo "$PKG_CONFIG" >&6; }
11240 else
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242 $as_echo "no" >&6; }
11243 fi
11244
11245
11246
11247 if test "$PKG_CONFIG" = "no" ; then
11248 HAVE_LIBXML2=no
11249 else
11250 PKG_CONFIG_MIN_VERSION=0.9.0
11251 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11253 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11254
11255 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11257 $as_echo "yes" >&6; }
11258 succeeded=yes
11259
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11261 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11262 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11264 $as_echo "$LIBXML2_CFLAGS" >&6; }
11265
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11267 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11268 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11270 $as_echo "$LIBXML2_LIBS" >&6; }
11271 else
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11274 LIBXML2_CFLAGS=""
11275 LIBXML2_LIBS=""
11276 ## If we have a custom action on failure, don't print errors, but
11277 ## do set a variable so people can do so.
11278 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11279
11280 fi
11281
11282
11283
11284 else
11285 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11286 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11287 fi
11288 fi
11289
11290 if test $succeeded = yes; then
11291 HAVE_LIBXML2=yes
11292 else
11293 HAVE_LIBXML2=no
11294 fi
11295
11296 if test "${HAVE_LIBXML2}" = "yes"; then
11297 LIBS="$LIBXML2_LIBS $LIBS"
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11299 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11300 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
11301 $as_echo_n "(cached) " >&6
11302 else
11303 ac_check_lib_save_LIBS=$LIBS
11304 LIBS="-lxml2 $LIBS"
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11307
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11311 #ifdef __cplusplus
11312 extern "C"
11313 #endif
11314 char htmlReadMemory ();
11315 int
11316 main ()
11317 {
11318 return htmlReadMemory ();
11319 ;
11320 return 0;
11321 }
11322 _ACEOF
11323 if ac_fn_c_try_link "$LINENO"; then :
11324 ac_cv_lib_xml2_htmlReadMemory=yes
11325 else
11326 ac_cv_lib_xml2_htmlReadMemory=no
11327 fi
11328 rm -f core conftest.err conftest.$ac_objext \
11329 conftest$ac_exeext conftest.$ac_ext
11330 LIBS=$ac_check_lib_save_LIBS
11331 fi
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11333 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11334 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
11335 HAVE_LIBXML2=yes
11336 else
11337 HAVE_LIBXML2=no
11338 fi
11339
11340 if test "${HAVE_LIBXML2}" = "yes"; then
11341
11342 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11343
11344 else
11345 LIBXML2_LIBS=""
11346 LIBXML2_CFLAGS=""
11347 fi
11348 fi
11349 fi
11350
11351
11352
11353 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11355 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11356 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
11357 $as_echo_n "(cached) " >&6
11358 else
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11361 #include <netdb.h>
11362 int
11363 main ()
11364 {
11365 return h_errno;
11366 ;
11367 return 0;
11368 }
11369 _ACEOF
11370 if ac_fn_c_try_link "$LINENO"; then :
11371 emacs_cv_netdb_declares_h_errno=yes
11372 else
11373 emacs_cv_netdb_declares_h_errno=no
11374 fi
11375 rm -f core conftest.err conftest.$ac_objext \
11376 conftest$ac_exeext conftest.$ac_ext
11377 fi
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11379 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11380 if test $emacs_cv_netdb_declares_h_errno = yes; then
11381
11382 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11383
11384 fi
11385
11386 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11387 if test "x$ac_cv_type_size_t" = xyes; then :
11388
11389 else
11390
11391 cat >>confdefs.h <<_ACEOF
11392 #define size_t unsigned int
11393 _ACEOF
11394
11395 fi
11396
11397 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11398 # for constant arguments. Useless!
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11400 $as_echo_n "checking for working alloca.h... " >&6; }
11401 if ${ac_cv_working_alloca_h+:} false; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11406 #include <alloca.h>
11407 int
11408 main ()
11409 {
11410 char *p = (char *) alloca (2 * sizeof (int));
11411 if (p) return 0;
11412 ;
11413 return 0;
11414 }
11415 _ACEOF
11416 if ac_fn_c_try_link "$LINENO"; then :
11417 ac_cv_working_alloca_h=yes
11418 else
11419 ac_cv_working_alloca_h=no
11420 fi
11421 rm -f core conftest.err conftest.$ac_objext \
11422 conftest$ac_exeext conftest.$ac_ext
11423 fi
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11425 $as_echo "$ac_cv_working_alloca_h" >&6; }
11426 if test $ac_cv_working_alloca_h = yes; then
11427
11428 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11429
11430 fi
11431
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11433 $as_echo_n "checking for alloca... " >&6; }
11434 if ${ac_cv_func_alloca_works+:} false; then :
11435 $as_echo_n "(cached) " >&6
11436 else
11437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h. */
11439 #ifdef __GNUC__
11440 # define alloca __builtin_alloca
11441 #else
11442 # ifdef _MSC_VER
11443 # include <malloc.h>
11444 # define alloca _alloca
11445 # elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
11446 # include <stdlib.h>
11447 # else
11448 # ifdef HAVE_ALLOCA_H
11449 # include <alloca.h>
11450 # else
11451 # ifdef _AIX
11452 #pragma alloca
11453 # else
11454 # ifndef alloca /* predefined by HP cc +Olibcalls */
11455 void *alloca (size_t);
11456 # endif
11457 # endif
11458 # endif
11459 # endif
11460 #endif
11461
11462 int
11463 main ()
11464 {
11465 char *p = (char *) alloca (1);
11466 if (p) return 0;
11467 ;
11468 return 0;
11469 }
11470 _ACEOF
11471 if ac_fn_c_try_link "$LINENO"; then :
11472 ac_cv_func_alloca_works=yes
11473 else
11474 ac_cv_func_alloca_works=no
11475 fi
11476 rm -f core conftest.err conftest.$ac_objext \
11477 conftest$ac_exeext conftest.$ac_ext
11478 fi
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11480 $as_echo "$ac_cv_func_alloca_works" >&6; }
11481
11482 if test $ac_cv_func_alloca_works = yes; then
11483
11484 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11485
11486 else
11487 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11488 # that cause trouble. Some versions do not even contain alloca or
11489 # contain a buggy version. If you still want to use their alloca,
11490 # use ar to extract alloca.o from them instead of compiling alloca.c.
11491
11492 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11493
11494 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11495
11496
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11498 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11499 if ${ac_cv_os_cray+:} false; then :
11500 $as_echo_n "(cached) " >&6
11501 else
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11504 #if defined CRAY && ! defined CRAY2
11505 webecray
11506 #else
11507 wenotbecray
11508 #endif
11509
11510 _ACEOF
11511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11512 $EGREP "webecray" >/dev/null 2>&1; then :
11513 ac_cv_os_cray=yes
11514 else
11515 ac_cv_os_cray=no
11516 fi
11517 rm -f conftest*
11518
11519 fi
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11521 $as_echo "$ac_cv_os_cray" >&6; }
11522 if test $ac_cv_os_cray = yes; then
11523 for ac_func in _getb67 GETB67 getb67; do
11524 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11525 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11526 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11527
11528 cat >>confdefs.h <<_ACEOF
11529 #define CRAY_STACKSEG_END $ac_func
11530 _ACEOF
11531
11532 break
11533 fi
11534
11535 done
11536 fi
11537
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11539 $as_echo_n "checking stack direction for C alloca... " >&6; }
11540 if ${ac_cv_c_stack_direction+:} false; then :
11541 $as_echo_n "(cached) " >&6
11542 else
11543 if test "$cross_compiling" = yes; then :
11544 ac_cv_c_stack_direction=0
11545 else
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h. */
11548 $ac_includes_default
11549 int
11550 find_stack_direction ()
11551 {
11552 static char *addr = 0;
11553 auto char dummy;
11554 if (addr == 0)
11555 {
11556 addr = &dummy;
11557 return find_stack_direction ();
11558 }
11559 else
11560 return (&dummy > addr) ? 1 : -1;
11561 }
11562
11563 int
11564 main ()
11565 {
11566 return find_stack_direction () < 0;
11567 }
11568 _ACEOF
11569 if ac_fn_c_try_run "$LINENO"; then :
11570 ac_cv_c_stack_direction=1
11571 else
11572 ac_cv_c_stack_direction=-1
11573 fi
11574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11575 conftest.$ac_objext conftest.beam conftest.$ac_ext
11576 fi
11577
11578 fi
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11580 $as_echo "$ac_cv_c_stack_direction" >&6; }
11581 cat >>confdefs.h <<_ACEOF
11582 #define STACK_DIRECTION $ac_cv_c_stack_direction
11583 _ACEOF
11584
11585
11586 fi
11587
11588
11589 if test x"$ac_cv_func_alloca_works" != xyes; then
11590 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
11591 fi
11592
11593 # fmod, logb, and frexp are found in -lm on most systems.
11594 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11596 $as_echo_n "checking for sqrt in -lm... " >&6; }
11597 if ${ac_cv_lib_m_sqrt+:} false; then :
11598 $as_echo_n "(cached) " >&6
11599 else
11600 ac_check_lib_save_LIBS=$LIBS
11601 LIBS="-lm $LIBS"
11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h. */
11604
11605 /* Override any GCC internal prototype to avoid an error.
11606 Use char because int might match the return type of a GCC
11607 builtin and then its argument prototype would still apply. */
11608 #ifdef __cplusplus
11609 extern "C"
11610 #endif
11611 char sqrt ();
11612 int
11613 main ()
11614 {
11615 return sqrt ();
11616 ;
11617 return 0;
11618 }
11619 _ACEOF
11620 if ac_fn_c_try_link "$LINENO"; then :
11621 ac_cv_lib_m_sqrt=yes
11622 else
11623 ac_cv_lib_m_sqrt=no
11624 fi
11625 rm -f core conftest.err conftest.$ac_objext \
11626 conftest$ac_exeext conftest.$ac_ext
11627 LIBS=$ac_check_lib_save_LIBS
11628 fi
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11630 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11631 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
11632 cat >>confdefs.h <<_ACEOF
11633 #define HAVE_LIBM 1
11634 _ACEOF
11635
11636 LIBS="-lm $LIBS"
11637
11638 fi
11639
11640
11641 # Check for mail-locking functions in a "mail" library. Probably this should
11642 # have the same check as for liblockfile below.
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11644 $as_echo_n "checking for maillock in -lmail... " >&6; }
11645 if ${ac_cv_lib_mail_maillock+:} false; then :
11646 $as_echo_n "(cached) " >&6
11647 else
11648 ac_check_lib_save_LIBS=$LIBS
11649 LIBS="-lmail $LIBS"
11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h. */
11652
11653 /* Override any GCC internal prototype to avoid an error.
11654 Use char because int might match the return type of a GCC
11655 builtin and then its argument prototype would still apply. */
11656 #ifdef __cplusplus
11657 extern "C"
11658 #endif
11659 char maillock ();
11660 int
11661 main ()
11662 {
11663 return maillock ();
11664 ;
11665 return 0;
11666 }
11667 _ACEOF
11668 if ac_fn_c_try_link "$LINENO"; then :
11669 ac_cv_lib_mail_maillock=yes
11670 else
11671 ac_cv_lib_mail_maillock=no
11672 fi
11673 rm -f core conftest.err conftest.$ac_objext \
11674 conftest$ac_exeext conftest.$ac_ext
11675 LIBS=$ac_check_lib_save_LIBS
11676 fi
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11678 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11679 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
11680 have_mail=yes
11681 else
11682 have_mail=no
11683 fi
11684
11685 if test $have_mail = yes; then
11686 LIBS_MAIL=-lmail
11687 LIBS="$LIBS_MAIL $LIBS"
11688
11689 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11690
11691 else
11692 LIBS_MAIL=
11693 fi
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11695 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11696 if ${ac_cv_lib_lockfile_maillock+:} false; then :
11697 $as_echo_n "(cached) " >&6
11698 else
11699 ac_check_lib_save_LIBS=$LIBS
11700 LIBS="-llockfile $LIBS"
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11703
11704 /* Override any GCC internal prototype to avoid an error.
11705 Use char because int might match the return type of a GCC
11706 builtin and then its argument prototype would still apply. */
11707 #ifdef __cplusplus
11708 extern "C"
11709 #endif
11710 char maillock ();
11711 int
11712 main ()
11713 {
11714 return maillock ();
11715 ;
11716 return 0;
11717 }
11718 _ACEOF
11719 if ac_fn_c_try_link "$LINENO"; then :
11720 ac_cv_lib_lockfile_maillock=yes
11721 else
11722 ac_cv_lib_lockfile_maillock=no
11723 fi
11724 rm -f core conftest.err conftest.$ac_objext \
11725 conftest$ac_exeext conftest.$ac_ext
11726 LIBS=$ac_check_lib_save_LIBS
11727 fi
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11729 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11730 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
11731 have_lockfile=yes
11732 else
11733 have_lockfile=no
11734 fi
11735
11736 if test $have_lockfile = yes; then
11737 LIBS_MAIL=-llockfile
11738 LIBS="$LIBS_MAIL $LIBS"
11739
11740 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11741
11742 else
11743 # If we have the shared liblockfile, assume we must use it for mail
11744 # locking (e.g. Debian). If we couldn't link against liblockfile
11745 # (no liblockfile.a installed), ensure that we don't need to.
11746 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11747 set dummy liblockfile.so; ac_word=$2
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11749 $as_echo_n "checking for $ac_word... " >&6; }
11750 if ${ac_cv_prog_liblockfile+:} false; then :
11751 $as_echo_n "(cached) " >&6
11752 else
11753 if test -n "$liblockfile"; then
11754 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11755 else
11756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11758 for as_dir in $as_dummy
11759 do
11760 IFS=$as_save_IFS
11761 test -z "$as_dir" && as_dir=.
11762 for ac_exec_ext in '' $ac_executable_extensions; do
11763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11764 ac_cv_prog_liblockfile="yes"
11765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 break 2
11767 fi
11768 done
11769 done
11770 IFS=$as_save_IFS
11771
11772 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11773 fi
11774 fi
11775 liblockfile=$ac_cv_prog_liblockfile
11776 if test -n "$liblockfile"; then
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11778 $as_echo "$liblockfile" >&6; }
11779 else
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 $as_echo "no" >&6; }
11782 fi
11783
11784
11785 if test $ac_cv_prog_liblockfile = yes; then
11786 as_fn_error $? "Shared liblockfile found but can't link against it.
11787 This probably means that movemail could lose mail.
11788 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11789 fi
11790 fi
11791 for ac_func in touchlock
11792 do :
11793 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11794 if test "x$ac_cv_func_touchlock" = xyes; then :
11795 cat >>confdefs.h <<_ACEOF
11796 #define HAVE_TOUCHLOCK 1
11797 _ACEOF
11798
11799 fi
11800 done
11801
11802 for ac_header in maillock.h
11803 do :
11804 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11805 if test "x$ac_cv_header_maillock_h" = xyes; then :
11806 cat >>confdefs.h <<_ACEOF
11807 #define HAVE_MAILLOCK_H 1
11808 _ACEOF
11809
11810 fi
11811
11812 done
11813
11814
11815
11816 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11817 ## interlock access to the mail spool. The alternative is a lock file named
11818 ## /usr/spool/mail/$USER.lock.
11819 mail_lock=no
11820 case "$opsys" in
11821 aix4-2) mail_lock="lockf" ;;
11822
11823 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11824
11825 ## On GNU/Linux systems, both methods are used by various mail programs.
11826 ## I assume most people are using newer mailers that have heard of flock.
11827 ## Change this if you need to.
11828 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11829 ## configure gets the right answers, and that means *NOT* using flock.
11830 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11831 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11832 ## Debian maintainer hasn't provided a clean fix for Emacs.
11833 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11834 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11835 ## correct logic. -- fx
11836 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11837 ## liblockfile is a Free Software replacement for libmail, used on
11838 ## Debian systems and elsewhere. -rfr.
11839 gnu-*)
11840 mail_lock="flock"
11841 if test $have_mail = yes || test $have_lockfile = yes; then
11842 test $ac_cv_header_maillock_h = yes && mail_lock=no
11843 fi
11844 ;;
11845 esac
11846
11847 BLESSMAIL_TARGET=
11848 case "$mail_lock" in
11849 flock)
11850 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11851 ;;
11852
11853 lockf)
11854 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11855 ;;
11856
11857 *) BLESSMAIL_TARGET="need-blessmail" ;;
11858 esac
11859
11860
11861
11862 for ac_func in gethostname getdomainname dup2 \
11863 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11864 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11865 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11866 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11867 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11868 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11869 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11870 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11871 cfmakeraw cfsetspeed isnan copysign __executable_start
11872 do :
11873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11874 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11875 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11876 cat >>confdefs.h <<_ACEOF
11877 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11878 _ACEOF
11879
11880 fi
11881 done
11882
11883
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
11885 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
11886 if ${emacs_cv_func___builtin_unwind_init+:} false; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11891
11892 int
11893 main ()
11894 {
11895 __builtin_unwind_init ();
11896 ;
11897 return 0;
11898 }
11899 _ACEOF
11900 if ac_fn_c_try_link "$LINENO"; then :
11901 emacs_cv_func___builtin_unwind_init=yes
11902 else
11903 emacs_cv_func___builtin_unwind_init=no
11904 fi
11905 rm -f core conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11907 fi
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
11909 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
11910 if test $emacs_cv_func___builtin_unwind_init = yes; then
11911
11912 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
11913
11914 fi
11915
11916 for ac_header in sys/un.h
11917 do :
11918 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11919 if test "x$ac_cv_header_sys_un_h" = xyes; then :
11920 cat >>confdefs.h <<_ACEOF
11921 #define HAVE_SYS_UN_H 1
11922 _ACEOF
11923
11924 fi
11925
11926 done
11927
11928
11929
11930
11931
11932
11933
11934 for ac_func in $ac_func_list
11935 do :
11936 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11937 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11938 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11939 cat >>confdefs.h <<_ACEOF
11940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11941 _ACEOF
11942
11943 fi
11944 done
11945
11946
11947
11948
11949
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11951 $as_echo_n "checking for working mktime... " >&6; }
11952 if ${ac_cv_func_working_mktime+:} false; then :
11953 $as_echo_n "(cached) " >&6
11954 else
11955 if test "$cross_compiling" = yes; then :
11956 ac_cv_func_working_mktime=no
11957 else
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11960 /* Test program from Paul Eggert and Tony Leneis. */
11961 #ifdef TIME_WITH_SYS_TIME
11962 # include <sys/time.h>
11963 # include <time.h>
11964 #else
11965 # ifdef HAVE_SYS_TIME_H
11966 # include <sys/time.h>
11967 # else
11968 # include <time.h>
11969 # endif
11970 #endif
11971
11972 #include <limits.h>
11973 #include <stdlib.h>
11974
11975 #ifdef HAVE_UNISTD_H
11976 # include <unistd.h>
11977 #endif
11978
11979 #ifndef HAVE_ALARM
11980 # define alarm(X) /* empty */
11981 #endif
11982
11983 /* Work around redefinition to rpl_putenv by other config tests. */
11984 #undef putenv
11985
11986 static time_t time_t_max;
11987 static time_t time_t_min;
11988
11989 /* Values we'll use to set the TZ environment variable. */
11990 static const char *tz_strings[] = {
11991 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11992 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11993 };
11994 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11995
11996 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11997 Based on a problem report from Andreas Jaeger. */
11998 static int
11999 spring_forward_gap ()
12000 {
12001 /* glibc (up to about 1998-10-07) failed this test. */
12002 struct tm tm;
12003
12004 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12005 instead of "TZ=America/Vancouver" in order to detect the bug even
12006 on systems that don't support the Olson extension, or don't have the
12007 full zoneinfo tables installed. */
12008 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12009
12010 tm.tm_year = 98;
12011 tm.tm_mon = 3;
12012 tm.tm_mday = 5;
12013 tm.tm_hour = 2;
12014 tm.tm_min = 0;
12015 tm.tm_sec = 0;
12016 tm.tm_isdst = -1;
12017 return mktime (&tm) != (time_t) -1;
12018 }
12019
12020 static int
12021 mktime_test1 (time_t now)
12022 {
12023 struct tm *lt;
12024 return ! (lt = localtime (&now)) || mktime (lt) == now;
12025 }
12026
12027 static int
12028 mktime_test (time_t now)
12029 {
12030 return (mktime_test1 (now)
12031 && mktime_test1 ((time_t) (time_t_max - now))
12032 && mktime_test1 ((time_t) (time_t_min + now)));
12033 }
12034
12035 static int
12036 irix_6_4_bug ()
12037 {
12038 /* Based on code from Ariel Faigon. */
12039 struct tm tm;
12040 tm.tm_year = 96;
12041 tm.tm_mon = 3;
12042 tm.tm_mday = 0;
12043 tm.tm_hour = 0;
12044 tm.tm_min = 0;
12045 tm.tm_sec = 0;
12046 tm.tm_isdst = -1;
12047 mktime (&tm);
12048 return tm.tm_mon == 2 && tm.tm_mday == 31;
12049 }
12050
12051 static int
12052 bigtime_test (int j)
12053 {
12054 struct tm tm;
12055 time_t now;
12056 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12057 now = mktime (&tm);
12058 if (now != (time_t) -1)
12059 {
12060 struct tm *lt = localtime (&now);
12061 if (! (lt
12062 && lt->tm_year == tm.tm_year
12063 && lt->tm_mon == tm.tm_mon
12064 && lt->tm_mday == tm.tm_mday
12065 && lt->tm_hour == tm.tm_hour
12066 && lt->tm_min == tm.tm_min
12067 && lt->tm_sec == tm.tm_sec
12068 && lt->tm_yday == tm.tm_yday
12069 && lt->tm_wday == tm.tm_wday
12070 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12071 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12072 return 0;
12073 }
12074 return 1;
12075 }
12076
12077 static int
12078 year_2050_test ()
12079 {
12080 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12081 ignoring leap seconds. */
12082 unsigned long int answer = 2527315200UL;
12083
12084 struct tm tm;
12085 time_t t;
12086 tm.tm_year = 2050 - 1900;
12087 tm.tm_mon = 2 - 1;
12088 tm.tm_mday = 1;
12089 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12090 tm.tm_isdst = -1;
12091
12092 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12093 instead of "TZ=America/Vancouver" in order to detect the bug even
12094 on systems that don't support the Olson extension, or don't have the
12095 full zoneinfo tables installed. */
12096 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12097
12098 t = mktime (&tm);
12099
12100 /* Check that the result is either a failure, or close enough
12101 to the correct answer that we can assume the discrepancy is
12102 due to leap seconds. */
12103 return (t == (time_t) -1
12104 || (0 < t && answer - 120 <= t && t <= answer + 120));
12105 }
12106
12107 int
12108 main ()
12109 {
12110 time_t t, delta;
12111 int i, j;
12112
12113 /* This test makes some buggy mktime implementations loop.
12114 Give up after 60 seconds; a mktime slower than that
12115 isn't worth using anyway. */
12116 alarm (60);
12117
12118 for (;;)
12119 {
12120 t = (time_t_max << 1) + 1;
12121 if (t <= time_t_max)
12122 break;
12123 time_t_max = t;
12124 }
12125 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12126
12127 delta = time_t_max / 997; /* a suitable prime number */
12128 for (i = 0; i < N_STRINGS; i++)
12129 {
12130 if (tz_strings[i])
12131 putenv ((char*) tz_strings[i]);
12132
12133 for (t = 0; t <= time_t_max - delta; t += delta)
12134 if (! mktime_test (t))
12135 return 1;
12136 if (! (mktime_test ((time_t) 1)
12137 && mktime_test ((time_t) (60 * 60))
12138 && mktime_test ((time_t) (60 * 60 * 24))))
12139 return 1;
12140
12141 for (j = 1; ; j <<= 1)
12142 if (! bigtime_test (j))
12143 return 1;
12144 else if (INT_MAX / 2 < j)
12145 break;
12146 if (! bigtime_test (INT_MAX))
12147 return 1;
12148 }
12149 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12150 }
12151 _ACEOF
12152 if ac_fn_c_try_run "$LINENO"; then :
12153 ac_cv_func_working_mktime=yes
12154 else
12155 ac_cv_func_working_mktime=no
12156 fi
12157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12158 conftest.$ac_objext conftest.beam conftest.$ac_ext
12159 fi
12160
12161 fi
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12163 $as_echo "$ac_cv_func_working_mktime" >&6; }
12164 if test $ac_cv_func_working_mktime = no; then
12165 case " $LIBOBJS " in
12166 *" mktime.$ac_objext "* ) ;;
12167 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12168 ;;
12169 esac
12170
12171 fi
12172
12173 if test "$ac_cv_func_working_mktime" = no; then
12174
12175 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12176
12177 fi
12178
12179 ac_have_func=no # yes means we've found a way to get the load average.
12180
12181 # Make sure getloadavg.c is where it belongs, at configure-time.
12182 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12183 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12184
12185 ac_save_LIBS=$LIBS
12186
12187 # Check for getloadavg, but be sure not to touch the cache variable.
12188 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12189 if test "x$ac_cv_func_getloadavg" = xyes; then :
12190 exit 0
12191 else
12192 exit 1
12193 fi
12194 ) && ac_have_func=yes
12195
12196 # On HPUX9, an unprivileged user can get load averages through this function.
12197 for ac_func in pstat_getdynamic
12198 do :
12199 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12200 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
12201 cat >>confdefs.h <<_ACEOF
12202 #define HAVE_PSTAT_GETDYNAMIC 1
12203 _ACEOF
12204
12205 fi
12206 done
12207
12208
12209 # Solaris has libkstat which does not require root.
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12211 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12212 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12213 $as_echo_n "(cached) " >&6
12214 else
12215 ac_check_lib_save_LIBS=$LIBS
12216 LIBS="-lkstat $LIBS"
12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218 /* end confdefs.h. */
12219
12220 /* Override any GCC internal prototype to avoid an error.
12221 Use char because int might match the return type of a GCC
12222 builtin and then its argument prototype would still apply. */
12223 #ifdef __cplusplus
12224 extern "C"
12225 #endif
12226 char kstat_open ();
12227 int
12228 main ()
12229 {
12230 return kstat_open ();
12231 ;
12232 return 0;
12233 }
12234 _ACEOF
12235 if ac_fn_c_try_link "$LINENO"; then :
12236 ac_cv_lib_kstat_kstat_open=yes
12237 else
12238 ac_cv_lib_kstat_kstat_open=no
12239 fi
12240 rm -f core conftest.err conftest.$ac_objext \
12241 conftest$ac_exeext conftest.$ac_ext
12242 LIBS=$ac_check_lib_save_LIBS
12243 fi
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12245 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12246 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12247 cat >>confdefs.h <<_ACEOF
12248 #define HAVE_LIBKSTAT 1
12249 _ACEOF
12250
12251 LIBS="-lkstat $LIBS"
12252
12253 fi
12254
12255 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12256
12257 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12258 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12259 # to get the right answer into the cache.
12260 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12261 if test $ac_have_func = no; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12263 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12264 if ${ac_cv_lib_elf_elf_begin+:} false; then :
12265 $as_echo_n "(cached) " >&6
12266 else
12267 ac_check_lib_save_LIBS=$LIBS
12268 LIBS="-lelf $LIBS"
12269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270 /* end confdefs.h. */
12271
12272 /* Override any GCC internal prototype to avoid an error.
12273 Use char because int might match the return type of a GCC
12274 builtin and then its argument prototype would still apply. */
12275 #ifdef __cplusplus
12276 extern "C"
12277 #endif
12278 char elf_begin ();
12279 int
12280 main ()
12281 {
12282 return elf_begin ();
12283 ;
12284 return 0;
12285 }
12286 _ACEOF
12287 if ac_fn_c_try_link "$LINENO"; then :
12288 ac_cv_lib_elf_elf_begin=yes
12289 else
12290 ac_cv_lib_elf_elf_begin=no
12291 fi
12292 rm -f core conftest.err conftest.$ac_objext \
12293 conftest$ac_exeext conftest.$ac_ext
12294 LIBS=$ac_check_lib_save_LIBS
12295 fi
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12297 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12298 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
12299 LIBS="-lelf $LIBS"
12300 fi
12301
12302 fi
12303 if test $ac_have_func = no; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12305 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12306 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
12307 $as_echo_n "(cached) " >&6
12308 else
12309 ac_check_lib_save_LIBS=$LIBS
12310 LIBS="-lkvm $LIBS"
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12313
12314 /* Override any GCC internal prototype to avoid an error.
12315 Use char because int might match the return type of a GCC
12316 builtin and then its argument prototype would still apply. */
12317 #ifdef __cplusplus
12318 extern "C"
12319 #endif
12320 char kvm_open ();
12321 int
12322 main ()
12323 {
12324 return kvm_open ();
12325 ;
12326 return 0;
12327 }
12328 _ACEOF
12329 if ac_fn_c_try_link "$LINENO"; then :
12330 ac_cv_lib_kvm_kvm_open=yes
12331 else
12332 ac_cv_lib_kvm_kvm_open=no
12333 fi
12334 rm -f core conftest.err conftest.$ac_objext \
12335 conftest$ac_exeext conftest.$ac_ext
12336 LIBS=$ac_check_lib_save_LIBS
12337 fi
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12339 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12340 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
12341 LIBS="-lkvm $LIBS"
12342 fi
12343
12344 # Check for the 4.4BSD definition of getloadavg.
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12346 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12347 if ${ac_cv_lib_util_getloadavg+:} false; then :
12348 $as_echo_n "(cached) " >&6
12349 else
12350 ac_check_lib_save_LIBS=$LIBS
12351 LIBS="-lutil $LIBS"
12352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353 /* end confdefs.h. */
12354
12355 /* Override any GCC internal prototype to avoid an error.
12356 Use char because int might match the return type of a GCC
12357 builtin and then its argument prototype would still apply. */
12358 #ifdef __cplusplus
12359 extern "C"
12360 #endif
12361 char getloadavg ();
12362 int
12363 main ()
12364 {
12365 return getloadavg ();
12366 ;
12367 return 0;
12368 }
12369 _ACEOF
12370 if ac_fn_c_try_link "$LINENO"; then :
12371 ac_cv_lib_util_getloadavg=yes
12372 else
12373 ac_cv_lib_util_getloadavg=no
12374 fi
12375 rm -f core conftest.err conftest.$ac_objext \
12376 conftest$ac_exeext conftest.$ac_ext
12377 LIBS=$ac_check_lib_save_LIBS
12378 fi
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12380 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12381 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
12382 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12383 fi
12384
12385 fi
12386
12387 if test $ac_have_func = no; then
12388 # There is a commonly available library for RS/6000 AIX.
12389 # Since it is not a standard part of AIX, it might be installed locally.
12390 ac_getloadavg_LIBS=$LIBS
12391 LIBS="-L/usr/local/lib $LIBS"
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12393 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12394 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
12395 $as_echo_n "(cached) " >&6
12396 else
12397 ac_check_lib_save_LIBS=$LIBS
12398 LIBS="-lgetloadavg $LIBS"
12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400 /* end confdefs.h. */
12401
12402 /* Override any GCC internal prototype to avoid an error.
12403 Use char because int might match the return type of a GCC
12404 builtin and then its argument prototype would still apply. */
12405 #ifdef __cplusplus
12406 extern "C"
12407 #endif
12408 char getloadavg ();
12409 int
12410 main ()
12411 {
12412 return getloadavg ();
12413 ;
12414 return 0;
12415 }
12416 _ACEOF
12417 if ac_fn_c_try_link "$LINENO"; then :
12418 ac_cv_lib_getloadavg_getloadavg=yes
12419 else
12420 ac_cv_lib_getloadavg_getloadavg=no
12421 fi
12422 rm -f core conftest.err conftest.$ac_objext \
12423 conftest$ac_exeext conftest.$ac_ext
12424 LIBS=$ac_check_lib_save_LIBS
12425 fi
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12427 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12428 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
12429 LIBS="-lgetloadavg $LIBS"
12430 else
12431 LIBS=$ac_getloadavg_LIBS
12432 fi
12433
12434 fi
12435
12436 # Make sure it is really in the library, if we think we found it,
12437 # otherwise set up the replacement function.
12438 for ac_func in getloadavg
12439 do :
12440 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12441 if test "x$ac_cv_func_getloadavg" = xyes; then :
12442 cat >>confdefs.h <<_ACEOF
12443 #define HAVE_GETLOADAVG 1
12444 _ACEOF
12445
12446 else
12447 case " $LIBOBJS " in
12448 *" getloadavg.$ac_objext "* ) ;;
12449 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12450 ;;
12451 esac
12452
12453
12454 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12455
12456 # Figure out what our getloadavg.c needs.
12457 ac_have_func=no
12458 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12459 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
12460 ac_have_func=yes
12461
12462 $as_echo "#define DGUX 1" >>confdefs.h
12463
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12465 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12466 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 ac_check_lib_save_LIBS=$LIBS
12470 LIBS="-ldgc $LIBS"
12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h. */
12473
12474 /* Override any GCC internal prototype to avoid an error.
12475 Use char because int might match the return type of a GCC
12476 builtin and then its argument prototype would still apply. */
12477 #ifdef __cplusplus
12478 extern "C"
12479 #endif
12480 char dg_sys_info ();
12481 int
12482 main ()
12483 {
12484 return dg_sys_info ();
12485 ;
12486 return 0;
12487 }
12488 _ACEOF
12489 if ac_fn_c_try_link "$LINENO"; then :
12490 ac_cv_lib_dgc_dg_sys_info=yes
12491 else
12492 ac_cv_lib_dgc_dg_sys_info=no
12493 fi
12494 rm -f core conftest.err conftest.$ac_objext \
12495 conftest$ac_exeext conftest.$ac_ext
12496 LIBS=$ac_check_lib_save_LIBS
12497 fi
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12499 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12500 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
12501 cat >>confdefs.h <<_ACEOF
12502 #define HAVE_LIBDGC 1
12503 _ACEOF
12504
12505 LIBS="-ldgc $LIBS"
12506
12507 fi
12508
12509 fi
12510
12511
12512
12513 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12514 if test "x$ac_cv_header_locale_h" = xyes; then :
12515
12516 fi
12517
12518
12519 for ac_func in setlocale
12520 do :
12521 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12522 if test "x$ac_cv_func_setlocale" = xyes; then :
12523 cat >>confdefs.h <<_ACEOF
12524 #define HAVE_SETLOCALE 1
12525 _ACEOF
12526
12527 fi
12528 done
12529
12530
12531 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12532 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12533 # Irix 4.0.5F has the header but not the library.
12534 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
12535 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
12536 ac_have_func=yes
12537
12538 $as_echo "#define SVR4 1" >>confdefs.h
12539
12540 fi
12541
12542 if test $ac_have_func = no; then
12543 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12544 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
12545 ac_have_func=yes
12546
12547 $as_echo "#define UMAX 1" >>confdefs.h
12548
12549
12550 $as_echo "#define UMAX4_3 1" >>confdefs.h
12551
12552 fi
12553
12554
12555 fi
12556
12557 if test $ac_have_func = no; then
12558 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12559 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
12560 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
12561
12562 fi
12563
12564
12565 fi
12566
12567 if test $ac_have_func = no; then
12568 for ac_header in mach/mach.h
12569 do :
12570 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12571 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
12572 cat >>confdefs.h <<_ACEOF
12573 #define HAVE_MACH_MACH_H 1
12574 _ACEOF
12575
12576 fi
12577
12578 done
12579
12580 fi
12581
12582 for ac_header in nlist.h
12583 do :
12584 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12585 if test "x$ac_cv_header_nlist_h" = xyes; then :
12586 cat >>confdefs.h <<_ACEOF
12587 #define HAVE_NLIST_H 1
12588 _ACEOF
12589 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12590 "
12591 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
12592
12593 cat >>confdefs.h <<_ACEOF
12594 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12595 _ACEOF
12596
12597
12598 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12599
12600 fi
12601
12602
12603 fi
12604
12605 done
12606
12607 fi
12608 done
12609
12610
12611 # Some definitions of getloadavg require that the program be installed setgid.
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12613 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12614 if ${ac_cv_func_getloadavg_setgid+:} false; then :
12615 $as_echo_n "(cached) " >&6
12616 else
12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12619 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12620 #ifdef LDAV_PRIVILEGED
12621 Yowza Am I SETGID yet
12622 #endif
12623 _ACEOF
12624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12625 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
12626 ac_cv_func_getloadavg_setgid=yes
12627 else
12628 ac_cv_func_getloadavg_setgid=no
12629 fi
12630 rm -f conftest*
12631
12632 fi
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12634 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12635 if test $ac_cv_func_getloadavg_setgid = yes; then
12636 NEED_SETGID=true
12637
12638 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12639
12640 else
12641 NEED_SETGID=false
12642 fi
12643
12644 if test $ac_cv_func_getloadavg_setgid = yes; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12646 $as_echo_n "checking group of /dev/kmem... " >&6; }
12647 if ${ac_cv_group_kmem+:} false; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12651 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12652 # If we got an error (system does not support symlinks), try without -L.
12653 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12654 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
12655 | sed -ne 's/[ ][ ]*/ /g;
12656 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12657 / /s/.* //;p;'`
12658
12659 fi
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12661 $as_echo "$ac_cv_group_kmem" >&6; }
12662 KMEM_GROUP=$ac_cv_group_kmem
12663 fi
12664 if test "x$ac_save_LIBS" = x; then
12665 GETLOADAVG_LIBS=$LIBS
12666 else
12667 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12668 fi
12669 LIBS=$ac_save_LIBS
12670
12671
12672
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12674 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12675 if ${ac_cv_sys_largefile_source+:} false; then :
12676 $as_echo_n "(cached) " >&6
12677 else
12678 while :; do
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12681 #include <sys/types.h> /* for off_t */
12682 #include <stdio.h>
12683 int
12684 main ()
12685 {
12686 int (*fp) (FILE *, off_t, int) = fseeko;
12687 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12688 ;
12689 return 0;
12690 }
12691 _ACEOF
12692 if ac_fn_c_try_link "$LINENO"; then :
12693 ac_cv_sys_largefile_source=no; break
12694 fi
12695 rm -f core conftest.err conftest.$ac_objext \
12696 conftest$ac_exeext conftest.$ac_ext
12697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12698 /* end confdefs.h. */
12699 #define _LARGEFILE_SOURCE 1
12700 #include <sys/types.h> /* for off_t */
12701 #include <stdio.h>
12702 int
12703 main ()
12704 {
12705 int (*fp) (FILE *, off_t, int) = fseeko;
12706 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12707 ;
12708 return 0;
12709 }
12710 _ACEOF
12711 if ac_fn_c_try_link "$LINENO"; then :
12712 ac_cv_sys_largefile_source=1; break
12713 fi
12714 rm -f core conftest.err conftest.$ac_objext \
12715 conftest$ac_exeext conftest.$ac_ext
12716 ac_cv_sys_largefile_source=unknown
12717 break
12718 done
12719 fi
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12721 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12722 case $ac_cv_sys_largefile_source in #(
12723 no | unknown) ;;
12724 *)
12725 cat >>confdefs.h <<_ACEOF
12726 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12727 _ACEOF
12728 ;;
12729 esac
12730 rm -rf conftest*
12731
12732 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12733 # in glibc 2.1.3, but that breaks too many other things.
12734 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12735 if test $ac_cv_sys_largefile_source != unknown; then
12736
12737 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12738
12739 fi
12740
12741
12742 # Configure getopt.
12743 # getopt.m4 serial 10
12744
12745 # The getopt module assume you want GNU getopt, with getopt_long etc,
12746 # rather than vanilla POSIX getopt. This means your your code should
12747 # always include <getopt.h> for the getopt prototypes.
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759 # Prerequisites of lib/getopt*.
12760
12761
12762
12763
12764 GETOPT_H=
12765 for ac_header in getopt.h
12766 do :
12767 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12768 if test "x$ac_cv_header_getopt_h" = xyes; then :
12769 cat >>confdefs.h <<_ACEOF
12770 #define HAVE_GETOPT_H 1
12771 _ACEOF
12772
12773 else
12774 GETOPT_H=getopt.h
12775 fi
12776
12777 done
12778
12779 if test -z "$GETOPT_H"; then
12780 for ac_func in getopt_long_only
12781 do :
12782 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12783 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
12784 cat >>confdefs.h <<_ACEOF
12785 #define HAVE_GETOPT_LONG_ONLY 1
12786 _ACEOF
12787
12788 else
12789 GETOPT_H=getopt.h
12790 fi
12791 done
12792
12793 fi
12794
12795 if test -z "$GETOPT_H"; then
12796 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12797 "
12798 if test "x$ac_cv_have_decl_optreset" = xyes; then :
12799 GETOPT_H=getopt.h
12800 fi
12801
12802 fi
12803
12804 if test -z "$GETOPT_H"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12806 $as_echo_n "checking for working GNU getopt function... " >&6; }
12807 if ${gl_cv_func_gnu_getopt+:} false; then :
12808 $as_echo_n "(cached) " >&6
12809 else
12810 if test "$cross_compiling" = yes; then :
12811 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12812 "
12813 if test "x$ac_cv_have_decl_getopt_clip" = xyes; then :
12814 gl_cv_func_gnu_getopt=no
12815 else
12816 gl_cv_func_gnu_getopt=yes
12817 fi
12818
12819 else
12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h. */
12822 #include <getopt.h>
12823 int
12824 main ()
12825 {
12826
12827 char *myargv[3];
12828 myargv[0] = "conftest";
12829 myargv[1] = "-+";
12830 myargv[2] = 0;
12831 return getopt (2, myargv, "+a") != '?';
12832
12833 ;
12834 return 0;
12835 }
12836 _ACEOF
12837 if ac_fn_c_try_run "$LINENO"; then :
12838 gl_cv_func_gnu_getopt=yes
12839 else
12840 gl_cv_func_gnu_getopt=no
12841 fi
12842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12843 conftest.$ac_objext conftest.beam conftest.$ac_ext
12844 fi
12845
12846 fi
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12848 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12849 if test "$gl_cv_func_gnu_getopt" = "no"; then
12850 GETOPT_H=getopt.h
12851 fi
12852 fi
12853
12854
12855
12856 if test -n "$GETOPT_H"; then :
12857
12858
12859 GETOPT_H=getopt.h
12860
12861 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12862
12863
12864
12865 :
12866 GETOPTOBJS='getopt.o getopt1.o'
12867
12868 fi
12869
12870
12871
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12873 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12874 if ${ac_cv_func_getpgrp_void+:} false; then :
12875 $as_echo_n "(cached) " >&6
12876 else
12877 # Use it with a single arg.
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12880 $ac_includes_default
12881 int
12882 main ()
12883 {
12884 getpgrp (0);
12885 ;
12886 return 0;
12887 }
12888 _ACEOF
12889 if ac_fn_c_try_compile "$LINENO"; then :
12890 ac_cv_func_getpgrp_void=no
12891 else
12892 ac_cv_func_getpgrp_void=yes
12893 fi
12894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12895
12896 fi
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12898 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12899 if test $ac_cv_func_getpgrp_void = yes; then
12900
12901 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12902
12903 fi
12904
12905
12906 for ac_func in strftime
12907 do :
12908 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12909 if test "x$ac_cv_func_strftime" = xyes; then :
12910 cat >>confdefs.h <<_ACEOF
12911 #define HAVE_STRFTIME 1
12912 _ACEOF
12913
12914 else
12915 # strftime is in -lintl on SCO UNIX.
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12917 $as_echo_n "checking for strftime in -lintl... " >&6; }
12918 if ${ac_cv_lib_intl_strftime+:} false; then :
12919 $as_echo_n "(cached) " >&6
12920 else
12921 ac_check_lib_save_LIBS=$LIBS
12922 LIBS="-lintl $LIBS"
12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12925
12926 /* Override any GCC internal prototype to avoid an error.
12927 Use char because int might match the return type of a GCC
12928 builtin and then its argument prototype would still apply. */
12929 #ifdef __cplusplus
12930 extern "C"
12931 #endif
12932 char strftime ();
12933 int
12934 main ()
12935 {
12936 return strftime ();
12937 ;
12938 return 0;
12939 }
12940 _ACEOF
12941 if ac_fn_c_try_link "$LINENO"; then :
12942 ac_cv_lib_intl_strftime=yes
12943 else
12944 ac_cv_lib_intl_strftime=no
12945 fi
12946 rm -f core conftest.err conftest.$ac_objext \
12947 conftest$ac_exeext conftest.$ac_ext
12948 LIBS=$ac_check_lib_save_LIBS
12949 fi
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12951 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12952 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
12953 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12954
12955 LIBS="-lintl $LIBS"
12956 fi
12957
12958 fi
12959 done
12960
12961
12962 # UNIX98 PTYs.
12963 for ac_func in grantpt
12964 do :
12965 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12966 if test "x$ac_cv_func_grantpt" = xyes; then :
12967 cat >>confdefs.h <<_ACEOF
12968 #define HAVE_GRANTPT 1
12969 _ACEOF
12970
12971 fi
12972 done
12973
12974
12975 # PTY-related GNU extensions.
12976 for ac_func in getpt
12977 do :
12978 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12979 if test "x$ac_cv_func_getpt" = xyes; then :
12980 cat >>confdefs.h <<_ACEOF
12981 #define HAVE_GETPT 1
12982 _ACEOF
12983
12984 fi
12985 done
12986
12987
12988 # Check this now, so that we will NOT find the above functions in ncurses.
12989 # That is because we have not set up to link ncurses in lib-src.
12990 # It's better to believe a function is not available
12991 # than to expect to find it in ncurses.
12992 # Also we need tputs and friends to be able to build at all.
12993 have_tputs_et_al=true
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12995 $as_echo_n "checking for library containing tputs... " >&6; }
12996 if ${ac_cv_search_tputs+:} false; then :
12997 $as_echo_n "(cached) " >&6
12998 else
12999 ac_func_search_save_LIBS=$LIBS
13000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13001 /* end confdefs.h. */
13002
13003 /* Override any GCC internal prototype to avoid an error.
13004 Use char because int might match the return type of a GCC
13005 builtin and then its argument prototype would still apply. */
13006 #ifdef __cplusplus
13007 extern "C"
13008 #endif
13009 char tputs ();
13010 int
13011 main ()
13012 {
13013 return tputs ();
13014 ;
13015 return 0;
13016 }
13017 _ACEOF
13018 for ac_lib in '' ncurses terminfo termcap; do
13019 if test -z "$ac_lib"; then
13020 ac_res="none required"
13021 else
13022 ac_res=-l$ac_lib
13023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13024 fi
13025 if ac_fn_c_try_link "$LINENO"; then :
13026 ac_cv_search_tputs=$ac_res
13027 fi
13028 rm -f core conftest.err conftest.$ac_objext \
13029 conftest$ac_exeext
13030 if ${ac_cv_search_tputs+:} false; then :
13031 break
13032 fi
13033 done
13034 if ${ac_cv_search_tputs+:} false; then :
13035
13036 else
13037 ac_cv_search_tputs=no
13038 fi
13039 rm conftest.$ac_ext
13040 LIBS=$ac_func_search_save_LIBS
13041 fi
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13043 $as_echo "$ac_cv_search_tputs" >&6; }
13044 ac_res=$ac_cv_search_tputs
13045 if test "$ac_res" != no; then :
13046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13047
13048 else
13049 have_tputs_et_al=false
13050 fi
13051
13052 if test "$have_tputs_et_al" != true; then
13053 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
13054 Maybe some development libraries/packages are missing? Try installing
13055 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13056 fi
13057 # Must define this when any termcap library is found.
13058
13059 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13060
13061 ## FIXME This was the cpp logic, but I am not sure it is right.
13062 ## The above test has not necessarily found libncurses.
13063 HAVE_LIBNCURSES=yes
13064
13065 ## Use terminfo instead of termcap?
13066 ## Note only system files NOT using terminfo are:
13067 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13068 ## darwin|gnu without ncurses.
13069 TERMINFO=no
13070 LIBS_TERMCAP=
13071 case "$opsys" in
13072 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13073 ## hpux10-20: Use the system provided termcap(3) library.
13074 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13075 ## is necessary. Otherwise Emacs dumps core when run -nw.
13076 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
13077
13078 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13079 ## The ncurses library has been moved out of the System framework in
13080 ## Mac OS X 10.2. So if configure detects it, set the command-line
13081 ## option to use it.
13082 darwin|gnu*)
13083 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13084 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13085 TERMINFO=yes
13086 LIBS_TERMCAP="-lncurses"
13087 fi
13088 ;;
13089
13090 freebsd)
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13092 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13093 if ${emacs_cv_freebsd_terminfo+:} false; then :
13094 $as_echo_n "(cached) " >&6
13095 else
13096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097 /* end confdefs.h. */
13098 #include <osreldate.h>
13099 int
13100 main ()
13101 {
13102 #if __FreeBSD_version < 400000
13103 fail;
13104 #endif
13105
13106 ;
13107 return 0;
13108 }
13109 _ACEOF
13110 if ac_fn_c_try_link "$LINENO"; then :
13111 emacs_cv_freebsd_terminfo=yes
13112 else
13113 emacs_cv_freebsd_terminfo=no
13114 fi
13115 rm -f core conftest.err conftest.$ac_objext \
13116 conftest$ac_exeext conftest.$ac_ext
13117 fi
13118
13119
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13121 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13122
13123 if test $emacs_cv_freebsd_terminfo = yes; then
13124 TERMINFO=yes
13125 LIBS_TERMCAP="-lncurses"
13126 else
13127 LIBS_TERMCAP="-ltermcap"
13128 fi
13129 ;;
13130
13131 netbsd)
13132 if test $ac_cv_search_tputs = -lterminfo; then
13133 TERMINFO=yes
13134 LIBS_TERMCAP="-lterminfo"
13135 else
13136 LIBS_TERMCAP="-ltermcap"
13137 fi
13138 ;;
13139
13140 esac
13141
13142 case "$opsys" in
13143 ## hpux: Make sure we get select from libc rather than from libcurses
13144 ## because libcurses on HPUX 10.10 has a broken version of select.
13145 ## We used to use -lc -lcurses, but this may be cleaner.
13146 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13147
13148 openbsd) LIBS_TERMCAP="-lncurses" ;;
13149
13150 ## Must use system termcap, if we use any termcap. It does special things.
13151 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
13152 esac
13153
13154 TERMCAP_OBJ=tparam.o
13155 if test $TERMINFO = yes; then
13156
13157 $as_echo "#define TERMINFO 1" >>confdefs.h
13158
13159
13160 ## Default used to be -ltermcap. Add a case above if need something else.
13161 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
13162
13163 TERMCAP_OBJ=terminfo.o
13164 fi
13165
13166
13167
13168
13169 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13170 resolv=no
13171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13172 /* end confdefs.h. */
13173 #include <netinet/in.h>
13174 #include <arpa/nameser.h>
13175 #include <resolv.h>
13176 int
13177 main ()
13178 {
13179 return res_init();
13180 ;
13181 return 0;
13182 }
13183 _ACEOF
13184 if ac_fn_c_try_link "$LINENO"; then :
13185 have_res_init=yes
13186 else
13187 have_res_init=no
13188 fi
13189 rm -f core conftest.err conftest.$ac_objext \
13190 conftest$ac_exeext conftest.$ac_ext
13191 if test "$have_res_init" = no; then
13192 OLIBS="$LIBS"
13193 LIBS="$LIBS -lresolv"
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13195 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13197 /* end confdefs.h. */
13198 #include <netinet/in.h>
13199 #include <arpa/nameser.h>
13200 #include <resolv.h>
13201 int
13202 main ()
13203 {
13204 return res_init();
13205 ;
13206 return 0;
13207 }
13208 _ACEOF
13209 if ac_fn_c_try_link "$LINENO"; then :
13210 have_res_init=yes
13211 else
13212 have_res_init=no
13213 fi
13214 rm -f core conftest.err conftest.$ac_objext \
13215 conftest$ac_exeext conftest.$ac_ext
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13217 $as_echo "$have_res_init" >&6; }
13218 if test "$have_res_init" = yes ; then
13219 resolv=yes
13220 fi
13221 LIBS="$OLIBS"
13222 fi
13223
13224 if test "$have_res_init" = yes; then
13225
13226 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13227
13228 fi
13229
13230 # Do we need the Hesiod library to provide the support routines?
13231 LIBHESIOD=
13232 if test "$with_hesiod" != no ; then
13233 # Don't set $LIBS here -- see comments above. FIXME which comments?
13234 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13235 if test "x$ac_cv_func_res_send" = xyes; then :
13236
13237 else
13238 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13239 if test "x$ac_cv_func___res_send" = xyes; then :
13240
13241 else
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13243 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13244 if ${ac_cv_lib_resolv_res_send+:} false; then :
13245 $as_echo_n "(cached) " >&6
13246 else
13247 ac_check_lib_save_LIBS=$LIBS
13248 LIBS="-lresolv $LIBS"
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13251
13252 /* Override any GCC internal prototype to avoid an error.
13253 Use char because int might match the return type of a GCC
13254 builtin and then its argument prototype would still apply. */
13255 #ifdef __cplusplus
13256 extern "C"
13257 #endif
13258 char res_send ();
13259 int
13260 main ()
13261 {
13262 return res_send ();
13263 ;
13264 return 0;
13265 }
13266 _ACEOF
13267 if ac_fn_c_try_link "$LINENO"; then :
13268 ac_cv_lib_resolv_res_send=yes
13269 else
13270 ac_cv_lib_resolv_res_send=no
13271 fi
13272 rm -f core conftest.err conftest.$ac_objext \
13273 conftest$ac_exeext conftest.$ac_ext
13274 LIBS=$ac_check_lib_save_LIBS
13275 fi
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13277 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13278 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
13279 resolv=yes
13280 else
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13282 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13283 if ${ac_cv_lib_resolv___res_send+:} false; then :
13284 $as_echo_n "(cached) " >&6
13285 else
13286 ac_check_lib_save_LIBS=$LIBS
13287 LIBS="-lresolv $LIBS"
13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289 /* end confdefs.h. */
13290
13291 /* Override any GCC internal prototype to avoid an error.
13292 Use char because int might match the return type of a GCC
13293 builtin and then its argument prototype would still apply. */
13294 #ifdef __cplusplus
13295 extern "C"
13296 #endif
13297 char __res_send ();
13298 int
13299 main ()
13300 {
13301 return __res_send ();
13302 ;
13303 return 0;
13304 }
13305 _ACEOF
13306 if ac_fn_c_try_link "$LINENO"; then :
13307 ac_cv_lib_resolv___res_send=yes
13308 else
13309 ac_cv_lib_resolv___res_send=no
13310 fi
13311 rm -f core conftest.err conftest.$ac_objext \
13312 conftest$ac_exeext conftest.$ac_ext
13313 LIBS=$ac_check_lib_save_LIBS
13314 fi
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13316 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13317 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
13318 resolv=yes
13319 fi
13320
13321 fi
13322
13323 fi
13324
13325 fi
13326
13327 if test "$resolv" = yes ; then
13328 RESOLVLIB=-lresolv
13329 else
13330 RESOLVLIB=
13331 fi
13332 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13333 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
13334
13335 else
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13337 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13338 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
13339 $as_echo_n "(cached) " >&6
13340 else
13341 ac_check_lib_save_LIBS=$LIBS
13342 LIBS="-lhesiod $RESOLVLIB $LIBS"
13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13345
13346 /* Override any GCC internal prototype to avoid an error.
13347 Use char because int might match the return type of a GCC
13348 builtin and then its argument prototype would still apply. */
13349 #ifdef __cplusplus
13350 extern "C"
13351 #endif
13352 char hes_getmailhost ();
13353 int
13354 main ()
13355 {
13356 return hes_getmailhost ();
13357 ;
13358 return 0;
13359 }
13360 _ACEOF
13361 if ac_fn_c_try_link "$LINENO"; then :
13362 ac_cv_lib_hesiod_hes_getmailhost=yes
13363 else
13364 ac_cv_lib_hesiod_hes_getmailhost=no
13365 fi
13366 rm -f core conftest.err conftest.$ac_objext \
13367 conftest$ac_exeext conftest.$ac_ext
13368 LIBS=$ac_check_lib_save_LIBS
13369 fi
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13371 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13372 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
13373 hesiod=yes
13374 else
13375 :
13376 fi
13377
13378 fi
13379
13380
13381 if test x"$hesiod" = xyes; then
13382
13383 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13384
13385 LIBHESIOD=-lhesiod
13386 fi
13387 fi
13388
13389
13390 # Do we need libresolv (due to res_init or Hesiod)?
13391 if test "$resolv" = yes ; then
13392
13393 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13394
13395 LIBRESOLV=-lresolv
13396 else
13397 LIBRESOLV=
13398 fi
13399
13400
13401 # These tell us which Kerberos-related libraries to use.
13402 COM_ERRLIB=
13403 CRYPTOLIB=
13404 KRB5LIB=
13405 DESLIB=
13406 KRB4LIB=
13407
13408 if test "${with_kerberos}" != no; then
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13410 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13411 if ${ac_cv_lib_com_err_com_err+:} false; then :
13412 $as_echo_n "(cached) " >&6
13413 else
13414 ac_check_lib_save_LIBS=$LIBS
13415 LIBS="-lcom_err $LIBS"
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h. */
13418
13419 /* Override any GCC internal prototype to avoid an error.
13420 Use char because int might match the return type of a GCC
13421 builtin and then its argument prototype would still apply. */
13422 #ifdef __cplusplus
13423 extern "C"
13424 #endif
13425 char com_err ();
13426 int
13427 main ()
13428 {
13429 return com_err ();
13430 ;
13431 return 0;
13432 }
13433 _ACEOF
13434 if ac_fn_c_try_link "$LINENO"; then :
13435 ac_cv_lib_com_err_com_err=yes
13436 else
13437 ac_cv_lib_com_err_com_err=no
13438 fi
13439 rm -f core conftest.err conftest.$ac_objext \
13440 conftest$ac_exeext conftest.$ac_ext
13441 LIBS=$ac_check_lib_save_LIBS
13442 fi
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13444 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13445 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
13446 have_com_err=yes
13447 else
13448 have_com_err=no
13449 fi
13450
13451 if test $have_com_err = yes; then
13452 COM_ERRLIB=-lcom_err
13453 LIBS="$COM_ERRLIB $LIBS"
13454
13455 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13456
13457 fi
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13459 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13460 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
13461 $as_echo_n "(cached) " >&6
13462 else
13463 ac_check_lib_save_LIBS=$LIBS
13464 LIBS="-lcrypto $LIBS"
13465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13466 /* end confdefs.h. */
13467
13468 /* Override any GCC internal prototype to avoid an error.
13469 Use char because int might match the return type of a GCC
13470 builtin and then its argument prototype would still apply. */
13471 #ifdef __cplusplus
13472 extern "C"
13473 #endif
13474 char mit_des_cbc_encrypt ();
13475 int
13476 main ()
13477 {
13478 return mit_des_cbc_encrypt ();
13479 ;
13480 return 0;
13481 }
13482 _ACEOF
13483 if ac_fn_c_try_link "$LINENO"; then :
13484 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13485 else
13486 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13487 fi
13488 rm -f core conftest.err conftest.$ac_objext \
13489 conftest$ac_exeext conftest.$ac_ext
13490 LIBS=$ac_check_lib_save_LIBS
13491 fi
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13493 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13494 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
13495 have_crypto=yes
13496 else
13497 have_crypto=no
13498 fi
13499
13500 if test $have_crypto = yes; then
13501 CRYPTOLIB=-lcrypto
13502 LIBS="$CRYPTOLIB $LIBS"
13503
13504 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13505
13506 fi
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13508 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13509 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 ac_check_lib_save_LIBS=$LIBS
13513 LIBS="-lk5crypto $LIBS"
13514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13515 /* end confdefs.h. */
13516
13517 /* Override any GCC internal prototype to avoid an error.
13518 Use char because int might match the return type of a GCC
13519 builtin and then its argument prototype would still apply. */
13520 #ifdef __cplusplus
13521 extern "C"
13522 #endif
13523 char mit_des_cbc_encrypt ();
13524 int
13525 main ()
13526 {
13527 return mit_des_cbc_encrypt ();
13528 ;
13529 return 0;
13530 }
13531 _ACEOF
13532 if ac_fn_c_try_link "$LINENO"; then :
13533 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13534 else
13535 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13536 fi
13537 rm -f core conftest.err conftest.$ac_objext \
13538 conftest$ac_exeext conftest.$ac_ext
13539 LIBS=$ac_check_lib_save_LIBS
13540 fi
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13542 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13543 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
13544 have_k5crypto=yes
13545 else
13546 have_k5crypto=no
13547 fi
13548
13549 if test $have_k5crypto = yes; then
13550 CRYPTOLIB=-lk5crypto
13551 LIBS="$CRYPTOLIB $LIBS"
13552
13553 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13554
13555 fi
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13557 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13558 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
13559 $as_echo_n "(cached) " >&6
13560 else
13561 ac_check_lib_save_LIBS=$LIBS
13562 LIBS="-lkrb5 $LIBS"
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13565
13566 /* Override any GCC internal prototype to avoid an error.
13567 Use char because int might match the return type of a GCC
13568 builtin and then its argument prototype would still apply. */
13569 #ifdef __cplusplus
13570 extern "C"
13571 #endif
13572 char krb5_init_context ();
13573 int
13574 main ()
13575 {
13576 return krb5_init_context ();
13577 ;
13578 return 0;
13579 }
13580 _ACEOF
13581 if ac_fn_c_try_link "$LINENO"; then :
13582 ac_cv_lib_krb5_krb5_init_context=yes
13583 else
13584 ac_cv_lib_krb5_krb5_init_context=no
13585 fi
13586 rm -f core conftest.err conftest.$ac_objext \
13587 conftest$ac_exeext conftest.$ac_ext
13588 LIBS=$ac_check_lib_save_LIBS
13589 fi
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13591 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13592 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
13593 have_krb5=yes
13594 else
13595 have_krb5=no
13596 fi
13597
13598 if test $have_krb5=yes; then
13599 KRB5LIB=-lkrb5
13600 LIBS="$KRB5LIB $LIBS"
13601
13602 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13603
13604 fi
13605 if test "${with_kerberos5}" = no; then
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13607 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13608 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
13609 $as_echo_n "(cached) " >&6
13610 else
13611 ac_check_lib_save_LIBS=$LIBS
13612 LIBS="-ldes425 $LIBS"
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13615
13616 /* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13619 #ifdef __cplusplus
13620 extern "C"
13621 #endif
13622 char des_cbc_encrypt ();
13623 int
13624 main ()
13625 {
13626 return des_cbc_encrypt ();
13627 ;
13628 return 0;
13629 }
13630 _ACEOF
13631 if ac_fn_c_try_link "$LINENO"; then :
13632 ac_cv_lib_des425_des_cbc_encrypt=yes
13633 else
13634 ac_cv_lib_des425_des_cbc_encrypt=no
13635 fi
13636 rm -f core conftest.err conftest.$ac_objext \
13637 conftest$ac_exeext conftest.$ac_ext
13638 LIBS=$ac_check_lib_save_LIBS
13639 fi
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13641 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13642 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
13643 have_des425=yes
13644 else
13645 have_des425=no
13646 fi
13647
13648 if test $have_des425 = yes; then
13649 DESLIB=-ldes425
13650 LIBS="$DESLIB $LIBS"
13651
13652 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13653
13654 else
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13656 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13657 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
13658 $as_echo_n "(cached) " >&6
13659 else
13660 ac_check_lib_save_LIBS=$LIBS
13661 LIBS="-ldes $LIBS"
13662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h. */
13664
13665 /* Override any GCC internal prototype to avoid an error.
13666 Use char because int might match the return type of a GCC
13667 builtin and then its argument prototype would still apply. */
13668 #ifdef __cplusplus
13669 extern "C"
13670 #endif
13671 char des_cbc_encrypt ();
13672 int
13673 main ()
13674 {
13675 return des_cbc_encrypt ();
13676 ;
13677 return 0;
13678 }
13679 _ACEOF
13680 if ac_fn_c_try_link "$LINENO"; then :
13681 ac_cv_lib_des_des_cbc_encrypt=yes
13682 else
13683 ac_cv_lib_des_des_cbc_encrypt=no
13684 fi
13685 rm -f core conftest.err conftest.$ac_objext \
13686 conftest$ac_exeext conftest.$ac_ext
13687 LIBS=$ac_check_lib_save_LIBS
13688 fi
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13690 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13691 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
13692 have_des=yes
13693 else
13694 have_des=no
13695 fi
13696
13697 if test $have_des = yes; then
13698 DESLIB=-ldes
13699 LIBS="$DESLIB $LIBS"
13700
13701 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13702
13703 fi
13704 fi
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13706 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13707 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
13708 $as_echo_n "(cached) " >&6
13709 else
13710 ac_check_lib_save_LIBS=$LIBS
13711 LIBS="-lkrb4 $LIBS"
13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713 /* end confdefs.h. */
13714
13715 /* Override any GCC internal prototype to avoid an error.
13716 Use char because int might match the return type of a GCC
13717 builtin and then its argument prototype would still apply. */
13718 #ifdef __cplusplus
13719 extern "C"
13720 #endif
13721 char krb_get_cred ();
13722 int
13723 main ()
13724 {
13725 return krb_get_cred ();
13726 ;
13727 return 0;
13728 }
13729 _ACEOF
13730 if ac_fn_c_try_link "$LINENO"; then :
13731 ac_cv_lib_krb4_krb_get_cred=yes
13732 else
13733 ac_cv_lib_krb4_krb_get_cred=no
13734 fi
13735 rm -f core conftest.err conftest.$ac_objext \
13736 conftest$ac_exeext conftest.$ac_ext
13737 LIBS=$ac_check_lib_save_LIBS
13738 fi
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13740 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13741 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
13742 have_krb4=yes
13743 else
13744 have_krb4=no
13745 fi
13746
13747 if test $have_krb4 = yes; then
13748 KRB4LIB=-lkrb4
13749 LIBS="$KRB4LIB $LIBS"
13750
13751 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13752
13753 else
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13755 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13756 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
13757 $as_echo_n "(cached) " >&6
13758 else
13759 ac_check_lib_save_LIBS=$LIBS
13760 LIBS="-lkrb $LIBS"
13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13763
13764 /* Override any GCC internal prototype to avoid an error.
13765 Use char because int might match the return type of a GCC
13766 builtin and then its argument prototype would still apply. */
13767 #ifdef __cplusplus
13768 extern "C"
13769 #endif
13770 char krb_get_cred ();
13771 int
13772 main ()
13773 {
13774 return krb_get_cred ();
13775 ;
13776 return 0;
13777 }
13778 _ACEOF
13779 if ac_fn_c_try_link "$LINENO"; then :
13780 ac_cv_lib_krb_krb_get_cred=yes
13781 else
13782 ac_cv_lib_krb_krb_get_cred=no
13783 fi
13784 rm -f core conftest.err conftest.$ac_objext \
13785 conftest$ac_exeext conftest.$ac_ext
13786 LIBS=$ac_check_lib_save_LIBS
13787 fi
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13789 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13790 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
13791 have_krb=yes
13792 else
13793 have_krb=no
13794 fi
13795
13796 if test $have_krb = yes; then
13797 KRB4LIB=-lkrb
13798 LIBS="$KRB4LIB $LIBS"
13799
13800 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13801
13802 fi
13803 fi
13804 fi
13805
13806 if test "${with_kerberos5}" != no; then
13807 for ac_header in krb5.h
13808 do :
13809 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13810 if test "x$ac_cv_header_krb5_h" = xyes; then :
13811 cat >>confdefs.h <<_ACEOF
13812 #define HAVE_KRB5_H 1
13813 _ACEOF
13814 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13815 "
13816 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
13817
13818 cat >>confdefs.h <<_ACEOF
13819 #define HAVE_KRB5_ERROR_TEXT 1
13820 _ACEOF
13821
13822
13823 fi
13824 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13825 "
13826 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
13827
13828 cat >>confdefs.h <<_ACEOF
13829 #define HAVE_KRB5_ERROR_E_TEXT 1
13830 _ACEOF
13831
13832
13833 fi
13834
13835 fi
13836
13837 done
13838
13839 else
13840 for ac_header in des.h
13841 do :
13842 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13843 if test "x$ac_cv_header_des_h" = xyes; then :
13844 cat >>confdefs.h <<_ACEOF
13845 #define HAVE_DES_H 1
13846 _ACEOF
13847
13848 else
13849 for ac_header in kerberosIV/des.h
13850 do :
13851 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13852 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
13853 cat >>confdefs.h <<_ACEOF
13854 #define HAVE_KERBEROSIV_DES_H 1
13855 _ACEOF
13856
13857 else
13858 for ac_header in kerberos/des.h
13859 do :
13860 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13861 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
13862 cat >>confdefs.h <<_ACEOF
13863 #define HAVE_KERBEROS_DES_H 1
13864 _ACEOF
13865
13866 fi
13867
13868 done
13869
13870 fi
13871
13872 done
13873
13874 fi
13875
13876 done
13877
13878 for ac_header in krb.h
13879 do :
13880 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13881 if test "x$ac_cv_header_krb_h" = xyes; then :
13882 cat >>confdefs.h <<_ACEOF
13883 #define HAVE_KRB_H 1
13884 _ACEOF
13885
13886 else
13887 for ac_header in kerberosIV/krb.h
13888 do :
13889 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13890 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
13891 cat >>confdefs.h <<_ACEOF
13892 #define HAVE_KERBEROSIV_KRB_H 1
13893 _ACEOF
13894
13895 else
13896 for ac_header in kerberos/krb.h
13897 do :
13898 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13899 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
13900 cat >>confdefs.h <<_ACEOF
13901 #define HAVE_KERBEROS_KRB_H 1
13902 _ACEOF
13903
13904 fi
13905
13906 done
13907
13908 fi
13909
13910 done
13911
13912 fi
13913
13914 done
13915
13916 fi
13917 for ac_header in com_err.h
13918 do :
13919 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13920 if test "x$ac_cv_header_com_err_h" = xyes; then :
13921 cat >>confdefs.h <<_ACEOF
13922 #define HAVE_COM_ERR_H 1
13923 _ACEOF
13924
13925 fi
13926
13927 done
13928
13929 fi
13930
13931
13932
13933
13934
13935
13936
13937 # Solaris requires -lintl if you want strerror (which calls dgettext)
13938 # to return localized messages.
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13940 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13941 if ${ac_cv_lib_intl_dgettext+:} false; then :
13942 $as_echo_n "(cached) " >&6
13943 else
13944 ac_check_lib_save_LIBS=$LIBS
13945 LIBS="-lintl $LIBS"
13946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947 /* end confdefs.h. */
13948
13949 /* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
13952 #ifdef __cplusplus
13953 extern "C"
13954 #endif
13955 char dgettext ();
13956 int
13957 main ()
13958 {
13959 return dgettext ();
13960 ;
13961 return 0;
13962 }
13963 _ACEOF
13964 if ac_fn_c_try_link "$LINENO"; then :
13965 ac_cv_lib_intl_dgettext=yes
13966 else
13967 ac_cv_lib_intl_dgettext=no
13968 fi
13969 rm -f core conftest.err conftest.$ac_objext \
13970 conftest$ac_exeext conftest.$ac_ext
13971 LIBS=$ac_check_lib_save_LIBS
13972 fi
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13974 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13975 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
13976 cat >>confdefs.h <<_ACEOF
13977 #define HAVE_LIBINTL 1
13978 _ACEOF
13979
13980 LIBS="-lintl $LIBS"
13981
13982 fi
13983
13984
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13986 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13987 if ${emacs_cv_localtime_cache+:} false; then :
13988 $as_echo_n "(cached) " >&6
13989 else
13990 if test x$ac_cv_func_tzset = xyes; then
13991 if test "$cross_compiling" = yes; then :
13992 # If we have tzset, assume the worst when cross-compiling.
13993 emacs_cv_localtime_cache=yes
13994 else
13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
13997 #include <time.h>
13998 char TZ_GMT0[] = "TZ=GMT0";
13999 char TZ_PST8[] = "TZ=PST8";
14000 main()
14001 {
14002 time_t now = time ((time_t *) 0);
14003 int hour_GMT0, hour_unset;
14004 if (putenv (TZ_GMT0) != 0)
14005 exit (1);
14006 hour_GMT0 = localtime (&now)->tm_hour;
14007 unsetenv("TZ");
14008 hour_unset = localtime (&now)->tm_hour;
14009 if (putenv (TZ_PST8) != 0)
14010 exit (1);
14011 if (localtime (&now)->tm_hour == hour_GMT0)
14012 exit (1);
14013 unsetenv("TZ");
14014 if (localtime (&now)->tm_hour != hour_unset)
14015 exit (1);
14016 exit (0);
14017 }
14018 _ACEOF
14019 if ac_fn_c_try_run "$LINENO"; then :
14020 emacs_cv_localtime_cache=no
14021 else
14022 emacs_cv_localtime_cache=yes
14023 fi
14024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14025 conftest.$ac_objext conftest.beam conftest.$ac_ext
14026 fi
14027
14028 else
14029 # If we lack tzset, report that localtime does not cache TZ,
14030 # since we can't invalidate the cache if we don't have tzset.
14031 emacs_cv_localtime_cache=no
14032 fi
14033 fi
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14035 $as_echo "$emacs_cv_localtime_cache" >&6; }
14036 if test $emacs_cv_localtime_cache = yes; then
14037
14038 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14039
14040 fi
14041
14042 if test "x$HAVE_TIMEVAL" = xyes; then
14043 for ac_func in gettimeofday
14044 do :
14045 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14046 if test "x$ac_cv_func_gettimeofday" = xyes; then :
14047 cat >>confdefs.h <<_ACEOF
14048 #define HAVE_GETTIMEOFDAY 1
14049 _ACEOF
14050
14051 fi
14052 done
14053
14054 if test $ac_cv_func_gettimeofday = yes; then
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14056 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14057 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
14058 $as_echo_n "(cached) " >&6
14059 else
14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14062
14063 #ifdef TIME_WITH_SYS_TIME
14064 #include <sys/time.h>
14065 #include <time.h>
14066 #else
14067 #ifdef HAVE_SYS_TIME_H
14068 #include <sys/time.h>
14069 #else
14070 #include <time.h>
14071 #endif
14072 #endif
14073 int
14074 main ()
14075 {
14076 struct timeval time;
14077 gettimeofday (&time, 0);
14078 ;
14079 return 0;
14080 }
14081 _ACEOF
14082 if ac_fn_c_try_compile "$LINENO"; then :
14083 emacs_cv_gettimeofday_two_arguments=yes
14084 else
14085 emacs_cv_gettimeofday_two_arguments=no
14086 fi
14087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088 fi
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14090 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14091 if test $emacs_cv_gettimeofday_two_arguments = no; then
14092
14093 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14094
14095 fi
14096 fi
14097 fi
14098
14099 ok_so_far=yes
14100 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14101 if test "x$ac_cv_func_socket" = xyes; then :
14102
14103 else
14104 ok_so_far=no
14105 fi
14106
14107 if test $ok_so_far = yes; then
14108 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14109 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
14110
14111 else
14112 ok_so_far=no
14113 fi
14114
14115
14116 fi
14117 if test $ok_so_far = yes; then
14118 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14119 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
14120
14121 else
14122 ok_so_far=no
14123 fi
14124
14125
14126 fi
14127 if test $ok_so_far = yes; then
14128
14129 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14130
14131 fi
14132
14133 if test -f /usr/lpp/X11/bin/smt.exp; then
14134
14135 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14136
14137 fi
14138
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14140 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14141 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14143 $as_echo "yes" >&6; }
14144
14145 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14146
14147 else
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14149 $as_echo "no" >&6; }
14150 fi
14151
14152 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14153 if test "x$ac_cv_type_pid_t" = xyes; then :
14154
14155 else
14156
14157 cat >>confdefs.h <<_ACEOF
14158 #define pid_t int
14159 _ACEOF
14160
14161 fi
14162
14163 for ac_header in vfork.h
14164 do :
14165 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14166 if test "x$ac_cv_header_vfork_h" = xyes; then :
14167 cat >>confdefs.h <<_ACEOF
14168 #define HAVE_VFORK_H 1
14169 _ACEOF
14170
14171 fi
14172
14173 done
14174
14175 for ac_func in fork vfork
14176 do :
14177 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14178 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14179 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14180 cat >>confdefs.h <<_ACEOF
14181 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14182 _ACEOF
14183
14184 fi
14185 done
14186
14187 if test "x$ac_cv_func_fork" = xyes; then
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14189 $as_echo_n "checking for working fork... " >&6; }
14190 if ${ac_cv_func_fork_works+:} false; then :
14191 $as_echo_n "(cached) " >&6
14192 else
14193 if test "$cross_compiling" = yes; then :
14194 ac_cv_func_fork_works=cross
14195 else
14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197 /* end confdefs.h. */
14198 $ac_includes_default
14199 int
14200 main ()
14201 {
14202
14203 /* By Ruediger Kuhlmann. */
14204 return fork () < 0;
14205
14206 ;
14207 return 0;
14208 }
14209 _ACEOF
14210 if ac_fn_c_try_run "$LINENO"; then :
14211 ac_cv_func_fork_works=yes
14212 else
14213 ac_cv_func_fork_works=no
14214 fi
14215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14216 conftest.$ac_objext conftest.beam conftest.$ac_ext
14217 fi
14218
14219 fi
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14221 $as_echo "$ac_cv_func_fork_works" >&6; }
14222
14223 else
14224 ac_cv_func_fork_works=$ac_cv_func_fork
14225 fi
14226 if test "x$ac_cv_func_fork_works" = xcross; then
14227 case $host in
14228 *-*-amigaos* | *-*-msdosdjgpp*)
14229 # Override, as these systems have only a dummy fork() stub
14230 ac_cv_func_fork_works=no
14231 ;;
14232 *)
14233 ac_cv_func_fork_works=yes
14234 ;;
14235 esac
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14237 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14238 fi
14239 ac_cv_func_vfork_works=$ac_cv_func_vfork
14240 if test "x$ac_cv_func_vfork" = xyes; then
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14242 $as_echo_n "checking for working vfork... " >&6; }
14243 if ${ac_cv_func_vfork_works+:} false; then :
14244 $as_echo_n "(cached) " >&6
14245 else
14246 if test "$cross_compiling" = yes; then :
14247 ac_cv_func_vfork_works=cross
14248 else
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14251 /* Thanks to Paul Eggert for this test. */
14252 $ac_includes_default
14253 #include <sys/wait.h>
14254 #ifdef HAVE_VFORK_H
14255 # include <vfork.h>
14256 #endif
14257 /* On some sparc systems, changes by the child to local and incoming
14258 argument registers are propagated back to the parent. The compiler
14259 is told about this with #include <vfork.h>, but some compilers
14260 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14261 static variable whose address is put into a register that is
14262 clobbered by the vfork. */
14263 static void
14264 #ifdef __cplusplus
14265 sparc_address_test (int arg)
14266 # else
14267 sparc_address_test (arg) int arg;
14268 #endif
14269 {
14270 static pid_t child;
14271 if (!child) {
14272 child = vfork ();
14273 if (child < 0) {
14274 perror ("vfork");
14275 _exit(2);
14276 }
14277 if (!child) {
14278 arg = getpid();
14279 write(-1, "", 0);
14280 _exit (arg);
14281 }
14282 }
14283 }
14284
14285 int
14286 main ()
14287 {
14288 pid_t parent = getpid ();
14289 pid_t child;
14290
14291 sparc_address_test (0);
14292
14293 child = vfork ();
14294
14295 if (child == 0) {
14296 /* Here is another test for sparc vfork register problems. This
14297 test uses lots of local variables, at least as many local
14298 variables as main has allocated so far including compiler
14299 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14300 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14301 reuse the register of parent for one of the local variables,
14302 since it will think that parent can't possibly be used any more
14303 in this routine. Assigning to the local variable will thus
14304 munge parent in the parent process. */
14305 pid_t
14306 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14307 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14308 /* Convince the compiler that p..p7 are live; otherwise, it might
14309 use the same hardware register for all 8 local variables. */
14310 if (p != p1 || p != p2 || p != p3 || p != p4
14311 || p != p5 || p != p6 || p != p7)
14312 _exit(1);
14313
14314 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14315 from child file descriptors. If the child closes a descriptor
14316 before it execs or exits, this munges the parent's descriptor
14317 as well. Test for this by closing stdout in the child. */
14318 _exit(close(fileno(stdout)) != 0);
14319 } else {
14320 int status;
14321 struct stat st;
14322
14323 while (wait(&status) != child)
14324 ;
14325 return (
14326 /* Was there some problem with vforking? */
14327 child < 0
14328
14329 /* Did the child fail? (This shouldn't happen.) */
14330 || status
14331
14332 /* Did the vfork/compiler bug occur? */
14333 || parent != getpid()
14334
14335 /* Did the file descriptor bug occur? */
14336 || fstat(fileno(stdout), &st) != 0
14337 );
14338 }
14339 }
14340 _ACEOF
14341 if ac_fn_c_try_run "$LINENO"; then :
14342 ac_cv_func_vfork_works=yes
14343 else
14344 ac_cv_func_vfork_works=no
14345 fi
14346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14347 conftest.$ac_objext conftest.beam conftest.$ac_ext
14348 fi
14349
14350 fi
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14352 $as_echo "$ac_cv_func_vfork_works" >&6; }
14353
14354 fi;
14355 if test "x$ac_cv_func_fork_works" = xcross; then
14356 ac_cv_func_vfork_works=$ac_cv_func_vfork
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14358 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14359 fi
14360
14361 if test "x$ac_cv_func_vfork_works" = xyes; then
14362
14363 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14364
14365 else
14366
14367 $as_echo "#define vfork fork" >>confdefs.h
14368
14369 fi
14370 if test "x$ac_cv_func_fork_works" = xyes; then
14371
14372 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14373
14374 fi
14375
14376
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14378 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14379 if ${emacs_cv_langinfo_codeset+:} false; then :
14380 $as_echo_n "(cached) " >&6
14381 else
14382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383 /* end confdefs.h. */
14384 #include <langinfo.h>
14385 int
14386 main ()
14387 {
14388 char* cs = nl_langinfo(CODESET);
14389 ;
14390 return 0;
14391 }
14392 _ACEOF
14393 if ac_fn_c_try_link "$LINENO"; then :
14394 emacs_cv_langinfo_codeset=yes
14395 else
14396 emacs_cv_langinfo_codeset=no
14397 fi
14398 rm -f core conftest.err conftest.$ac_objext \
14399 conftest$ac_exeext conftest.$ac_ext
14400
14401 fi
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14403 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14404 if test $emacs_cv_langinfo_codeset = yes; then
14405
14406 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14407
14408 fi
14409
14410 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14411 if test "x$ac_cv_type_size_t" = xyes; then :
14412
14413 cat >>confdefs.h <<_ACEOF
14414 #define HAVE_SIZE_T 1
14415 _ACEOF
14416
14417
14418 fi
14419
14420
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14422 $as_echo_n "checking for mbstate_t... " >&6; }
14423 if ${ac_cv_type_mbstate_t+:} false; then :
14424 $as_echo_n "(cached) " >&6
14425 else
14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14428 $ac_includes_default
14429 # include <wchar.h>
14430 int
14431 main ()
14432 {
14433 mbstate_t x; return sizeof x;
14434 ;
14435 return 0;
14436 }
14437 _ACEOF
14438 if ac_fn_c_try_compile "$LINENO"; then :
14439 ac_cv_type_mbstate_t=yes
14440 else
14441 ac_cv_type_mbstate_t=no
14442 fi
14443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14444 fi
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14446 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14447 if test $ac_cv_type_mbstate_t = yes; then
14448
14449 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14450
14451 else
14452
14453 $as_echo "#define mbstate_t int" >>confdefs.h
14454
14455 fi
14456
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14458 $as_echo_n "checking for C restrict keyword... " >&6; }
14459 if ${emacs_cv_c_restrict+:} false; then :
14460 $as_echo_n "(cached) " >&6
14461 else
14462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14463 /* end confdefs.h. */
14464 void fred (int *restrict x);
14465 int
14466 main ()
14467 {
14468
14469 ;
14470 return 0;
14471 }
14472 _ACEOF
14473 if ac_fn_c_try_compile "$LINENO"; then :
14474 emacs_cv_c_restrict=yes
14475 else
14476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14477 /* end confdefs.h. */
14478 void fred (int *__restrict x);
14479 int
14480 main ()
14481 {
14482
14483 ;
14484 return 0;
14485 }
14486 _ACEOF
14487 if ac_fn_c_try_compile "$LINENO"; then :
14488 emacs_cv_c_restrict=__restrict
14489 else
14490 emacs_cv_c_restrict=no
14491 fi
14492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14493 fi
14494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14495 fi
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14497 $as_echo "$emacs_cv_c_restrict" >&6; }
14498 case "$emacs_cv_c_restrict" in
14499 yes) emacs_restrict=restrict;;
14500 no) emacs_restrict="";;
14501 *) emacs_restrict="$emacs_cv_c_restrict";;
14502 esac
14503 if test "$emacs_restrict" != __restrict; then
14504
14505 cat >>confdefs.h <<_ACEOF
14506 #define __restrict $emacs_restrict
14507 _ACEOF
14508
14509 fi
14510
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14512 $as_echo_n "checking for C restricted array declarations... " >&6; }
14513 if ${emacs_cv_c_restrict_arr+:} false; then :
14514 $as_echo_n "(cached) " >&6
14515 else
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14518 void fred (int x[__restrict]);
14519 int
14520 main ()
14521 {
14522
14523 ;
14524 return 0;
14525 }
14526 _ACEOF
14527 if ac_fn_c_try_compile "$LINENO"; then :
14528 emacs_cv_c_restrict_arr=yes
14529 else
14530 emacs_cv_c_restrict_arr=no
14531 fi
14532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14533 fi
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14535 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14536 if test "$emacs_cv_c_restrict_arr" = yes; then
14537
14538 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14539
14540 fi
14541
14542
14543
14544 # Set up the CFLAGS for real compilation, so we can substitute it.
14545 CFLAGS="$REAL_CFLAGS"
14546 CPPFLAGS="$REAL_CPPFLAGS"
14547
14548 ## Hack to detect a buggy GCC version.
14549 if test "x$GCC" = xyes \
14550 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14551 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14552 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14553 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14554 fi
14555
14556 #### Find out which version of Emacs this is.
14557 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14558 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14559 if test x"${version}" = x; then
14560 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14561 fi
14562 if test x"${version}" != x"$PACKAGE_VERSION"; then
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14564 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14565 fi
14566
14567 ### Specify what sort of things we'll be editing into Makefile and config.h.
14568 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14569
14570
14571 ## Unused?
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14593 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14594 ## end of LIBX_BASE, but nothing ever set it.
14595
14596
14597
14598
14599 ## Used in lwlib/Makefile.in.
14600
14601 if test -n "${machfile}"; then
14602 M_FILE="\$(srcdir)/${machfile}"
14603 else
14604 M_FILE=
14605 fi
14606 S_FILE="\$(srcdir)/${opsysfile}"
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618 cat >>confdefs.h <<_ACEOF
14619 #define EMACS_CONFIGURATION "${canonical}"
14620 _ACEOF
14621
14622
14623 cat >>confdefs.h <<_ACEOF
14624 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14625 _ACEOF
14626
14627 if test -n "$machfile"; then
14628
14629 cat >>confdefs.h <<_ACEOF
14630 #define config_machfile "${machfile}"
14631 _ACEOF
14632
14633 fi
14634
14635 cat >>confdefs.h <<_ACEOF
14636 #define config_opsysfile "${opsysfile}"
14637 _ACEOF
14638
14639
14640 XMENU_OBJ=
14641 XOBJ=
14642 FONT_OBJ=
14643 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14644
14645 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14646
14647 XMENU_OBJ=xmenu.o
14648 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14649 FONT_OBJ=xfont.o
14650 if test "$HAVE_XFT" = "yes"; then
14651 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14652 elif test "$HAVE_FREETYPE" = "yes"; then
14653 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14654 fi
14655
14656 fi
14657
14658
14659
14660
14661 WIDGET_OBJ=
14662 MOTIF_LIBW=
14663 if test "${USE_X_TOOLKIT}" != "none" ; then
14664 WIDGET_OBJ=widget.o
14665
14666 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14667
14668 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14669
14670 $as_echo "#define USE_LUCID 1" >>confdefs.h
14671
14672 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14673
14674 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14675
14676 MOTIF_LIBW=-lXm
14677 case "$opsys" in
14678 gnu-linux)
14679 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14680 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14681 ;;
14682
14683 unixware)
14684 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14685 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14686 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14687 ;;
14688
14689 aix4-2)
14690 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14691 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14692 ;;
14693 esac
14694 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14695 fi
14696 fi
14697
14698
14699 TOOLKIT_LIBW=
14700 case "$USE_X_TOOLKIT" in
14701 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14702 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14703 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14704 esac
14705
14706
14707 if test "$USE_X_TOOLKIT" = "none"; then
14708 LIBXT_OTHER="\$(LIBXSM)"
14709 OLDXMENU_TARGET="really-oldXMenu"
14710 else
14711 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14712 OLDXMENU_TARGET="really-lwlib"
14713 fi
14714
14715
14716 ## The X Menu stuff is present in the X10 distribution, but missing
14717 ## from X11. If we have X10, just use the installed library;
14718 ## otherwise, use our own copy.
14719 if test "${HAVE_X11}" = "yes" ; then
14720
14721 $as_echo "#define HAVE_X11 1" >>confdefs.h
14722
14723
14724 if test "$USE_X_TOOLKIT" = "none"; then
14725 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
14726 else
14727 OLDXMENU="\${lwlibdir}/liblw.a"
14728 fi
14729 LIBXMENU="\$(OLDXMENU)"
14730 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14731 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14732 else
14733 ## For a syntactically valid Makefile; not actually used for anything.
14734 ## See comments in src/Makefile.in.
14735 OLDXMENU=nothing
14736 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14737 if test "${HAVE_X_WINDOWS}" = "yes"; then
14738 LIBXMENU="-lXMenu"
14739 else
14740 LIBXMENU=
14741 fi
14742 LIBX_OTHER=
14743 OLDXMENU_DEPS=
14744 fi
14745
14746 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14747 OLDXMENU_TARGET=
14748 OLDXMENU=nothing
14749 LIBXMENU=
14750 OLDXMENU_DEPS=
14751 fi
14752
14753
14754
14755
14756
14757
14758
14759 if test "${HAVE_MENUS}" = "yes" ; then
14760
14761 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14762
14763 fi
14764
14765 if test "${GNU_MALLOC}" = "yes" ; then
14766
14767 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14768
14769 fi
14770
14771 RALLOC_OBJ=
14772 if test "${REL_ALLOC}" = "yes" ; then
14773
14774 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14775
14776
14777 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14778 fi
14779
14780
14781 if test "$opsys" = "cygwin"; then
14782 CYGWIN_OBJ="sheap.o"
14783 ## Cygwin differs because of its unexec().
14784 PRE_ALLOC_OBJ=
14785 POST_ALLOC_OBJ=lastfile.o
14786 else
14787 CYGWIN_OBJ=
14788 PRE_ALLOC_OBJ=lastfile.o
14789 POST_ALLOC_OBJ=
14790 fi
14791
14792
14793
14794
14795
14796 case "$opsys" in
14797 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14798
14799 darwin)
14800 ## The -headerpad option tells ld (see man page) to leave room at the
14801 ## end of the header for adding load commands. Needed for dumping.
14802 ## 0x690 is the total size of 30 segment load commands (at 56
14803 ## each); under Cocoa 31 commands are required.
14804 if test "$HAVE_NS" = "yes"; then
14805 libs_nsgui="-framework AppKit"
14806 headerpad_extra=6C8
14807 else
14808 libs_nsgui=
14809 headerpad_extra=690
14810 fi
14811 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14812
14813 ## This is here because src/Makefile.in did some extra fiddling around
14814 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14815 ## #ifndef LD_SWITCH_SYSTEM
14816 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14817 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14818 ## not using gcc, darwin system not on an alpha (ie darwin, since
14819 ## darwin + alpha does not occur).
14820 ## Because this was done in src/Makefile.in, the resulting part of
14821 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14822 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14823 ## rather than LD_SWITCH_SYSTEM.
14824 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14825 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14826 ;;
14827
14828 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14829 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14830 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14831 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14832 ## had different values in configure (in ac_link) and src/Makefile.in.
14833 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14834 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14835
14836 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14837 esac
14838
14839 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14840 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14841 fi
14842
14843
14844
14845
14846 LD_FIRSTFLAG=
14847 ORDINARY_LINK=
14848 case "$opsys" in
14849 ## gnu: GNU needs its own crt0.
14850 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14851
14852 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14853 ## library search parth, i.e. it won't search /usr/lib for libc and
14854 ## friends. Using -nostartfiles instead avoids this problem, and
14855 ## will also work on earlier NetBSD releases.
14856 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
14857
14858 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14859 ## MkLinux/LinuxPPC needs this.
14860 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14861 gnu-*)
14862 case "$machine" in
14863 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
14864 esac
14865 ;;
14866 esac
14867
14868
14869 if test "x$ORDINARY_LINK" = "xyes"; then
14870
14871 LD_FIRSTFLAG=""
14872
14873 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14874
14875
14876 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14877 ## freebsd, gnu-* not on macppc|ibms390x.
14878 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14879
14880 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14881 ## places that are difficult to figure out at make time. Fortunately,
14882 ## these same versions allow you to pass arbitrary flags on to the
14883 ## linker, so there is no reason not to use it as a linker.
14884 ##
14885 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14886 ## searching for libraries in its internal directories, so we have to
14887 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14888 LD_FIRSTFLAG="-nostdlib"
14889 fi
14890
14891 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14892 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
14893
14894
14895
14896
14897 ## FIXME? The logic here is not precisely the same as that above.
14898 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14899 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14900 LIB_GCC=
14901 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14902
14903 case "$opsys" in
14904 freebsd|netbsd|openbsd) LIB_GCC= ;;
14905
14906 gnu-*)
14907 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14908 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14909 case $host_cpu in
14910 arm*)
14911 LIB_GCC="-lgcc_s"
14912 ;;
14913 *)
14914 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14915 ## immediately undefine it again and redefine it to empty.
14916 ## Was the C_SWITCH_X_SITE part really necessary?
14917 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14918 LIB_GCC=
14919 ;;
14920 esac
14921 ;;
14922
14923 ## Ask GCC where to find libgcc.a.
14924 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14925 esac
14926 fi
14927
14928
14929 TOOLTIP_SUPPORT=
14930 WINDOW_SUPPORT=
14931 ## If we're using X11/GNUstep, define some consequences.
14932 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14933
14934 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14935
14936
14937 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14938
14939 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14940 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
14941
14942 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14943 test "$HAVE_X_WINDOWS" = "yes" && \
14944 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14945
14946 fi
14947
14948
14949
14950
14951
14952
14953
14954 #### Report on what we decided to do.
14955 #### Report GTK as a toolkit, even if it doesn't use Xt.
14956 #### It makes printing result more understandable as using GTK sets
14957 #### toolkit_scroll_bars to yes by default.
14958 if test "${HAVE_GTK}" = "yes"; then
14959 USE_X_TOOLKIT=GTK
14960 fi
14961
14962 and_machfile=
14963 if test -n "$machfile"; then
14964 and_machfile=" and \`${machfile}'"
14965 fi
14966
14967 echo "
14968 Configured for \`${canonical}'.
14969
14970 Where should the build process find the source code? ${srcdir}
14971 What operating system and machine description files should Emacs use?
14972 \`${opsysfile}'${and_machfile}
14973 What compiler should emacs be built with? ${CC} ${CFLAGS}
14974 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14975 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14976 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14977 What window system should Emacs use? ${window_system}
14978 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14979
14980 if test -n "${x_includes}"; then
14981 echo " Where do we find X Windows header files? ${x_includes}"
14982 else
14983 echo " Where do we find X Windows header files? Standard dirs"
14984 fi
14985 if test -n "${x_libraries}"; then
14986 echo " Where do we find X Windows libraries? ${x_libraries}"
14987 else
14988 echo " Where do we find X Windows libraries? Standard dirs"
14989 fi
14990
14991 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14992 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14993 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14994 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14995 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14996 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14997 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14998 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14999
15000 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
15001 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
15002 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
15003 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
15004 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
15005 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
15006
15007 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
15008 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
15009 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
15010 echo " Does Emacs use -lxft? ${HAVE_XFT}"
15011
15012 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
15013 echo
15014
15015 if test $USE_XASSERTS = yes; then
15016 echo " Compiling with asserts turned on."
15017 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
15018 fi
15019
15020 echo
15021
15022 if test "$HAVE_NS" = "yes"; then
15023 echo
15024 echo "You must run \"make install\" in order to test the built application.
15025 The installed application will go to nextstep/Emacs.app and can be
15026 run or moved from there."
15027 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
15028 echo "The application will be fully self-contained."
15029 else
15030 echo "The lisp resources for the application will be installed under ${prefix}.
15031 You may need to run \"make install\" with sudo. The application will fail
15032 to run if these resources are not installed."
15033 fi
15034 echo
15035 fi
15036
15037
15038 # Remove any trailing slashes in these variables.
15039 test "${prefix}" != NONE &&
15040 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15041 test "${exec_prefix}" != NONE &&
15042 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15043
15044 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"
15045
15046 ac_config_commands="$ac_config_commands default"
15047
15048 cat >confcache <<\_ACEOF
15049 # This file is a shell script that caches the results of configure
15050 # tests run on this system so they can be shared between configure
15051 # scripts and configure runs, see configure's option --config-cache.
15052 # It is not useful on other systems. If it contains results you don't
15053 # want to keep, you may remove or edit it.
15054 #
15055 # config.status only pays attention to the cache file if you give it
15056 # the --recheck option to rerun configure.
15057 #
15058 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15059 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15060 # following values.
15061
15062 _ACEOF
15063
15064 # The following way of writing the cache mishandles newlines in values,
15065 # but we know of no workaround that is simple, portable, and efficient.
15066 # So, we kill variables containing newlines.
15067 # Ultrix sh set writes to stderr and can't be redirected directly,
15068 # and sets the high bit in the cache file unless we assign to the vars.
15069 (
15070 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15071 eval ac_val=\$$ac_var
15072 case $ac_val in #(
15073 *${as_nl}*)
15074 case $ac_var in #(
15075 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15076 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15077 esac
15078 case $ac_var in #(
15079 _ | IFS | as_nl) ;; #(
15080 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15081 *) { eval $ac_var=; unset $ac_var;} ;;
15082 esac ;;
15083 esac
15084 done
15085
15086 (set) 2>&1 |
15087 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15088 *${as_nl}ac_space=\ *)
15089 # `set' does not quote correctly, so add quotes: double-quote
15090 # substitution turns \\\\ into \\, and sed turns \\ into \.
15091 sed -n \
15092 "s/'/'\\\\''/g;
15093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15094 ;; #(
15095 *)
15096 # `set' quotes correctly as required by POSIX, so do not add quotes.
15097 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15098 ;;
15099 esac |
15100 sort
15101 ) |
15102 sed '
15103 /^ac_cv_env_/b end
15104 t clear
15105 :clear
15106 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15107 t end
15108 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15109 :end' >>confcache
15110 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15111 if test -w "$cache_file"; then
15112 if test "x$cache_file" != "x/dev/null"; then
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15114 $as_echo "$as_me: updating cache $cache_file" >&6;}
15115 if test ! -f "$cache_file" || test -h "$cache_file"; then
15116 cat confcache >"$cache_file"
15117 else
15118 case $cache_file in #(
15119 */* | ?:*)
15120 mv -f confcache "$cache_file"$$ &&
15121 mv -f "$cache_file"$$ "$cache_file" ;; #(
15122 *)
15123 mv -f confcache "$cache_file" ;;
15124 esac
15125 fi
15126 fi
15127 else
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15129 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15130 fi
15131 fi
15132 rm -f confcache
15133
15134 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15135 # Let make expand exec_prefix.
15136 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15137
15138 DEFS=-DHAVE_CONFIG_H
15139
15140 ac_libobjs=
15141 ac_ltlibobjs=
15142 U=
15143 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15144 # 1. Remove the extension, and $U if already installed.
15145 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15146 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15147 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15148 # will be set to the directory where LIBOBJS objects are built.
15149 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15150 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15151 done
15152 LIBOBJS=$ac_libobjs
15153
15154 LTLIBOBJS=$ac_ltlibobjs
15155
15156
15157
15158
15159 : "${CONFIG_STATUS=./config.status}"
15160 ac_write_fail=0
15161 ac_clean_files_save=$ac_clean_files
15162 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15164 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15165 as_write_fail=0
15166 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15167 #! $SHELL
15168 # Generated by $as_me.
15169 # Run this file to recreate the current configuration.
15170 # Compiler output produced by configure, useful for debugging
15171 # configure, is in config.log if it exists.
15172
15173 debug=false
15174 ac_cs_recheck=false
15175 ac_cs_silent=false
15176
15177 SHELL=\${CONFIG_SHELL-$SHELL}
15178 export SHELL
15179 _ASEOF
15180 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15181 ## -------------------- ##
15182 ## M4sh Initialization. ##
15183 ## -------------------- ##
15184
15185 # Be more Bourne compatible
15186 DUALCASE=1; export DUALCASE # for MKS sh
15187 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15188 emulate sh
15189 NULLCMD=:
15190 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15191 # is contrary to our usage. Disable this feature.
15192 alias -g '${1+"$@"}'='"$@"'
15193 setopt NO_GLOB_SUBST
15194 else
15195 case `(set -o) 2>/dev/null` in #(
15196 *posix*) :
15197 set -o posix ;; #(
15198 *) :
15199 ;;
15200 esac
15201 fi
15202
15203
15204 as_nl='
15205 '
15206 export as_nl
15207 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15208 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15209 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15210 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15211 # Prefer a ksh shell builtin over an external printf program on Solaris,
15212 # but without wasting forks for bash or zsh.
15213 if test -z "$BASH_VERSION$ZSH_VERSION" \
15214 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15215 as_echo='print -r --'
15216 as_echo_n='print -rn --'
15217 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15218 as_echo='printf %s\n'
15219 as_echo_n='printf %s'
15220 else
15221 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15222 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15223 as_echo_n='/usr/ucb/echo -n'
15224 else
15225 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15226 as_echo_n_body='eval
15227 arg=$1;
15228 case $arg in #(
15229 *"$as_nl"*)
15230 expr "X$arg" : "X\\(.*\\)$as_nl";
15231 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15232 esac;
15233 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15234 '
15235 export as_echo_n_body
15236 as_echo_n='sh -c $as_echo_n_body as_echo'
15237 fi
15238 export as_echo_body
15239 as_echo='sh -c $as_echo_body as_echo'
15240 fi
15241
15242 # The user is always right.
15243 if test "${PATH_SEPARATOR+set}" != set; then
15244 PATH_SEPARATOR=:
15245 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15246 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15247 PATH_SEPARATOR=';'
15248 }
15249 fi
15250
15251
15252 # IFS
15253 # We need space, tab and new line, in precisely that order. Quoting is
15254 # there to prevent editors from complaining about space-tab.
15255 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15256 # splitting by setting IFS to empty value.)
15257 IFS=" "" $as_nl"
15258
15259 # Find who we are. Look in the path if we contain no directory separator.
15260 as_myself=
15261 case $0 in #((
15262 *[\\/]* ) as_myself=$0 ;;
15263 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15264 for as_dir in $PATH
15265 do
15266 IFS=$as_save_IFS
15267 test -z "$as_dir" && as_dir=.
15268 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15269 done
15270 IFS=$as_save_IFS
15271
15272 ;;
15273 esac
15274 # We did not find ourselves, most probably we were run as `sh COMMAND'
15275 # in which case we are not to be found in the path.
15276 if test "x$as_myself" = x; then
15277 as_myself=$0
15278 fi
15279 if test ! -f "$as_myself"; then
15280 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15281 exit 1
15282 fi
15283
15284 # Unset variables that we do not need and which cause bugs (e.g. in
15285 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15286 # suppresses any "Segmentation fault" message there. '((' could
15287 # trigger a bug in pdksh 5.2.14.
15288 for as_var in BASH_ENV ENV MAIL MAILPATH
15289 do eval test x\${$as_var+set} = xset \
15290 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15291 done
15292 PS1='$ '
15293 PS2='> '
15294 PS4='+ '
15295
15296 # NLS nuisances.
15297 LC_ALL=C
15298 export LC_ALL
15299 LANGUAGE=C
15300 export LANGUAGE
15301
15302 # CDPATH.
15303 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15304
15305
15306 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15307 # ----------------------------------------
15308 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15309 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15310 # script with STATUS, using 1 if that was 0.
15311 as_fn_error ()
15312 {
15313 as_status=$1; test $as_status -eq 0 && as_status=1
15314 if test "$4"; then
15315 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15316 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15317 fi
15318 $as_echo "$as_me: error: $2" >&2
15319 as_fn_exit $as_status
15320 } # as_fn_error
15321
15322
15323 # as_fn_set_status STATUS
15324 # -----------------------
15325 # Set $? to STATUS, without forking.
15326 as_fn_set_status ()
15327 {
15328 return $1
15329 } # as_fn_set_status
15330
15331 # as_fn_exit STATUS
15332 # -----------------
15333 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15334 as_fn_exit ()
15335 {
15336 set +e
15337 as_fn_set_status $1
15338 exit $1
15339 } # as_fn_exit
15340
15341 # as_fn_unset VAR
15342 # ---------------
15343 # Portably unset VAR.
15344 as_fn_unset ()
15345 {
15346 { eval $1=; unset $1;}
15347 }
15348 as_unset=as_fn_unset
15349 # as_fn_append VAR VALUE
15350 # ----------------------
15351 # Append the text in VALUE to the end of the definition contained in VAR. Take
15352 # advantage of any shell optimizations that allow amortized linear growth over
15353 # repeated appends, instead of the typical quadratic growth present in naive
15354 # implementations.
15355 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15356 eval 'as_fn_append ()
15357 {
15358 eval $1+=\$2
15359 }'
15360 else
15361 as_fn_append ()
15362 {
15363 eval $1=\$$1\$2
15364 }
15365 fi # as_fn_append
15366
15367 # as_fn_arith ARG...
15368 # ------------------
15369 # Perform arithmetic evaluation on the ARGs, and store the result in the
15370 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15371 # must be portable across $(()) and expr.
15372 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15373 eval 'as_fn_arith ()
15374 {
15375 as_val=$(( $* ))
15376 }'
15377 else
15378 as_fn_arith ()
15379 {
15380 as_val=`expr "$@" || test $? -eq 1`
15381 }
15382 fi # as_fn_arith
15383
15384
15385 if expr a : '\(a\)' >/dev/null 2>&1 &&
15386 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15387 as_expr=expr
15388 else
15389 as_expr=false
15390 fi
15391
15392 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15393 as_basename=basename
15394 else
15395 as_basename=false
15396 fi
15397
15398 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15399 as_dirname=dirname
15400 else
15401 as_dirname=false
15402 fi
15403
15404 as_me=`$as_basename -- "$0" ||
15405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15406 X"$0" : 'X\(//\)$' \| \
15407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15408 $as_echo X/"$0" |
15409 sed '/^.*\/\([^/][^/]*\)\/*$/{
15410 s//\1/
15411 q
15412 }
15413 /^X\/\(\/\/\)$/{
15414 s//\1/
15415 q
15416 }
15417 /^X\/\(\/\).*/{
15418 s//\1/
15419 q
15420 }
15421 s/.*/./; q'`
15422
15423 # Avoid depending upon Character Ranges.
15424 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15425 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15426 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15427 as_cr_digits='0123456789'
15428 as_cr_alnum=$as_cr_Letters$as_cr_digits
15429
15430 ECHO_C= ECHO_N= ECHO_T=
15431 case `echo -n x` in #(((((
15432 -n*)
15433 case `echo 'xy\c'` in
15434 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15435 xy) ECHO_C='\c';;
15436 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15437 ECHO_T=' ';;
15438 esac;;
15439 *)
15440 ECHO_N='-n';;
15441 esac
15442
15443 rm -f conf$$ conf$$.exe conf$$.file
15444 if test -d conf$$.dir; then
15445 rm -f conf$$.dir/conf$$.file
15446 else
15447 rm -f conf$$.dir
15448 mkdir conf$$.dir 2>/dev/null
15449 fi
15450 if (echo >conf$$.file) 2>/dev/null; then
15451 if ln -s conf$$.file conf$$ 2>/dev/null; then
15452 as_ln_s='ln -s'
15453 # ... but there are two gotchas:
15454 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15455 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15456 # In both cases, we have to default to `cp -p'.
15457 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15458 as_ln_s='cp -p'
15459 elif ln conf$$.file conf$$ 2>/dev/null; then
15460 as_ln_s=ln
15461 else
15462 as_ln_s='cp -p'
15463 fi
15464 else
15465 as_ln_s='cp -p'
15466 fi
15467 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15468 rmdir conf$$.dir 2>/dev/null
15469
15470
15471 # as_fn_mkdir_p
15472 # -------------
15473 # Create "$as_dir" as a directory, including parents if necessary.
15474 as_fn_mkdir_p ()
15475 {
15476
15477 case $as_dir in #(
15478 -*) as_dir=./$as_dir;;
15479 esac
15480 test -d "$as_dir" || eval $as_mkdir_p || {
15481 as_dirs=
15482 while :; do
15483 case $as_dir in #(
15484 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15485 *) as_qdir=$as_dir;;
15486 esac
15487 as_dirs="'$as_qdir' $as_dirs"
15488 as_dir=`$as_dirname -- "$as_dir" ||
15489 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15490 X"$as_dir" : 'X\(//\)[^/]' \| \
15491 X"$as_dir" : 'X\(//\)$' \| \
15492 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15493 $as_echo X"$as_dir" |
15494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15495 s//\1/
15496 q
15497 }
15498 /^X\(\/\/\)[^/].*/{
15499 s//\1/
15500 q
15501 }
15502 /^X\(\/\/\)$/{
15503 s//\1/
15504 q
15505 }
15506 /^X\(\/\).*/{
15507 s//\1/
15508 q
15509 }
15510 s/.*/./; q'`
15511 test -d "$as_dir" && break
15512 done
15513 test -z "$as_dirs" || eval "mkdir $as_dirs"
15514 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15515
15516
15517 } # as_fn_mkdir_p
15518 if mkdir -p . 2>/dev/null; then
15519 as_mkdir_p='mkdir -p "$as_dir"'
15520 else
15521 test -d ./-p && rmdir ./-p
15522 as_mkdir_p=false
15523 fi
15524
15525 if test -x / >/dev/null 2>&1; then
15526 as_test_x='test -x'
15527 else
15528 if ls -dL / >/dev/null 2>&1; then
15529 as_ls_L_option=L
15530 else
15531 as_ls_L_option=
15532 fi
15533 as_test_x='
15534 eval sh -c '\''
15535 if test -d "$1"; then
15536 test -d "$1/.";
15537 else
15538 case $1 in #(
15539 -*)set "./$1";;
15540 esac;
15541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15542 ???[sx]*):;;*)false;;esac;fi
15543 '\'' sh
15544 '
15545 fi
15546 as_executable_p=$as_test_x
15547
15548 # Sed expression to map a string onto a valid CPP name.
15549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15550
15551 # Sed expression to map a string onto a valid variable name.
15552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15553
15554
15555 exec 6>&1
15556 ## ----------------------------------- ##
15557 ## Main body of $CONFIG_STATUS script. ##
15558 ## ----------------------------------- ##
15559 _ASEOF
15560 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15561
15562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15563 # Save the log message, to keep $0 and so on meaningful, and to
15564 # report actual input values of CONFIG_FILES etc. instead of their
15565 # values after options handling.
15566 ac_log="
15567 This file was extended by emacs $as_me 24.0.50, which was
15568 generated by GNU Autoconf 2.68. Invocation command line was
15569
15570 CONFIG_FILES = $CONFIG_FILES
15571 CONFIG_HEADERS = $CONFIG_HEADERS
15572 CONFIG_LINKS = $CONFIG_LINKS
15573 CONFIG_COMMANDS = $CONFIG_COMMANDS
15574 $ $0 $@
15575
15576 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15577 "
15578
15579 _ACEOF
15580
15581 case $ac_config_files in *"
15582 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15583 esac
15584
15585 case $ac_config_headers in *"
15586 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15587 esac
15588
15589
15590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15591 # Files that config.status was made for.
15592 config_files="$ac_config_files"
15593 config_headers="$ac_config_headers"
15594 config_commands="$ac_config_commands"
15595
15596 _ACEOF
15597
15598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15599 ac_cs_usage="\
15600 \`$as_me' instantiates files and other configuration actions
15601 from templates according to the current configuration. Unless the files
15602 and actions are specified as TAGs, all are instantiated by default.
15603
15604 Usage: $0 [OPTION]... [TAG]...
15605
15606 -h, --help print this help, then exit
15607 -V, --version print version number and configuration settings, then exit
15608 --config print configuration, then exit
15609 -q, --quiet, --silent
15610 do not print progress messages
15611 -d, --debug don't remove temporary files
15612 --recheck update $as_me by reconfiguring in the same conditions
15613 --file=FILE[:TEMPLATE]
15614 instantiate the configuration file FILE
15615 --header=FILE[:TEMPLATE]
15616 instantiate the configuration header FILE
15617
15618 Configuration files:
15619 $config_files
15620
15621 Configuration headers:
15622 $config_headers
15623
15624 Configuration commands:
15625 $config_commands
15626
15627 Report bugs to the package provider."
15628
15629 _ACEOF
15630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15631 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15632 ac_cs_version="\\
15633 emacs config.status 24.0.50
15634 configured by $0, generated by GNU Autoconf 2.68,
15635 with options \\"\$ac_cs_config\\"
15636
15637 Copyright (C) 2010 Free Software Foundation, Inc.
15638 This config.status script is free software; the Free Software Foundation
15639 gives unlimited permission to copy, distribute and modify it."
15640
15641 ac_pwd='$ac_pwd'
15642 srcdir='$srcdir'
15643 INSTALL='$INSTALL'
15644 test -n "\$AWK" || AWK=awk
15645 _ACEOF
15646
15647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15648 # The default lists apply if the user does not specify any file.
15649 ac_need_defaults=:
15650 while test $# != 0
15651 do
15652 case $1 in
15653 --*=?*)
15654 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15655 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15656 ac_shift=:
15657 ;;
15658 --*=)
15659 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15660 ac_optarg=
15661 ac_shift=:
15662 ;;
15663 *)
15664 ac_option=$1
15665 ac_optarg=$2
15666 ac_shift=shift
15667 ;;
15668 esac
15669
15670 case $ac_option in
15671 # Handling of the options.
15672 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15673 ac_cs_recheck=: ;;
15674 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15675 $as_echo "$ac_cs_version"; exit ;;
15676 --config | --confi | --conf | --con | --co | --c )
15677 $as_echo "$ac_cs_config"; exit ;;
15678 --debug | --debu | --deb | --de | --d | -d )
15679 debug=: ;;
15680 --file | --fil | --fi | --f )
15681 $ac_shift
15682 case $ac_optarg in
15683 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15684 '') as_fn_error $? "missing file argument" ;;
15685 esac
15686 as_fn_append CONFIG_FILES " '$ac_optarg'"
15687 ac_need_defaults=false;;
15688 --header | --heade | --head | --hea )
15689 $ac_shift
15690 case $ac_optarg in
15691 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15692 esac
15693 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15694 ac_need_defaults=false;;
15695 --he | --h)
15696 # Conflict between --help and --header
15697 as_fn_error $? "ambiguous option: \`$1'
15698 Try \`$0 --help' for more information.";;
15699 --help | --hel | -h )
15700 $as_echo "$ac_cs_usage"; exit ;;
15701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15702 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15703 ac_cs_silent=: ;;
15704
15705 # This is an error.
15706 -*) as_fn_error $? "unrecognized option: \`$1'
15707 Try \`$0 --help' for more information." ;;
15708
15709 *) as_fn_append ac_config_targets " $1"
15710 ac_need_defaults=false ;;
15711
15712 esac
15713 shift
15714 done
15715
15716 ac_configure_extra_args=
15717
15718 if $ac_cs_silent; then
15719 exec 6>/dev/null
15720 ac_configure_extra_args="$ac_configure_extra_args --silent"
15721 fi
15722
15723 _ACEOF
15724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15725 if \$ac_cs_recheck; then
15726 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15727 shift
15728 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15729 CONFIG_SHELL='$SHELL'
15730 export CONFIG_SHELL
15731 exec "\$@"
15732 fi
15733
15734 _ACEOF
15735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15736 exec 5>>config.log
15737 {
15738 echo
15739 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15740 ## Running $as_me. ##
15741 _ASBOX
15742 $as_echo "$ac_log"
15743 } >&5
15744
15745 _ACEOF
15746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15747 #
15748 # INIT-COMMANDS
15749 #
15750 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15751
15752 _ACEOF
15753
15754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15755
15756 # Handling of arguments.
15757 for ac_config_target in $ac_config_targets
15758 do
15759 case $ac_config_target in
15760 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15761 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15762 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15763 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15764 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15765 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15766 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15767 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15768 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15769 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15770 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15771 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15772 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
15773 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15774
15775 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15776 esac
15777 done
15778
15779
15780 # If the user did not use the arguments to specify the items to instantiate,
15781 # then the envvar interface is used. Set only those that are not.
15782 # We use the long form for the default assignment because of an extremely
15783 # bizarre bug on SunOS 4.1.3.
15784 if $ac_need_defaults; then
15785 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15786 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15787 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15788 fi
15789
15790 # Have a temporary directory for convenience. Make it in the build tree
15791 # simply because there is no reason against having it here, and in addition,
15792 # creating and moving files from /tmp can sometimes cause problems.
15793 # Hook for its removal unless debugging.
15794 # Note that there is a small window in which the directory will not be cleaned:
15795 # after its creation but before its name has been assigned to `$tmp'.
15796 $debug ||
15797 {
15798 tmp= ac_tmp=
15799 trap 'exit_status=$?
15800 : "${ac_tmp:=$tmp}"
15801 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15802 ' 0
15803 trap 'as_fn_exit 1' 1 2 13 15
15804 }
15805 # Create a (secure) tmp directory for tmp files.
15806
15807 {
15808 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15809 test -d "$tmp"
15810 } ||
15811 {
15812 tmp=./conf$$-$RANDOM
15813 (umask 077 && mkdir "$tmp")
15814 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15815 ac_tmp=$tmp
15816
15817 # Set up the scripts for CONFIG_FILES section.
15818 # No need to generate them if there are no CONFIG_FILES.
15819 # This happens for instance with `./config.status config.h'.
15820 if test -n "$CONFIG_FILES"; then
15821
15822 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15823 ac_cs_awk_getline=:
15824 ac_cs_awk_pipe_init=
15825 ac_cs_awk_read_file='
15826 while ((getline aline < (F[key])) > 0)
15827 print(aline)
15828 close(F[key])'
15829 ac_cs_awk_pipe_fini=
15830 else
15831 ac_cs_awk_getline=false
15832 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15833 ac_cs_awk_read_file='
15834 print "|#_!!_#|"
15835 print "cat " F[key] " &&"
15836 '$ac_cs_awk_pipe_init
15837 # The final `:' finishes the AND list.
15838 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15839 fi
15840 ac_cr=`echo X | tr X '\015'`
15841 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15842 # But we know of no other shell where ac_cr would be empty at this
15843 # point, so we can use a bashism as a fallback.
15844 if test "x$ac_cr" = x; then
15845 eval ac_cr=\$\'\\r\'
15846 fi
15847 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15848 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15849 ac_cs_awk_cr='\\r'
15850 else
15851 ac_cs_awk_cr=$ac_cr
15852 fi
15853
15854 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15855 _ACEOF
15856
15857 # Create commands to substitute file output variables.
15858 {
15859 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15860 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15861 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15862 echo "_ACAWK" &&
15863 echo "_ACEOF"
15864 } >conf$$files.sh &&
15865 . ./conf$$files.sh ||
15866 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15867 rm -f conf$$files.sh
15868
15869 {
15870 echo "cat >conf$$subs.awk <<_ACEOF" &&
15871 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15872 echo "_ACEOF"
15873 } >conf$$subs.sh ||
15874 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15875 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15876 ac_delim='%!_!# '
15877 for ac_last_try in false false false false false :; do
15878 . ./conf$$subs.sh ||
15879 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15880
15881 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15882 if test $ac_delim_n = $ac_delim_num; then
15883 break
15884 elif $ac_last_try; then
15885 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15886 else
15887 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15888 fi
15889 done
15890 rm -f conf$$subs.sh
15891
15892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15893 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15894 _ACEOF
15895 sed -n '
15896 h
15897 s/^/S["/; s/!.*/"]=/
15898 p
15899 g
15900 s/^[^!]*!//
15901 :repl
15902 t repl
15903 s/'"$ac_delim"'$//
15904 t delim
15905 :nl
15906 h
15907 s/\(.\{148\}\)..*/\1/
15908 t more1
15909 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15910 p
15911 n
15912 b repl
15913 :more1
15914 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15915 p
15916 g
15917 s/.\{148\}//
15918 t nl
15919 :delim
15920 h
15921 s/\(.\{148\}\)..*/\1/
15922 t more2
15923 s/["\\]/\\&/g; s/^/"/; s/$/"/
15924 p
15925 b
15926 :more2
15927 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15928 p
15929 g
15930 s/.\{148\}//
15931 t delim
15932 ' <conf$$subs.awk | sed '
15933 /^[^""]/{
15934 N
15935 s/\n//
15936 }
15937 ' >>$CONFIG_STATUS || ac_write_fail=1
15938 rm -f conf$$subs.awk
15939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15940 _ACAWK
15941 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15942 for (key in S) S_is_set[key] = 1
15943 FS = "\a"
15944 \$ac_cs_awk_pipe_init
15945 }
15946 {
15947 line = $ 0
15948 nfields = split(line, field, "@")
15949 substed = 0
15950 len = length(field[1])
15951 for (i = 2; i < nfields; i++) {
15952 key = field[i]
15953 keylen = length(key)
15954 if (S_is_set[key]) {
15955 value = S[key]
15956 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15957 len += length(value) + length(field[++i])
15958 substed = 1
15959 } else
15960 len += 1 + keylen
15961 }
15962 if (nfields == 3 && !substed) {
15963 key = field[2]
15964 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15965 \$ac_cs_awk_read_file
15966 next
15967 }
15968 }
15969 print line
15970 }
15971 \$ac_cs_awk_pipe_fini
15972 _ACAWK
15973 _ACEOF
15974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15975 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15976 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15977 else
15978 cat
15979 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15980 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15981 _ACEOF
15982
15983 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15984 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15985 # trailing colons and then remove the whole line if VPATH becomes empty
15986 # (actually we leave an empty line to preserve line numbers).
15987 if test "x$srcdir" = x.; then
15988 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15989 h
15990 s///
15991 s/^/:/
15992 s/[ ]*$/:/
15993 s/:\$(srcdir):/:/g
15994 s/:\${srcdir}:/:/g
15995 s/:@srcdir@:/:/g
15996 s/^:*//
15997 s/:*$//
15998 x
15999 s/\(=[ ]*\).*/\1/
16000 G
16001 s/\n//
16002 s/^[^=]*=[ ]*$//
16003 }'
16004 fi
16005
16006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16007 fi # test -n "$CONFIG_FILES"
16008
16009 # Set up the scripts for CONFIG_HEADERS section.
16010 # No need to generate them if there are no CONFIG_HEADERS.
16011 # This happens for instance with `./config.status Makefile'.
16012 if test -n "$CONFIG_HEADERS"; then
16013 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16014 BEGIN {
16015 _ACEOF
16016
16017 # Transform confdefs.h into an awk script `defines.awk', embedded as
16018 # here-document in config.status, that substitutes the proper values into
16019 # config.h.in to produce config.h.
16020
16021 # Create a delimiter string that does not exist in confdefs.h, to ease
16022 # handling of long lines.
16023 ac_delim='%!_!# '
16024 for ac_last_try in false false :; do
16025 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16026 if test -z "$ac_tt"; then
16027 break
16028 elif $ac_last_try; then
16029 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16030 else
16031 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16032 fi
16033 done
16034
16035 # For the awk script, D is an array of macro values keyed by name,
16036 # likewise P contains macro parameters if any. Preserve backslash
16037 # newline sequences.
16038
16039 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16040 sed -n '
16041 s/.\{148\}/&'"$ac_delim"'/g
16042 t rset
16043 :rset
16044 s/^[ ]*#[ ]*define[ ][ ]*/ /
16045 t def
16046 d
16047 :def
16048 s/\\$//
16049 t bsnl
16050 s/["\\]/\\&/g
16051 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16052 D["\1"]=" \3"/p
16053 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16054 d
16055 :bsnl
16056 s/["\\]/\\&/g
16057 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16058 D["\1"]=" \3\\\\\\n"\\/p
16059 t cont
16060 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16061 t cont
16062 d
16063 :cont
16064 n
16065 s/.\{148\}/&'"$ac_delim"'/g
16066 t clear
16067 :clear
16068 s/\\$//
16069 t bsnlc
16070 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16071 d
16072 :bsnlc
16073 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16074 b cont
16075 ' <confdefs.h | sed '
16076 s/'"$ac_delim"'/"\\\
16077 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16078
16079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16080 for (key in D) D_is_set[key] = 1
16081 FS = "\a"
16082 }
16083 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16084 line = \$ 0
16085 split(line, arg, " ")
16086 if (arg[1] == "#") {
16087 defundef = arg[2]
16088 mac1 = arg[3]
16089 } else {
16090 defundef = substr(arg[1], 2)
16091 mac1 = arg[2]
16092 }
16093 split(mac1, mac2, "(") #)
16094 macro = mac2[1]
16095 prefix = substr(line, 1, index(line, defundef) - 1)
16096 if (D_is_set[macro]) {
16097 # Preserve the white space surrounding the "#".
16098 print prefix "define", macro P[macro] D[macro]
16099 next
16100 } else {
16101 # Replace #undef with comments. This is necessary, for example,
16102 # in the case of _POSIX_SOURCE, which is predefined and required
16103 # on some systems where configure will not decide to define it.
16104 if (defundef == "undef") {
16105 print "/*", prefix defundef, macro, "*/"
16106 next
16107 }
16108 }
16109 }
16110 { print }
16111 _ACAWK
16112 _ACEOF
16113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16114 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16115 fi # test -n "$CONFIG_HEADERS"
16116
16117
16118 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16119 shift
16120 for ac_tag
16121 do
16122 case $ac_tag in
16123 :[FHLC]) ac_mode=$ac_tag; continue;;
16124 esac
16125 case $ac_mode$ac_tag in
16126 :[FHL]*:*);;
16127 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16128 :[FH]-) ac_tag=-:-;;
16129 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16130 esac
16131 ac_save_IFS=$IFS
16132 IFS=:
16133 set x $ac_tag
16134 IFS=$ac_save_IFS
16135 shift
16136 ac_file=$1
16137 shift
16138
16139 case $ac_mode in
16140 :L) ac_source=$1;;
16141 :[FH])
16142 ac_file_inputs=
16143 for ac_f
16144 do
16145 case $ac_f in
16146 -) ac_f="$ac_tmp/stdin";;
16147 *) # Look for the file first in the build tree, then in the source tree
16148 # (if the path is not absolute). The absolute path cannot be DOS-style,
16149 # because $ac_f cannot contain `:'.
16150 test -f "$ac_f" ||
16151 case $ac_f in
16152 [\\/$]*) false;;
16153 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16154 esac ||
16155 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16156 esac
16157 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16158 as_fn_append ac_file_inputs " '$ac_f'"
16159 done
16160
16161 # Let's still pretend it is `configure' which instantiates (i.e., don't
16162 # use $as_me), people would be surprised to read:
16163 # /* config.h. Generated by config.status. */
16164 configure_input='Generated from '`
16165 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16166 `' by configure.'
16167 if test x"$ac_file" != x-; then
16168 configure_input="$ac_file. $configure_input"
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16170 $as_echo "$as_me: creating $ac_file" >&6;}
16171 fi
16172 # Neutralize special characters interpreted by sed in replacement strings.
16173 case $configure_input in #(
16174 *\&* | *\|* | *\\* )
16175 ac_sed_conf_input=`$as_echo "$configure_input" |
16176 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16177 *) ac_sed_conf_input=$configure_input;;
16178 esac
16179
16180 case $ac_tag in
16181 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16183 esac
16184 ;;
16185 esac
16186
16187 ac_dir=`$as_dirname -- "$ac_file" ||
16188 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16189 X"$ac_file" : 'X\(//\)[^/]' \| \
16190 X"$ac_file" : 'X\(//\)$' \| \
16191 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16192 $as_echo X"$ac_file" |
16193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16194 s//\1/
16195 q
16196 }
16197 /^X\(\/\/\)[^/].*/{
16198 s//\1/
16199 q
16200 }
16201 /^X\(\/\/\)$/{
16202 s//\1/
16203 q
16204 }
16205 /^X\(\/\).*/{
16206 s//\1/
16207 q
16208 }
16209 s/.*/./; q'`
16210 as_dir="$ac_dir"; as_fn_mkdir_p
16211 ac_builddir=.
16212
16213 case "$ac_dir" in
16214 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16215 *)
16216 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16217 # A ".." for each directory in $ac_dir_suffix.
16218 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16219 case $ac_top_builddir_sub in
16220 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16221 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16222 esac ;;
16223 esac
16224 ac_abs_top_builddir=$ac_pwd
16225 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16226 # for backward compatibility:
16227 ac_top_builddir=$ac_top_build_prefix
16228
16229 case $srcdir in
16230 .) # We are building in place.
16231 ac_srcdir=.
16232 ac_top_srcdir=$ac_top_builddir_sub
16233 ac_abs_top_srcdir=$ac_pwd ;;
16234 [\\/]* | ?:[\\/]* ) # Absolute name.
16235 ac_srcdir=$srcdir$ac_dir_suffix;
16236 ac_top_srcdir=$srcdir
16237 ac_abs_top_srcdir=$srcdir ;;
16238 *) # Relative name.
16239 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16240 ac_top_srcdir=$ac_top_build_prefix$srcdir
16241 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16242 esac
16243 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16244
16245
16246 case $ac_mode in
16247 :F)
16248 #
16249 # CONFIG_FILE
16250 #
16251
16252 case $INSTALL in
16253 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16254 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16255 esac
16256 _ACEOF
16257
16258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16259 # If the template does not know about datarootdir, expand it.
16260 # FIXME: This hack should be removed a few years after 2.60.
16261 ac_datarootdir_hack=; ac_datarootdir_seen=
16262 ac_sed_dataroot='
16263 /datarootdir/ {
16264 p
16265 q
16266 }
16267 /@datadir@/p
16268 /@docdir@/p
16269 /@infodir@/p
16270 /@localedir@/p
16271 /@mandir@/p'
16272 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16273 *datarootdir*) ac_datarootdir_seen=yes;;
16274 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16276 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16277 _ACEOF
16278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16279 ac_datarootdir_hack='
16280 s&@datadir@&$datadir&g
16281 s&@docdir@&$docdir&g
16282 s&@infodir@&$infodir&g
16283 s&@localedir@&$localedir&g
16284 s&@mandir@&$mandir&g
16285 s&\\\${datarootdir}&$datarootdir&g' ;;
16286 esac
16287 _ACEOF
16288
16289 # Neutralize VPATH when `$srcdir' = `.'.
16290 # Shell code in configure.ac might set extrasub.
16291 # FIXME: do we really want to maintain this feature?
16292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16293 ac_sed_extra="$ac_vpsub
16294 $extrasub
16295 _ACEOF
16296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16297 :t
16298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16299 s|@configure_input@|$ac_sed_conf_input|;t t
16300 s&@top_builddir@&$ac_top_builddir_sub&;t t
16301 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16302 s&@srcdir@&$ac_srcdir&;t t
16303 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16304 s&@top_srcdir@&$ac_top_srcdir&;t t
16305 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16306 s&@builddir@&$ac_builddir&;t t
16307 s&@abs_builddir@&$ac_abs_builddir&;t t
16308 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16309 s&@INSTALL@&$ac_INSTALL&;t t
16310 $ac_datarootdir_hack
16311 "
16312 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16313 if $ac_cs_awk_getline; then
16314 $AWK -f "$ac_tmp/subs.awk"
16315 else
16316 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16317 fi \
16318 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16319
16320 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16321 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16322 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16323 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16325 which seems to be undefined. Please make sure it is defined" >&5
16326 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16327 which seems to be undefined. Please make sure it is defined" >&2;}
16328
16329 rm -f "$ac_tmp/stdin"
16330 case $ac_file in
16331 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16332 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16333 esac \
16334 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16335 ;;
16336 :H)
16337 #
16338 # CONFIG_HEADER
16339 #
16340 if test x"$ac_file" != x-; then
16341 {
16342 $as_echo "/* $configure_input */" \
16343 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16344 } >"$ac_tmp/config.h" \
16345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16346 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16348 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16349 else
16350 rm -f "$ac_file"
16351 mv "$ac_tmp/config.h" "$ac_file" \
16352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16353 fi
16354 else
16355 $as_echo "/* $configure_input */" \
16356 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16357 || as_fn_error $? "could not create -" "$LINENO" 5
16358 fi
16359 ;;
16360
16361 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16362 $as_echo "$as_me: executing $ac_file commands" >&6;}
16363 ;;
16364 esac
16365
16366
16367 case $ac_file$ac_mode in
16368 "default":C)
16369
16370 ### Make the necessary directories, if they don't exist.
16371 for dir in etc lisp ; do
16372 test -d ${dir} || mkdir ${dir}
16373 done
16374
16375 echo creating src/epaths.h
16376 ${MAKE-make} epaths-force
16377
16378 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
16379 echo creating src/.gdbinit
16380 echo source $srcdir/src/.gdbinit > src/.gdbinit
16381 fi
16382
16383 ;;
16384
16385 esac
16386 done # for ac_tag
16387
16388
16389 as_fn_exit 0
16390 _ACEOF
16391 ac_clean_files=$ac_clean_files_save
16392
16393 test $ac_write_fail = 0 ||
16394 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16395
16396
16397 # configure is writing to config.log, and then calls config.status.
16398 # config.status does its own redirection, appending to config.log.
16399 # Unfortunately, on DOS this fails, as config.log is still kept open
16400 # by configure, so config.status won't be able to write to it; its
16401 # output is simply discarded. So we exec the FD to /dev/null,
16402 # effectively closing config.log, so it can be properly (re)opened and
16403 # appended to by config.status. When coming back to configure, we
16404 # need to make the FD available again.
16405 if test "$no_create" != yes; then
16406 ac_cs_success=:
16407 ac_config_status_args=
16408 test "$silent" = yes &&
16409 ac_config_status_args="$ac_config_status_args --quiet"
16410 exec 5>/dev/null
16411 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16412 exec 5>>config.log
16413 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16414 # would make configure fail if this is the last instruction.
16415 $ac_cs_success || as_fn_exit 1
16416 fi
16417 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16419 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16420 fi
16421
16422