]> code.delx.au - gnu-emacs/blob - configure
* lisp/textmodes/rst.el: Minor cleanup to improve style.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_config_libobj_dir=src
595 ac_header_list=
596 ac_func_list=
597 ac_subst_vars='LTLIBOBJS
598 WINDOW_SUPPORT
599 TOOLTIP_SUPPORT
600 MOUSE_SUPPORT
601 LIB_GCC
602 LD_FIRSTFLAG
603 LD_SWITCH_SYSTEM_TEMACS
604 POST_ALLOC_OBJ
605 PRE_ALLOC_OBJ
606 CYGWIN_OBJ
607 RALLOC_OBJ
608 OLDXMENU_DEPS
609 LIBX_OTHER
610 LIBXMENU
611 OLDXMENU
612 OLDXMENU_TARGET
613 LIBXT_OTHER
614 TOOLKIT_LIBW
615 WIDGET_OBJ
616 XOBJ
617 XMENU_OBJ
618 FONT_OBJ
619 OTHER_FILES
620 GNU_OBJC_CFLAGS
621 ns_appsrc
622 ns_appresdir
623 ns_appbindir
624 ns_appdir
625 opsysfile
626 machfile
627 X_TOOLKIT_TYPE
628 C_SWITCH_X_SYSTEM
629 C_SWITCH_X_SITE
630 LD_SWITCH_X_SITE
631 gameuser
632 gamedir
633 bitmapdir
634 archlibdir
635 etcdir
636 x_default_search_path
637 lisppath
638 locallisppath
639 lispdir
640 srcdir
641 canonical
642 configuration
643 version
644 KRB4LIB
645 DESLIB
646 KRB5LIB
647 CRYPTOLIB
648 COM_ERRLIB
649 LIBRESOLV
650 LIBHESIOD
651 TERMCAP_OBJ
652 LIBS_TERMCAP
653 GETOPTOBJS
654 GETOPT_H
655 GETLOADAVG_LIBS
656 KMEM_GROUP
657 NEED_SETGID
658 LIBOBJS
659 BLESSMAIL_TARGET
660 LIBS_MAIL
661 liblockfile
662 ALLOCA
663 LIBXML2_LIBS
664 LIBXML2_CFLAGS
665 LIBXSM
666 LIBGPM
667 LIBGIF
668 LIBTIFF
669 LIBPNG
670 LIBJPEG
671 LIBXPM
672 FREETYPE_LIBS
673 FREETYPE_CFLAGS
674 M17N_FLT_LIBS
675 M17N_FLT_CFLAGS
676 LIBOTF_LIBS
677 LIBOTF_CFLAGS
678 XFT_LIBS
679 XFT_CFLAGS
680 FONTCONFIG_LIBS
681 FONTCONFIG_CFLAGS
682 LIBXMU
683 LIBXTR6
684 LIBGNUTLS_LIBS
685 LIBGNUTLS_CFLAGS
686 LIBSELINUX_LIBS
687 GCONF_LIBS
688 GCONF_CFLAGS
689 DBUS_OBJ
690 DBUS_LIBS
691 DBUS_CFLAGS
692 GTK_OBJ
693 GTK_LIBS
694 GTK_CFLAGS
695 IMAGEMAGICK_LIBS
696 IMAGEMAGICK_CFLAGS
697 RSVG_LIBS
698 RSVG_CFLAGS
699 VMLIMIT_OBJ
700 GMALLOC_OBJ
701 HAVE_XSERVER
702 LIB_STANDARD
703 NS_SUPPORT
704 NS_OBJ
705 TEMACS_LDFLAGS2
706 LD_SWITCH_X_SITE_AUX_RPATH
707 LD_SWITCH_X_SITE_AUX
708 XMKMF
709 DEPFLAGS
710 MKDEPDIR
711 SET_MAKE
712 CFLAGS_SOUND
713 ALSA_LIBS
714 ALSA_CFLAGS
715 PKG_CONFIG
716 LIBSOUND
717 START_FILES
718 LIB_MATH
719 CRT_DIR
720 LIBS_SYSTEM
721 C_SWITCH_SYSTEM
722 UNEXEC_OBJ
723 C_SWITCH_MACHINE
724 LD_SWITCH_SYSTEM
725 CANNOT_DUMP
726 MAKEINFO
727 GZIP_PROG
728 INSTALL_INFO
729 RANLIB
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 C_WARNINGS_SWITCH
734 EGREP
735 GREP
736 CPP
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
743 CC
744 host_os
745 host_vendor
746 host_cpu
747 host
748 build_os
749 build_vendor
750 build_cpu
751 build
752 PROFILING_CFLAGS
753 MAINT
754 GZIP_INFO
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL'
793 ac_subst_files='deps_frag
794 ns_frag'
795 ac_user_opts='
796 enable_option_checking
797 with_pop
798 with_kerberos
799 with_kerberos5
800 with_hesiod
801 with_mmdf
802 with_mail_unlink
803 with_mailhost
804 with_sound
805 with_sync_input
806 with_x_toolkit
807 with_xpm
808 with_jpeg
809 with_tiff
810 with_gif
811 with_png
812 with_rsvg
813 with_xml2
814 with_imagemagick
815 with_xft
816 with_libotf
817 with_m17n_flt
818 with_toolkit_scroll_bars
819 with_xaw3d
820 with_xim
821 with_ns
822 with_gpm
823 with_dbus
824 with_gconf
825 with_selinux
826 with_gnutls
827 with_makeinfo
828 with_compress_info
829 with_pkg_config_prog
830 with_crt_dir
831 with_gnustep_conf
832 enable_ns_self_contained
833 enable_asserts
834 enable_maintainer_mode
835 enable_locallisppath
836 enable_checking
837 enable_use_lisp_union_type
838 enable_profiling
839 enable_autodepend
840 enable_largefile
841 with_x
842 '
843 ac_precious_vars='build_alias
844 host_alias
845 target_alias
846 CC
847 CFLAGS
848 LDFLAGS
849 LIBS
850 CPPFLAGS
851 CPP
852 XMKMF'
853
854
855 # Initialize some variables set by options.
856 ac_init_help=
857 ac_init_version=false
858 ac_unrecognized_opts=
859 ac_unrecognized_sep=
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
862 cache_file=/dev/null
863 exec_prefix=NONE
864 no_create=
865 no_recursion=
866 prefix=NONE
867 program_prefix=NONE
868 program_suffix=NONE
869 program_transform_name=s,x,x,
870 silent=
871 site=
872 srcdir=
873 verbose=
874 x_includes=NONE
875 x_libraries=NONE
876
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
894 infodir='${datarootdir}/info'
895 htmldir='${docdir}'
896 dvidir='${docdir}'
897 pdfdir='${docdir}'
898 psdir='${docdir}'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
902
903 ac_prev=
904 ac_dashdash=
905 for ac_option
906 do
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
910 ac_prev=
911 continue
912 fi
913
914 case $ac_option in
915 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916 *=) ac_optarg= ;;
917 *) ac_optarg=yes ;;
918 esac
919
920 # Accept the important Cygnus configure options, so we can diagnose typos.
921
922 case $ac_dashdash$ac_option in
923 --)
924 ac_dashdash=yes ;;
925
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
930
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
935
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
942
943 --config-cache | -C)
944 cache_file=config.cache ;;
945
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
950
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
957
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
973
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
978
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
983
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
999
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1008
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1012
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1019
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1024
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1030
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1037
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1042
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1047
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1054
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1059
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1066
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1071
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1075
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1079
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1083
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1092
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1097
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1104
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1111
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1128
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1133
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1138
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1142
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1148
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1159
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1164
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1169
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1176
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1181
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1184
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1187
1188 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=\$ac_optarg ;;
1203
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1212 *"
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=no ;;
1219
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1223
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1230
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1237
1238 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information"
1240 ;;
1241
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
1247 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1248 esac
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1251
1252 *)
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1258 ;;
1259
1260 esac
1261 done
1262
1263 if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error $? "missing argument to $ac_option"
1266 fi
1267
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1270 no) ;;
1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1274 fi
1275
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1281 do
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1295 done
1296
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1303
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used" >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1311 cross_compiling=yes
1312 fi
1313 fi
1314
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317
1318 test "$silent" = yes && exec 6>/dev/null
1319
1320
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 as_fn_error $? "working directory cannot be determined"
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 as_fn_error $? "pwd does not report name of working directory"
1327
1328
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\).*/{
1352 s//\1/
1353 q
1354 }
1355 s/.*/./; q'`
1356 srcdir=$ac_confdir
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 srcdir=..
1359 fi
1360 else
1361 ac_srcdir_defaulted=no
1362 fi
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1366 fi
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1370 pwd)`
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 srcdir=.
1374 fi
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1378 case $srcdir in
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 esac
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1387
1388 #
1389 # Report the --help message.
1390 #
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1396
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1401
1402 Defaults for the options are specified in brackets.
1403
1404 Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking ...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1420
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1425
1426 For better control, use the options below.
1427
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448 _ACEOF
1449
1450 cat <<\_ACEOF
1451
1452 Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456
1457 X features:
1458 --x-includes=DIR X include files are in DIR
1459 --x-libraries=DIR X library files are in DIR
1460
1461 System types:
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464 _ACEOF
1465 fi
1466
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1470 esac
1471 cat <<\_ACEOF
1472
1473 Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --disable-ns-self-contained
1478 disable self contained build under NeXTstep
1479 --enable-asserts compile code with asserts enabled
1480 --enable-maintainer-mode
1481 enable make rules and dependencies not useful (and
1482 sometimes confusing) to the casual installer
1483 --enable-locallisppath=PATH
1484 directories Emacs should search for lisp files
1485 specific to this site
1486 --enable-checking[=LIST]
1487 enable expensive run-time checks. With LIST, enable
1488 only specific categories of checks. Categories are:
1489 all,yes,no. Flags are: stringbytes, stringoverrun,
1490 stringfreelist, xmallocoverrun, conslist
1491 --enable-use-lisp-union-type
1492 use a union for the Lisp_Object data type. This is
1493 only useful for development for catching certain
1494 types of bugs.
1495 --enable-profiling build emacs with profiling support. This might not
1496 work on all platforms
1497 --enable-autodepend automatically generate dependencies to .h-files.
1498 Requires GNU Make and Gcc. Enabled if GNU Make and
1499 Gcc is found
1500 --disable-largefile omit support for large files
1501
1502 Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --without-pop don't support POP mail retrieval with movemail
1506 --with-kerberos support Kerberos-authenticated POP
1507 --with-kerberos5 support Kerberos version 5 authenticated POP
1508 --with-hesiod support Hesiod to get the POP server host
1509 --with-mmdf support MMDF mailboxes
1510 --with-mail-unlink unlink, rather than empty, mail spool after reading
1511 --with-mailhost=HOSTNAME
1512 string giving default POP mail host
1513 --without-sound don't compile with sound support
1514 --without-sync-input process async input synchronously
1515 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1516 lucid or athena, motif, no)
1517 --without-xpm don't compile with XPM image support
1518 --without-jpeg don't compile with JPEG image support
1519 --without-tiff don't compile with TIFF image support
1520 --without-gif don't compile with GIF image support
1521 --without-png don't compile with PNG image support
1522 --without-rsvg don't compile with SVG image support
1523 --without-xml2 don't compile with XML parsing support
1524 --without-imagemagick don't compile with ImageMagick image support
1525 --without-xft don't use XFT for anti aliased fonts
1526 --without-libotf don't use libotf for OpenType font support
1527 --without-m17n-flt don't use m17n-flt for text shaping
1528 --without-toolkit-scroll-bars
1529 don't use Motif or Xaw3d scroll bars
1530 --without-xaw3d don't use Xaw3d
1531 --without-xim don't use X11 XIM
1532 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1533 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1534 console
1535 --without-dbus don't compile with D-Bus support
1536 --without-gconf don't compile with GConf support
1537 --without-selinux don't compile with SELinux support
1538 --without-gnutls don't use -lgnutls for SSL/TLS support
1539 --without-makeinfo don't require makeinfo for building manuals
1540 --without-compress-info don't compress the installed Info pages
1541 --with-pkg-config-prog=PATH
1542 path to pkg-config for finding GTK and librsvg
1543 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1544 /usr/lib, or /usr/lib64 on some platforms.
1545 --with-gnustep-conf=PATH
1546 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1547 or /etc/GNUstep/GNUstep.conf
1548 --with-x use the X Window System
1549
1550 Some influential environment variables:
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 LIBS libraries to pass to the linker, e.g. -l<library>
1556 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1558 CPP C preprocessor
1559 XMKMF Path to xmkmf, Makefile generator for X Window System
1560
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1563
1564 Report bugs to the package provider.
1565 _ACEOF
1566 ac_status=$?
1567 fi
1568
1569 if test "$ac_init_help" = "recursive"; then
1570 # If there are subdirs, report their specific --help.
1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572 test -d "$ac_dir" ||
1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574 continue
1575 ac_builddir=.
1576
1577 case "$ac_dir" in
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *)
1580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581 # A ".." for each directory in $ac_dir_suffix.
1582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583 case $ac_top_builddir_sub in
1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586 esac ;;
1587 esac
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1592
1593 case $srcdir in
1594 .) # We are building in place.
1595 ac_srcdir=.
1596 ac_top_srcdir=$ac_top_builddir_sub
1597 ac_abs_top_srcdir=$ac_pwd ;;
1598 [\\/]* | ?:[\\/]* ) # Absolute name.
1599 ac_srcdir=$srcdir$ac_dir_suffix;
1600 ac_top_srcdir=$srcdir
1601 ac_abs_top_srcdir=$srcdir ;;
1602 *) # Relative name.
1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604 ac_top_srcdir=$ac_top_build_prefix$srcdir
1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 esac
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608
1609 cd "$ac_dir" || { ac_status=$?; continue; }
1610 # Check for guested configure.
1611 if test -f "$ac_srcdir/configure.gnu"; then
1612 echo &&
1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614 elif test -f "$ac_srcdir/configure"; then
1615 echo &&
1616 $SHELL "$ac_srcdir/configure" --help=recursive
1617 else
1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619 fi || ac_status=$?
1620 cd "$ac_pwd" || { ac_status=$?; break; }
1621 done
1622 fi
1623
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1626 cat <<\_ACEOF
1627 emacs configure 24.0.50
1628 generated by GNU Autoconf 2.67
1629
1630 Copyright (C) 2010 Free Software Foundation, Inc.
1631 This configure script is free software; the Free Software Foundation
1632 gives unlimited permission to copy, distribute and modify it.
1633 _ACEOF
1634 exit
1635 fi
1636
1637 ## ------------------------ ##
1638 ## Autoconf initialization. ##
1639 ## ------------------------ ##
1640
1641 # ac_fn_c_try_compile LINENO
1642 # --------------------------
1643 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_compile ()
1645 {
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 rm -f conftest.$ac_objext
1648 if { { ac_try="$ac_compile"
1649 case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_compile") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1661 fi
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest.$ac_objext; then :
1667 ac_retval=0
1668 else
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1671
1672 ac_retval=1
1673 fi
1674 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 as_fn_set_status $ac_retval
1676
1677 } # ac_fn_c_try_compile
1678
1679 # ac_fn_c_try_link LINENO
1680 # -----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_link ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext conftest$ac_exeext
1686 if { { ac_try="$ac_link"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest$ac_exeext && {
1705 test "$cross_compiling" = yes ||
1706 $as_test_x conftest$ac_exeext
1707 }; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1712
1713 ac_retval=1
1714 fi
1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717 # interfere with the next link command; also delete a directory that is
1718 # left behind by Apple's compiler. We do this before executing the actions.
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_link
1724
1725 # ac_fn_c_try_cpp LINENO
1726 # ----------------------
1727 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_c_try_cpp ()
1729 {
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { { ac_try="$ac_cpp conftest.$ac_ext"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } > conftest.i && {
1747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 }; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756 fi
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 as_fn_set_status $ac_retval
1759
1760 } # ac_fn_c_try_cpp
1761
1762 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1765 # the include files in INCLUDES and setting the cache variable VAR
1766 # accordingly.
1767 ac_fn_c_check_header_mongrel ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if eval "test \"\${$3+set}\"" = set; then :
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if eval "test \"\${$3+set}\"" = set; then :
1774 $as_echo_n "(cached) " >&6
1775 fi
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 else
1780 # Is the header compilable?
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1782 $as_echo_n "checking $2 usability... " >&6; }
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1785 $4
1786 #include <$2>
1787 _ACEOF
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789 ac_header_compiler=yes
1790 else
1791 ac_header_compiler=no
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1795 $as_echo "$ac_header_compiler" >&6; }
1796
1797 # Is the header present?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1799 $as_echo_n "checking $2 presence... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 #include <$2>
1803 _ACEOF
1804 if ac_fn_c_try_cpp "$LINENO"; then :
1805 ac_header_preproc=yes
1806 else
1807 ac_header_preproc=no
1808 fi
1809 rm -f conftest.err conftest.i conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1811 $as_echo "$ac_header_preproc" >&6; }
1812
1813 # So? What about this header?
1814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1815 yes:no: )
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1817 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820 ;;
1821 no:yes:* )
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1823 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1825 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1827 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1829 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1832 ;;
1833 esac
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval "test \"\${$3+set}\"" = set; then :
1837 $as_echo_n "(cached) " >&6
1838 else
1839 eval "$3=\$ac_header_compiler"
1840 fi
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844 fi
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846
1847 } # ac_fn_c_check_header_mongrel
1848
1849 # ac_fn_c_try_run LINENO
1850 # ----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1852 # that executables *can* be run.
1853 ac_fn_c_try_run ()
1854 {
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_link"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>&5
1864 ac_status=$?
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1867 { { case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_try") 2>&5
1874 ac_status=$?
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; }; }; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: program exited with status $ac_status" >&5
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1882
1883 ac_retval=$ac_status
1884 fi
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 as_fn_set_status $ac_retval
1888
1889 } # ac_fn_c_try_run
1890
1891 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists and can be compiled using the include files in
1894 # INCLUDES, setting the cache variable VAR accordingly.
1895 ac_fn_c_check_header_compile ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval "test \"\${$3+set}\"" = set; then :
1901 $as_echo_n "(cached) " >&6
1902 else
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 $4
1906 #include <$2>
1907 _ACEOF
1908 if ac_fn_c_try_compile "$LINENO"; then :
1909 eval "$3=yes"
1910 else
1911 eval "$3=no"
1912 fi
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 fi
1915 eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919
1920 } # ac_fn_c_check_header_compile
1921
1922 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1923 # ---------------------------------------------
1924 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1925 # accordingly.
1926 ac_fn_c_check_decl ()
1927 {
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 as_decl_name=`echo $2|sed 's/ *(.*//'`
1930 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1932 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1933 if eval "test \"\${$3+set}\"" = set; then :
1934 $as_echo_n "(cached) " >&6
1935 else
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1938 $4
1939 int
1940 main ()
1941 {
1942 #ifndef $as_decl_name
1943 #ifdef __cplusplus
1944 (void) $as_decl_use;
1945 #else
1946 (void) $as_decl_name;
1947 #endif
1948 #endif
1949
1950 ;
1951 return 0;
1952 }
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955 eval "$3=yes"
1956 else
1957 eval "$3=no"
1958 fi
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 fi
1961 eval ac_res=\$$3
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1965
1966 } # ac_fn_c_check_decl
1967
1968 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1969 # ----------------------------------------------
1970 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1971 ac_fn_c_check_header_preproc ()
1972 {
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval "test \"\${$3+set}\"" = set; then :
1977 $as_echo_n "(cached) " >&6
1978 else
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1981 #include <$2>
1982 _ACEOF
1983 if ac_fn_c_try_cpp "$LINENO"; then :
1984 eval "$3=yes"
1985 else
1986 eval "$3=no"
1987 fi
1988 rm -f conftest.err conftest.i conftest.$ac_ext
1989 fi
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1994
1995 } # ac_fn_c_check_header_preproc
1996
1997 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1998 # ----------------------------------------------------
1999 # Tries to find if the field MEMBER exists in type AGGR, after including
2000 # INCLUDES, setting cache variable VAR accordingly.
2001 ac_fn_c_check_member ()
2002 {
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2005 $as_echo_n "checking for $2.$3... " >&6; }
2006 if eval "test \"\${$4+set}\"" = set; then :
2007 $as_echo_n "(cached) " >&6
2008 else
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 $5
2012 int
2013 main ()
2014 {
2015 static $2 ac_aggr;
2016 if (ac_aggr.$3)
2017 return 0;
2018 ;
2019 return 0;
2020 }
2021 _ACEOF
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023 eval "$4=yes"
2024 else
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 $5
2028 int
2029 main ()
2030 {
2031 static $2 ac_aggr;
2032 if (sizeof ac_aggr.$3)
2033 return 0;
2034 ;
2035 return 0;
2036 }
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039 eval "$4=yes"
2040 else
2041 eval "$4=no"
2042 fi
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 fi
2047 eval ac_res=\$$4
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051
2052 } # ac_fn_c_check_member
2053
2054 # ac_fn_c_check_func LINENO FUNC VAR
2055 # ----------------------------------
2056 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2057 ac_fn_c_check_func ()
2058 {
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval "test \"\${$3+set}\"" = set; then :
2063 $as_echo_n "(cached) " >&6
2064 else
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2067 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2069 #define $2 innocuous_$2
2070
2071 /* System header to define __stub macros and hopefully few prototypes,
2072 which can conflict with char $2 (); below.
2073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2074 <limits.h> exists even on freestanding compilers. */
2075
2076 #ifdef __STDC__
2077 # include <limits.h>
2078 #else
2079 # include <assert.h>
2080 #endif
2081
2082 #undef $2
2083
2084 /* Override any GCC internal prototype to avoid an error.
2085 Use char because int might match the return type of a GCC
2086 builtin and then its argument prototype would still apply. */
2087 #ifdef __cplusplus
2088 extern "C"
2089 #endif
2090 char $2 ();
2091 /* The GNU C library defines this for functions which it implements
2092 to always fail with ENOSYS. Some functions are actually named
2093 something starting with __ and the normal name is an alias. */
2094 #if defined __stub_$2 || defined __stub___$2
2095 choke me
2096 #endif
2097
2098 int
2099 main ()
2100 {
2101 return $2 ();
2102 ;
2103 return 0;
2104 }
2105 _ACEOF
2106 if ac_fn_c_try_link "$LINENO"; then :
2107 eval "$3=yes"
2108 else
2109 eval "$3=no"
2110 fi
2111 rm -f core conftest.err conftest.$ac_objext \
2112 conftest$ac_exeext conftest.$ac_ext
2113 fi
2114 eval ac_res=\$$3
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2118
2119 } # ac_fn_c_check_func
2120
2121 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2122 # -------------------------------------------
2123 # Tests whether TYPE exists after having included INCLUDES, setting cache
2124 # variable VAR accordingly.
2125 ac_fn_c_check_type ()
2126 {
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if eval "test \"\${$3+set}\"" = set; then :
2131 $as_echo_n "(cached) " >&6
2132 else
2133 eval "$3=no"
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 $4
2137 int
2138 main ()
2139 {
2140 if (sizeof ($2))
2141 return 0;
2142 ;
2143 return 0;
2144 }
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2149 $4
2150 int
2151 main ()
2152 {
2153 if (sizeof (($2)))
2154 return 0;
2155 ;
2156 return 0;
2157 }
2158 _ACEOF
2159 if ac_fn_c_try_compile "$LINENO"; then :
2160
2161 else
2162 eval "$3=yes"
2163 fi
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 fi
2168 eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2172
2173 } # ac_fn_c_check_type
2174 cat >config.log <<_ACEOF
2175 This file contains any messages produced by compilers while
2176 running configure, to aid debugging if configure makes a mistake.
2177
2178 It was created by emacs $as_me 24.0.50, which was
2179 generated by GNU Autoconf 2.67. Invocation command line was
2180
2181 $ $0 $@
2182
2183 _ACEOF
2184 exec 5>>config.log
2185 {
2186 cat <<_ASUNAME
2187 ## --------- ##
2188 ## Platform. ##
2189 ## --------- ##
2190
2191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2196
2197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2198 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2199
2200 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2201 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2203 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2204 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2205 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2206 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2207
2208 _ASUNAME
2209
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 for as_dir in $PATH
2212 do
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 $as_echo "PATH: $as_dir"
2216 done
2217 IFS=$as_save_IFS
2218
2219 } >&5
2220
2221 cat >&5 <<_ACEOF
2222
2223
2224 ## ----------- ##
2225 ## Core tests. ##
2226 ## ----------- ##
2227
2228 _ACEOF
2229
2230
2231 # Keep a trace of the command line.
2232 # Strip out --no-create and --no-recursion so they do not pile up.
2233 # Strip out --silent because we don't want to record it for future runs.
2234 # Also quote any args containing shell meta-characters.
2235 # Make two passes to allow for proper duplicate-argument suppression.
2236 ac_configure_args=
2237 ac_configure_args0=
2238 ac_configure_args1=
2239 ac_must_keep_next=false
2240 for ac_pass in 1 2
2241 do
2242 for ac_arg
2243 do
2244 case $ac_arg in
2245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2247 | -silent | --silent | --silen | --sile | --sil)
2248 continue ;;
2249 *\'*)
2250 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2251 esac
2252 case $ac_pass in
2253 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2254 2)
2255 as_fn_append ac_configure_args1 " '$ac_arg'"
2256 if test $ac_must_keep_next = true; then
2257 ac_must_keep_next=false # Got value, back to normal.
2258 else
2259 case $ac_arg in
2260 *=* | --config-cache | -C | -disable-* | --disable-* \
2261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2263 | -with-* | --with-* | -without-* | --without-* | --x)
2264 case "$ac_configure_args0 " in
2265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2266 esac
2267 ;;
2268 -* ) ac_must_keep_next=true ;;
2269 esac
2270 fi
2271 as_fn_append ac_configure_args " '$ac_arg'"
2272 ;;
2273 esac
2274 done
2275 done
2276 { ac_configure_args0=; unset ac_configure_args0;}
2277 { ac_configure_args1=; unset ac_configure_args1;}
2278
2279 # When interrupted or exit'd, cleanup temporary files, and complete
2280 # config.log. We remove comments because anyway the quotes in there
2281 # would cause problems or look ugly.
2282 # WARNING: Use '\'' to represent an apostrophe within the trap.
2283 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2284 trap 'exit_status=$?
2285 # Save into config.log some information that might help in debugging.
2286 {
2287 echo
2288
2289 $as_echo "## ---------------- ##
2290 ## Cache variables. ##
2291 ## ---------------- ##"
2292 echo
2293 # The following way of writing the cache mishandles newlines in values,
2294 (
2295 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2296 eval ac_val=\$$ac_var
2297 case $ac_val in #(
2298 *${as_nl}*)
2299 case $ac_var in #(
2300 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2301 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2302 esac
2303 case $ac_var in #(
2304 _ | IFS | as_nl) ;; #(
2305 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2306 *) { eval $ac_var=; unset $ac_var;} ;;
2307 esac ;;
2308 esac
2309 done
2310 (set) 2>&1 |
2311 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2312 *${as_nl}ac_space=\ *)
2313 sed -n \
2314 "s/'\''/'\''\\\\'\'''\''/g;
2315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2316 ;; #(
2317 *)
2318 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2319 ;;
2320 esac |
2321 sort
2322 )
2323 echo
2324
2325 $as_echo "## ----------------- ##
2326 ## Output variables. ##
2327 ## ----------------- ##"
2328 echo
2329 for ac_var in $ac_subst_vars
2330 do
2331 eval ac_val=\$$ac_var
2332 case $ac_val in
2333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 esac
2335 $as_echo "$ac_var='\''$ac_val'\''"
2336 done | sort
2337 echo
2338
2339 if test -n "$ac_subst_files"; then
2340 $as_echo "## ------------------- ##
2341 ## File substitutions. ##
2342 ## ------------------- ##"
2343 echo
2344 for ac_var in $ac_subst_files
2345 do
2346 eval ac_val=\$$ac_var
2347 case $ac_val in
2348 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349 esac
2350 $as_echo "$ac_var='\''$ac_val'\''"
2351 done | sort
2352 echo
2353 fi
2354
2355 if test -s confdefs.h; then
2356 $as_echo "## ----------- ##
2357 ## confdefs.h. ##
2358 ## ----------- ##"
2359 echo
2360 cat confdefs.h
2361 echo
2362 fi
2363 test "$ac_signal" != 0 &&
2364 $as_echo "$as_me: caught signal $ac_signal"
2365 $as_echo "$as_me: exit $exit_status"
2366 } >&5
2367 rm -f core *.core core.conftest.* &&
2368 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2369 exit $exit_status
2370 ' 0
2371 for ac_signal in 1 2 13 15; do
2372 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2373 done
2374 ac_signal=0
2375
2376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2377 rm -f -r conftest* confdefs.h
2378
2379 $as_echo "/* confdefs.h */" > confdefs.h
2380
2381 # Predefined preprocessor variables.
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_NAME "$PACKAGE_NAME"
2385 _ACEOF
2386
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2389 _ACEOF
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2393 _ACEOF
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_STRING "$PACKAGE_STRING"
2397 _ACEOF
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2401 _ACEOF
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_URL "$PACKAGE_URL"
2405 _ACEOF
2406
2407
2408 # Let the site file select an alternate cache file if it wants to.
2409 # Prefer an explicitly selected file to automatically selected ones.
2410 ac_site_file1=NONE
2411 ac_site_file2=NONE
2412 if test -n "$CONFIG_SITE"; then
2413 # We do not want a PATH search for config.site.
2414 case $CONFIG_SITE in #((
2415 -*) ac_site_file1=./$CONFIG_SITE;;
2416 */*) ac_site_file1=$CONFIG_SITE;;
2417 *) ac_site_file1=./$CONFIG_SITE;;
2418 esac
2419 elif test "x$prefix" != xNONE; then
2420 ac_site_file1=$prefix/share/config.site
2421 ac_site_file2=$prefix/etc/config.site
2422 else
2423 ac_site_file1=$ac_default_prefix/share/config.site
2424 ac_site_file2=$ac_default_prefix/etc/config.site
2425 fi
2426 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2427 do
2428 test "x$ac_site_file" = xNONE && continue
2429 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2431 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2432 sed 's/^/| /' "$ac_site_file" >&5
2433 . "$ac_site_file" \
2434 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2436 as_fn_error $? "failed to load site script $ac_site_file
2437 See \`config.log' for more details" "$LINENO" 5 ; }
2438 fi
2439 done
2440
2441 if test -r "$cache_file"; then
2442 # Some versions of bash will fail to source /dev/null (special files
2443 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2444 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2446 $as_echo "$as_me: loading cache $cache_file" >&6;}
2447 case $cache_file in
2448 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2449 *) . "./$cache_file";;
2450 esac
2451 fi
2452 else
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2454 $as_echo "$as_me: creating cache $cache_file" >&6;}
2455 >$cache_file
2456 fi
2457
2458 as_fn_append ac_header_list " stdlib.h"
2459 as_fn_append ac_header_list " unistd.h"
2460 as_fn_append ac_header_list " sys/param.h"
2461 as_fn_append ac_header_list " sys/time.h"
2462 as_fn_append ac_func_list " alarm"
2463 # Check that the precious variables saved in the cache have kept the same
2464 # value.
2465 ac_cache_corrupted=false
2466 for ac_var in $ac_precious_vars; do
2467 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2468 eval ac_new_set=\$ac_env_${ac_var}_set
2469 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2470 eval ac_new_val=\$ac_env_${ac_var}_value
2471 case $ac_old_set,$ac_new_set in
2472 set,)
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2474 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2475 ac_cache_corrupted=: ;;
2476 ,set)
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2478 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2479 ac_cache_corrupted=: ;;
2480 ,);;
2481 *)
2482 if test "x$ac_old_val" != "x$ac_new_val"; then
2483 # differences in whitespace do not lead to failure.
2484 ac_old_val_w=`echo x $ac_old_val`
2485 ac_new_val_w=`echo x $ac_new_val`
2486 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2488 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2489 ac_cache_corrupted=:
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2492 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2493 eval $ac_var=\$ac_old_val
2494 fi
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2496 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2498 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2499 fi;;
2500 esac
2501 # Pass precious variables to config.status.
2502 if test "$ac_new_set" = set; then
2503 case $ac_new_val in
2504 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2505 *) ac_arg=$ac_var=$ac_new_val ;;
2506 esac
2507 case " $ac_configure_args " in
2508 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2509 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2510 esac
2511 fi
2512 done
2513 if $ac_cache_corrupted; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2517 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2518 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2519 fi
2520 ## -------------------- ##
2521 ## Main body of script. ##
2522 ## -------------------- ##
2523
2524 ac_ext=c
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529
2530
2531 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2532
2533
2534
2535 test "$program_prefix" != NONE &&
2536 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2537 # Use a double $ so make ignores it.
2538 test "$program_suffix" != NONE &&
2539 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2540 # Double any \ or $.
2541 # By default was `s,x,x', remove it if useless.
2542 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2543 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2544
2545
2546 lispdir='${datadir}/emacs/${version}/lisp'
2547 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2548 '${datadir}/emacs/site-lisp'
2549 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2550 etcdir='${datadir}/emacs/${version}/etc'
2551 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2552 docdir='${datadir}/emacs/${version}/etc'
2553 gamedir='${localstatedir}/games/emacs'
2554
2555 gameuser=games
2556
2557
2558
2559
2560 # Check whether --with-pop was given.
2561 if test "${with_pop+set}" = set; then :
2562 withval=$with_pop;
2563 else
2564 with_pop=yes
2565 fi
2566
2567 if test "$with_pop" = yes; then
2568 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2569
2570 fi
2571
2572
2573 # Check whether --with-kerberos was given.
2574 if test "${with_kerberos+set}" = set; then :
2575 withval=$with_kerberos;
2576 else
2577 with_kerberos=no
2578 fi
2579
2580 if test "$with_kerberos" != no; then
2581 $as_echo "#define KERBEROS 1" >>confdefs.h
2582
2583 fi
2584
2585
2586 # Check whether --with-kerberos5 was given.
2587 if test "${with_kerberos5+set}" = set; then :
2588 withval=$with_kerberos5;
2589 else
2590 with_kerberos5=no
2591 fi
2592
2593 if test "${with_kerberos5}" != no; then
2594 if test "${with_kerberos}" = no; then
2595 with_kerberos=yes
2596 $as_echo "#define KERBEROS 1" >>confdefs.h
2597
2598 fi
2599
2600 $as_echo "#define KERBEROS5 1" >>confdefs.h
2601
2602 fi
2603
2604
2605 # Check whether --with-hesiod was given.
2606 if test "${with_hesiod+set}" = set; then :
2607 withval=$with_hesiod;
2608 else
2609 with_hesiod=no
2610 fi
2611
2612 if test "$with_hesiod" != no; then
2613
2614 $as_echo "#define HESIOD 1" >>confdefs.h
2615
2616 fi
2617
2618
2619 # Check whether --with-mmdf was given.
2620 if test "${with_mmdf+set}" = set; then :
2621 withval=$with_mmdf;
2622 else
2623 with_mmdf=no
2624 fi
2625
2626 if test "$with_mmdf" != no; then
2627
2628 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2629
2630 fi
2631
2632
2633 # Check whether --with-mail-unlink was given.
2634 if test "${with_mail_unlink+set}" = set; then :
2635 withval=$with_mail_unlink;
2636 else
2637 with_mail_unlink=no
2638 fi
2639
2640 if test "$with_mail_unlink" != no; then
2641
2642 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2643
2644 fi
2645
2646
2647 # Check whether --with-mailhost was given.
2648 if test "${with_mailhost+set}" = set; then :
2649 withval=$with_mailhost;
2650 cat >>confdefs.h <<_ACEOF
2651 #define MAILHOST "$withval"
2652 _ACEOF
2653
2654 fi
2655
2656
2657
2658 # Check whether --with-sound was given.
2659 if test "${with_sound+set}" = set; then :
2660 withval=$with_sound;
2661 else
2662 with_sound=yes
2663 fi
2664
2665
2666
2667 # Check whether --with-sync-input was given.
2668 if test "${with_sync_input+set}" = set; then :
2669 withval=$with_sync_input;
2670 else
2671 with_sync_input=yes
2672 fi
2673
2674 if test "$with_sync_input" = yes; then
2675
2676 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2677
2678 fi
2679
2680
2681 # Check whether --with-x-toolkit was given.
2682 if test "${with_x_toolkit+set}" = set; then :
2683 withval=$with_x_toolkit; case "${withval}" in
2684 y | ye | yes ) val=gtk ;;
2685 n | no ) val=no ;;
2686 l | lu | luc | luci | lucid ) val=lucid ;;
2687 a | at | ath | athe | athen | athena ) val=athena ;;
2688 m | mo | mot | moti | motif ) val=motif ;;
2689 g | gt | gtk ) val=gtk ;;
2690 gtk3 ) val=gtk3 ;;
2691 * )
2692 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
2693 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2694 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2695 ;;
2696 esac
2697 with_x_toolkit=$val
2698
2699 fi
2700
2701
2702
2703 # Check whether --with-xpm was given.
2704 if test "${with_xpm+set}" = set; then :
2705 withval=$with_xpm;
2706 else
2707 with_xpm=yes
2708 fi
2709
2710
2711 # Check whether --with-jpeg was given.
2712 if test "${with_jpeg+set}" = set; then :
2713 withval=$with_jpeg;
2714 else
2715 with_jpeg=yes
2716 fi
2717
2718
2719 # Check whether --with-tiff was given.
2720 if test "${with_tiff+set}" = set; then :
2721 withval=$with_tiff;
2722 else
2723 with_tiff=yes
2724 fi
2725
2726
2727 # Check whether --with-gif was given.
2728 if test "${with_gif+set}" = set; then :
2729 withval=$with_gif;
2730 else
2731 with_gif=yes
2732 fi
2733
2734
2735 # Check whether --with-png was given.
2736 if test "${with_png+set}" = set; then :
2737 withval=$with_png;
2738 else
2739 with_png=yes
2740 fi
2741
2742
2743 # Check whether --with-rsvg was given.
2744 if test "${with_rsvg+set}" = set; then :
2745 withval=$with_rsvg;
2746 else
2747 with_rsvg=yes
2748 fi
2749
2750
2751 # Check whether --with-xml2 was given.
2752 if test "${with_xml2+set}" = set; then :
2753 withval=$with_xml2;
2754 else
2755 with_xml2=yes
2756 fi
2757
2758
2759 # Check whether --with-imagemagick was given.
2760 if test "${with_imagemagick+set}" = set; then :
2761 withval=$with_imagemagick;
2762 else
2763 with_imagemagick=yes
2764 fi
2765
2766
2767
2768 # Check whether --with-xft was given.
2769 if test "${with_xft+set}" = set; then :
2770 withval=$with_xft;
2771 else
2772 with_xft=yes
2773 fi
2774
2775
2776 # Check whether --with-libotf was given.
2777 if test "${with_libotf+set}" = set; then :
2778 withval=$with_libotf;
2779 else
2780 with_libotf=yes
2781 fi
2782
2783
2784 # Check whether --with-m17n-flt was given.
2785 if test "${with_m17n_flt+set}" = set; then :
2786 withval=$with_m17n_flt;
2787 else
2788 with_m17n_flt=yes
2789 fi
2790
2791
2792
2793 # Check whether --with-toolkit-scroll-bars was given.
2794 if test "${with_toolkit_scroll_bars+set}" = set; then :
2795 withval=$with_toolkit_scroll_bars;
2796 else
2797 with_toolkit_scroll_bars=yes
2798 fi
2799
2800
2801 # Check whether --with-xaw3d was given.
2802 if test "${with_xaw3d+set}" = set; then :
2803 withval=$with_xaw3d;
2804 else
2805 with_xaw3d=yes
2806 fi
2807
2808
2809 # Check whether --with-xim was given.
2810 if test "${with_xim+set}" = set; then :
2811 withval=$with_xim;
2812 else
2813 with_xim=yes
2814 fi
2815
2816
2817 # Check whether --with-ns was given.
2818 if test "${with_ns+set}" = set; then :
2819 withval=$with_ns;
2820 else
2821 with_ns=no
2822 fi
2823
2824
2825
2826 # Check whether --with-gpm was given.
2827 if test "${with_gpm+set}" = set; then :
2828 withval=$with_gpm;
2829 else
2830 with_gpm=yes
2831 fi
2832
2833
2834 # Check whether --with-dbus was given.
2835 if test "${with_dbus+set}" = set; then :
2836 withval=$with_dbus;
2837 else
2838 with_dbus=yes
2839 fi
2840
2841
2842 # Check whether --with-gconf was given.
2843 if test "${with_gconf+set}" = set; then :
2844 withval=$with_gconf;
2845 else
2846 with_gconf=yes
2847 fi
2848
2849
2850 # Check whether --with-selinux was given.
2851 if test "${with_selinux+set}" = set; then :
2852 withval=$with_selinux;
2853 else
2854 with_selinux=yes
2855 fi
2856
2857
2858 # Check whether --with-gnutls was given.
2859 if test "${with_gnutls+set}" = set; then :
2860 withval=$with_gnutls;
2861 else
2862 with_gnutls=yes
2863 fi
2864
2865
2866 ## For the times when you want to build Emacs but don't have
2867 ## a suitable makeinfo, and can live without the manuals.
2868
2869 # Check whether --with-makeinfo was given.
2870 if test "${with_makeinfo+set}" = set; then :
2871 withval=$with_makeinfo;
2872 else
2873 with_makeinfo=yes
2874 fi
2875
2876
2877 ## This is an option because I do not know if all info/man support
2878 ## compressed files, nor how to test if they do so.
2879
2880 # Check whether --with-compress-info was given.
2881 if test "${with_compress_info+set}" = set; then :
2882 withval=$with_compress_info;
2883 else
2884 with_compress_info=yes
2885 fi
2886
2887 if test $with_compress_info = yes; then
2888 GZIP_INFO=yes
2889 else
2890 GZIP_INFO=
2891 fi
2892
2893
2894
2895 # Check whether --with-pkg-config-prog was given.
2896 if test "${with_pkg_config_prog+set}" = set; then :
2897 withval=$with_pkg_config_prog;
2898 fi
2899
2900 if test "X${with_pkg_config_prog}" != X; then
2901 if test "${with_pkg_config_prog}" != yes; then
2902 PKG_CONFIG="${with_pkg_config_prog}"
2903 fi
2904 fi
2905
2906 CRT_DIR=
2907
2908 # Check whether --with-crt-dir was given.
2909 if test "${with_crt_dir+set}" = set; then :
2910 withval=$with_crt_dir;
2911 fi
2912
2913 CRT_DIR="${with_crt_dir}"
2914
2915
2916 # Check whether --with-gnustep-conf was given.
2917 if test "${with_gnustep_conf+set}" = set; then :
2918 withval=$with_gnustep_conf;
2919 fi
2920
2921 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2922 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2923 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2924 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2925
2926 # Check whether --enable-ns-self-contained was given.
2927 if test "${enable_ns_self_contained+set}" = set; then :
2928 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2929 else
2930 EN_NS_SELF_CONTAINED=yes
2931 fi
2932
2933
2934 # Check whether --enable-asserts was given.
2935 if test "${enable_asserts+set}" = set; then :
2936 enableval=$enable_asserts; USE_XASSERTS=$enableval
2937 else
2938 USE_XASSERTS=no
2939 fi
2940
2941
2942 # Check whether --enable-maintainer-mode was given.
2943 if test "${enable_maintainer_mode+set}" = set; then :
2944 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2945 else
2946 USE_MAINTAINER_MODE=no
2947 fi
2948
2949 if test $USE_MAINTAINER_MODE = yes; then
2950 MAINT=
2951 else
2952 MAINT=#
2953 fi
2954
2955
2956 # Check whether --enable-locallisppath was given.
2957 if test "${enable_locallisppath+set}" = set; then :
2958 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2959 locallisppath=
2960 elif test "${enableval}" != "yes"; then
2961 locallisppath=${enableval}
2962 fi
2963 fi
2964
2965
2966 # Check whether --enable-checking was given.
2967 if test "${enable_checking+set}" = set; then :
2968 enableval=$enable_checking; ac_checking_flags="${enableval}"
2969 fi
2970
2971 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2972 for check in $ac_checking_flags
2973 do
2974 case $check in
2975 # these set all the flags to specific states
2976 yes) ac_enable_checking=1 ;;
2977 no) ac_enable_checking= ;
2978 ac_gc_check_stringbytes= ;
2979 ac_gc_check_string_overrun= ;
2980 ac_gc_check_string_free_list= ;
2981 ac_xmalloc_overrun= ;
2982 ac_gc_check_cons_list= ;;
2983 all) ac_enable_checking=1 ;
2984 ac_gc_check_stringbytes=1 ;
2985 ac_gc_check_string_overrun=1 ;
2986 ac_gc_check_string_free_list=1 ;
2987 ac_xmalloc_overrun=1 ;
2988 ac_gc_check_cons_list=1 ;;
2989 # these enable particular checks
2990 stringbytes) ac_gc_check_stringbytes=1 ;;
2991 stringoverrun) ac_gc_check_string_overrun=1 ;;
2992 stringfreelist) ac_gc_check_string_free_list=1 ;;
2993 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2994 conslist) ac_gc_check_cons_list=1 ;;
2995 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
2996 esac
2997 done
2998 IFS="$ac_save_IFS"
2999
3000 if test x$ac_enable_checking != x ; then
3001
3002 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3003
3004 fi
3005 if test x$ac_gc_check_stringbytes != x ; then
3006
3007 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3008
3009 fi
3010 if test x$ac_gc_check_stringoverrun != x ; then
3011
3012 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3013
3014 fi
3015 if test x$ac_gc_check_string_free_list != x ; then
3016
3017 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3018
3019 fi
3020 if test x$ac_xmalloc_overrun != x ; then
3021
3022 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3023
3024 fi
3025 if test x$ac_gc_check_cons_list != x ; then
3026
3027 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3028
3029 fi
3030
3031 # Check whether --enable-use-lisp-union-type was given.
3032 if test "${enable_use_lisp_union_type+set}" = set; then :
3033 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3034
3035 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3036
3037 fi
3038 fi
3039
3040
3041
3042 # Check whether --enable-profiling was given.
3043 if test "${enable_profiling+set}" = set; then :
3044 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3045 fi
3046
3047 if test x$ac_enable_profiling != x ; then
3048 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3049 else
3050 PROFILING_CFLAGS=
3051 fi
3052
3053
3054 # Check whether --enable-autodepend was given.
3055 if test "${enable_autodepend+set}" = set; then :
3056 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3057 else
3058 ac_enable_autodepend=yes
3059 fi
3060
3061
3062 #### Make srcdir absolute, if it isn't already. It's important to
3063 #### avoid running the path through pwd unnecessarily, since pwd can
3064 #### give you automounter prefixes, which can go away. We do all this
3065 #### so Emacs can find its files when run uninstalled.
3066 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3067 unset CDPATH
3068 case "${srcdir}" in
3069 /* ) ;;
3070 . )
3071 ## We may be able to use the $PWD environment variable to make this
3072 ## absolute. But sometimes PWD is inaccurate.
3073 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3074 ## but that tested only for a well-formed and valid PWD,
3075 ## it did not object when PWD was well-formed and valid but just wrong.
3076 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3077 then
3078 srcdir="$PWD"
3079 else
3080 srcdir="`(cd ${srcdir}; pwd)`"
3081 fi
3082 ;;
3083 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3084 esac
3085
3086 #### Check if the source directory already has a configured system in it.
3087 if test `pwd` != `(cd ${srcdir} && pwd)` \
3088 && test -f "${srcdir}/src/config.h" ; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3090 as a build directory right now; it has been configured in its own
3091 right. To configure in another directory as well, you MUST
3092 use GNU make. If you do not have GNU make, then you must
3093 now do \`make distclean' in ${srcdir},
3094 and then run $0 again." >&5
3095 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3096 as a build directory right now; it has been configured in its own
3097 right. To configure in another directory as well, you MUST
3098 use GNU make. If you do not have GNU make, then you must
3099 now do \`make distclean' in ${srcdir},
3100 and then run $0 again." >&2;}
3101 fi
3102
3103 #### Given the configuration name, set machfile and opsysfile to the
3104 #### names of the m/*.h and s/*.h files we should use.
3105
3106 ### Canonicalize the configuration name.
3107
3108 ac_aux_dir=
3109 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3110 if test -f "$ac_dir/install-sh"; then
3111 ac_aux_dir=$ac_dir
3112 ac_install_sh="$ac_aux_dir/install-sh -c"
3113 break
3114 elif test -f "$ac_dir/install.sh"; then
3115 ac_aux_dir=$ac_dir
3116 ac_install_sh="$ac_aux_dir/install.sh -c"
3117 break
3118 elif test -f "$ac_dir/shtool"; then
3119 ac_aux_dir=$ac_dir
3120 ac_install_sh="$ac_aux_dir/shtool install -c"
3121 break
3122 fi
3123 done
3124 if test -z "$ac_aux_dir"; then
3125 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3126 fi
3127
3128 # These three variables are undocumented and unsupported,
3129 # and are intended to be withdrawn in a future Autoconf release.
3130 # They can cause serious problems if a builder's source tree is in a directory
3131 # whose full name contains unusual characters.
3132 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3133 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3134 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3135
3136
3137 # Make sure we can run config.sub.
3138 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3139 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3140
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3142 $as_echo_n "checking build system type... " >&6; }
3143 if test "${ac_cv_build+set}" = set; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 ac_build_alias=$build_alias
3147 test "x$ac_build_alias" = x &&
3148 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3149 test "x$ac_build_alias" = x &&
3150 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3151 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3152 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3153
3154 fi
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3156 $as_echo "$ac_cv_build" >&6; }
3157 case $ac_cv_build in
3158 *-*-*) ;;
3159 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3160 esac
3161 build=$ac_cv_build
3162 ac_save_IFS=$IFS; IFS='-'
3163 set x $ac_cv_build
3164 shift
3165 build_cpu=$1
3166 build_vendor=$2
3167 shift; shift
3168 # Remember, the first character of IFS is used to create $*,
3169 # except with old shells:
3170 build_os=$*
3171 IFS=$ac_save_IFS
3172 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3173
3174
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3176 $as_echo_n "checking host system type... " >&6; }
3177 if test "${ac_cv_host+set}" = set; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test "x$host_alias" = x; then
3181 ac_cv_host=$ac_cv_build
3182 else
3183 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3184 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3185 fi
3186
3187 fi
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3189 $as_echo "$ac_cv_host" >&6; }
3190 case $ac_cv_host in
3191 *-*-*) ;;
3192 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3193 esac
3194 host=$ac_cv_host
3195 ac_save_IFS=$IFS; IFS='-'
3196 set x $ac_cv_host
3197 shift
3198 host_cpu=$1
3199 host_vendor=$2
3200 shift; shift
3201 # Remember, the first character of IFS is used to create $*,
3202 # except with old shells:
3203 host_os=$*
3204 IFS=$ac_save_IFS
3205 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3206
3207
3208 canonical=$host
3209 configuration=${host_alias-${build_alias-$host}}
3210
3211
3212
3213 ### If you add support for a new configuration, add code to this
3214 ### switch statement to recognize your configuration name and select
3215 ### the appropriate operating system and machine description files.
3216
3217 ### You would hope that you could choose an m/*.h file pretty much
3218 ### based on the machine portion of the configuration name, and an s/*.h
3219 ### file based on the operating system portion. However, it turns out
3220 ### that each m/*.h file is pretty manufacturer-specific - for
3221 ### example mips.h is MIPS
3222 ### So we basically have to have a special case for each
3223 ### configuration name.
3224 ###
3225 ### As far as handling version numbers on operating systems is
3226 ### concerned, make sure things will fail in a fixable way. If
3227 ### /etc/MACHINES doesn't say anything about version numbers, be
3228 ### prepared to handle anything reasonably. If version numbers
3229 ### matter, be sure /etc/MACHINES says something about it.
3230
3231 machine='' opsys='' unported=no
3232 case "${canonical}" in
3233
3234 ## FreeBSD ports
3235 *-*-freebsd* )
3236 opsys=freebsd
3237 case "${canonical}" in
3238 alpha*) machine=alpha ;;
3239 amd64-*|x86_64-*) machine=amdx86-64 ;;
3240 arm*) machine=arm ;;
3241 ia64-*) machine=ia64 ;;
3242 i[3456]86-*) machine=intel386 ;;
3243 powerpc-*) machine=macppc ;;
3244 sparc-*) machine=sparc ;;
3245 sparc64-*) machine=sparc ;;
3246 esac
3247 ;;
3248
3249 ## FreeBSD kernel + glibc based userland
3250 *-*-kfreebsd*gnu* )
3251 opsys=gnu-kfreebsd
3252 case "${canonical}" in
3253 alpha*) machine=alpha ;;
3254 amd64-*|x86_64-*) machine=amdx86-64 ;;
3255 ia64-*) machine=ia64 ;;
3256 i[3456]86-*) machine=intel386 ;;
3257 powerpc-*) machine=macppc ;;
3258 sparc-*) machine=sparc ;;
3259 sparc64-*) machine=sparc ;;
3260 esac
3261 ;;
3262
3263 ## NetBSD ports
3264 *-*-netbsd* )
3265 opsys=netbsd
3266 case "${canonical}" in
3267 alpha*) machine=alpha ;;
3268 x86_64-*) machine=amdx86-64 ;;
3269 arm-*) machine=arm ;;
3270 hppa-*) machine=hp800 ;;
3271 i[3456]86-*) machine=intel386 ;;
3272 m68k-*) machine=m68k ;;
3273 powerpc-*) machine=macppc ;;
3274 mips-*) machine=mips ;;
3275 mipse[bl]-*) machine=mips ;;
3276 sparc*-) machine=sparc ;;
3277 vax-*) machine=vax ;;
3278 esac
3279 ;;
3280
3281 ## OpenBSD ports
3282 *-*-openbsd* )
3283 opsys=openbsd
3284 case "${canonical}" in
3285 alpha*) machine=alpha ;;
3286 x86_64-*) machine=amdx86-64 ;;
3287 arm-*) machine=arm ;;
3288 hppa-*) machine=hp800 ;;
3289 i386-*) machine=intel386 ;;
3290 powerpc-*) machine=macppc ;;
3291 sparc*) machine=sparc ;;
3292 vax-*) machine=vax ;;
3293 esac
3294 ;;
3295
3296 alpha*-*-linux-gnu* )
3297 machine=alpha opsys=gnu-linux
3298 ;;
3299
3300 arm*-*-linux-gnu* )
3301 machine=arm opsys=gnu-linux
3302 ;;
3303
3304 ## Apple Darwin / Mac OS X
3305 *-apple-darwin* )
3306 case "${canonical}" in
3307 i[3456]86-* ) machine=intel386 ;;
3308 powerpc-* ) machine=macppc ;;
3309 x86_64-* ) machine=amdx86-64 ;;
3310 * ) unported=yes ;;
3311 esac
3312 opsys=darwin
3313 # Define CPP as follows to make autoconf work correctly.
3314 CPP="${CC-cc} -E -no-cpp-precomp"
3315 # Use fink packages if available.
3316 if test -d /sw/include && test -d /sw/lib; then
3317 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3318 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3319 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3320 fi
3321 ;;
3322
3323 ## HP 9000 series 700 and 800, running HP/UX
3324 hppa*-hp-hpux10.2* )
3325 machine=hp800 opsys=hpux10-20
3326 ;;
3327 hppa*-hp-hpux1[1-9]* )
3328 machine=hp800 opsys=hpux11
3329 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3330 ;;
3331
3332 hppa*-*-linux-gnu* )
3333 machine=hp800 opsys=gnu-linux
3334 ;;
3335
3336 ## IBM machines
3337 s390-*-linux-gnu* )
3338 machine=ibms390 opsys=gnu-linux
3339 ;;
3340 s390x-*-linux-gnu* )
3341 machine=ibms390x opsys=gnu-linux
3342 ;;
3343 rs6000-ibm-aix4.[23]* )
3344 machine=ibmrs6000 opsys=aix4-2
3345 ;;
3346 powerpc-ibm-aix4.[23]* )
3347 machine=ibmrs6000 opsys=aix4-2
3348 ;;
3349 rs6000-ibm-aix[56]* )
3350 machine=ibmrs6000 opsys=aix4-2
3351 ;;
3352 powerpc-ibm-aix[56]* )
3353 machine=ibmrs6000 opsys=aix4-2
3354 ;;
3355
3356 ## Macintosh PowerPC
3357 powerpc*-*-linux-gnu* )
3358 machine=macppc opsys=gnu-linux
3359 ;;
3360
3361 ## Silicon Graphics machines
3362 ## Iris 4D
3363 mips-sgi-irix6.5 )
3364 machine=iris4d opsys=irix6-5
3365 # Without defining _LANGUAGE_C, things get masked out in the headers
3366 # so that, for instance, grepping for `free' in stdlib.h fails and
3367 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3368 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3369 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3370 ;;
3371
3372 ## Suns
3373 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3374 machine=sparc opsys=gnu-linux
3375 ;;
3376
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 ## IA-64
3417 ia64*-*-linux* )
3418 machine=ia64 opsys=gnu-linux
3419 ;;
3420
3421 ## Intel 386 machines where we don't care about the manufacturer.
3422 i[3456]86-*-* )
3423 machine=intel386
3424 case "${canonical}" in
3425 *-cygwin ) opsys=cygwin ;;
3426 *-darwin* ) opsys=darwin
3427 CPP="${CC-cc} -E -no-cpp-precomp"
3428 ;;
3429 *-linux-gnu* ) opsys=gnu-linux ;;
3430 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3431 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3432 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3433 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3434 esac
3435 ;;
3436
3437 ## m68k Linux-based GNU system
3438 m68k-*-linux-gnu* )
3439 machine=m68k opsys=gnu-linux
3440 ;;
3441
3442 ## Mips Linux-based GNU system
3443 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3444 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3445 machine=mips opsys=gnu-linux
3446 ;;
3447
3448 ## AMD x86-64 Linux-based GNU system
3449 x86_64-*-linux-gnu* )
3450 machine=amdx86-64 opsys=gnu-linux
3451 ;;
3452
3453 ## Tensilica Xtensa Linux-based GNU system
3454 xtensa*-*-linux-gnu* )
3455 machine=xtensa opsys=gnu-linux
3456 ;;
3457
3458 ## SuperH Linux-based GNU system
3459 sh[34]*-*-linux-gnu* )
3460 machine=sh3 opsys=gnu-linux
3461 ;;
3462
3463 * )
3464 unported=yes
3465 ;;
3466 esac
3467
3468 ### If the code above didn't choose an operating system, just choose
3469 ### an operating system based on the configuration name. You really
3470 ### only want to use this when you have no idea what the right
3471 ### operating system is; if you know what operating systems a machine
3472 ### runs, it's cleaner to make it explicit in the case statement
3473 ### above.
3474 if test x"${opsys}" = x; then
3475 case "${canonical}" in
3476 *-gnu* ) opsys=gnu ;;
3477 * )
3478 unported=yes
3479 ;;
3480 esac
3481 fi
3482
3483
3484
3485 if test $unported = yes; then
3486 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
3487 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3488 fi
3489
3490 machfile="m/${machine}.h"
3491 opsysfile="s/${opsys}.h"
3492
3493
3494 #### Choose a compiler.
3495 test -n "$CC" && cc_specified=yes
3496
3497 # Save the value of CFLAGS that the user specified.
3498 SPECIFIED_CFLAGS="$CFLAGS"
3499
3500 ac_ext=c
3501 ac_cpp='$CPP $CPPFLAGS'
3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 if test -n "$ac_tool_prefix"; then
3506 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3507 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if test "${ac_cv_prog_CC+set}" = set; then :
3511 $as_echo_n "(cached) " >&6
3512 else
3513 if test -n "$CC"; then
3514 ac_cv_prog_CC="$CC" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 break 2
3526 fi
3527 done
3528 done
3529 IFS=$as_save_IFS
3530
3531 fi
3532 fi
3533 CC=$ac_cv_prog_CC
3534 if test -n "$CC"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3536 $as_echo "$CC" >&6; }
3537 else
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3540 fi
3541
3542
3543 fi
3544 if test -z "$ac_cv_prog_CC"; then
3545 ac_ct_CC=$CC
3546 # Extract the first word of "gcc", so it can be a program name with args.
3547 set dummy gcc; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 if test -n "$ac_ct_CC"; then
3554 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3555 else
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3558 do
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563 ac_cv_prog_ac_ct_CC="gcc"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 break 2
3566 fi
3567 done
3568 done
3569 IFS=$as_save_IFS
3570
3571 fi
3572 fi
3573 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3574 if test -n "$ac_ct_CC"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3576 $as_echo "$ac_ct_CC" >&6; }
3577 else
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3580 fi
3581
3582 if test "x$ac_ct_CC" = x; then
3583 CC=""
3584 else
3585 case $cross_compiling:$ac_tool_warned in
3586 yes:)
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589 ac_tool_warned=yes ;;
3590 esac
3591 CC=$ac_ct_CC
3592 fi
3593 else
3594 CC="$ac_cv_prog_CC"
3595 fi
3596
3597 if test -z "$CC"; then
3598 if test -n "$ac_tool_prefix"; then
3599 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3600 set dummy ${ac_tool_prefix}cc; ac_word=$2
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 $as_echo_n "checking for $ac_word... " >&6; }
3603 if test "${ac_cv_prog_CC+set}" = set; then :
3604 $as_echo_n "(cached) " >&6
3605 else
3606 if test -n "$CC"; then
3607 ac_cv_prog_CC="$CC" # Let the user override the test.
3608 else
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3611 do
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3616 ac_cv_prog_CC="${ac_tool_prefix}cc"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3619 fi
3620 done
3621 done
3622 IFS=$as_save_IFS
3623
3624 fi
3625 fi
3626 CC=$ac_cv_prog_CC
3627 if test -n "$CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3629 $as_echo "$CC" >&6; }
3630 else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3633 fi
3634
3635
3636 fi
3637 fi
3638 if test -z "$CC"; then
3639 # Extract the first word of "cc", so it can be a program name with args.
3640 set dummy cc; ac_word=$2
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642 $as_echo_n "checking for $ac_word... " >&6; }
3643 if test "${ac_cv_prog_CC+set}" = set; then :
3644 $as_echo_n "(cached) " >&6
3645 else
3646 if test -n "$CC"; then
3647 ac_cv_prog_CC="$CC" # Let the user override the test.
3648 else
3649 ac_prog_rejected=no
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH
3652 do
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3658 ac_prog_rejected=yes
3659 continue
3660 fi
3661 ac_cv_prog_CC="cc"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3664 fi
3665 done
3666 done
3667 IFS=$as_save_IFS
3668
3669 if test $ac_prog_rejected = yes; then
3670 # We found a bogon in the path, so make sure we never use it.
3671 set dummy $ac_cv_prog_CC
3672 shift
3673 if test $# != 0; then
3674 # We chose a different compiler from the bogus one.
3675 # However, it has the same basename, so the bogon will be chosen
3676 # first if we set CC to just the basename; use the full file name.
3677 shift
3678 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3679 fi
3680 fi
3681 fi
3682 fi
3683 CC=$ac_cv_prog_CC
3684 if test -n "$CC"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3686 $as_echo "$CC" >&6; }
3687 else
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3690 fi
3691
3692
3693 fi
3694 if test -z "$CC"; then
3695 if test -n "$ac_tool_prefix"; then
3696 for ac_prog in cl.exe
3697 do
3698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 $as_echo_n "checking for $ac_word... " >&6; }
3702 if test "${ac_cv_prog_CC+set}" = set; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 if test -n "$CC"; then
3706 ac_cv_prog_CC="$CC" # Let the user override the test.
3707 else
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3710 do
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3715 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 break 2
3718 fi
3719 done
3720 done
3721 IFS=$as_save_IFS
3722
3723 fi
3724 fi
3725 CC=$ac_cv_prog_CC
3726 if test -n "$CC"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 $as_echo "$CC" >&6; }
3729 else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3732 fi
3733
3734
3735 test -n "$CC" && break
3736 done
3737 fi
3738 if test -z "$CC"; then
3739 ac_ct_CC=$CC
3740 for ac_prog in cl.exe
3741 do
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743 set dummy $ac_prog; ac_word=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 if test -n "$ac_ct_CC"; then
3750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 ac_cv_prog_ac_ct_CC="$ac_prog"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 break 2
3762 fi
3763 done
3764 done
3765 IFS=$as_save_IFS
3766
3767 fi
3768 fi
3769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3770 if test -n "$ac_ct_CC"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3772 $as_echo "$ac_ct_CC" >&6; }
3773 else
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3776 fi
3777
3778
3779 test -n "$ac_ct_CC" && break
3780 done
3781
3782 if test "x$ac_ct_CC" = x; then
3783 CC=""
3784 else
3785 case $cross_compiling:$ac_tool_warned in
3786 yes:)
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3789 ac_tool_warned=yes ;;
3790 esac
3791 CC=$ac_ct_CC
3792 fi
3793 fi
3794
3795 fi
3796
3797
3798 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 as_fn_error $? "no acceptable C compiler found in \$PATH
3801 See \`config.log' for more details" "$LINENO" 5 ; }
3802
3803 # Provide some information about the compiler.
3804 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3805 set X $ac_compile
3806 ac_compiler=$2
3807 for ac_option in --version -v -V -qversion; do
3808 { { ac_try="$ac_compiler $ac_option >&5"
3809 case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812 esac
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3816 ac_status=$?
3817 if test -s conftest.err; then
3818 sed '10a\
3819 ... rest of stderr output deleted ...
3820 10q' conftest.err >conftest.er1
3821 cat conftest.er1 >&5
3822 fi
3823 rm -f conftest.er1 conftest.err
3824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825 test $ac_status = 0; }
3826 done
3827
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3830
3831 int
3832 main ()
3833 {
3834
3835 ;
3836 return 0;
3837 }
3838 _ACEOF
3839 ac_clean_files_save=$ac_clean_files
3840 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3841 # Try to create an executable without -o first, disregard a.out.
3842 # It will help us diagnose broken compilers, and finding out an intuition
3843 # of exeext.
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3845 $as_echo_n "checking whether the C compiler works... " >&6; }
3846 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3847
3848 # The possible output files:
3849 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3850
3851 ac_rmfiles=
3852 for ac_file in $ac_files
3853 do
3854 case $ac_file in
3855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3856 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3857 esac
3858 done
3859 rm -f $ac_rmfiles
3860
3861 if { { ac_try="$ac_link_default"
3862 case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865 esac
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_link_default") 2>&5
3869 ac_status=$?
3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871 test $ac_status = 0; }; then :
3872 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3873 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3874 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3875 # so that the user can short-circuit this test for compilers unknown to
3876 # Autoconf.
3877 for ac_file in $ac_files ''
3878 do
3879 test -f "$ac_file" || continue
3880 case $ac_file in
3881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3882 ;;
3883 [ab].out )
3884 # We found the default executable, but exeext='' is most
3885 # certainly right.
3886 break;;
3887 *.* )
3888 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3889 then :; else
3890 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3891 fi
3892 # We set ac_cv_exeext here because the later test for it is not
3893 # safe: cross compilers may not add the suffix if given an `-o'
3894 # argument, so we may need to know it at that point already.
3895 # Even if this section looks crufty: it has the advantage of
3896 # actually working.
3897 break;;
3898 * )
3899 break;;
3900 esac
3901 done
3902 test "$ac_cv_exeext" = no && ac_cv_exeext=
3903
3904 else
3905 ac_file=''
3906 fi
3907 if test -z "$ac_file"; then :
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 $as_echo "no" >&6; }
3910 $as_echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3912
3913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3915 as_fn_error 77 "C compiler cannot create executables
3916 See \`config.log' for more details" "$LINENO" 5 ; }
3917 else
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3919 $as_echo "yes" >&6; }
3920 fi
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3922 $as_echo_n "checking for C compiler default output file name... " >&6; }
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3924 $as_echo "$ac_file" >&6; }
3925 ac_exeext=$ac_cv_exeext
3926
3927 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3928 ac_clean_files=$ac_clean_files_save
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3930 $as_echo_n "checking for suffix of executables... " >&6; }
3931 if { { ac_try="$ac_link"
3932 case "(($ac_try" in
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3935 esac
3936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937 $as_echo "$ac_try_echo"; } >&5
3938 (eval "$ac_link") 2>&5
3939 ac_status=$?
3940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941 test $ac_status = 0; }; then :
3942 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3943 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3944 # work properly (i.e., refer to `conftest.exe'), while it won't with
3945 # `rm'.
3946 for ac_file in conftest.exe conftest conftest.*; do
3947 test -f "$ac_file" || continue
3948 case $ac_file in
3949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3950 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3951 break;;
3952 * ) break;;
3953 esac
3954 done
3955 else
3956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3958 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3959 See \`config.log' for more details" "$LINENO" 5 ; }
3960 fi
3961 rm -f conftest conftest$ac_cv_exeext
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3963 $as_echo "$ac_cv_exeext" >&6; }
3964
3965 rm -f conftest.$ac_ext
3966 EXEEXT=$ac_cv_exeext
3967 ac_exeext=$EXEEXT
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3970 #include <stdio.h>
3971 int
3972 main ()
3973 {
3974 FILE *f = fopen ("conftest.out", "w");
3975 return ferror (f) || fclose (f) != 0;
3976
3977 ;
3978 return 0;
3979 }
3980 _ACEOF
3981 ac_clean_files="$ac_clean_files conftest.out"
3982 # Check that the compiler produces executables we can run. If not, either
3983 # the compiler is broken, or we cross compile.
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3985 $as_echo_n "checking whether we are cross compiling... " >&6; }
3986 if test "$cross_compiling" != yes; then
3987 { { ac_try="$ac_link"
3988 case "(($ac_try" in
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3991 esac
3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993 $as_echo "$ac_try_echo"; } >&5
3994 (eval "$ac_link") 2>&5
3995 ac_status=$?
3996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997 test $ac_status = 0; }
3998 if { ac_try='./conftest$ac_cv_exeext'
3999 { { case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4002 esac
4003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4004 $as_echo "$ac_try_echo"; } >&5
4005 (eval "$ac_try") 2>&5
4006 ac_status=$?
4007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4008 test $ac_status = 0; }; }; then
4009 cross_compiling=no
4010 else
4011 if test "$cross_compiling" = maybe; then
4012 cross_compiling=yes
4013 else
4014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016 as_fn_error $? "cannot run C compiled programs.
4017 If you meant to cross compile, use \`--host'.
4018 See \`config.log' for more details" "$LINENO" 5 ; }
4019 fi
4020 fi
4021 fi
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4023 $as_echo "$cross_compiling" >&6; }
4024
4025 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4026 ac_clean_files=$ac_clean_files_save
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4028 $as_echo_n "checking for suffix of object files... " >&6; }
4029 if test "${ac_cv_objext+set}" = set; then :
4030 $as_echo_n "(cached) " >&6
4031 else
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4034
4035 int
4036 main ()
4037 {
4038
4039 ;
4040 return 0;
4041 }
4042 _ACEOF
4043 rm -f conftest.o conftest.obj
4044 if { { ac_try="$ac_compile"
4045 case "(($ac_try" in
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4048 esac
4049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4050 $as_echo "$ac_try_echo"; } >&5
4051 (eval "$ac_compile") 2>&5
4052 ac_status=$?
4053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4054 test $ac_status = 0; }; then :
4055 for ac_file in conftest.o conftest.obj conftest.*; do
4056 test -f "$ac_file" || continue;
4057 case $ac_file in
4058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4059 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4060 break;;
4061 esac
4062 done
4063 else
4064 $as_echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4066
4067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4069 as_fn_error $? "cannot compute suffix of object files: cannot compile
4070 See \`config.log' for more details" "$LINENO" 5 ; }
4071 fi
4072 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4073 fi
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4075 $as_echo "$ac_cv_objext" >&6; }
4076 OBJEXT=$ac_cv_objext
4077 ac_objext=$OBJEXT
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4079 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4080 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4085
4086 int
4087 main ()
4088 {
4089 #ifndef __GNUC__
4090 choke me
4091 #endif
4092
4093 ;
4094 return 0;
4095 }
4096 _ACEOF
4097 if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_compiler_gnu=yes
4099 else
4100 ac_compiler_gnu=no
4101 fi
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4104
4105 fi
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4107 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4108 if test $ac_compiler_gnu = yes; then
4109 GCC=yes
4110 else
4111 GCC=
4112 fi
4113 ac_test_CFLAGS=${CFLAGS+set}
4114 ac_save_CFLAGS=$CFLAGS
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4116 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4117 if test "${ac_cv_prog_cc_g+set}" = set; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 ac_save_c_werror_flag=$ac_c_werror_flag
4121 ac_c_werror_flag=yes
4122 ac_cv_prog_cc_g=no
4123 CFLAGS="-g"
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126
4127 int
4128 main ()
4129 {
4130
4131 ;
4132 return 0;
4133 }
4134 _ACEOF
4135 if ac_fn_c_try_compile "$LINENO"; then :
4136 ac_cv_prog_cc_g=yes
4137 else
4138 CFLAGS=""
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141
4142 int
4143 main ()
4144 {
4145
4146 ;
4147 return 0;
4148 }
4149 _ACEOF
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151
4152 else
4153 ac_c_werror_flag=$ac_save_c_werror_flag
4154 CFLAGS="-g"
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157
4158 int
4159 main ()
4160 {
4161
4162 ;
4163 return 0;
4164 }
4165 _ACEOF
4166 if ac_fn_c_try_compile "$LINENO"; then :
4167 ac_cv_prog_cc_g=yes
4168 fi
4169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 fi
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 fi
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 ac_c_werror_flag=$ac_save_c_werror_flag
4175 fi
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4177 $as_echo "$ac_cv_prog_cc_g" >&6; }
4178 if test "$ac_test_CFLAGS" = set; then
4179 CFLAGS=$ac_save_CFLAGS
4180 elif test $ac_cv_prog_cc_g = yes; then
4181 if test "$GCC" = yes; then
4182 CFLAGS="-g -O2"
4183 else
4184 CFLAGS="-g"
4185 fi
4186 else
4187 if test "$GCC" = yes; then
4188 CFLAGS="-O2"
4189 else
4190 CFLAGS=
4191 fi
4192 fi
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4194 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4195 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4196 $as_echo_n "(cached) " >&6
4197 else
4198 ac_cv_prog_cc_c89=no
4199 ac_save_CC=$CC
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202 #include <stdarg.h>
4203 #include <stdio.h>
4204 #include <sys/types.h>
4205 #include <sys/stat.h>
4206 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4207 struct buf { int x; };
4208 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4209 static char *e (p, i)
4210 char **p;
4211 int i;
4212 {
4213 return p[i];
4214 }
4215 static char *f (char * (*g) (char **, int), char **p, ...)
4216 {
4217 char *s;
4218 va_list v;
4219 va_start (v,p);
4220 s = g (p, va_arg (v,int));
4221 va_end (v);
4222 return s;
4223 }
4224
4225 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4226 function prototypes and stuff, but not '\xHH' hex character constants.
4227 These don't provoke an error unfortunately, instead are silently treated
4228 as 'x'. The following induces an error, until -std is added to get
4229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4230 array size at least. It's necessary to write '\x00'==0 to get something
4231 that's true only with -std. */
4232 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4233
4234 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4235 inside strings and character constants. */
4236 #define FOO(x) 'x'
4237 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4238
4239 int test (int i, double x);
4240 struct s1 {int (*f) (int a);};
4241 struct s2 {int (*f) (double a);};
4242 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4243 int argc;
4244 char **argv;
4245 int
4246 main ()
4247 {
4248 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4249 ;
4250 return 0;
4251 }
4252 _ACEOF
4253 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4254 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4255 do
4256 CC="$ac_save_CC $ac_arg"
4257 if ac_fn_c_try_compile "$LINENO"; then :
4258 ac_cv_prog_cc_c89=$ac_arg
4259 fi
4260 rm -f core conftest.err conftest.$ac_objext
4261 test "x$ac_cv_prog_cc_c89" != "xno" && break
4262 done
4263 rm -f conftest.$ac_ext
4264 CC=$ac_save_CC
4265
4266 fi
4267 # AC_CACHE_VAL
4268 case "x$ac_cv_prog_cc_c89" in
4269 x)
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4271 $as_echo "none needed" >&6; } ;;
4272 xno)
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4274 $as_echo "unsupported" >&6; } ;;
4275 *)
4276 CC="$CC $ac_cv_prog_cc_c89"
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4278 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4279 esac
4280 if test "x$ac_cv_prog_cc_c89" != xno; then :
4281
4282 fi
4283
4284 ac_ext=c
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289
4290
4291 # On Suns, sometimes $CPP names a directory.
4292 if test -n "$CPP" && test -d "$CPP"; then
4293 CPP=
4294 fi
4295
4296 ## If not using gcc, and on Solaris, and no CPP specified, see if
4297 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4298 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4299 test x"$CPP" = x; then
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4301 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4302
4303 if test "${emacs_cv_sunpro_c+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308
4309 int
4310 main ()
4311 {
4312 #ifndef __SUNPRO_C
4313 fail;
4314 #endif
4315
4316 ;
4317 return 0;
4318 }
4319 _ACEOF
4320 if ac_fn_c_try_link "$LINENO"; then :
4321 emacs_cv_sunpro_c=yes
4322 else
4323 emacs_cv_sunpro_c=no
4324 fi
4325 rm -f core conftest.err conftest.$ac_objext \
4326 conftest$ac_exeext conftest.$ac_ext
4327 fi
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4330 $as_echo "$emacs_cv_sunpro_c" >&6; }
4331
4332 if test x"$emacs_cv_sunpro_c" = xyes; then
4333 NON_GNU_CPP="$CC -E -Xs"
4334 fi
4335 fi
4336
4337 #### Some systems specify a CPP to use unless we are using GCC.
4338 #### Now that we know whether we are using GCC, we can decide whether
4339 #### to use that one.
4340 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4341 then
4342 CPP="$NON_GNU_CPP"
4343 fi
4344
4345 #### Some systems specify a CC to use unless we are using GCC.
4346 #### Now that we know whether we are using GCC, we can decide whether
4347 #### to use that one.
4348 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4349 test x$cc_specified != xyes
4350 then
4351 CC="$NON_GNU_CC"
4352 fi
4353
4354 if test x$GCC = xyes; then
4355 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4356 else
4357 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4358 fi
4359
4360 ac_ext=c
4361 ac_cpp='$CPP $CPPFLAGS'
4362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4366 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4367 # On Suns, sometimes $CPP names a directory.
4368 if test -n "$CPP" && test -d "$CPP"; then
4369 CPP=
4370 fi
4371 if test -z "$CPP"; then
4372 if test "${ac_cv_prog_CPP+set}" = set; then :
4373 $as_echo_n "(cached) " >&6
4374 else
4375 # Double quotes because CPP needs to be expanded
4376 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4377 do
4378 ac_preproc_ok=false
4379 for ac_c_preproc_warn_flag in '' yes
4380 do
4381 # Use a header file that comes with gcc, so configuring glibc
4382 # with a fresh cross-compiler works.
4383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4384 # <limits.h> exists even on freestanding compilers.
4385 # On the NeXT, cc -E runs the code through the compiler's parser,
4386 # not just through cpp. "Syntax error" is here to catch this case.
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 #ifdef __STDC__
4390 # include <limits.h>
4391 #else
4392 # include <assert.h>
4393 #endif
4394 Syntax error
4395 _ACEOF
4396 if ac_fn_c_try_cpp "$LINENO"; then :
4397
4398 else
4399 # Broken: fails on valid input.
4400 continue
4401 fi
4402 rm -f conftest.err conftest.i conftest.$ac_ext
4403
4404 # OK, works on sane cases. Now check whether nonexistent headers
4405 # can be detected and how.
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408 #include <ac_nonexistent.h>
4409 _ACEOF
4410 if ac_fn_c_try_cpp "$LINENO"; then :
4411 # Broken: success on invalid input.
4412 continue
4413 else
4414 # Passes both tests.
4415 ac_preproc_ok=:
4416 break
4417 fi
4418 rm -f conftest.err conftest.i conftest.$ac_ext
4419
4420 done
4421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422 rm -f conftest.i conftest.err conftest.$ac_ext
4423 if $ac_preproc_ok; then :
4424 break
4425 fi
4426
4427 done
4428 ac_cv_prog_CPP=$CPP
4429
4430 fi
4431 CPP=$ac_cv_prog_CPP
4432 else
4433 ac_cv_prog_CPP=$CPP
4434 fi
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4436 $as_echo "$CPP" >&6; }
4437 ac_preproc_ok=false
4438 for ac_c_preproc_warn_flag in '' yes
4439 do
4440 # Use a header file that comes with gcc, so configuring glibc
4441 # with a fresh cross-compiler works.
4442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4443 # <limits.h> exists even on freestanding compilers.
4444 # On the NeXT, cc -E runs the code through the compiler's parser,
4445 # not just through cpp. "Syntax error" is here to catch this case.
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4448 #ifdef __STDC__
4449 # include <limits.h>
4450 #else
4451 # include <assert.h>
4452 #endif
4453 Syntax error
4454 _ACEOF
4455 if ac_fn_c_try_cpp "$LINENO"; then :
4456
4457 else
4458 # Broken: fails on valid input.
4459 continue
4460 fi
4461 rm -f conftest.err conftest.i conftest.$ac_ext
4462
4463 # OK, works on sane cases. Now check whether nonexistent headers
4464 # can be detected and how.
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467 #include <ac_nonexistent.h>
4468 _ACEOF
4469 if ac_fn_c_try_cpp "$LINENO"; then :
4470 # Broken: success on invalid input.
4471 continue
4472 else
4473 # Passes both tests.
4474 ac_preproc_ok=:
4475 break
4476 fi
4477 rm -f conftest.err conftest.i conftest.$ac_ext
4478
4479 done
4480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4481 rm -f conftest.i conftest.err conftest.$ac_ext
4482 if $ac_preproc_ok; then :
4483
4484 else
4485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4487 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4488 See \`config.log' for more details" "$LINENO" 5 ; }
4489 fi
4490
4491 ac_ext=c
4492 ac_cpp='$CPP $CPPFLAGS'
4493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496
4497
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4499 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4500 if test "${ac_cv_path_GREP+set}" = set; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if test -z "$GREP"; then
4504 ac_path_GREP_found=false
4505 # Loop through the user's path and test for each of PROGNAME-LIST
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4508 do
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_prog in grep ggrep; do
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4514 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4515 # Check for GNU ac_path_GREP and select it if it is found.
4516 # Check for GNU $ac_path_GREP
4517 case `"$ac_path_GREP" --version 2>&1` in
4518 *GNU*)
4519 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4520 *)
4521 ac_count=0
4522 $as_echo_n 0123456789 >"conftest.in"
4523 while :
4524 do
4525 cat "conftest.in" "conftest.in" >"conftest.tmp"
4526 mv "conftest.tmp" "conftest.in"
4527 cp "conftest.in" "conftest.nl"
4528 $as_echo 'GREP' >> "conftest.nl"
4529 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4531 as_fn_arith $ac_count + 1 && ac_count=$as_val
4532 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4533 # Best one so far, save it but keep looking for a better one
4534 ac_cv_path_GREP="$ac_path_GREP"
4535 ac_path_GREP_max=$ac_count
4536 fi
4537 # 10*(2^10) chars as input seems more than enough
4538 test $ac_count -gt 10 && break
4539 done
4540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4541 esac
4542
4543 $ac_path_GREP_found && break 3
4544 done
4545 done
4546 done
4547 IFS=$as_save_IFS
4548 if test -z "$ac_cv_path_GREP"; then
4549 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4550 fi
4551 else
4552 ac_cv_path_GREP=$GREP
4553 fi
4554
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4557 $as_echo "$ac_cv_path_GREP" >&6; }
4558 GREP="$ac_cv_path_GREP"
4559
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4562 $as_echo_n "checking for egrep... " >&6; }
4563 if test "${ac_cv_path_EGREP+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4567 then ac_cv_path_EGREP="$GREP -E"
4568 else
4569 if test -z "$EGREP"; then
4570 ac_path_EGREP_found=false
4571 # Loop through the user's path and test for each of PROGNAME-LIST
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4574 do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_prog in egrep; do
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4580 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4581 # Check for GNU ac_path_EGREP and select it if it is found.
4582 # Check for GNU $ac_path_EGREP
4583 case `"$ac_path_EGREP" --version 2>&1` in
4584 *GNU*)
4585 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4586 *)
4587 ac_count=0
4588 $as_echo_n 0123456789 >"conftest.in"
4589 while :
4590 do
4591 cat "conftest.in" "conftest.in" >"conftest.tmp"
4592 mv "conftest.tmp" "conftest.in"
4593 cp "conftest.in" "conftest.nl"
4594 $as_echo 'EGREP' >> "conftest.nl"
4595 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4597 as_fn_arith $ac_count + 1 && ac_count=$as_val
4598 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4599 # Best one so far, save it but keep looking for a better one
4600 ac_cv_path_EGREP="$ac_path_EGREP"
4601 ac_path_EGREP_max=$ac_count
4602 fi
4603 # 10*(2^10) chars as input seems more than enough
4604 test $ac_count -gt 10 && break
4605 done
4606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4607 esac
4608
4609 $ac_path_EGREP_found && break 3
4610 done
4611 done
4612 done
4613 IFS=$as_save_IFS
4614 if test -z "$ac_cv_path_EGREP"; then
4615 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4616 fi
4617 else
4618 ac_cv_path_EGREP=$EGREP
4619 fi
4620
4621 fi
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4624 $as_echo "$ac_cv_path_EGREP" >&6; }
4625 EGREP="$ac_cv_path_EGREP"
4626
4627
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4629 $as_echo_n "checking for ANSI C header files... " >&6; }
4630 if test "${ac_cv_header_stdc+set}" = set; then :
4631 $as_echo_n "(cached) " >&6
4632 else
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4635 #include <stdlib.h>
4636 #include <stdarg.h>
4637 #include <string.h>
4638 #include <float.h>
4639
4640 int
4641 main ()
4642 {
4643
4644 ;
4645 return 0;
4646 }
4647 _ACEOF
4648 if ac_fn_c_try_compile "$LINENO"; then :
4649 ac_cv_header_stdc=yes
4650 else
4651 ac_cv_header_stdc=no
4652 fi
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654
4655 if test $ac_cv_header_stdc = yes; then
4656 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4659 #include <string.h>
4660
4661 _ACEOF
4662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4663 $EGREP "memchr" >/dev/null 2>&1; then :
4664
4665 else
4666 ac_cv_header_stdc=no
4667 fi
4668 rm -f conftest*
4669
4670 fi
4671
4672 if test $ac_cv_header_stdc = yes; then
4673 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676 #include <stdlib.h>
4677
4678 _ACEOF
4679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4680 $EGREP "free" >/dev/null 2>&1; then :
4681
4682 else
4683 ac_cv_header_stdc=no
4684 fi
4685 rm -f conftest*
4686
4687 fi
4688
4689 if test $ac_cv_header_stdc = yes; then
4690 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4691 if test "$cross_compiling" = yes; then :
4692 :
4693 else
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4696 #include <ctype.h>
4697 #include <stdlib.h>
4698 #if ((' ' & 0x0FF) == 0x020)
4699 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4700 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4701 #else
4702 # define ISLOWER(c) \
4703 (('a' <= (c) && (c) <= 'i') \
4704 || ('j' <= (c) && (c) <= 'r') \
4705 || ('s' <= (c) && (c) <= 'z'))
4706 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4707 #endif
4708
4709 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4710 int
4711 main ()
4712 {
4713 int i;
4714 for (i = 0; i < 256; i++)
4715 if (XOR (islower (i), ISLOWER (i))
4716 || toupper (i) != TOUPPER (i))
4717 return 2;
4718 return 0;
4719 }
4720 _ACEOF
4721 if ac_fn_c_try_run "$LINENO"; then :
4722
4723 else
4724 ac_cv_header_stdc=no
4725 fi
4726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4727 conftest.$ac_objext conftest.beam conftest.$ac_ext
4728 fi
4729
4730 fi
4731 fi
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4733 $as_echo "$ac_cv_header_stdc" >&6; }
4734 if test $ac_cv_header_stdc = yes; then
4735
4736 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4737
4738 fi
4739
4740 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4741 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4742 inttypes.h stdint.h unistd.h
4743 do :
4744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4745 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4746 "
4747 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4748 cat >>confdefs.h <<_ACEOF
4749 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4750 _ACEOF
4751
4752 fi
4753
4754 done
4755
4756
4757
4758 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4759 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4760 MINIX=yes
4761 else
4762 MINIX=
4763 fi
4764
4765
4766 if test "$MINIX" = yes; then
4767
4768 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4769
4770
4771 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4772
4773
4774 $as_echo "#define _MINIX 1" >>confdefs.h
4775
4776 fi
4777
4778
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4780 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4781 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786
4787 # define __EXTENSIONS__ 1
4788 $ac_includes_default
4789 int
4790 main ()
4791 {
4792
4793 ;
4794 return 0;
4795 }
4796 _ACEOF
4797 if ac_fn_c_try_compile "$LINENO"; then :
4798 ac_cv_safe_to_define___extensions__=yes
4799 else
4800 ac_cv_safe_to_define___extensions__=no
4801 fi
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 fi
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4805 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4806 test $ac_cv_safe_to_define___extensions__ = yes &&
4807 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4808
4809 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4810
4811 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4812
4813 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4814
4815 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4816
4817
4818
4819 ### Use -Wno-pointer-sign if the compiler supports it
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4821 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4822 SAVE_CFLAGS="$CFLAGS"
4823 CFLAGS="$CFLAGS -Wno-pointer-sign"
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4826
4827 int
4828 main ()
4829 {
4830
4831 ;
4832 return 0;
4833 }
4834 _ACEOF
4835 if ac_fn_c_try_compile "$LINENO"; then :
4836 has_option=yes
4837 else
4838 has_option=no
4839 fi
4840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841 if test $has_option = yes; then
4842 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4843 fi
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4845 $as_echo "$has_option" >&6; }
4846 CFLAGS="$SAVE_CFLAGS"
4847 unset has_option
4848 unset SAVE_CFLAGS
4849
4850 ### Use -Wdeclaration-after-statement if the compiler supports it
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4852 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4853 SAVE_CFLAGS="$CFLAGS"
4854 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4857
4858 int
4859 main ()
4860 {
4861
4862 ;
4863 return 0;
4864 }
4865 _ACEOF
4866 if ac_fn_c_try_compile "$LINENO"; then :
4867 has_option=yes
4868 else
4869 has_option=no
4870 fi
4871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872 if test $has_option = yes; then
4873 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4874 fi
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4876 $as_echo "$has_option" >&6; }
4877 CFLAGS="$SAVE_CFLAGS"
4878 unset has_option
4879 unset SAVE_CFLAGS
4880
4881 ### Use -Wold-style-definition if the compiler supports it
4882 # This can be removed when conversion to standard C is finished.
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4884 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4885 SAVE_CFLAGS="$CFLAGS"
4886 CFLAGS="$CFLAGS -Wold-style-definition"
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889
4890 int
4891 main ()
4892 {
4893
4894 ;
4895 return 0;
4896 }
4897 _ACEOF
4898 if ac_fn_c_try_compile "$LINENO"; then :
4899 has_option=yes
4900 else
4901 has_option=no
4902 fi
4903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904 if test $has_option = yes; then
4905 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4906 fi
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4908 $as_echo "$has_option" >&6; }
4909 CFLAGS="$SAVE_CFLAGS"
4910 unset has_option
4911 unset SAVE_CFLAGS
4912
4913 ### Use -Wimplicit-function-declaration if the compiler supports it
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4915 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4916 SAVE_CFLAGS="$CFLAGS"
4917 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919 /* end confdefs.h. */
4920
4921 int
4922 main ()
4923 {
4924
4925 ;
4926 return 0;
4927 }
4928 _ACEOF
4929 if ac_fn_c_try_compile "$LINENO"; then :
4930 has_option=yes
4931 else
4932 has_option=no
4933 fi
4934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935 if test $has_option = yes; then
4936 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4939 $as_echo "$has_option" >&6; }
4940 CFLAGS="$SAVE_CFLAGS"
4941 unset has_option
4942 unset SAVE_CFLAGS
4943
4944
4945
4946
4947 #### Some other nice autoconf tests.
4948
4949 ac_ext=c
4950 ac_cpp='$CPP $CPPFLAGS'
4951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4955 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4956 # On Suns, sometimes $CPP names a directory.
4957 if test -n "$CPP" && test -d "$CPP"; then
4958 CPP=
4959 fi
4960 if test -z "$CPP"; then
4961 if test "${ac_cv_prog_CPP+set}" = set; then :
4962 $as_echo_n "(cached) " >&6
4963 else
4964 # Double quotes because CPP needs to be expanded
4965 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4966 do
4967 ac_preproc_ok=false
4968 for ac_c_preproc_warn_flag in '' yes
4969 do
4970 # Use a header file that comes with gcc, so configuring glibc
4971 # with a fresh cross-compiler works.
4972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4973 # <limits.h> exists even on freestanding compilers.
4974 # On the NeXT, cc -E runs the code through the compiler's parser,
4975 # not just through cpp. "Syntax error" is here to catch this case.
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4978 #ifdef __STDC__
4979 # include <limits.h>
4980 #else
4981 # include <assert.h>
4982 #endif
4983 Syntax error
4984 _ACEOF
4985 if ac_fn_c_try_cpp "$LINENO"; then :
4986
4987 else
4988 # Broken: fails on valid input.
4989 continue
4990 fi
4991 rm -f conftest.err conftest.i conftest.$ac_ext
4992
4993 # OK, works on sane cases. Now check whether nonexistent headers
4994 # can be detected and how.
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4997 #include <ac_nonexistent.h>
4998 _ACEOF
4999 if ac_fn_c_try_cpp "$LINENO"; then :
5000 # Broken: success on invalid input.
5001 continue
5002 else
5003 # Passes both tests.
5004 ac_preproc_ok=:
5005 break
5006 fi
5007 rm -f conftest.err conftest.i conftest.$ac_ext
5008
5009 done
5010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5011 rm -f conftest.i conftest.err conftest.$ac_ext
5012 if $ac_preproc_ok; then :
5013 break
5014 fi
5015
5016 done
5017 ac_cv_prog_CPP=$CPP
5018
5019 fi
5020 CPP=$ac_cv_prog_CPP
5021 else
5022 ac_cv_prog_CPP=$CPP
5023 fi
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5025 $as_echo "$CPP" >&6; }
5026 ac_preproc_ok=false
5027 for ac_c_preproc_warn_flag in '' yes
5028 do
5029 # Use a header file that comes with gcc, so configuring glibc
5030 # with a fresh cross-compiler works.
5031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5032 # <limits.h> exists even on freestanding compilers.
5033 # On the NeXT, cc -E runs the code through the compiler's parser,
5034 # not just through cpp. "Syntax error" is here to catch this case.
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5037 #ifdef __STDC__
5038 # include <limits.h>
5039 #else
5040 # include <assert.h>
5041 #endif
5042 Syntax error
5043 _ACEOF
5044 if ac_fn_c_try_cpp "$LINENO"; then :
5045
5046 else
5047 # Broken: fails on valid input.
5048 continue
5049 fi
5050 rm -f conftest.err conftest.i conftest.$ac_ext
5051
5052 # OK, works on sane cases. Now check whether nonexistent headers
5053 # can be detected and how.
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5056 #include <ac_nonexistent.h>
5057 _ACEOF
5058 if ac_fn_c_try_cpp "$LINENO"; then :
5059 # Broken: success on invalid input.
5060 continue
5061 else
5062 # Passes both tests.
5063 ac_preproc_ok=:
5064 break
5065 fi
5066 rm -f conftest.err conftest.i conftest.$ac_ext
5067
5068 done
5069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5070 rm -f conftest.i conftest.err conftest.$ac_ext
5071 if $ac_preproc_ok; then :
5072
5073 else
5074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5076 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5077 See \`config.log' for more details" "$LINENO" 5 ; }
5078 fi
5079
5080 ac_ext=c
5081 ac_cpp='$CPP $CPPFLAGS'
5082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5085
5086 # Find a good install program. We prefer a C program (faster),
5087 # so one script is as good as another. But avoid the broken or
5088 # incompatible versions:
5089 # SysV /etc/install, /usr/sbin/install
5090 # SunOS /usr/etc/install
5091 # IRIX /sbin/install
5092 # AIX /bin/install
5093 # AmigaOS /C/install, which installs bootblocks on floppy discs
5094 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5095 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5096 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5097 # OS/2's system install, which has a completely different semantic
5098 # ./install, which can be erroneously created by make from ./install.sh.
5099 # Reject install programs that cannot install multiple files.
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5101 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5102 if test -z "$INSTALL"; then
5103 if test "${ac_cv_path_install+set}" = set; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5108 do
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 # Account for people who put trailing slashes in PATH elements.
5112 case $as_dir/ in #((
5113 ./ | .// | /[cC]/* | \
5114 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5115 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5116 /usr/ucb/* ) ;;
5117 *)
5118 # OSF1 and SCO ODT 3.0 have their own names for install.
5119 # Don't use installbsd from OSF since it installs stuff as root
5120 # by default.
5121 for ac_prog in ginstall scoinst install; do
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5124 if test $ac_prog = install &&
5125 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5126 # AIX install. It has an incompatible calling convention.
5127 :
5128 elif test $ac_prog = install &&
5129 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5130 # program-specific install script used by HP pwplus--don't use.
5131 :
5132 else
5133 rm -rf conftest.one conftest.two conftest.dir
5134 echo one > conftest.one
5135 echo two > conftest.two
5136 mkdir conftest.dir
5137 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5138 test -s conftest.one && test -s conftest.two &&
5139 test -s conftest.dir/conftest.one &&
5140 test -s conftest.dir/conftest.two
5141 then
5142 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5143 break 3
5144 fi
5145 fi
5146 fi
5147 done
5148 done
5149 ;;
5150 esac
5151
5152 done
5153 IFS=$as_save_IFS
5154
5155 rm -rf conftest.one conftest.two conftest.dir
5156
5157 fi
5158 if test "${ac_cv_path_install+set}" = set; then
5159 INSTALL=$ac_cv_path_install
5160 else
5161 # As a last resort, use the slow shell script. Don't cache a
5162 # value for INSTALL within a source directory, because that will
5163 # break other packages using the cache if that directory is
5164 # removed, or if the value is a relative name.
5165 INSTALL=$ac_install_sh
5166 fi
5167 fi
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5169 $as_echo "$INSTALL" >&6; }
5170
5171 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5172 # It thinks the first close brace ends the variable substitution.
5173 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5174
5175 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5176
5177 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5178
5179 if test "x$RANLIB" = x; then
5180 if test -n "$ac_tool_prefix"; then
5181 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5182 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188 if test -n "$RANLIB"; then
5189 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5190 else
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5193 do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5198 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5201 fi
5202 done
5203 done
5204 IFS=$as_save_IFS
5205
5206 fi
5207 fi
5208 RANLIB=$ac_cv_prog_RANLIB
5209 if test -n "$RANLIB"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5211 $as_echo "$RANLIB" >&6; }
5212 else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5215 fi
5216
5217
5218 fi
5219 if test -z "$ac_cv_prog_RANLIB"; then
5220 ac_ct_RANLIB=$RANLIB
5221 # Extract the first word of "ranlib", so it can be a program name with args.
5222 set dummy ranlib; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 if test -n "$ac_ct_RANLIB"; then
5229 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238 ac_cv_prog_ac_ct_RANLIB="ranlib"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242 done
5243 done
5244 IFS=$as_save_IFS
5245
5246 fi
5247 fi
5248 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5249 if test -n "$ac_ct_RANLIB"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5251 $as_echo "$ac_ct_RANLIB" >&6; }
5252 else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5255 fi
5256
5257 if test "x$ac_ct_RANLIB" = x; then
5258 RANLIB=":"
5259 else
5260 case $cross_compiling:$ac_tool_warned in
5261 yes:)
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5264 ac_tool_warned=yes ;;
5265 esac
5266 RANLIB=$ac_ct_RANLIB
5267 fi
5268 else
5269 RANLIB="$ac_cv_prog_RANLIB"
5270 fi
5271
5272 fi
5273
5274 ## Although we're running on an amd64 kernel, we're actually compiling for
5275 ## the x86 architecture. The user should probably have provided an
5276 ## explicit --build to `configure', but if everything else than the kernel
5277 ## is running in i386 mode, we can help them out.
5278 if test "$machine" = "amdx86-64"; then
5279 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5280 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5281
5282 fi
5283
5284 if test "$ac_cv_have_decl_i386" = "yes"; then
5285 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5286 machine=intel386
5287 machfile="m/${machine}.h"
5288 fi
5289 fi
5290
5291 # Extract the first word of "install-info", so it can be a program name with args.
5292 set dummy install-info; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 case $INSTALL_INFO in
5299 [\\/]* | ?:[\\/]*)
5300 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5301 ;;
5302 *)
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5305 do
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5313 fi
5314 done
5315 done
5316 IFS=$as_save_IFS
5317
5318 ;;
5319 esac
5320 fi
5321 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5322 if test -n "$INSTALL_INFO"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5324 $as_echo "$INSTALL_INFO" >&6; }
5325 else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5328 fi
5329
5330
5331 # Extract the first word of "install-info", so it can be a program name with args.
5332 set dummy install-info; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 case $INSTALL_INFO in
5339 [\\/]* | ?:[\\/]*)
5340 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5341 ;;
5342 *)
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in /usr/sbin
5345 do
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5353 fi
5354 done
5355 done
5356 IFS=$as_save_IFS
5357
5358 ;;
5359 esac
5360 fi
5361 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5362 if test -n "$INSTALL_INFO"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5364 $as_echo "$INSTALL_INFO" >&6; }
5365 else
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5368 fi
5369
5370
5371 # Extract the first word of "install-info", so it can be a program name with args.
5372 set dummy install-info; ac_word=$2
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374 $as_echo_n "checking for $ac_word... " >&6; }
5375 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5376 $as_echo_n "(cached) " >&6
5377 else
5378 case $INSTALL_INFO in
5379 [\\/]* | ?:[\\/]*)
5380 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5381 ;;
5382 *)
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in /sbin
5385 do
5386 IFS=$as_save_IFS
5387 test -z "$as_dir" && as_dir=.
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5390 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5392 break 2
5393 fi
5394 done
5395 done
5396 IFS=$as_save_IFS
5397
5398 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5399 ;;
5400 esac
5401 fi
5402 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5403 if test -n "$INSTALL_INFO"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5405 $as_echo "$INSTALL_INFO" >&6; }
5406 else
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5409 fi
5410
5411
5412 # Extract the first word of "gzip", so it can be a program name with args.
5413 set dummy gzip; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 case $GZIP_PROG in
5420 [\\/]* | ?:[\\/]*)
5421 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5422 ;;
5423 *)
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5426 do
5427 IFS=$as_save_IFS
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5431 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 break 2
5434 fi
5435 done
5436 done
5437 IFS=$as_save_IFS
5438
5439 ;;
5440 esac
5441 fi
5442 GZIP_PROG=$ac_cv_path_GZIP_PROG
5443 if test -n "$GZIP_PROG"; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5445 $as_echo "$GZIP_PROG" >&6; }
5446 else
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5449 fi
5450
5451
5452
5453
5454 ## Need makeinfo >= 4.6 (?) to build the manuals.
5455 # Extract the first word of "makeinfo", so it can be a program name with args.
5456 set dummy makeinfo; ac_word=$2
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 case $MAKEINFO in
5463 [\\/]* | ?:[\\/]*)
5464 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5465 ;;
5466 *)
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5469 do
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5474 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 break 2
5477 fi
5478 done
5479 done
5480 IFS=$as_save_IFS
5481
5482 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5483 ;;
5484 esac
5485 fi
5486 MAKEINFO=$ac_cv_path_MAKEINFO
5487 if test -n "$MAKEINFO"; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5489 $as_echo "$MAKEINFO" >&6; }
5490 else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5493 fi
5494
5495
5496 if test "$MAKEINFO" != "no" && \
5497 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
5498 MAKEINFO=no
5499 fi
5500
5501 ## Makeinfo is unusual. For a released Emacs, the manuals are
5502 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5503 ## therefore in the category of "special tools" not normally required, which
5504 ## configure does not have to check for (eg autoconf itself).
5505 ## In a Bazaar checkout on the other hand, the manuals are not included.
5506 ## So makeinfo is a requirement to build from Bazaar, and configure
5507 ## should test for it as it does for any other build requirement.
5508 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5509 ## with pre-built manuals, from a Bazaar checkout.
5510 if test "$MAKEINFO" = "no"; then
5511 if test "x${with_makeinfo}" = "xno"; then
5512 MAKEINFO=off
5513 elif test ! -e $srcdir/info/emacs; then
5514 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
5515 source tree does not seem to have pre-built manuals in the \`info' directory.
5516 Either install a suitable version of makeinfo, or re-run configure
5517 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5518 fi
5519 fi
5520
5521
5522 if test x$GCC = xyes; then
5523 test "x$GCC_LINK_TEST_OPTIONS" != x && \
5524 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5525 else
5526 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
5527 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5528 fi
5529
5530
5531 late_LDFLAGS=$LDFLAGS
5532 if test x$GCC = xyes; then
5533 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5534 else
5535 LDFLAGS="$LDFLAGS -znocombreloc"
5536 fi
5537
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5539 $as_echo_n "checking for -znocombreloc... " >&6; }
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542
5543 int
5544 main ()
5545 {
5546
5547 ;
5548 return 0;
5549 }
5550 _ACEOF
5551 if ac_fn_c_try_link "$LINENO"; then :
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5553 $as_echo "yes" >&6; }
5554 else
5555 LDFLAGS=$late_LDFLAGS
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5558 fi
5559 rm -f core conftest.err conftest.$ac_objext \
5560 conftest$ac_exeext conftest.$ac_ext
5561
5562
5563 # The value of CPP is a quoted variable reference, so we need to do this
5564 # to get its actual value...
5565 CPP=`eval "echo $CPP"`
5566
5567
5568 CANNOT_DUMP=no
5569 case "$opsys" in
5570 your-opsys-here)
5571 CANNOT_DUMP=yes
5572
5573 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5574
5575 ;;
5576 esac
5577
5578
5579
5580 UNEXEC_OBJ=unexelf.o
5581 case "$opsys" in
5582 # MSDOS uses unexcoff.o
5583 # MSWindows uses unexw32.o
5584 aix4-2)
5585 UNEXEC_OBJ=unexaix.o
5586 ;;
5587 cygwin)
5588 UNEXEC_OBJ=unexcw.o
5589 ;;
5590 darwin)
5591 UNEXEC_OBJ=unexmacosx.o
5592 ;;
5593 hpux10-20 | hpux11)
5594 UNEXEC_OBJ=unexhp9k800.o
5595 ;;
5596 sol2-10)
5597 # Use the Solaris dldump() function, called from unexsol.c, to dump
5598 # emacs, instead of the generic ELF dump code found in unexelf.c.
5599 # The resulting binary has a complete symbol table, and is better
5600 # for debugging and other observability tools (debuggers, pstack, etc).
5601 #
5602 # If you encounter a problem using dldump(), please consider sending
5603 # a message to the OpenSolaris tools-linking mailing list:
5604 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5605 #
5606 # It is likely that dldump() works with older Solaris too, but this has
5607 # not been tested, so for now this change is for Solaris 10 or newer.
5608 UNEXEC_OBJ=unexsol.o
5609 ;;
5610 esac
5611
5612 LD_SWITCH_SYSTEM=
5613 case "$opsys" in
5614 freebsd)
5615 ## Let `ld' find image libs and similar things in /usr/local/lib.
5616 ## The system compiler, GCC, has apparently been modified to not
5617 ## look there, contrary to what a stock GCC would do.
5618 LD_SWITCH_SYSTEM=-L/usr/local/lib
5619 ;;
5620
5621 gnu-linux)
5622 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5623 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5624 ;;
5625
5626 netbsd)
5627 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5628 ;;
5629
5630 openbsd)
5631 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5632 ## otherwise Emacs dumps core on elf systems.
5633 LD_SWITCH_SYSTEM="-Z"
5634 ;;
5635 esac
5636
5637
5638 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5639
5640 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5641 ## which has not been defined yet. When this was handled with cpp,
5642 ## it was expanded to null when configure sourced the s/*.h file.
5643 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5644 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5645 ## (or somesuch), but because it is supposed to go at the _front_
5646 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5647 ## Compare with the gnu-linux case below, which added to the end
5648 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5649 ## LD_SWITCH_SYSTEM_TEMACS.
5650 case "$opsys" in
5651 netbsd|openbsd)
5652 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5653 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5654 esac
5655
5656
5657 C_SWITCH_MACHINE=
5658 if test "$machine" = "alpha"; then
5659 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5660 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5661
5662 fi
5663
5664 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5665 ## With ELF, make sure that all common symbols get allocated to in the
5666 ## data section. Otherwise, the dump of temacs may miss variables in
5667 ## the shared library that have been initialized. For example, with
5668 ## GNU libc, __malloc_initialized would normally be resolved to the
5669 ## shared library's .bss section, which is fatal.
5670 if test "x$GCC" = "xyes"; then
5671 C_SWITCH_MACHINE="-fno-common"
5672 else
5673 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5674 fi
5675 else
5676 UNEXEC_OBJ=unexalpha.o
5677 fi
5678 fi
5679
5680
5681
5682
5683 C_SWITCH_SYSTEM=
5684 ## Some programs in src produce warnings saying certain subprograms
5685 ## are too complex and need a MAXMEM value greater than 2000 for
5686 ## additional optimization. --nils@exp-math.uni-essen.de
5687 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5688 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5689 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5690 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5691
5692
5693
5694 LIBS_SYSTEM=
5695 case "$opsys" in
5696 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5697 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5698
5699 freebsd) LIBS_SYSTEM="-lutil" ;;
5700
5701 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5702
5703 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5704
5705 ## Motif needs -lgen.
5706 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5707 esac
5708
5709
5710
5711 ### Make sure subsequent tests use flags consistent with the build flags.
5712
5713 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5714 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5715 else
5716 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5717 fi
5718
5719
5720
5721 # Check whether --enable-largefile was given.
5722 if test "${enable_largefile+set}" = set; then :
5723 enableval=$enable_largefile;
5724 fi
5725
5726 if test "$enable_largefile" != no; then
5727
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5729 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5730 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 ac_cv_sys_largefile_CC=no
5734 if test "$GCC" != yes; then
5735 ac_save_CC=$CC
5736 while :; do
5737 # IRIX 6.2 and later do not support large files by default,
5738 # so use the C compiler's -n32 option if that helps.
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5741 #include <sys/types.h>
5742 /* Check that off_t can represent 2**63 - 1 correctly.
5743 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5744 since some C++ compilers masquerading as C compilers
5745 incorrectly reject 9223372036854775807. */
5746 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5747 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5748 && LARGE_OFF_T % 2147483647 == 1)
5749 ? 1 : -1];
5750 int
5751 main ()
5752 {
5753
5754 ;
5755 return 0;
5756 }
5757 _ACEOF
5758 if ac_fn_c_try_compile "$LINENO"; then :
5759 break
5760 fi
5761 rm -f core conftest.err conftest.$ac_objext
5762 CC="$CC -n32"
5763 if ac_fn_c_try_compile "$LINENO"; then :
5764 ac_cv_sys_largefile_CC=' -n32'; break
5765 fi
5766 rm -f core conftest.err conftest.$ac_objext
5767 break
5768 done
5769 CC=$ac_save_CC
5770 rm -f conftest.$ac_ext
5771 fi
5772 fi
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5774 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5775 if test "$ac_cv_sys_largefile_CC" != no; then
5776 CC=$CC$ac_cv_sys_largefile_CC
5777 fi
5778
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5780 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5781 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 while :; do
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
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=no; break
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 #define _FILE_OFFSET_BITS 64
5811 #include <sys/types.h>
5812 /* Check that off_t can represent 2**63 - 1 correctly.
5813 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5814 since some C++ compilers masquerading as C compilers
5815 incorrectly reject 9223372036854775807. */
5816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5818 && LARGE_OFF_T % 2147483647 == 1)
5819 ? 1 : -1];
5820 int
5821 main ()
5822 {
5823
5824 ;
5825 return 0;
5826 }
5827 _ACEOF
5828 if ac_fn_c_try_compile "$LINENO"; then :
5829 ac_cv_sys_file_offset_bits=64; break
5830 fi
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 ac_cv_sys_file_offset_bits=unknown
5833 break
5834 done
5835 fi
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5837 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5838 case $ac_cv_sys_file_offset_bits in #(
5839 no | unknown) ;;
5840 *)
5841 cat >>confdefs.h <<_ACEOF
5842 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5843 _ACEOF
5844 ;;
5845 esac
5846 rm -rf conftest*
5847 if test $ac_cv_sys_file_offset_bits = unknown; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5849 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5850 if test "${ac_cv_sys_large_files+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 while :; do
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
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=no; break
5875 fi
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 #define _LARGE_FILES 1
5880 #include <sys/types.h>
5881 /* Check that off_t can represent 2**63 - 1 correctly.
5882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5883 since some C++ compilers masquerading as C compilers
5884 incorrectly reject 9223372036854775807. */
5885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5887 && LARGE_OFF_T % 2147483647 == 1)
5888 ? 1 : -1];
5889 int
5890 main ()
5891 {
5892
5893 ;
5894 return 0;
5895 }
5896 _ACEOF
5897 if ac_fn_c_try_compile "$LINENO"; then :
5898 ac_cv_sys_large_files=1; break
5899 fi
5900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901 ac_cv_sys_large_files=unknown
5902 break
5903 done
5904 fi
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5906 $as_echo "$ac_cv_sys_large_files" >&6; }
5907 case $ac_cv_sys_large_files in #(
5908 no | unknown) ;;
5909 *)
5910 cat >>confdefs.h <<_ACEOF
5911 #define _LARGE_FILES $ac_cv_sys_large_files
5912 _ACEOF
5913 ;;
5914 esac
5915 rm -rf conftest*
5916 fi
5917 fi
5918
5919
5920
5921 ## If user specified a crt-dir, use that unconditionally.
5922 if test "X$CRT_DIR" = "X"; then
5923
5924 case "$canonical" in
5925 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5926 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5927 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5928 ## For anything else (eg /usr/lib32), it is up the user to specify
5929 ## the location (bug#5655).
5930 ## Test for crtn.o, not just the directory, because sometimes the
5931 ## directory exists but does not have the relevant files (bug#1287).
5932 ## FIXME better to test for binary compatibility somehow.
5933 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5934 ;;
5935
5936 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5937 esac
5938
5939 case "$opsys" in
5940 hpux10-20) CRT_DIR=/lib ;;
5941 esac
5942
5943 ## Default is /usr/lib.
5944 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5945
5946 else
5947
5948 ## Some platforms don't use any of these files, so it is not
5949 ## appropriate to put this test outside the if block.
5950 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5951 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
5952
5953 fi
5954
5955
5956
5957 LIB_MATH=-lm
5958 LIB_STANDARD=
5959 START_FILES=
5960
5961 case $opsys in
5962 cygwin )
5963 LIB_MATH=
5964 START_FILES='pre-crt0.o'
5965 ;;
5966 darwin )
5967 ## Adding -lm confuses the dynamic linker, so omit it.
5968 LIB_MATH=
5969 START_FILES='pre-crt0.o'
5970 ;;
5971 freebsd )
5972 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5973 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5974 ;;
5975 gnu-linux | gnu-kfreebsd )
5976 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5977 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5978 ;;
5979 hpux10-20 | hpux11 )
5980 LIB_STANDARD=-lc
5981 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5982 ;;
5983 netbsd | openbsd )
5984 if test -f $CRT_DIR/crti.o; then
5985 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5986 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5987 else
5988 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5989 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5990 fi
5991 ;;
5992 esac
5993
5994
5995
5996
5997
5998
5999
6000 if test "${with_sound}" != "no"; then
6001 # Sound support for GNU/Linux and the free BSDs.
6002 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6003 do :
6004 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6005 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6006 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6007 cat >>confdefs.h <<_ACEOF
6008 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6009 _ACEOF
6010 have_sound_header=yes
6011 fi
6012
6013 done
6014
6015 # Emulation library used on NetBSD.
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6017 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6018 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 ac_check_lib_save_LIBS=$LIBS
6022 LIBS="-lossaudio $LIBS"
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6025
6026 /* Override any GCC internal prototype to avoid an error.
6027 Use char because int might match the return type of a GCC
6028 builtin and then its argument prototype would still apply. */
6029 #ifdef __cplusplus
6030 extern "C"
6031 #endif
6032 char _oss_ioctl ();
6033 int
6034 main ()
6035 {
6036 return _oss_ioctl ();
6037 ;
6038 return 0;
6039 }
6040 _ACEOF
6041 if ac_fn_c_try_link "$LINENO"; then :
6042 ac_cv_lib_ossaudio__oss_ioctl=yes
6043 else
6044 ac_cv_lib_ossaudio__oss_ioctl=no
6045 fi
6046 rm -f core conftest.err conftest.$ac_objext \
6047 conftest$ac_exeext conftest.$ac_ext
6048 LIBS=$ac_check_lib_save_LIBS
6049 fi
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6051 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6052 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
6053 LIBSOUND=-lossaudio
6054 else
6055 LIBSOUND=
6056 fi
6057
6058
6059
6060 ALSA_REQUIRED=1.0.0
6061 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6062
6063 succeeded=no
6064
6065 # Extract the first word of "pkg-config", so it can be a program name with args.
6066 set dummy pkg-config; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 case $PKG_CONFIG in
6073 [\\/]* | ?:[\\/]*)
6074 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6075 ;;
6076 *)
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 for as_dir in $PATH
6079 do
6080 IFS=$as_save_IFS
6081 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6084 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6086 break 2
6087 fi
6088 done
6089 done
6090 IFS=$as_save_IFS
6091
6092 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6093 ;;
6094 esac
6095 fi
6096 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6097 if test -n "$PKG_CONFIG"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6099 $as_echo "$PKG_CONFIG" >&6; }
6100 else
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6103 fi
6104
6105
6106
6107 if test "$PKG_CONFIG" = "no" ; then
6108 HAVE_ALSA=no
6109 else
6110 PKG_CONFIG_MIN_VERSION=0.9.0
6111 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6113 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6114
6115 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6117 $as_echo "yes" >&6; }
6118 succeeded=yes
6119
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6121 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6122 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6124 $as_echo "$ALSA_CFLAGS" >&6; }
6125
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6127 $as_echo_n "checking ALSA_LIBS... " >&6; }
6128 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6130 $as_echo "$ALSA_LIBS" >&6; }
6131 else
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6134 ALSA_CFLAGS=""
6135 ALSA_LIBS=""
6136 ## If we have a custom action on failure, don't print errors, but
6137 ## do set a variable so people can do so.
6138 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6139
6140 fi
6141
6142
6143
6144 else
6145 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6146 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6147 fi
6148 fi
6149
6150 if test $succeeded = yes; then
6151 HAVE_ALSA=yes
6152 else
6153 HAVE_ALSA=no
6154 fi
6155
6156 if test $HAVE_ALSA = yes; then
6157 SAVE_CFLAGS="$CFLAGS"
6158 SAVE_LDFLAGS="$LDFLAGS"
6159 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6160 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6163 #include <asoundlib.h>
6164 int
6165 main ()
6166 {
6167 snd_lib_error_set_handler (0);
6168 ;
6169 return 0;
6170 }
6171 _ACEOF
6172 if ac_fn_c_try_compile "$LINENO"; then :
6173 emacs_alsa_normal=yes
6174 else
6175 emacs_alsa_normal=no
6176 fi
6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 if test "$emacs_alsa_normal" != yes; then
6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6181 #include <alsa/asoundlib.h>
6182 int
6183 main ()
6184 {
6185 snd_lib_error_set_handler (0);
6186 ;
6187 return 0;
6188 }
6189 _ACEOF
6190 if ac_fn_c_try_compile "$LINENO"; then :
6191 emacs_alsa_subdir=yes
6192 else
6193 emacs_alsa_subdir=no
6194 fi
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 if test "$emacs_alsa_subdir" != yes; then
6197 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6198 fi
6199 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6200 fi
6201
6202 CFLAGS="$SAVE_CFLAGS"
6203 LDFLAGS="$SAVE_LDFLAGS"
6204 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6205 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6206
6207 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6208
6209 fi
6210
6211 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6212 case "$opsys" in
6213 gnu-linux|freebsd|netbsd)
6214
6215 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6216
6217 ;;
6218 esac
6219 fi
6220
6221
6222 fi
6223
6224 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
6225 linux/version.h sys/systeminfo.h limits.h \
6226 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
6227 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6228 sys/utsname.h pwd.h utmp.h dirent.h util.h
6229 do :
6230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6231 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6232 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6233 cat >>confdefs.h <<_ACEOF
6234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6235 _ACEOF
6236
6237 fi
6238
6239 done
6240
6241
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6243 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246 #include <sys/personality.h>
6247 int
6248 main ()
6249 {
6250 personality (PER_LINUX32)
6251 ;
6252 return 0;
6253 }
6254 _ACEOF
6255 if ac_fn_c_try_compile "$LINENO"; then :
6256 emacs_cv_personality_linux32=yes
6257 else
6258 emacs_cv_personality_linux32=no
6259 fi
6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6262 $as_echo "$emacs_cv_personality_linux32" >&6; }
6263
6264 if test $emacs_cv_personality_linux32 = yes; then
6265
6266 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6267
6268 fi
6269
6270 for ac_header in term.h
6271 do :
6272 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6273 if test "x$ac_cv_header_term_h" = x""yes; then :
6274 cat >>confdefs.h <<_ACEOF
6275 #define HAVE_TERM_H 1
6276 _ACEOF
6277
6278 fi
6279
6280 done
6281
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6283 $as_echo_n "checking for ANSI C header files... " >&6; }
6284 if test "${ac_cv_header_stdc+set}" = set; then :
6285 $as_echo_n "(cached) " >&6
6286 else
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6289 #include <stdlib.h>
6290 #include <stdarg.h>
6291 #include <string.h>
6292 #include <float.h>
6293
6294 int
6295 main ()
6296 {
6297
6298 ;
6299 return 0;
6300 }
6301 _ACEOF
6302 if ac_fn_c_try_compile "$LINENO"; then :
6303 ac_cv_header_stdc=yes
6304 else
6305 ac_cv_header_stdc=no
6306 fi
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308
6309 if test $ac_cv_header_stdc = yes; then
6310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6313 #include <string.h>
6314
6315 _ACEOF
6316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6317 $EGREP "memchr" >/dev/null 2>&1; then :
6318
6319 else
6320 ac_cv_header_stdc=no
6321 fi
6322 rm -f conftest*
6323
6324 fi
6325
6326 if test $ac_cv_header_stdc = yes; then
6327 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6330 #include <stdlib.h>
6331
6332 _ACEOF
6333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6334 $EGREP "free" >/dev/null 2>&1; then :
6335
6336 else
6337 ac_cv_header_stdc=no
6338 fi
6339 rm -f conftest*
6340
6341 fi
6342
6343 if test $ac_cv_header_stdc = yes; then
6344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6345 if test "$cross_compiling" = yes; then :
6346 :
6347 else
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 #include <ctype.h>
6351 #include <stdlib.h>
6352 #if ((' ' & 0x0FF) == 0x020)
6353 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6354 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6355 #else
6356 # define ISLOWER(c) \
6357 (('a' <= (c) && (c) <= 'i') \
6358 || ('j' <= (c) && (c) <= 'r') \
6359 || ('s' <= (c) && (c) <= 'z'))
6360 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6361 #endif
6362
6363 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6364 int
6365 main ()
6366 {
6367 int i;
6368 for (i = 0; i < 256; i++)
6369 if (XOR (islower (i), ISLOWER (i))
6370 || toupper (i) != TOUPPER (i))
6371 return 2;
6372 return 0;
6373 }
6374 _ACEOF
6375 if ac_fn_c_try_run "$LINENO"; then :
6376
6377 else
6378 ac_cv_header_stdc=no
6379 fi
6380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6381 conftest.$ac_objext conftest.beam conftest.$ac_ext
6382 fi
6383
6384 fi
6385 fi
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6387 $as_echo "$ac_cv_header_stdc" >&6; }
6388 if test $ac_cv_header_stdc = yes; then
6389
6390 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6391
6392 fi
6393
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6395 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6396 if test "${ac_cv_header_time+set}" = set; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6401 #include <sys/types.h>
6402 #include <sys/time.h>
6403 #include <time.h>
6404
6405 int
6406 main ()
6407 {
6408 if ((struct tm *) 0)
6409 return 0;
6410 ;
6411 return 0;
6412 }
6413 _ACEOF
6414 if ac_fn_c_try_compile "$LINENO"; then :
6415 ac_cv_header_time=yes
6416 else
6417 ac_cv_header_time=no
6418 fi
6419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420 fi
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6422 $as_echo "$ac_cv_header_time" >&6; }
6423 if test $ac_cv_header_time = yes; then
6424
6425 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6426
6427 fi
6428
6429 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6430 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6431 ac_have_decl=1
6432 else
6433 ac_have_decl=0
6434 fi
6435
6436 cat >>confdefs.h <<_ACEOF
6437 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6438 _ACEOF
6439
6440 if test $ac_cv_have_decl_sys_siglist != yes; then
6441 # For Tru64, at least:
6442 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6443 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6444 ac_have_decl=1
6445 else
6446 ac_have_decl=0
6447 fi
6448
6449 cat >>confdefs.h <<_ACEOF
6450 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6451 _ACEOF
6452
6453 if test $ac_cv_have_decl___sys_siglist = yes; then
6454
6455 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6456
6457 fi
6458 fi
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6460 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6461 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466 #include <sys/types.h>
6467 #include <sys/wait.h>
6468 #ifndef WEXITSTATUS
6469 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6470 #endif
6471 #ifndef WIFEXITED
6472 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6473 #endif
6474
6475 int
6476 main ()
6477 {
6478 int s;
6479 wait (&s);
6480 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6481 ;
6482 return 0;
6483 }
6484 _ACEOF
6485 if ac_fn_c_try_compile "$LINENO"; then :
6486 ac_cv_header_sys_wait_h=yes
6487 else
6488 ac_cv_header_sys_wait_h=no
6489 fi
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491 fi
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6493 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6494 if test $ac_cv_header_sys_wait_h = yes; then
6495
6496 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6497
6498 fi
6499
6500
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6502 $as_echo_n "checking for struct utimbuf... " >&6; }
6503 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508 #ifdef TIME_WITH_SYS_TIME
6509 #include <sys/time.h>
6510 #include <time.h>
6511 #else
6512 #ifdef HAVE_SYS_TIME_H
6513 #include <sys/time.h>
6514 #else
6515 #include <time.h>
6516 #endif
6517 #endif
6518 #ifdef HAVE_UTIME_H
6519 #include <utime.h>
6520 #endif
6521 int
6522 main ()
6523 {
6524 static struct utimbuf x; x.actime = x.modtime;
6525 ;
6526 return 0;
6527 }
6528 _ACEOF
6529 if ac_fn_c_try_compile "$LINENO"; then :
6530 emacs_cv_struct_utimbuf=yes
6531 else
6532 emacs_cv_struct_utimbuf=no
6533 fi
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535 fi
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6537 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6538 if test $emacs_cv_struct_utimbuf = yes; then
6539
6540 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6541
6542 fi
6543
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6545 $as_echo_n "checking return type of signal handlers... " >&6; }
6546 if test "${ac_cv_type_signal+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551 #include <sys/types.h>
6552 #include <signal.h>
6553
6554 int
6555 main ()
6556 {
6557 return *(signal (0, 0)) (0) == 1;
6558 ;
6559 return 0;
6560 }
6561 _ACEOF
6562 if ac_fn_c_try_compile "$LINENO"; then :
6563 ac_cv_type_signal=int
6564 else
6565 ac_cv_type_signal=void
6566 fi
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568 fi
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6570 $as_echo "$ac_cv_type_signal" >&6; }
6571
6572 cat >>confdefs.h <<_ACEOF
6573 #define RETSIGTYPE $ac_cv_type_signal
6574 _ACEOF
6575
6576
6577
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6579 $as_echo_n "checking for speed_t... " >&6; }
6580 if test "${emacs_cv_speed_t+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6585 #include <termios.h>
6586 int
6587 main ()
6588 {
6589 speed_t x = 1;
6590 ;
6591 return 0;
6592 }
6593 _ACEOF
6594 if ac_fn_c_try_compile "$LINENO"; then :
6595 emacs_cv_speed_t=yes
6596 else
6597 emacs_cv_speed_t=no
6598 fi
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 fi
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6602 $as_echo "$emacs_cv_speed_t" >&6; }
6603 if test $emacs_cv_speed_t = yes; then
6604
6605 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6606
6607 fi
6608
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6610 $as_echo_n "checking for struct timeval... " >&6; }
6611 if test "${emacs_cv_struct_timeval+set}" = set; then :
6612 $as_echo_n "(cached) " >&6
6613 else
6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615 /* end confdefs.h. */
6616 #ifdef TIME_WITH_SYS_TIME
6617 #include <sys/time.h>
6618 #include <time.h>
6619 #else
6620 #ifdef HAVE_SYS_TIME_H
6621 #include <sys/time.h>
6622 #else
6623 #include <time.h>
6624 #endif
6625 #endif
6626 int
6627 main ()
6628 {
6629 static struct timeval x; x.tv_sec = x.tv_usec;
6630 ;
6631 return 0;
6632 }
6633 _ACEOF
6634 if ac_fn_c_try_compile "$LINENO"; then :
6635 emacs_cv_struct_timeval=yes
6636 else
6637 emacs_cv_struct_timeval=no
6638 fi
6639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640 fi
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6642 $as_echo "$emacs_cv_struct_timeval" >&6; }
6643 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6644 if test $emacs_cv_struct_timeval = yes; then
6645
6646 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6647
6648 fi
6649
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6651 $as_echo_n "checking for struct exception... " >&6; }
6652 if test "${emacs_cv_struct_exception+set}" = set; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6657 #include <math.h>
6658 int
6659 main ()
6660 {
6661 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6662 ;
6663 return 0;
6664 }
6665 _ACEOF
6666 if ac_fn_c_try_compile "$LINENO"; then :
6667 emacs_cv_struct_exception=yes
6668 else
6669 emacs_cv_struct_exception=no
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 fi
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6674 $as_echo "$emacs_cv_struct_exception" >&6; }
6675 HAVE_EXCEPTION=$emacs_cv_struct_exception
6676 if test $emacs_cv_struct_exception != yes; then
6677
6678 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6679
6680 fi
6681
6682 for ac_header in sys/socket.h
6683 do :
6684 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6685 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6686 cat >>confdefs.h <<_ACEOF
6687 #define HAVE_SYS_SOCKET_H 1
6688 _ACEOF
6689
6690 fi
6691
6692 done
6693
6694 for ac_header in net/if.h
6695 do :
6696 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6697 #if HAVE_SYS_SOCKET_H
6698 #include <sys/socket.h>
6699 #endif
6700 "
6701 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6702 cat >>confdefs.h <<_ACEOF
6703 #define HAVE_NET_IF_H 1
6704 _ACEOF
6705
6706 fi
6707
6708 done
6709
6710
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6712 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6713 if test "${ac_cv_struct_tm+set}" = set; then :
6714 $as_echo_n "(cached) " >&6
6715 else
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718 #include <sys/types.h>
6719 #include <time.h>
6720
6721 int
6722 main ()
6723 {
6724 struct tm tm;
6725 int *p = &tm.tm_sec;
6726 return !p;
6727 ;
6728 return 0;
6729 }
6730 _ACEOF
6731 if ac_fn_c_try_compile "$LINENO"; then :
6732 ac_cv_struct_tm=time.h
6733 else
6734 ac_cv_struct_tm=sys/time.h
6735 fi
6736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737 fi
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6739 $as_echo "$ac_cv_struct_tm" >&6; }
6740 if test $ac_cv_struct_tm = sys/time.h; then
6741
6742 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6743
6744 fi
6745
6746 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6747 #include <$ac_cv_struct_tm>
6748
6749 "
6750 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6751
6752 cat >>confdefs.h <<_ACEOF
6753 #define HAVE_STRUCT_TM_TM_ZONE 1
6754 _ACEOF
6755
6756
6757 fi
6758
6759 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6760
6761 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6762
6763 else
6764 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6765 "
6766 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6767 ac_have_decl=1
6768 else
6769 ac_have_decl=0
6770 fi
6771
6772 cat >>confdefs.h <<_ACEOF
6773 #define HAVE_DECL_TZNAME $ac_have_decl
6774 _ACEOF
6775
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6777 $as_echo_n "checking for tzname... " >&6; }
6778 if test "${ac_cv_var_tzname+set}" = set; then :
6779 $as_echo_n "(cached) " >&6
6780 else
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6783 #include <time.h>
6784 #if !HAVE_DECL_TZNAME
6785 extern char *tzname[];
6786 #endif
6787
6788 int
6789 main ()
6790 {
6791 return tzname[0][0];
6792 ;
6793 return 0;
6794 }
6795 _ACEOF
6796 if ac_fn_c_try_link "$LINENO"; then :
6797 ac_cv_var_tzname=yes
6798 else
6799 ac_cv_var_tzname=no
6800 fi
6801 rm -f core conftest.err conftest.$ac_objext \
6802 conftest$ac_exeext conftest.$ac_ext
6803 fi
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6805 $as_echo "$ac_cv_var_tzname" >&6; }
6806 if test $ac_cv_var_tzname = yes; then
6807
6808 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6809
6810 fi
6811 fi
6812
6813 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6814 "
6815 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6816
6817 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6818
6819 fi
6820
6821 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6822 #if HAVE_SYS_SOCKET_H
6823 #include <sys/socket.h>
6824 #endif
6825 #if HAVE_NET_IF_H
6826 #include <net/if.h>
6827 #endif
6828 "
6829 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6830
6831 cat >>confdefs.h <<_ACEOF
6832 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6833 _ACEOF
6834
6835
6836 fi
6837 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6838 #if HAVE_SYS_SOCKET_H
6839 #include <sys/socket.h>
6840 #endif
6841 #if HAVE_NET_IF_H
6842 #include <net/if.h>
6843 #endif
6844 "
6845 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6846
6847 cat >>confdefs.h <<_ACEOF
6848 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6849 _ACEOF
6850
6851
6852 fi
6853 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6854 #if HAVE_SYS_SOCKET_H
6855 #include <sys/socket.h>
6856 #endif
6857 #if HAVE_NET_IF_H
6858 #include <net/if.h>
6859 #endif
6860 "
6861 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6862
6863 cat >>confdefs.h <<_ACEOF
6864 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6865 _ACEOF
6866
6867
6868 fi
6869 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6870 #if HAVE_SYS_SOCKET_H
6871 #include <sys/socket.h>
6872 #endif
6873 #if HAVE_NET_IF_H
6874 #include <net/if.h>
6875 #endif
6876 "
6877 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6878
6879 cat >>confdefs.h <<_ACEOF
6880 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6881 _ACEOF
6882
6883
6884 fi
6885 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6886 #if HAVE_SYS_SOCKET_H
6887 #include <sys/socket.h>
6888 #endif
6889 #if HAVE_NET_IF_H
6890 #include <net/if.h>
6891 #endif
6892 "
6893 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6894
6895 cat >>confdefs.h <<_ACEOF
6896 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6897 _ACEOF
6898
6899
6900 fi
6901
6902
6903
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6905 $as_echo_n "checking for function prototypes... " >&6; }
6906 if test "$ac_cv_prog_cc_c89" != no; then
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6908 $as_echo "yes" >&6; }
6909
6910 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6911
6912
6913 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6914
6915 else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6918 fi
6919
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6921 $as_echo_n "checking for working volatile... " >&6; }
6922 if test "${ac_cv_c_volatile+set}" = set; then :
6923 $as_echo_n "(cached) " >&6
6924 else
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927
6928 int
6929 main ()
6930 {
6931
6932 volatile int x;
6933 int * volatile y = (int *) 0;
6934 return !x && !y;
6935 ;
6936 return 0;
6937 }
6938 _ACEOF
6939 if ac_fn_c_try_compile "$LINENO"; then :
6940 ac_cv_c_volatile=yes
6941 else
6942 ac_cv_c_volatile=no
6943 fi
6944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6945 fi
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6947 $as_echo "$ac_cv_c_volatile" >&6; }
6948 if test $ac_cv_c_volatile = no; then
6949
6950 $as_echo "#define volatile /**/" >>confdefs.h
6951
6952 fi
6953
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6955 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6956 if test "${ac_cv_c_const+set}" = set; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6961
6962 int
6963 main ()
6964 {
6965 /* FIXME: Include the comments suggested by Paul. */
6966 #ifndef __cplusplus
6967 /* Ultrix mips cc rejects this. */
6968 typedef int charset[2];
6969 const charset cs;
6970 /* SunOS 4.1.1 cc rejects this. */
6971 char const *const *pcpcc;
6972 char **ppc;
6973 /* NEC SVR4.0.2 mips cc rejects this. */
6974 struct point {int x, y;};
6975 static struct point const zero = {0,0};
6976 /* AIX XL C 1.02.0.0 rejects this.
6977 It does not let you subtract one const X* pointer from another in
6978 an arm of an if-expression whose if-part is not a constant
6979 expression */
6980 const char *g = "string";
6981 pcpcc = &g + (g ? g-g : 0);
6982 /* HPUX 7.0 cc rejects these. */
6983 ++pcpcc;
6984 ppc = (char**) pcpcc;
6985 pcpcc = (char const *const *) ppc;
6986 { /* SCO 3.2v4 cc rejects this. */
6987 char *t;
6988 char const *s = 0 ? (char *) 0 : (char const *) 0;
6989
6990 *t++ = 0;
6991 if (s) return 0;
6992 }
6993 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6994 int x[] = {25, 17};
6995 const int *foo = &x[0];
6996 ++foo;
6997 }
6998 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6999 typedef const int *iptr;
7000 iptr p = 0;
7001 ++p;
7002 }
7003 { /* AIX XL C 1.02.0.0 rejects this saying
7004 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7005 struct s { int j; const int *ap[3]; };
7006 struct s *b; b->j = 5;
7007 }
7008 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7009 const int foo = 10;
7010 if (!foo) return 0;
7011 }
7012 return !cs[0] && !zero.x;
7013 #endif
7014
7015 ;
7016 return 0;
7017 }
7018 _ACEOF
7019 if ac_fn_c_try_compile "$LINENO"; then :
7020 ac_cv_c_const=yes
7021 else
7022 ac_cv_c_const=no
7023 fi
7024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7025 fi
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7027 $as_echo "$ac_cv_c_const" >&6; }
7028 if test $ac_cv_c_const = no; then
7029
7030 $as_echo "#define const /**/" >>confdefs.h
7031
7032 fi
7033
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7035 $as_echo_n "checking for void * support... " >&6; }
7036 if test "${emacs_cv_void_star+set}" = set; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7041
7042 int
7043 main ()
7044 {
7045 void * foo;
7046 ;
7047 return 0;
7048 }
7049 _ACEOF
7050 if ac_fn_c_try_compile "$LINENO"; then :
7051 emacs_cv_void_star=yes
7052 else
7053 emacs_cv_void_star=no
7054 fi
7055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7056 fi
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7058 $as_echo "$emacs_cv_void_star" >&6; }
7059 if test $emacs_cv_void_star = yes; then
7060 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7061
7062 else
7063 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7064
7065 fi
7066
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7068 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7069 if test "${ac_cv_c_bigendian+set}" = set; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072 ac_cv_c_bigendian=unknown
7073 # See if we're dealing with a universal compiler.
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7076 #ifndef __APPLE_CC__
7077 not a universal capable compiler
7078 #endif
7079 typedef int dummy;
7080
7081 _ACEOF
7082 if ac_fn_c_try_compile "$LINENO"; then :
7083
7084 # Check for potential -arch flags. It is not universal unless
7085 # there are at least two -arch flags with different values.
7086 ac_arch=
7087 ac_prev=
7088 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7089 if test -n "$ac_prev"; then
7090 case $ac_word in
7091 i?86 | x86_64 | ppc | ppc64)
7092 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7093 ac_arch=$ac_word
7094 else
7095 ac_cv_c_bigendian=universal
7096 break
7097 fi
7098 ;;
7099 esac
7100 ac_prev=
7101 elif test "x$ac_word" = "x-arch"; then
7102 ac_prev=arch
7103 fi
7104 done
7105 fi
7106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7107 if test $ac_cv_c_bigendian = unknown; then
7108 # See if sys/param.h defines the BYTE_ORDER macro.
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7111 #include <sys/types.h>
7112 #include <sys/param.h>
7113
7114 int
7115 main ()
7116 {
7117 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7118 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7119 && LITTLE_ENDIAN)
7120 bogus endian macros
7121 #endif
7122
7123 ;
7124 return 0;
7125 }
7126 _ACEOF
7127 if ac_fn_c_try_compile "$LINENO"; then :
7128 # It does; now see whether it defined to BIG_ENDIAN or not.
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7131 #include <sys/types.h>
7132 #include <sys/param.h>
7133
7134 int
7135 main ()
7136 {
7137 #if BYTE_ORDER != BIG_ENDIAN
7138 not big endian
7139 #endif
7140
7141 ;
7142 return 0;
7143 }
7144 _ACEOF
7145 if ac_fn_c_try_compile "$LINENO"; then :
7146 ac_cv_c_bigendian=yes
7147 else
7148 ac_cv_c_bigendian=no
7149 fi
7150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151 fi
7152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7153 fi
7154 if test $ac_cv_c_bigendian = unknown; then
7155 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7158 #include <limits.h>
7159
7160 int
7161 main ()
7162 {
7163 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7164 bogus endian macros
7165 #endif
7166
7167 ;
7168 return 0;
7169 }
7170 _ACEOF
7171 if ac_fn_c_try_compile "$LINENO"; then :
7172 # It does; now see whether it defined to _BIG_ENDIAN or not.
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7175 #include <limits.h>
7176
7177 int
7178 main ()
7179 {
7180 #ifndef _BIG_ENDIAN
7181 not big endian
7182 #endif
7183
7184 ;
7185 return 0;
7186 }
7187 _ACEOF
7188 if ac_fn_c_try_compile "$LINENO"; then :
7189 ac_cv_c_bigendian=yes
7190 else
7191 ac_cv_c_bigendian=no
7192 fi
7193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194 fi
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 fi
7197 if test $ac_cv_c_bigendian = unknown; then
7198 # Compile a test program.
7199 if test "$cross_compiling" = yes; then :
7200 # Try to guess by grepping values from an object file.
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7203 short int ascii_mm[] =
7204 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7205 short int ascii_ii[] =
7206 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7207 int use_ascii (int i) {
7208 return ascii_mm[i] + ascii_ii[i];
7209 }
7210 short int ebcdic_ii[] =
7211 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7212 short int ebcdic_mm[] =
7213 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7214 int use_ebcdic (int i) {
7215 return ebcdic_mm[i] + ebcdic_ii[i];
7216 }
7217 extern int foo;
7218
7219 int
7220 main ()
7221 {
7222 return use_ascii (foo) == use_ebcdic (foo);
7223 ;
7224 return 0;
7225 }
7226 _ACEOF
7227 if ac_fn_c_try_compile "$LINENO"; then :
7228 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7229 ac_cv_c_bigendian=yes
7230 fi
7231 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7232 if test "$ac_cv_c_bigendian" = unknown; then
7233 ac_cv_c_bigendian=no
7234 else
7235 # finding both strings is unlikely to happen, but who knows?
7236 ac_cv_c_bigendian=unknown
7237 fi
7238 fi
7239 fi
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241 else
7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7244 $ac_includes_default
7245 int
7246 main ()
7247 {
7248
7249 /* Are we little or big endian? From Harbison&Steele. */
7250 union
7251 {
7252 long int l;
7253 char c[sizeof (long int)];
7254 } u;
7255 u.l = 1;
7256 return u.c[sizeof (long int) - 1] == 1;
7257
7258 ;
7259 return 0;
7260 }
7261 _ACEOF
7262 if ac_fn_c_try_run "$LINENO"; then :
7263 ac_cv_c_bigendian=no
7264 else
7265 ac_cv_c_bigendian=yes
7266 fi
7267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7268 conftest.$ac_objext conftest.beam conftest.$ac_ext
7269 fi
7270
7271 fi
7272 fi
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7274 $as_echo "$ac_cv_c_bigendian" >&6; }
7275 case $ac_cv_c_bigendian in #(
7276 yes)
7277 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7278 ;; #(
7279 no)
7280 ;; #(
7281 universal)
7282
7283 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7284
7285 ;; #(
7286 *)
7287 as_fn_error $? "unknown endianness
7288 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7289 esac
7290
7291
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7293 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7294 set x ${MAKE-make}
7295 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7296 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
7297 $as_echo_n "(cached) " >&6
7298 else
7299 cat >conftest.make <<\_ACEOF
7300 SHELL = /bin/sh
7301 all:
7302 @echo '@@@%%%=$(MAKE)=@@@%%%'
7303 _ACEOF
7304 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7305 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7306 *@@@%%%=?*=@@@%%%*)
7307 eval ac_cv_prog_make_${ac_make}_set=yes;;
7308 *)
7309 eval ac_cv_prog_make_${ac_make}_set=no;;
7310 esac
7311 rm -f conftest.make
7312 fi
7313 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7315 $as_echo "yes" >&6; }
7316 SET_MAKE=
7317 else
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7320 SET_MAKE="MAKE=${MAKE-make}"
7321 fi
7322
7323
7324 DEPFLAGS=
7325 MKDEPDIR=":"
7326 deps_frag=deps.mk
7327 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7329 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7330 HAVE_GNU_MAKE=no
7331 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7332 if test "x$testval" != x; then
7333 HAVE_GNU_MAKE=yes
7334 else
7335 ac_enable_autodepend=no
7336 fi
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7338 $as_echo "$HAVE_GNU_MAKE" >&6; }
7339 if test $HAVE_GNU_MAKE = yes; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7341 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7342 SAVE_CFLAGS="$CFLAGS"
7343 CFLAGS="$CFLAGS -MMD -MF deps.d"
7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7346
7347 int
7348 main ()
7349 {
7350
7351 ;
7352 return 0;
7353 }
7354 _ACEOF
7355 if ac_fn_c_try_compile "$LINENO"; then :
7356
7357 else
7358 ac_enable_autodepend=no
7359 fi
7360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7361 CFLAGS="$SAVE_CFLAGS"
7362 test -f deps.d || ac_enable_autodepend=no
7363 rm -rf deps.d
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7365 $as_echo "$ac_enable_autodepend" >&6; }
7366 fi
7367 if test $ac_enable_autodepend = yes; then
7368 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7369 ## In parallel builds, another make might create depdir between
7370 ## the first test and mkdir, so stick another test on the end.
7371 ## Or use mkinstalldirs? mkdir -p is not portable.
7372 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7373 deps_frag=autodeps.mk
7374 fi
7375 fi
7376 deps_frag=$srcdir/src/$deps_frag
7377
7378
7379
7380
7381
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7383 $as_echo_n "checking for long file names... " >&6; }
7384 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7385 $as_echo_n "(cached) " >&6
7386 else
7387 ac_cv_sys_long_file_names=yes
7388 # Test for long file names in all the places we know might matter:
7389 # . the current directory, where building will happen
7390 # $prefix/lib where we will be installing things
7391 # $exec_prefix/lib likewise
7392 # $TMPDIR if set, where it might want to write temporary files
7393 # /tmp where it might want to write temporary files
7394 # /var/tmp likewise
7395 # /usr/tmp likewise
7396 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7397 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7398 # in the usual case where exec_prefix is '${prefix}'.
7399 case $ac_dir in #(
7400 . | /* | ?:[\\/]*) ;; #(
7401 *) continue;;
7402 esac
7403 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7404 ac_xdir=$ac_dir/cf$$
7405 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7406 ac_tf1=$ac_xdir/conftest9012345
7407 ac_tf2=$ac_xdir/conftest9012346
7408 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7409 ac_cv_sys_long_file_names=no
7410 rm -f -r "$ac_xdir" 2>/dev/null
7411 test $ac_cv_sys_long_file_names = no && break
7412 done
7413 fi
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7415 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7416 if test $ac_cv_sys_long_file_names = yes; then
7417
7418 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7419
7420 fi
7421
7422
7423 #### Choose a window system.
7424
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7426 $as_echo_n "checking for X... " >&6; }
7427
7428
7429 # Check whether --with-x was given.
7430 if test "${with_x+set}" = set; then :
7431 withval=$with_x;
7432 fi
7433
7434 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7435 if test "x$with_x" = xno; then
7436 # The user explicitly disabled X.
7437 have_x=disabled
7438 else
7439 case $x_includes,$x_libraries in #(
7440 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
7441 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 # One or both of the vars are not set, and there is no cached value.
7445 ac_x_includes=no ac_x_libraries=no
7446 rm -f -r conftest.dir
7447 if mkdir conftest.dir; then
7448 cd conftest.dir
7449 cat >Imakefile <<'_ACEOF'
7450 incroot:
7451 @echo incroot='${INCROOT}'
7452 usrlibdir:
7453 @echo usrlibdir='${USRLIBDIR}'
7454 libdir:
7455 @echo libdir='${LIBDIR}'
7456 _ACEOF
7457 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7458 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7459 for ac_var in incroot usrlibdir libdir; do
7460 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7461 done
7462 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7463 for ac_extension in a so sl dylib la dll; do
7464 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7465 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7466 ac_im_usrlibdir=$ac_im_libdir; break
7467 fi
7468 done
7469 # Screen out bogus values from the imake configuration. They are
7470 # bogus both because they are the default anyway, and because
7471 # using them would break gcc on systems where it needs fixed includes.
7472 case $ac_im_incroot in
7473 /usr/include) ac_x_includes= ;;
7474 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7475 esac
7476 case $ac_im_usrlibdir in
7477 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7478 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7479 esac
7480 fi
7481 cd ..
7482 rm -f -r conftest.dir
7483 fi
7484
7485 # Standard set of common directories for X headers.
7486 # Check X11 before X11Rn because it is often a symlink to the current release.
7487 ac_x_header_dirs='
7488 /usr/X11/include
7489 /usr/X11R7/include
7490 /usr/X11R6/include
7491 /usr/X11R5/include
7492 /usr/X11R4/include
7493
7494 /usr/include/X11
7495 /usr/include/X11R7
7496 /usr/include/X11R6
7497 /usr/include/X11R5
7498 /usr/include/X11R4
7499
7500 /usr/local/X11/include
7501 /usr/local/X11R7/include
7502 /usr/local/X11R6/include
7503 /usr/local/X11R5/include
7504 /usr/local/X11R4/include
7505
7506 /usr/local/include/X11
7507 /usr/local/include/X11R7
7508 /usr/local/include/X11R6
7509 /usr/local/include/X11R5
7510 /usr/local/include/X11R4
7511
7512 /usr/X386/include
7513 /usr/x386/include
7514 /usr/XFree86/include/X11
7515
7516 /usr/include
7517 /usr/local/include
7518 /usr/unsupported/include
7519 /usr/athena/include
7520 /usr/local/x11r5/include
7521 /usr/lpp/Xamples/include
7522
7523 /usr/openwin/include
7524 /usr/openwin/share/include'
7525
7526 if test "$ac_x_includes" = no; then
7527 # Guess where to find include files, by looking for Xlib.h.
7528 # First, try using that file with no special directory specified.
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7531 #include <X11/Xlib.h>
7532 _ACEOF
7533 if ac_fn_c_try_cpp "$LINENO"; then :
7534 # We can compile using X headers with no special include directory.
7535 ac_x_includes=
7536 else
7537 for ac_dir in $ac_x_header_dirs; do
7538 if test -r "$ac_dir/X11/Xlib.h"; then
7539 ac_x_includes=$ac_dir
7540 break
7541 fi
7542 done
7543 fi
7544 rm -f conftest.err conftest.i conftest.$ac_ext
7545 fi # $ac_x_includes = no
7546
7547 if test "$ac_x_libraries" = no; then
7548 # Check for the libraries.
7549 # See if we find them without any special options.
7550 # Don't add to $LIBS permanently.
7551 ac_save_LIBS=$LIBS
7552 LIBS="-lX11 $LIBS"
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7555 #include <X11/Xlib.h>
7556 int
7557 main ()
7558 {
7559 XrmInitialize ()
7560 ;
7561 return 0;
7562 }
7563 _ACEOF
7564 if ac_fn_c_try_link "$LINENO"; then :
7565 LIBS=$ac_save_LIBS
7566 # We can link X programs with no special library path.
7567 ac_x_libraries=
7568 else
7569 LIBS=$ac_save_LIBS
7570 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7571 do
7572 # Don't even attempt the hair of trying to link an X program!
7573 for ac_extension in a so sl dylib la dll; do
7574 if test -r "$ac_dir/libX11.$ac_extension"; then
7575 ac_x_libraries=$ac_dir
7576 break 2
7577 fi
7578 done
7579 done
7580 fi
7581 rm -f core conftest.err conftest.$ac_objext \
7582 conftest$ac_exeext conftest.$ac_ext
7583 fi # $ac_x_libraries = no
7584
7585 case $ac_x_includes,$ac_x_libraries in #(
7586 no,* | *,no | *\'*)
7587 # Didn't find X, or a directory has "'" in its name.
7588 ac_cv_have_x="have_x=no";; #(
7589 *)
7590 # Record where we found X for the cache.
7591 ac_cv_have_x="have_x=yes\
7592 ac_x_includes='$ac_x_includes'\
7593 ac_x_libraries='$ac_x_libraries'"
7594 esac
7595 fi
7596 ;; #(
7597 *) have_x=yes;;
7598 esac
7599 eval "$ac_cv_have_x"
7600 fi # $with_x != no
7601
7602 if test "$have_x" != yes; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7604 $as_echo "$have_x" >&6; }
7605 no_x=yes
7606 else
7607 # If each of the values was on the command line, it overrides each guess.
7608 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7609 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7610 # Update the cache value to reflect the command line values.
7611 ac_cv_have_x="have_x=yes\
7612 ac_x_includes='$x_includes'\
7613 ac_x_libraries='$x_libraries'"
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7615 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7616 fi
7617
7618 if test "$no_x" = yes; then
7619 window_system=none
7620 else
7621 window_system=x11
7622 fi
7623
7624 ## Workaround for bug in autoconf <= 2.62.
7625 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7626 ## No need to do anything special for these standard directories.
7627 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7628
7629 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7630
7631 fi
7632
7633 LD_SWITCH_X_SITE_AUX=
7634 LD_SWITCH_X_SITE_AUX_RPATH=
7635 if test "${x_libraries}" != NONE; then
7636 if test -n "${x_libraries}"; then
7637 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7638 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7639 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7640 fi
7641 x_default_search_path=""
7642 x_search_path=${x_libraries}
7643 if test -z "${x_search_path}"; then
7644 x_search_path=/usr/lib
7645 fi
7646 for x_library in `echo ${x_search_path}: | \
7647 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7648 x_search_path="\
7649 ${x_library}/X11/%L/%T/%N%C%S:\
7650 ${x_library}/X11/%l/%T/%N%C%S:\
7651 ${x_library}/X11/%T/%N%C%S:\
7652 ${x_library}/X11/%L/%T/%N%S:\
7653 ${x_library}/X11/%l/%T/%N%S:\
7654 ${x_library}/X11/%T/%N%S"
7655 if test x"${x_default_search_path}" = x; then
7656 x_default_search_path=${x_search_path}
7657 else
7658 x_default_search_path="${x_search_path}:${x_default_search_path}"
7659 fi
7660 done
7661 fi
7662
7663
7664
7665 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7666 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7667 fi
7668
7669 if test x"${x_includes}" = x; then
7670 bitmapdir=/usr/include/X11/bitmaps
7671 else
7672 # accumulate include directories that have X11 bitmap subdirectories
7673 bmd_acc="dummyval"
7674 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7675 if test -d "${bmd}/X11/bitmaps"; then
7676 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7677 fi
7678 if test -d "${bmd}/bitmaps"; then
7679 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7680 fi
7681 done
7682 if test ${bmd_acc} != "dummyval"; then
7683 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7684 fi
7685 fi
7686
7687 HAVE_NS=no
7688 NS_IMPL_COCOA=no
7689 NS_IMPL_GNUSTEP=no
7690 tmp_CPPFLAGS="$CPPFLAGS"
7691 tmp_CFLAGS="$CFLAGS"
7692 CPPFLAGS="$CPPFLAGS -x objective-c"
7693 CFLAGS="$CFLAGS -x objective-c"
7694 TEMACS_LDFLAGS2="\${LDFLAGS}"
7695 if test "${with_ns}" != no; then
7696 if test "${opsys}" = darwin; then
7697 NS_IMPL_COCOA=yes
7698 ns_appdir=`pwd`/nextstep/Emacs.app
7699 ns_appbindir=${ns_appdir}/Contents/MacOS/
7700 ns_appresdir=${ns_appdir}/Contents/Resources
7701 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7702 elif test -f $GNUSTEP_CONFIG_FILE; then
7703 NS_IMPL_GNUSTEP=yes
7704 ns_appdir=`pwd`/nextstep/Emacs.app
7705 ns_appbindir=${ns_appdir}
7706 ns_appresdir=${ns_appdir}/Resources
7707 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7708 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7709 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7710 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7711 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7712 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7713 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7714 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7715 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7716 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7717 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7718 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7719 LIB_STANDARD=
7720 START_FILES=
7721 TEMACS_LDFLAGS2=
7722 fi
7723 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7724 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7725 HAVE_NS=yes
7726 else
7727 as_fn_error $? "\`--with-ns' was specified, but the include
7728 files are missing or cannot be compiled." "$LINENO" 5
7729 fi
7730
7731
7732 NS_HAVE_NSINTEGER=yes
7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734 /* end confdefs.h. */
7735 #include <Foundation/NSObjCRuntime.h>
7736 int
7737 main ()
7738 {
7739 NSInteger i;
7740 ;
7741 return 0;
7742 }
7743 _ACEOF
7744 if ac_fn_c_try_compile "$LINENO"; then :
7745 ns_have_nsinteger=yes
7746 else
7747 ns_have_nsinteger=no
7748 fi
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7750 if test $ns_have_nsinteger = no; then
7751 NS_HAVE_NSINTEGER=no
7752 fi
7753 fi
7754
7755
7756 ns_frag=/dev/null
7757 NS_OBJ=
7758 NS_SUPPORT=
7759 if test "${HAVE_NS}" = yes; then
7760 window_system=nextstep
7761 with_xft=no
7762 # set up packaging dirs
7763 exec_prefix=${ns_appbindir}
7764 libexecdir=${ns_appbindir}/libexec
7765 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7766 prefix=${ns_appresdir}
7767 fi
7768 ns_frag=$srcdir/src/ns.mk
7769 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7770 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
7771 fi
7772 CFLAGS="$tmp_CFLAGS"
7773 CPPFLAGS="$tmp_CPPFLAGS"
7774
7775
7776
7777
7778
7779 case "${window_system}" in
7780 x11 )
7781 HAVE_X_WINDOWS=yes
7782 HAVE_X11=yes
7783 case "${with_x_toolkit}" in
7784 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7785 motif ) USE_X_TOOLKIT=MOTIF ;;
7786 gtk ) with_gtk=yes
7787 USE_X_TOOLKIT=none ;;
7788 gtk3 ) with_gtk3=yes
7789 USE_X_TOOLKIT=none ;;
7790 no ) USE_X_TOOLKIT=none ;;
7791 * ) USE_X_TOOLKIT=maybe ;;
7792 esac
7793 ;;
7794 nextstep | none )
7795 HAVE_X_WINDOWS=no
7796 HAVE_X11=no
7797 USE_X_TOOLKIT=none
7798 ;;
7799 esac
7800
7801 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7802 # Extract the first word of "X", so it can be a program name with args.
7803 set dummy X; ac_word=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 if test -n "$HAVE_XSERVER"; then
7810 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7814 do
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819 ac_cv_prog_HAVE_XSERVER="true"
7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 break 2
7822 fi
7823 done
7824 done
7825 IFS=$as_save_IFS
7826
7827 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7828 fi
7829 fi
7830 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7831 if test -n "$HAVE_XSERVER"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7833 $as_echo "$HAVE_XSERVER" >&6; }
7834 else
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7837 fi
7838
7839
7840 if test "$HAVE_XSERVER" = true ||
7841 test -n "$DISPLAY" ||
7842 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7843 as_fn_error $? "You seem to be running X, but no X development libraries
7844 were found. You should install the relevant development files for X
7845 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7846 sure you have development files for image handling, i.e.
7847 tiff, gif, jpeg, png and xpm.
7848 If you are sure you want Emacs compiled without X window support, pass
7849 --without-x
7850 to configure." "$LINENO" 5
7851 fi
7852 fi
7853
7854 ### If we're using X11, we should use the X menu package.
7855 HAVE_MENUS=no
7856 case ${HAVE_X11} in
7857 yes ) HAVE_MENUS=yes ;;
7858 esac
7859
7860 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7861 # Assume not, until told otherwise.
7862 GNU_MALLOC=yes
7863 doug_lea_malloc=yes
7864 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7865 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7866
7867 else
7868 doug_lea_malloc=no
7869 fi
7870
7871 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7872 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7873
7874 else
7875 doug_lea_malloc=no
7876 fi
7877
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7879 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7880 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7885 extern void (* __after_morecore_hook)();
7886 int
7887 main ()
7888 {
7889 __after_morecore_hook = 0
7890 ;
7891 return 0;
7892 }
7893 _ACEOF
7894 if ac_fn_c_try_link "$LINENO"; then :
7895 emacs_cv_var___after_morecore_hook=yes
7896 else
7897 emacs_cv_var___after_morecore_hook=no
7898 fi
7899 rm -f core conftest.err conftest.$ac_objext \
7900 conftest$ac_exeext conftest.$ac_ext
7901 fi
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7903 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7904 if test $emacs_cv_var___after_morecore_hook = no; then
7905 doug_lea_malloc=no
7906 fi
7907
7908
7909 system_malloc=no
7910 case "$opsys" in
7911 ## darwin ld insists on the use of malloc routines in the System framework.
7912 darwin|sol2-10) system_malloc=yes ;;
7913 esac
7914
7915 if test "${system_malloc}" = "yes"; then
7916
7917 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7918
7919 GNU_MALLOC=no
7920 GNU_MALLOC_reason="
7921 (The GNU allocators don't work with this system configuration.)"
7922 GMALLOC_OBJ=
7923 VMLIMIT_OBJ=
7924 else
7925 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7926 VMLIMIT_OBJ=vm-limit.o
7927 fi
7928
7929
7930
7931 if test "$doug_lea_malloc" = "yes" ; then
7932 if test "$GNU_MALLOC" = yes ; then
7933 GNU_MALLOC_reason="
7934 (Using Doug Lea's new malloc from the GNU C Library.)"
7935 fi
7936
7937 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7938
7939
7940 ## Use mmap directly for allocating larger buffers.
7941 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7942 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7943 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7944 case "$opsys" in
7945 gnu*) REL_ALLOC=no ;;
7946 esac
7947 fi
7948
7949 if test x"${REL_ALLOC}" = x; then
7950 REL_ALLOC=${GNU_MALLOC}
7951 fi
7952
7953 use_mmap_for_buffers=no
7954 case "$opsys" in
7955 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7956 esac
7957
7958
7959
7960
7961 for ac_header in $ac_header_list
7962 do :
7963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7964 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7965 "
7966 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7967 cat >>confdefs.h <<_ACEOF
7968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7969 _ACEOF
7970
7971 fi
7972
7973 done
7974
7975
7976
7977
7978
7979
7980
7981
7982 for ac_func in getpagesize
7983 do :
7984 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7985 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7986 cat >>confdefs.h <<_ACEOF
7987 #define HAVE_GETPAGESIZE 1
7988 _ACEOF
7989
7990 fi
7991 done
7992
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7994 $as_echo_n "checking for working mmap... " >&6; }
7995 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7996 $as_echo_n "(cached) " >&6
7997 else
7998 if test "$cross_compiling" = yes; then :
7999 ac_cv_func_mmap_fixed_mapped=no
8000 else
8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002 /* end confdefs.h. */
8003 $ac_includes_default
8004 /* malloc might have been renamed as rpl_malloc. */
8005 #undef malloc
8006
8007 /* Thanks to Mike Haertel and Jim Avera for this test.
8008 Here is a matrix of mmap possibilities:
8009 mmap private not fixed
8010 mmap private fixed at somewhere currently unmapped
8011 mmap private fixed at somewhere already mapped
8012 mmap shared not fixed
8013 mmap shared fixed at somewhere currently unmapped
8014 mmap shared fixed at somewhere already mapped
8015 For private mappings, we should verify that changes cannot be read()
8016 back from the file, nor mmap's back from the file at a different
8017 address. (There have been systems where private was not correctly
8018 implemented like the infamous i386 svr4.0, and systems where the
8019 VM page cache was not coherent with the file system buffer cache
8020 like early versions of FreeBSD and possibly contemporary NetBSD.)
8021 For shared mappings, we should conversely verify that changes get
8022 propagated back to all the places they're supposed to be.
8023
8024 Grep wants private fixed already mapped.
8025 The main things grep needs to know about mmap are:
8026 * does it exist and is it safe to write into the mmap'd area
8027 * how to use it (BSD variants) */
8028
8029 #include <fcntl.h>
8030 #include <sys/mman.h>
8031
8032 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8033 char *malloc ();
8034 #endif
8035
8036 /* This mess was copied from the GNU getpagesize.h. */
8037 #ifndef HAVE_GETPAGESIZE
8038 # ifdef _SC_PAGESIZE
8039 # define getpagesize() sysconf(_SC_PAGESIZE)
8040 # else /* no _SC_PAGESIZE */
8041 # ifdef HAVE_SYS_PARAM_H
8042 # include <sys/param.h>
8043 # ifdef EXEC_PAGESIZE
8044 # define getpagesize() EXEC_PAGESIZE
8045 # else /* no EXEC_PAGESIZE */
8046 # ifdef NBPG
8047 # define getpagesize() NBPG * CLSIZE
8048 # ifndef CLSIZE
8049 # define CLSIZE 1
8050 # endif /* no CLSIZE */
8051 # else /* no NBPG */
8052 # ifdef NBPC
8053 # define getpagesize() NBPC
8054 # else /* no NBPC */
8055 # ifdef PAGESIZE
8056 # define getpagesize() PAGESIZE
8057 # endif /* PAGESIZE */
8058 # endif /* no NBPC */
8059 # endif /* no NBPG */
8060 # endif /* no EXEC_PAGESIZE */
8061 # else /* no HAVE_SYS_PARAM_H */
8062 # define getpagesize() 8192 /* punt totally */
8063 # endif /* no HAVE_SYS_PARAM_H */
8064 # endif /* no _SC_PAGESIZE */
8065
8066 #endif /* no HAVE_GETPAGESIZE */
8067
8068 int
8069 main ()
8070 {
8071 char *data, *data2, *data3;
8072 const char *cdata2;
8073 int i, pagesize;
8074 int fd, fd2;
8075
8076 pagesize = getpagesize ();
8077
8078 /* First, make a file with some known garbage in it. */
8079 data = (char *) malloc (pagesize);
8080 if (!data)
8081 return 1;
8082 for (i = 0; i < pagesize; ++i)
8083 *(data + i) = rand ();
8084 umask (0);
8085 fd = creat ("conftest.mmap", 0600);
8086 if (fd < 0)
8087 return 2;
8088 if (write (fd, data, pagesize) != pagesize)
8089 return 3;
8090 close (fd);
8091
8092 /* Next, check that the tail of a page is zero-filled. File must have
8093 non-zero length, otherwise we risk SIGBUS for entire page. */
8094 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8095 if (fd2 < 0)
8096 return 4;
8097 cdata2 = "";
8098 if (write (fd2, cdata2, 1) != 1)
8099 return 5;
8100 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8101 if (data2 == MAP_FAILED)
8102 return 6;
8103 for (i = 0; i < pagesize; ++i)
8104 if (*(data2 + i))
8105 return 7;
8106 close (fd2);
8107 if (munmap (data2, pagesize))
8108 return 8;
8109
8110 /* Next, try to mmap the file at a fixed address which already has
8111 something else allocated at it. If we can, also make sure that
8112 we see the same garbage. */
8113 fd = open ("conftest.mmap", O_RDWR);
8114 if (fd < 0)
8115 return 9;
8116 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8117 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8118 return 10;
8119 for (i = 0; i < pagesize; ++i)
8120 if (*(data + i) != *(data2 + i))
8121 return 11;
8122
8123 /* Finally, make sure that changes to the mapped area do not
8124 percolate back to the file as seen by read(). (This is a bug on
8125 some variants of i386 svr4.0.) */
8126 for (i = 0; i < pagesize; ++i)
8127 *(data2 + i) = *(data2 + i) + 1;
8128 data3 = (char *) malloc (pagesize);
8129 if (!data3)
8130 return 12;
8131 if (read (fd, data3, pagesize) != pagesize)
8132 return 13;
8133 for (i = 0; i < pagesize; ++i)
8134 if (*(data + i) != *(data3 + i))
8135 return 14;
8136 close (fd);
8137 return 0;
8138 }
8139 _ACEOF
8140 if ac_fn_c_try_run "$LINENO"; then :
8141 ac_cv_func_mmap_fixed_mapped=yes
8142 else
8143 ac_cv_func_mmap_fixed_mapped=no
8144 fi
8145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8146 conftest.$ac_objext conftest.beam conftest.$ac_ext
8147 fi
8148
8149 fi
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8151 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8152 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8153
8154 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8155
8156 fi
8157 rm -f conftest.mmap conftest.txt
8158
8159 if test $use_mmap_for_buffers = yes; then
8160
8161 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8162
8163 REL_ALLOC=no
8164 fi
8165
8166 LIBS="$LIBS_SYSTEM $LIBS"
8167
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8169 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8170 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8171 $as_echo_n "(cached) " >&6
8172 else
8173 ac_check_lib_save_LIBS=$LIBS
8174 LIBS="-ldnet $LIBS"
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8177
8178 /* Override any GCC internal prototype to avoid an error.
8179 Use char because int might match the return type of a GCC
8180 builtin and then its argument prototype would still apply. */
8181 #ifdef __cplusplus
8182 extern "C"
8183 #endif
8184 char dnet_ntoa ();
8185 int
8186 main ()
8187 {
8188 return dnet_ntoa ();
8189 ;
8190 return 0;
8191 }
8192 _ACEOF
8193 if ac_fn_c_try_link "$LINENO"; then :
8194 ac_cv_lib_dnet_dnet_ntoa=yes
8195 else
8196 ac_cv_lib_dnet_dnet_ntoa=no
8197 fi
8198 rm -f core conftest.err conftest.$ac_objext \
8199 conftest$ac_exeext conftest.$ac_ext
8200 LIBS=$ac_check_lib_save_LIBS
8201 fi
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8203 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8204 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
8205 cat >>confdefs.h <<_ACEOF
8206 #define HAVE_LIBDNET 1
8207 _ACEOF
8208
8209 LIBS="-ldnet $LIBS"
8210
8211 fi
8212
8213
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8215 $as_echo_n "checking for main in -lXbsd... " >&6; }
8216 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
8218 else
8219 ac_check_lib_save_LIBS=$LIBS
8220 LIBS="-lXbsd $LIBS"
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8223
8224
8225 int
8226 main ()
8227 {
8228 return main ();
8229 ;
8230 return 0;
8231 }
8232 _ACEOF
8233 if ac_fn_c_try_link "$LINENO"; then :
8234 ac_cv_lib_Xbsd_main=yes
8235 else
8236 ac_cv_lib_Xbsd_main=no
8237 fi
8238 rm -f core conftest.err conftest.$ac_objext \
8239 conftest$ac_exeext conftest.$ac_ext
8240 LIBS=$ac_check_lib_save_LIBS
8241 fi
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8243 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8244 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
8245 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8246 fi
8247
8248
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8250 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8251 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 ac_check_lib_save_LIBS=$LIBS
8255 LIBS="-lpthreads $LIBS"
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8258
8259 /* Override any GCC internal prototype to avoid an error.
8260 Use char because int might match the return type of a GCC
8261 builtin and then its argument prototype would still apply. */
8262 #ifdef __cplusplus
8263 extern "C"
8264 #endif
8265 char cma_open ();
8266 int
8267 main ()
8268 {
8269 return cma_open ();
8270 ;
8271 return 0;
8272 }
8273 _ACEOF
8274 if ac_fn_c_try_link "$LINENO"; then :
8275 ac_cv_lib_pthreads_cma_open=yes
8276 else
8277 ac_cv_lib_pthreads_cma_open=no
8278 fi
8279 rm -f core conftest.err conftest.$ac_objext \
8280 conftest$ac_exeext conftest.$ac_ext
8281 LIBS=$ac_check_lib_save_LIBS
8282 fi
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8284 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8285 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
8286 cat >>confdefs.h <<_ACEOF
8287 #define HAVE_LIBPTHREADS 1
8288 _ACEOF
8289
8290 LIBS="-lpthreads $LIBS"
8291
8292 fi
8293
8294
8295 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8296 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8297 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8298 ## added to LIBS in configure would never contain the pthreads part,
8299 ## but the value used in Makefiles might. FIXME?
8300 ##
8301 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8302 ## be harmless on older versions of X where it happens to exist.
8303 test "$opsys" = "aix4-2" && \
8304 test $ac_cv_lib_pthreads_cma_open = yes && \
8305 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8306
8307
8308 case ${host_os} in
8309 aix*)
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8311 $as_echo_n "checking for -bbigtoc option... " >&6; }
8312 if test "${gdb_cv_bigtoc+set}" = set; then :
8313 $as_echo_n "(cached) " >&6
8314 else
8315
8316 case $GCC in
8317 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8318 *) gdb_cv_bigtoc=-bbigtoc ;;
8319 esac
8320
8321 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8324
8325 int
8326 main ()
8327 {
8328 int i;
8329 ;
8330 return 0;
8331 }
8332 _ACEOF
8333 if ac_fn_c_try_link "$LINENO"; then :
8334
8335 else
8336 gdb_cv_bigtoc=
8337 fi
8338 rm -f core conftest.err conftest.$ac_objext \
8339 conftest$ac_exeext conftest.$ac_ext
8340
8341 fi
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8343 $as_echo "$gdb_cv_bigtoc" >&6; }
8344 ;;
8345 esac
8346
8347 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8348 # used for the tests that follow. We set them back to REAL_CFLAGS and
8349 # REAL_CPPFLAGS later on.
8350
8351 REAL_CFLAGS="$CFLAGS"
8352 REAL_CPPFLAGS="$CPPFLAGS"
8353
8354 if test "${HAVE_X11}" = "yes"; then
8355 DEFS="$C_SWITCH_X_SITE $DEFS"
8356 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8357 LIBS="-lX11 $LIBS"
8358 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8359 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8360
8361 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8362 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8363 # but it's more convenient here to set LD_RUN_PATH
8364 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8365 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8366 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8367 export LD_RUN_PATH
8368 fi
8369
8370 if test "${opsys}" = "gnu-linux"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8372 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8375
8376 int
8377 main ()
8378 {
8379 XOpenDisplay ("foo");
8380 ;
8381 return 0;
8382 }
8383 _ACEOF
8384 if ac_fn_c_try_link "$LINENO"; then :
8385 xlinux_first_failure=no
8386 else
8387 xlinux_first_failure=yes
8388 fi
8389 rm -f core conftest.err conftest.$ac_objext \
8390 conftest$ac_exeext conftest.$ac_ext
8391 if test "${xlinux_first_failure}" = "yes"; then
8392 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8393 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8394 OLD_CPPFLAGS="$CPPFLAGS"
8395 OLD_LIBS="$LIBS"
8396 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8397 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8398 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8399 LIBS="$LIBS -b i486-linuxaout"
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8402
8403 int
8404 main ()
8405 {
8406 XOpenDisplay ("foo");
8407 ;
8408 return 0;
8409 }
8410 _ACEOF
8411 if ac_fn_c_try_link "$LINENO"; then :
8412 xlinux_second_failure=no
8413 else
8414 xlinux_second_failure=yes
8415 fi
8416 rm -f core conftest.err conftest.$ac_objext \
8417 conftest$ac_exeext conftest.$ac_ext
8418 if test "${xlinux_second_failure}" = "yes"; then
8419 # If we get the same failure with -b, there is no use adding -b.
8420 # So take it out. This plays safe.
8421 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8422 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8423 CPPFLAGS="$OLD_CPPFLAGS"
8424 LIBS="$OLD_LIBS"
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8427 else
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8429 $as_echo "yes" >&6; }
8430 fi
8431 else
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8434 fi
8435 fi
8436
8437 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8438 # header files included from there.
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8440 $as_echo_n "checking for Xkb... " >&6; }
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8443 #include <X11/Xlib.h>
8444 #include <X11/XKBlib.h>
8445 int
8446 main ()
8447 {
8448 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8449 ;
8450 return 0;
8451 }
8452 _ACEOF
8453 if ac_fn_c_try_link "$LINENO"; then :
8454 emacs_xkb=yes
8455 else
8456 emacs_xkb=no
8457 fi
8458 rm -f core conftest.err conftest.$ac_objext \
8459 conftest$ac_exeext conftest.$ac_ext
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8461 $as_echo "$emacs_xkb" >&6; }
8462 if test $emacs_xkb = yes; then
8463
8464 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8465
8466 fi
8467
8468 for ac_func in XrmSetDatabase XScreenResourceString \
8469 XScreenNumberOfScreen XSetWMProtocols
8470 do :
8471 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8472 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8473 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8474 cat >>confdefs.h <<_ACEOF
8475 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8476 _ACEOF
8477
8478 fi
8479 done
8480
8481 fi
8482
8483 if test "${window_system}" = "x11"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8485 $as_echo_n "checking X11 version 6... " >&6; }
8486 if test "${emacs_cv_x11_version_6+set}" = set; then :
8487 $as_echo_n "(cached) " >&6
8488 else
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8491 #include <X11/Xlib.h>
8492 int
8493 main ()
8494 {
8495 #if XlibSpecificationRelease < 6
8496 fail;
8497 #endif
8498
8499 ;
8500 return 0;
8501 }
8502 _ACEOF
8503 if ac_fn_c_try_link "$LINENO"; then :
8504 emacs_cv_x11_version_6=yes
8505 else
8506 emacs_cv_x11_version_6=no
8507 fi
8508 rm -f core conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8510 fi
8511
8512 if test $emacs_cv_x11_version_6 = yes; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8514 $as_echo "6 or newer" >&6; }
8515
8516 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8517
8518
8519 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8520
8521 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8522 ## XIM support.
8523 case "$opsys" in
8524 sol2-*) : ;;
8525 *)
8526 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8527
8528 ;;
8529 esac
8530 else
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8532 $as_echo "before 6" >&6; }
8533 fi
8534 fi
8535
8536
8537 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8538 HAVE_RSVG=no
8539 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8540 if test "${with_rsvg}" != "no"; then
8541 RSVG_REQUIRED=2.11.0
8542 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8543
8544
8545 succeeded=no
8546
8547 # Extract the first word of "pkg-config", so it can be a program name with args.
8548 set dummy pkg-config; ac_word=$2
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550 $as_echo_n "checking for $ac_word... " >&6; }
8551 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8552 $as_echo_n "(cached) " >&6
8553 else
8554 case $PKG_CONFIG in
8555 [\\/]* | ?:[\\/]*)
8556 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8557 ;;
8558 *)
8559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 for as_dir in $PATH
8561 do
8562 IFS=$as_save_IFS
8563 test -z "$as_dir" && as_dir=.
8564 for ac_exec_ext in '' $ac_executable_extensions; do
8565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8566 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8568 break 2
8569 fi
8570 done
8571 done
8572 IFS=$as_save_IFS
8573
8574 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8575 ;;
8576 esac
8577 fi
8578 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8579 if test -n "$PKG_CONFIG"; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8581 $as_echo "$PKG_CONFIG" >&6; }
8582 else
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584 $as_echo "no" >&6; }
8585 fi
8586
8587
8588
8589 if test "$PKG_CONFIG" = "no" ; then
8590 :
8591 else
8592 PKG_CONFIG_MIN_VERSION=0.9.0
8593 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8595 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8596
8597 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8599 $as_echo "yes" >&6; }
8600 succeeded=yes
8601
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8603 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8604 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8606 $as_echo "$RSVG_CFLAGS" >&6; }
8607
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8609 $as_echo_n "checking RSVG_LIBS... " >&6; }
8610 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8612 $as_echo "$RSVG_LIBS" >&6; }
8613 else
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 $as_echo "no" >&6; }
8616 RSVG_CFLAGS=""
8617 RSVG_LIBS=""
8618 ## If we have a custom action on failure, don't print errors, but
8619 ## do set a variable so people can do so.
8620 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8621
8622 fi
8623
8624
8625
8626 else
8627 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8628 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8629 fi
8630 fi
8631
8632 if test $succeeded = yes; then
8633 HAVE_RSVG=yes
8634 else
8635 :
8636 fi
8637
8638
8639
8640
8641 if test $HAVE_RSVG = yes; then
8642
8643 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8644
8645 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8646 LIBS="$RSVG_LIBS $LIBS"
8647 fi
8648 fi
8649 fi
8650
8651 HAVE_IMAGEMAGICK=no
8652 if test "${HAVE_X11}" = "yes"; then
8653 if test "${with_imagemagick}" != "no"; then
8654 IMAGEMAGICK_MODULE="Wand"
8655
8656 succeeded=no
8657
8658 # Extract the first word of "pkg-config", so it can be a program name with args.
8659 set dummy pkg-config; ac_word=$2
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8661 $as_echo_n "checking for $ac_word... " >&6; }
8662 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8663 $as_echo_n "(cached) " >&6
8664 else
8665 case $PKG_CONFIG in
8666 [\\/]* | ?:[\\/]*)
8667 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8668 ;;
8669 *)
8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671 for as_dir in $PATH
8672 do
8673 IFS=$as_save_IFS
8674 test -z "$as_dir" && as_dir=.
8675 for ac_exec_ext in '' $ac_executable_extensions; do
8676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8677 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8679 break 2
8680 fi
8681 done
8682 done
8683 IFS=$as_save_IFS
8684
8685 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8686 ;;
8687 esac
8688 fi
8689 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8690 if test -n "$PKG_CONFIG"; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8692 $as_echo "$PKG_CONFIG" >&6; }
8693 else
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695 $as_echo "no" >&6; }
8696 fi
8697
8698
8699
8700 if test "$PKG_CONFIG" = "no" ; then
8701 :
8702 else
8703 PKG_CONFIG_MIN_VERSION=0.9.0
8704 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8706 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8707
8708 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8710 $as_echo "yes" >&6; }
8711 succeeded=yes
8712
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8714 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8715 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8717 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8718
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8720 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8721 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8723 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8724 else
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8727 IMAGEMAGICK_CFLAGS=""
8728 IMAGEMAGICK_LIBS=""
8729 ## If we have a custom action on failure, don't print errors, but
8730 ## do set a variable so people can do so.
8731 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8732
8733 fi
8734
8735
8736
8737 else
8738 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8739 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8740 fi
8741 fi
8742
8743 if test $succeeded = yes; then
8744 HAVE_IMAGEMAGICK=yes
8745 else
8746 :
8747 fi
8748
8749
8750
8751
8752 if test $HAVE_IMAGEMAGICK = yes; then
8753
8754 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8755
8756 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
8757 LIBS="$IMAGEMAGICK_LIBS $LIBS"
8758 for ac_func in MagickExportImagePixels
8759 do :
8760 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8761 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
8762 cat >>confdefs.h <<_ACEOF
8763 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8764 _ACEOF
8765
8766 fi
8767 done
8768
8769 fi
8770 fi
8771 fi
8772
8773
8774 HAVE_GTK=no
8775 if test "${with_gtk3}" = "yes"; then
8776 GLIB_REQUIRED=2.6
8777 GTK_REQUIRED=2.90
8778 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8779
8780
8781 succeeded=no
8782
8783 # Extract the first word of "pkg-config", so it can be a program name with args.
8784 set dummy pkg-config; ac_word=$2
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786 $as_echo_n "checking for $ac_word... " >&6; }
8787 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8788 $as_echo_n "(cached) " >&6
8789 else
8790 case $PKG_CONFIG in
8791 [\\/]* | ?:[\\/]*)
8792 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8793 ;;
8794 *)
8795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796 for as_dir in $PATH
8797 do
8798 IFS=$as_save_IFS
8799 test -z "$as_dir" && as_dir=.
8800 for ac_exec_ext in '' $ac_executable_extensions; do
8801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8802 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8804 break 2
8805 fi
8806 done
8807 done
8808 IFS=$as_save_IFS
8809
8810 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8811 ;;
8812 esac
8813 fi
8814 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8815 if test -n "$PKG_CONFIG"; then
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8817 $as_echo "$PKG_CONFIG" >&6; }
8818 else
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8821 fi
8822
8823
8824
8825 if test "$PKG_CONFIG" = "no" ; then
8826 pkg_check_gtk=no
8827 else
8828 PKG_CONFIG_MIN_VERSION=0.9.0
8829 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8831 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8832
8833 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8835 $as_echo "yes" >&6; }
8836 succeeded=yes
8837
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8839 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8840 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8842 $as_echo "$GTK_CFLAGS" >&6; }
8843
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8845 $as_echo_n "checking GTK_LIBS... " >&6; }
8846 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8848 $as_echo "$GTK_LIBS" >&6; }
8849 else
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8852 GTK_CFLAGS=""
8853 GTK_LIBS=""
8854 ## If we have a custom action on failure, don't print errors, but
8855 ## do set a variable so people can do so.
8856 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8857
8858 fi
8859
8860
8861
8862 else
8863 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8864 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8865 fi
8866 fi
8867
8868 if test $succeeded = yes; then
8869 pkg_check_gtk=yes
8870 else
8871 pkg_check_gtk=no
8872 fi
8873
8874 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8875 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8876 fi
8877 fi
8878
8879 if test "$pkg_check_gtk" != "yes"; then
8880 HAVE_GTK=no
8881 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8882 GLIB_REQUIRED=2.6
8883 GTK_REQUIRED=2.6
8884 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8885
8886
8887 succeeded=no
8888
8889 # Extract the first word of "pkg-config", so it can be a program name with args.
8890 set dummy pkg-config; ac_word=$2
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8892 $as_echo_n "checking for $ac_word... " >&6; }
8893 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8894 $as_echo_n "(cached) " >&6
8895 else
8896 case $PKG_CONFIG in
8897 [\\/]* | ?:[\\/]*)
8898 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8899 ;;
8900 *)
8901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8902 for as_dir in $PATH
8903 do
8904 IFS=$as_save_IFS
8905 test -z "$as_dir" && as_dir=.
8906 for ac_exec_ext in '' $ac_executable_extensions; do
8907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8908 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8910 break 2
8911 fi
8912 done
8913 done
8914 IFS=$as_save_IFS
8915
8916 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8917 ;;
8918 esac
8919 fi
8920 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8921 if test -n "$PKG_CONFIG"; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8923 $as_echo "$PKG_CONFIG" >&6; }
8924 else
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8927 fi
8928
8929
8930
8931 if test "$PKG_CONFIG" = "no" ; then
8932 pkg_check_gtk=no
8933 else
8934 PKG_CONFIG_MIN_VERSION=0.9.0
8935 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8937 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8938
8939 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8941 $as_echo "yes" >&6; }
8942 succeeded=yes
8943
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8945 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8946 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8948 $as_echo "$GTK_CFLAGS" >&6; }
8949
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8951 $as_echo_n "checking GTK_LIBS... " >&6; }
8952 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8954 $as_echo "$GTK_LIBS" >&6; }
8955 else
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957 $as_echo "no" >&6; }
8958 GTK_CFLAGS=""
8959 GTK_LIBS=""
8960 ## If we have a custom action on failure, don't print errors, but
8961 ## do set a variable so people can do so.
8962 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8963
8964 fi
8965
8966
8967
8968 else
8969 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8970 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8971 fi
8972 fi
8973
8974 if test $succeeded = yes; then
8975 pkg_check_gtk=yes
8976 else
8977 pkg_check_gtk=no
8978 fi
8979
8980 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8981 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8982 fi
8983 fi
8984 fi
8985
8986 GTK_OBJ=
8987 if test x"$pkg_check_gtk" = xyes; then
8988
8989
8990
8991 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8992 CFLAGS="$CFLAGS $GTK_CFLAGS"
8993 LIBS="$GTK_LIBS $LIBS"
8994 GTK_COMPILES=no
8995 for ac_func in gtk_main
8996 do :
8997 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8998 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8999 cat >>confdefs.h <<_ACEOF
9000 #define HAVE_GTK_MAIN 1
9001 _ACEOF
9002 GTK_COMPILES=yes
9003 fi
9004 done
9005
9006 if test "${GTK_COMPILES}" != "yes"; then
9007 if test "$USE_X_TOOLKIT" != "maybe"; then
9008 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5 ;
9009 fi
9010 else
9011 HAVE_GTK=yes
9012
9013 $as_echo "#define USE_GTK 1" >>confdefs.h
9014
9015 GTK_OBJ=gtkutil.o
9016 USE_X_TOOLKIT=none
9017 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
9018 :
9019 else
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
9021 closing open displays. This is no problem if you just use
9022 one display, but if you use more than one and close one of them
9023 Emacs may crash." >&5
9024 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
9025 closing open displays. This is no problem if you just use
9026 one display, but if you use more than one and close one of them
9027 Emacs may crash." >&2;}
9028 sleep 3
9029 fi
9030 fi
9031
9032 fi
9033
9034
9035
9036 if test "${HAVE_GTK}" = "yes"; then
9037
9038 if test "$with_toolkit_scroll_bars" != no; then
9039 with_toolkit_scroll_bars=yes
9040 fi
9041
9042 HAVE_GTK_FILE_SELECTION=no
9043 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9044 #include <gtk/gtk.h>
9045 "
9046 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
9047 HAVE_GTK_FILE_SELECTION=yes
9048 else
9049 HAVE_GTK_FILE_SELECTION=no
9050 fi
9051
9052 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9053 for ac_func in gtk_file_selection_new
9054 do :
9055 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9056 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
9057 cat >>confdefs.h <<_ACEOF
9058 #define HAVE_GTK_FILE_SELECTION_NEW 1
9059 _ACEOF
9060
9061 fi
9062 done
9063
9064 fi
9065
9066 HAVE_GTK_AND_PTHREAD=no
9067 for ac_header in pthread.h
9068 do :
9069 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9070 if test "x$ac_cv_header_pthread_h" = x""yes; then :
9071 cat >>confdefs.h <<_ACEOF
9072 #define HAVE_PTHREAD_H 1
9073 _ACEOF
9074
9075 fi
9076
9077 done
9078
9079 if test "$ac_cv_header_pthread_h"; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9081 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9082 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 ac_check_lib_save_LIBS=$LIBS
9086 LIBS="-lpthread $LIBS"
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089
9090 /* Override any GCC internal prototype to avoid an error.
9091 Use char because int might match the return type of a GCC
9092 builtin and then its argument prototype would still apply. */
9093 #ifdef __cplusplus
9094 extern "C"
9095 #endif
9096 char pthread_self ();
9097 int
9098 main ()
9099 {
9100 return pthread_self ();
9101 ;
9102 return 0;
9103 }
9104 _ACEOF
9105 if ac_fn_c_try_link "$LINENO"; then :
9106 ac_cv_lib_pthread_pthread_self=yes
9107 else
9108 ac_cv_lib_pthread_pthread_self=no
9109 fi
9110 rm -f core conftest.err conftest.$ac_objext \
9111 conftest$ac_exeext conftest.$ac_ext
9112 LIBS=$ac_check_lib_save_LIBS
9113 fi
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9115 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9116 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
9117 HAVE_GTK_AND_PTHREAD=yes
9118 fi
9119
9120 fi
9121 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9122 case "${canonical}" in
9123 *-hpux*) ;;
9124 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
9125 esac
9126
9127 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9128
9129 fi
9130
9131 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
9132 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9133 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9134 gtk_orientable_set_orientation
9135 do :
9136 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9137 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9138 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9139 cat >>confdefs.h <<_ACEOF
9140 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9141 _ACEOF
9142
9143 fi
9144 done
9145
9146
9147 fi
9148
9149 HAVE_DBUS=no
9150 DBUS_OBJ=
9151 if test "${with_dbus}" = "yes"; then
9152
9153 succeeded=no
9154
9155 # Extract the first word of "pkg-config", so it can be a program name with args.
9156 set dummy pkg-config; ac_word=$2
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158 $as_echo_n "checking for $ac_word... " >&6; }
9159 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 case $PKG_CONFIG in
9163 [\\/]* | ?:[\\/]*)
9164 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9165 ;;
9166 *)
9167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168 for as_dir in $PATH
9169 do
9170 IFS=$as_save_IFS
9171 test -z "$as_dir" && as_dir=.
9172 for ac_exec_ext in '' $ac_executable_extensions; do
9173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9174 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9176 break 2
9177 fi
9178 done
9179 done
9180 IFS=$as_save_IFS
9181
9182 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9183 ;;
9184 esac
9185 fi
9186 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9187 if test -n "$PKG_CONFIG"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9189 $as_echo "$PKG_CONFIG" >&6; }
9190 else
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 $as_echo "no" >&6; }
9193 fi
9194
9195
9196
9197 if test "$PKG_CONFIG" = "no" ; then
9198 HAVE_DBUS=no
9199 else
9200 PKG_CONFIG_MIN_VERSION=0.9.0
9201 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9203 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9204
9205 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9207 $as_echo "yes" >&6; }
9208 succeeded=yes
9209
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9211 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9212 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9214 $as_echo "$DBUS_CFLAGS" >&6; }
9215
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9217 $as_echo_n "checking DBUS_LIBS... " >&6; }
9218 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9220 $as_echo "$DBUS_LIBS" >&6; }
9221 else
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223 $as_echo "no" >&6; }
9224 DBUS_CFLAGS=""
9225 DBUS_LIBS=""
9226 ## If we have a custom action on failure, don't print errors, but
9227 ## do set a variable so people can do so.
9228 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9229
9230 fi
9231
9232
9233
9234 else
9235 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9236 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9237 fi
9238 fi
9239
9240 if test $succeeded = yes; then
9241 HAVE_DBUS=yes
9242 else
9243 HAVE_DBUS=no
9244 fi
9245
9246 if test "$HAVE_DBUS" = yes; then
9247 LIBS="$LIBS $DBUS_LIBS"
9248
9249 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9250
9251 for ac_func in dbus_watch_get_unix_fd
9252 do :
9253 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9254 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
9255 cat >>confdefs.h <<_ACEOF
9256 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9257 _ACEOF
9258
9259 fi
9260 done
9261
9262 DBUS_OBJ=dbusbind.o
9263 fi
9264 fi
9265
9266
9267 HAVE_GCONF=no
9268 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9269
9270 succeeded=no
9271
9272 # Extract the first word of "pkg-config", so it can be a program name with args.
9273 set dummy pkg-config; ac_word=$2
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9275 $as_echo_n "checking for $ac_word... " >&6; }
9276 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9277 $as_echo_n "(cached) " >&6
9278 else
9279 case $PKG_CONFIG in
9280 [\\/]* | ?:[\\/]*)
9281 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9282 ;;
9283 *)
9284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9285 for as_dir in $PATH
9286 do
9287 IFS=$as_save_IFS
9288 test -z "$as_dir" && as_dir=.
9289 for ac_exec_ext in '' $ac_executable_extensions; do
9290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9291 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9293 break 2
9294 fi
9295 done
9296 done
9297 IFS=$as_save_IFS
9298
9299 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9300 ;;
9301 esac
9302 fi
9303 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9304 if test -n "$PKG_CONFIG"; then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9306 $as_echo "$PKG_CONFIG" >&6; }
9307 else
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9309 $as_echo "no" >&6; }
9310 fi
9311
9312
9313
9314 if test "$PKG_CONFIG" = "no" ; then
9315 HAVE_GCONF=no
9316 else
9317 PKG_CONFIG_MIN_VERSION=0.9.0
9318 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9320 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9321
9322 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9324 $as_echo "yes" >&6; }
9325 succeeded=yes
9326
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9328 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9329 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9331 $as_echo "$GCONF_CFLAGS" >&6; }
9332
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9334 $as_echo_n "checking GCONF_LIBS... " >&6; }
9335 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9337 $as_echo "$GCONF_LIBS" >&6; }
9338 else
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9340 $as_echo "no" >&6; }
9341 GCONF_CFLAGS=""
9342 GCONF_LIBS=""
9343 ## If we have a custom action on failure, don't print errors, but
9344 ## do set a variable so people can do so.
9345 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9346
9347 fi
9348
9349
9350
9351 else
9352 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9353 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9354 fi
9355 fi
9356
9357 if test $succeeded = yes; then
9358 HAVE_GCONF=yes
9359 else
9360 HAVE_GCONF=no
9361 fi
9362
9363 if test "$HAVE_GCONF" = yes; then
9364
9365 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9366
9367 fi
9368 fi
9369
9370 HAVE_LIBSELINUX=no
9371 LIBSELINUX_LIBS=
9372 if test "${with_selinux}" = "yes"; then
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9374 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9375 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9378 ac_check_lib_save_LIBS=$LIBS
9379 LIBS="-lselinux $LIBS"
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9382
9383 /* Override any GCC internal prototype to avoid an error.
9384 Use char because int might match the return type of a GCC
9385 builtin and then its argument prototype would still apply. */
9386 #ifdef __cplusplus
9387 extern "C"
9388 #endif
9389 char lgetfilecon ();
9390 int
9391 main ()
9392 {
9393 return lgetfilecon ();
9394 ;
9395 return 0;
9396 }
9397 _ACEOF
9398 if ac_fn_c_try_link "$LINENO"; then :
9399 ac_cv_lib_selinux_lgetfilecon=yes
9400 else
9401 ac_cv_lib_selinux_lgetfilecon=no
9402 fi
9403 rm -f core conftest.err conftest.$ac_objext \
9404 conftest$ac_exeext conftest.$ac_ext
9405 LIBS=$ac_check_lib_save_LIBS
9406 fi
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9408 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9409 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
9410 HAVE_LIBSELINUX=yes
9411 else
9412 HAVE_LIBSELINUX=no
9413 fi
9414
9415 if test "$HAVE_LIBSELINUX" = yes; then
9416
9417 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9418
9419 LIBSELINUX_LIBS=-lselinux
9420 fi
9421 fi
9422
9423
9424 HAVE_GNUTLS=no
9425 if test "${with_gnutls}" = "yes" ; then
9426
9427 succeeded=no
9428
9429 # Extract the first word of "pkg-config", so it can be a program name with args.
9430 set dummy pkg-config; ac_word=$2
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9432 $as_echo_n "checking for $ac_word... " >&6; }
9433 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 case $PKG_CONFIG in
9437 [\\/]* | ?:[\\/]*)
9438 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9439 ;;
9440 *)
9441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9442 for as_dir in $PATH
9443 do
9444 IFS=$as_save_IFS
9445 test -z "$as_dir" && as_dir=.
9446 for ac_exec_ext in '' $ac_executable_extensions; do
9447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9448 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9450 break 2
9451 fi
9452 done
9453 done
9454 IFS=$as_save_IFS
9455
9456 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9457 ;;
9458 esac
9459 fi
9460 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9461 if test -n "$PKG_CONFIG"; then
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9463 $as_echo "$PKG_CONFIG" >&6; }
9464 else
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9466 $as_echo "no" >&6; }
9467 fi
9468
9469
9470
9471 if test "$PKG_CONFIG" = "no" ; then
9472 HAVE_GNUTLS=no
9473 else
9474 PKG_CONFIG_MIN_VERSION=0.9.0
9475 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9477 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9478
9479 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9481 $as_echo "yes" >&6; }
9482 succeeded=yes
9483
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9485 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9486 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9488 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9489
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9491 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9492 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9494 $as_echo "$LIBGNUTLS_LIBS" >&6; }
9495 else
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497 $as_echo "no" >&6; }
9498 LIBGNUTLS_CFLAGS=""
9499 LIBGNUTLS_LIBS=""
9500 ## If we have a custom action on failure, don't print errors, but
9501 ## do set a variable so people can do so.
9502 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9503
9504 fi
9505
9506
9507
9508 else
9509 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9510 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9511 fi
9512 fi
9513
9514 if test $succeeded = yes; then
9515 HAVE_GNUTLS=yes
9516 else
9517 HAVE_GNUTLS=no
9518 fi
9519
9520 if test "${HAVE_GNUTLS}" = "yes"; then
9521
9522 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9523
9524 fi
9525 fi
9526
9527
9528
9529 HAVE_XAW3D=no
9530 LUCID_LIBW=
9531 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9532 if test "$with_xaw3d" != no; then
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9534 $as_echo_n "checking for xaw3d... " >&6; }
9535 if test "${emacs_cv_xaw3d+set}" = set; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9540
9541 #include <X11/Intrinsic.h>
9542 #include <X11/Xaw3d/Simple.h>
9543 int
9544 main ()
9545 {
9546
9547 ;
9548 return 0;
9549 }
9550 _ACEOF
9551 if ac_fn_c_try_link "$LINENO"; then :
9552 emacs_cv_xaw3d=yes
9553 else
9554 emacs_cv_xaw3d=no
9555 fi
9556 rm -f core conftest.err conftest.$ac_objext \
9557 conftest$ac_exeext conftest.$ac_ext
9558 fi
9559
9560 else
9561 emacs_cv_xaw3d=no
9562 fi
9563 if test $emacs_cv_xaw3d = yes; then
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9565 $as_echo "yes; using Lucid toolkit" >&6; }
9566 USE_X_TOOLKIT=LUCID
9567 HAVE_XAW3D=yes
9568 LUCID_LIBW=-lXaw3d
9569
9570 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9571
9572 else
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9574 $as_echo "no" >&6; }
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9576 $as_echo_n "checking for libXaw... " >&6; }
9577 if test "${emacs_cv_xaw+set}" = set; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9582
9583 #include <X11/Intrinsic.h>
9584 #include <X11/Xaw/Simple.h>
9585 int
9586 main ()
9587 {
9588
9589 ;
9590 return 0;
9591 }
9592 _ACEOF
9593 if ac_fn_c_try_link "$LINENO"; then :
9594 emacs_cv_xaw=yes
9595 else
9596 emacs_cv_xaw=no
9597 fi
9598 rm -f core conftest.err conftest.$ac_objext \
9599 conftest$ac_exeext conftest.$ac_ext
9600 fi
9601
9602 if test $emacs_cv_xaw = yes; then
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9604 $as_echo "yes; using Lucid toolkit" >&6; }
9605 USE_X_TOOLKIT=LUCID
9606 LUCID_LIBW=-lXaw
9607 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9608 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9609 else
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9611 $as_echo "no; do not use toolkit by default" >&6; }
9612 USE_X_TOOLKIT=none
9613 fi
9614 fi
9615 fi
9616
9617 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9618
9619 LIBXTR6=
9620 if test "${USE_X_TOOLKIT}" != "none"; then
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9622 $as_echo_n "checking X11 toolkit version... " >&6; }
9623 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9624 $as_echo_n "(cached) " >&6
9625 else
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9628 #include <X11/Intrinsic.h>
9629 int
9630 main ()
9631 {
9632 #if XtSpecificationRelease < 6
9633 fail;
9634 #endif
9635
9636 ;
9637 return 0;
9638 }
9639 _ACEOF
9640 if ac_fn_c_try_link "$LINENO"; then :
9641 emacs_cv_x11_toolkit_version_6=yes
9642 else
9643 emacs_cv_x11_toolkit_version_6=no
9644 fi
9645 rm -f core conftest.err conftest.$ac_objext \
9646 conftest$ac_exeext conftest.$ac_ext
9647 fi
9648
9649 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9650 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9652 $as_echo "6 or newer" >&6; }
9653
9654 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9655
9656 LIBXTR6="-lSM -lICE"
9657 case "$opsys" in
9658 ## Use libw.a along with X11R6 Xt.
9659 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9660 esac
9661 else
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9663 $as_echo "before 6" >&6; }
9664 fi
9665
9666 OLDLIBS="$LIBS"
9667 if test x$HAVE_X11XTR6 = xyes; then
9668 LIBS="-lXt -lSM -lICE $LIBS"
9669 else
9670 LIBS="-lXt $LIBS"
9671 fi
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9673 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9674 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9675 $as_echo_n "(cached) " >&6
9676 else
9677 ac_check_lib_save_LIBS=$LIBS
9678 LIBS="-lXmu $LIBS"
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9681
9682 /* Override any GCC internal prototype to avoid an error.
9683 Use char because int might match the return type of a GCC
9684 builtin and then its argument prototype would still apply. */
9685 #ifdef __cplusplus
9686 extern "C"
9687 #endif
9688 char XmuConvertStandardSelection ();
9689 int
9690 main ()
9691 {
9692 return XmuConvertStandardSelection ();
9693 ;
9694 return 0;
9695 }
9696 _ACEOF
9697 if ac_fn_c_try_link "$LINENO"; then :
9698 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9699 else
9700 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9701 fi
9702 rm -f core conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9704 LIBS=$ac_check_lib_save_LIBS
9705 fi
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9707 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9708 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9709 cat >>confdefs.h <<_ACEOF
9710 #define HAVE_LIBXMU 1
9711 _ACEOF
9712
9713 LIBS="-lXmu $LIBS"
9714
9715 fi
9716
9717 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9718 fi
9719
9720
9721 LIBXMU=-lXmu
9722 case "$machine" in
9723 ## These machines don't supply Xmu.
9724 hpux* | aix4-2 )
9725 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9726 ;;
9727 esac
9728
9729
9730 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9731 if test "${HAVE_X11}" = "yes"; then
9732 if test "${USE_X_TOOLKIT}" != "none"; then
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9734 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9735 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9736 $as_echo_n "(cached) " >&6
9737 else
9738 ac_check_lib_save_LIBS=$LIBS
9739 LIBS="-lXext $LIBS"
9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h. */
9742
9743 /* Override any GCC internal prototype to avoid an error.
9744 Use char because int might match the return type of a GCC
9745 builtin and then its argument prototype would still apply. */
9746 #ifdef __cplusplus
9747 extern "C"
9748 #endif
9749 char XShapeQueryExtension ();
9750 int
9751 main ()
9752 {
9753 return XShapeQueryExtension ();
9754 ;
9755 return 0;
9756 }
9757 _ACEOF
9758 if ac_fn_c_try_link "$LINENO"; then :
9759 ac_cv_lib_Xext_XShapeQueryExtension=yes
9760 else
9761 ac_cv_lib_Xext_XShapeQueryExtension=no
9762 fi
9763 rm -f core conftest.err conftest.$ac_objext \
9764 conftest$ac_exeext conftest.$ac_ext
9765 LIBS=$ac_check_lib_save_LIBS
9766 fi
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9768 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9769 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9770 cat >>confdefs.h <<_ACEOF
9771 #define HAVE_LIBXEXT 1
9772 _ACEOF
9773
9774 LIBS="-lXext $LIBS"
9775
9776 fi
9777
9778 fi
9779 fi
9780
9781 LIBXP=
9782 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9784 $as_echo_n "checking for Motif version 2.1... " >&6; }
9785 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789 /* end confdefs.h. */
9790 #include <Xm/Xm.h>
9791 int
9792 main ()
9793 {
9794 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9795 int x = 5;
9796 #else
9797 Motif version prior to 2.1.
9798 #endif
9799 ;
9800 return 0;
9801 }
9802 _ACEOF
9803 if ac_fn_c_try_compile "$LINENO"; then :
9804 emacs_cv_motif_version_2_1=yes
9805 else
9806 emacs_cv_motif_version_2_1=no
9807 fi
9808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9809 fi
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9811 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9812 if test $emacs_cv_motif_version_2_1 = yes; then
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9814 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9815 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 ac_check_lib_save_LIBS=$LIBS
9819 LIBS="-lXp $LIBS"
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9822
9823 /* Override any GCC internal prototype to avoid an error.
9824 Use char because int might match the return type of a GCC
9825 builtin and then its argument prototype would still apply. */
9826 #ifdef __cplusplus
9827 extern "C"
9828 #endif
9829 char XpCreateContext ();
9830 int
9831 main ()
9832 {
9833 return XpCreateContext ();
9834 ;
9835 return 0;
9836 }
9837 _ACEOF
9838 if ac_fn_c_try_link "$LINENO"; then :
9839 ac_cv_lib_Xp_XpCreateContext=yes
9840 else
9841 ac_cv_lib_Xp_XpCreateContext=no
9842 fi
9843 rm -f core conftest.err conftest.$ac_objext \
9844 conftest$ac_exeext conftest.$ac_ext
9845 LIBS=$ac_check_lib_save_LIBS
9846 fi
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9848 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9849 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9850 LIBXP=-lXp
9851 fi
9852
9853 else
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9855 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9856 if test "${emacs_cv_lesstif+set}" = set; then :
9857 $as_echo_n "(cached) " >&6
9858 else
9859 # We put this in CFLAGS temporarily to precede other -I options
9860 # that might be in CFLAGS temporarily.
9861 # We put this in CPPFLAGS where it precedes the other -I options.
9862 OLD_CPPFLAGS=$CPPFLAGS
9863 OLD_CFLAGS=$CFLAGS
9864 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9865 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9868 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9869 int
9870 main ()
9871 {
9872 int x = 5;
9873 ;
9874 return 0;
9875 }
9876 _ACEOF
9877 if ac_fn_c_try_compile "$LINENO"; then :
9878 emacs_cv_lesstif=yes
9879 else
9880 emacs_cv_lesstif=no
9881 fi
9882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9883 fi
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9885 $as_echo "$emacs_cv_lesstif" >&6; }
9886 if test $emacs_cv_lesstif = yes; then
9887 # Make sure this -I option remains in CPPFLAGS after it is set
9888 # back to REAL_CPPFLAGS.
9889 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9890 # have those other -I options anyway. Ultimately, having this
9891 # directory ultimately in CPPFLAGS will be enough.
9892 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9893 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9894 else
9895 CFLAGS=$OLD_CFLAGS
9896 CPPFLAGS=$OLD_CPPFLAGS
9897 fi
9898 fi
9899 fi
9900
9901
9902 USE_TOOLKIT_SCROLL_BARS=no
9903 if test "${with_toolkit_scroll_bars}" != "no"; then
9904 if test "${USE_X_TOOLKIT}" != "none"; then
9905 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9906 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9907
9908 HAVE_XAW3D=no
9909 USE_TOOLKIT_SCROLL_BARS=yes
9910 elif test "${HAVE_XAW3D}" = "yes"; then
9911 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9912
9913 USE_TOOLKIT_SCROLL_BARS=yes
9914 fi
9915 elif test "${HAVE_GTK}" = "yes"; then
9916 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9917
9918 USE_TOOLKIT_SCROLL_BARS=yes
9919 elif test "${HAVE_NS}" = "yes"; then
9920 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9921
9922 USE_TOOLKIT_SCROLL_BARS=yes
9923 fi
9924 fi
9925
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9928
9929 #include <X11/Xlib.h>
9930 #include <X11/Xresource.h>
9931 int
9932 main ()
9933 {
9934 XIMProc callback;
9935 ;
9936 return 0;
9937 }
9938 _ACEOF
9939 if ac_fn_c_try_compile "$LINENO"; then :
9940 HAVE_XIM=yes
9941
9942 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9943
9944 else
9945 HAVE_XIM=no
9946 fi
9947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9948
9949
9950 if test "${with_xim}" != "no"; then
9951
9952 $as_echo "#define USE_XIM 1" >>confdefs.h
9953
9954 fi
9955
9956
9957 if test "${HAVE_XIM}" != "no"; then
9958 late_CFLAGS=$CFLAGS
9959 if test "$GCC" = yes; then
9960 CFLAGS="$CFLAGS --pedantic-errors"
9961 fi
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9964
9965 #include <X11/Xlib.h>
9966 #include <X11/Xresource.h>
9967 int
9968 main ()
9969 {
9970 Display *display;
9971 XrmDatabase db;
9972 char *res_name;
9973 char *res_class;
9974 XIMProc callback;
9975 XPointer *client_data;
9976 #ifndef __GNUC__
9977 /* If we're not using GCC, it's probably not XFree86, and this is
9978 probably right, but we can't use something like --pedantic-errors. */
9979 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9980 char*, XIMProc, XPointer*);
9981 #endif
9982 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9983 client_data);
9984 ;
9985 return 0;
9986 }
9987 _ACEOF
9988 if ac_fn_c_try_compile "$LINENO"; then :
9989 emacs_cv_arg6_star=yes
9990 fi
9991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9992 if test "$emacs_cv_arg6_star" = yes; then
9993 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9994
9995 else
9996 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9997
9998 fi
9999 CFLAGS=$late_CFLAGS
10000 fi
10001
10002 ### Start of font-backend (under any platform) section.
10003 # (nothing here yet -- this is a placeholder)
10004 ### End of font-backend (under any platform) section.
10005
10006 ### Start of font-backend (under X11) section.
10007 if test "${HAVE_X11}" = "yes"; then
10008
10009 succeeded=no
10010
10011 # Extract the first word of "pkg-config", so it can be a program name with args.
10012 set dummy pkg-config; ac_word=$2
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10014 $as_echo_n "checking for $ac_word... " >&6; }
10015 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10016 $as_echo_n "(cached) " >&6
10017 else
10018 case $PKG_CONFIG in
10019 [\\/]* | ?:[\\/]*)
10020 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10021 ;;
10022 *)
10023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10024 for as_dir in $PATH
10025 do
10026 IFS=$as_save_IFS
10027 test -z "$as_dir" && as_dir=.
10028 for ac_exec_ext in '' $ac_executable_extensions; do
10029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10030 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10032 break 2
10033 fi
10034 done
10035 done
10036 IFS=$as_save_IFS
10037
10038 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10039 ;;
10040 esac
10041 fi
10042 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10043 if test -n "$PKG_CONFIG"; then
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10045 $as_echo "$PKG_CONFIG" >&6; }
10046 else
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048 $as_echo "no" >&6; }
10049 fi
10050
10051
10052
10053 if test "$PKG_CONFIG" = "no" ; then
10054 HAVE_FC=no
10055 else
10056 PKG_CONFIG_MIN_VERSION=0.9.0
10057 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10059 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10060
10061 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10063 $as_echo "yes" >&6; }
10064 succeeded=yes
10065
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10067 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10068 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10070 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10071
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10073 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10074 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10076 $as_echo "$FONTCONFIG_LIBS" >&6; }
10077 else
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079 $as_echo "no" >&6; }
10080 FONTCONFIG_CFLAGS=""
10081 FONTCONFIG_LIBS=""
10082 ## If we have a custom action on failure, don't print errors, but
10083 ## do set a variable so people can do so.
10084 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10085
10086 fi
10087
10088
10089
10090 else
10091 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10092 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10093 fi
10094 fi
10095
10096 if test $succeeded = yes; then
10097 HAVE_FC=yes
10098 else
10099 HAVE_FC=no
10100 fi
10101
10102
10103 ## Use -lXft if available, unless `--with-xft=no'.
10104 HAVE_XFT=maybe
10105 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
10106 with_xft="no";
10107 fi
10108 if test "x${with_xft}" != "xno"; then
10109
10110
10111 succeeded=no
10112
10113 # Extract the first word of "pkg-config", so it can be a program name with args.
10114 set dummy pkg-config; ac_word=$2
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10116 $as_echo_n "checking for $ac_word... " >&6; }
10117 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10118 $as_echo_n "(cached) " >&6
10119 else
10120 case $PKG_CONFIG in
10121 [\\/]* | ?:[\\/]*)
10122 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10123 ;;
10124 *)
10125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10126 for as_dir in $PATH
10127 do
10128 IFS=$as_save_IFS
10129 test -z "$as_dir" && as_dir=.
10130 for ac_exec_ext in '' $ac_executable_extensions; do
10131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10132 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10134 break 2
10135 fi
10136 done
10137 done
10138 IFS=$as_save_IFS
10139
10140 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10141 ;;
10142 esac
10143 fi
10144 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10145 if test -n "$PKG_CONFIG"; then
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10147 $as_echo "$PKG_CONFIG" >&6; }
10148 else
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10150 $as_echo "no" >&6; }
10151 fi
10152
10153
10154
10155 if test "$PKG_CONFIG" = "no" ; then
10156 HAVE_XFT=no
10157 else
10158 PKG_CONFIG_MIN_VERSION=0.9.0
10159 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10161 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10162
10163 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10165 $as_echo "yes" >&6; }
10166 succeeded=yes
10167
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10169 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10170 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10172 $as_echo "$XFT_CFLAGS" >&6; }
10173
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10175 $as_echo_n "checking XFT_LIBS... " >&6; }
10176 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10178 $as_echo "$XFT_LIBS" >&6; }
10179 else
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10181 $as_echo "no" >&6; }
10182 XFT_CFLAGS=""
10183 XFT_LIBS=""
10184 ## If we have a custom action on failure, don't print errors, but
10185 ## do set a variable so people can do so.
10186 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10187
10188 fi
10189
10190
10191
10192 else
10193 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10194 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10195 fi
10196 fi
10197
10198 if test $succeeded = yes; then
10199 :
10200 else
10201 HAVE_XFT=no
10202 fi
10203
10204 ## Because xftfont.c uses XRenderQueryExtension, we also
10205 ## need to link to -lXrender.
10206 HAVE_XRENDER=no
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10208 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10209 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
10210 $as_echo_n "(cached) " >&6
10211 else
10212 ac_check_lib_save_LIBS=$LIBS
10213 LIBS="-lXrender $LIBS"
10214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10215 /* end confdefs.h. */
10216
10217 /* Override any GCC internal prototype to avoid an error.
10218 Use char because int might match the return type of a GCC
10219 builtin and then its argument prototype would still apply. */
10220 #ifdef __cplusplus
10221 extern "C"
10222 #endif
10223 char XRenderQueryExtension ();
10224 int
10225 main ()
10226 {
10227 return XRenderQueryExtension ();
10228 ;
10229 return 0;
10230 }
10231 _ACEOF
10232 if ac_fn_c_try_link "$LINENO"; then :
10233 ac_cv_lib_Xrender_XRenderQueryExtension=yes
10234 else
10235 ac_cv_lib_Xrender_XRenderQueryExtension=no
10236 fi
10237 rm -f core conftest.err conftest.$ac_objext \
10238 conftest$ac_exeext conftest.$ac_ext
10239 LIBS=$ac_check_lib_save_LIBS
10240 fi
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10242 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10243 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
10244 HAVE_XRENDER=yes
10245 fi
10246
10247 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
10248 OLD_CPPFLAGS="$CPPFLAGS"
10249 OLD_CFLAGS="$CFLAGS"
10250 OLD_LIBS="$LIBS"
10251 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
10252 CFLAGS="$CFLAGS $XFT_CFLAGS"
10253 XFT_LIBS="-lXrender $XFT_LIBS"
10254 LIBS="$XFT_LIBS $LIBS"
10255 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10256 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10258 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10259 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 ac_check_lib_save_LIBS=$LIBS
10263 LIBS="-lXft $XFT_LIBS $LIBS"
10264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10266
10267 /* Override any GCC internal prototype to avoid an error.
10268 Use char because int might match the return type of a GCC
10269 builtin and then its argument prototype would still apply. */
10270 #ifdef __cplusplus
10271 extern "C"
10272 #endif
10273 char XftFontOpen ();
10274 int
10275 main ()
10276 {
10277 return XftFontOpen ();
10278 ;
10279 return 0;
10280 }
10281 _ACEOF
10282 if ac_fn_c_try_link "$LINENO"; then :
10283 ac_cv_lib_Xft_XftFontOpen=yes
10284 else
10285 ac_cv_lib_Xft_XftFontOpen=no
10286 fi
10287 rm -f core conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
10289 LIBS=$ac_check_lib_save_LIBS
10290 fi
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10292 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10293 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
10294 HAVE_XFT=yes
10295 fi
10296
10297 fi
10298
10299
10300
10301 if test "${HAVE_XFT}" = "yes"; then
10302
10303 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10304
10305
10306 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
10307 else
10308 CPPFLAGS="$OLD_CPPFLAGS"
10309 CFLAGS="$OLD_CFLAGS"
10310 LIBS="$OLD_LIBS"
10311 fi # "${HAVE_XFT}" = "yes"
10312 fi # "$HAVE_XFT" != no
10313 fi # "x${with_xft}" != "xno"
10314
10315 if test "$HAVE_XFT" != "yes"; then
10316 HAVE_XFT=no
10317 fi
10318
10319
10320 HAVE_FREETYPE=no
10321 ## We used to allow building with FreeType and without Xft.
10322 ## However, the ftx font backend driver is not in good shape.
10323 if test "${HAVE_XFT}" = "yes"; then
10324 HAVE_FREETYPE=yes
10325 FONTCONFIG_CFLAGS=
10326 FONTCONFIG_LIBS=
10327 fi
10328
10329 HAVE_LIBOTF=no
10330 if test "${HAVE_FREETYPE}" = "yes"; then
10331
10332 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10333
10334 if test "${with_libotf}" != "no"; then
10335
10336 succeeded=no
10337
10338 # Extract the first word of "pkg-config", so it can be a program name with args.
10339 set dummy pkg-config; ac_word=$2
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10341 $as_echo_n "checking for $ac_word... " >&6; }
10342 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10343 $as_echo_n "(cached) " >&6
10344 else
10345 case $PKG_CONFIG in
10346 [\\/]* | ?:[\\/]*)
10347 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10348 ;;
10349 *)
10350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351 for as_dir in $PATH
10352 do
10353 IFS=$as_save_IFS
10354 test -z "$as_dir" && as_dir=.
10355 for ac_exec_ext in '' $ac_executable_extensions; do
10356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10357 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10359 break 2
10360 fi
10361 done
10362 done
10363 IFS=$as_save_IFS
10364
10365 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10366 ;;
10367 esac
10368 fi
10369 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10370 if test -n "$PKG_CONFIG"; then
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10372 $as_echo "$PKG_CONFIG" >&6; }
10373 else
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 $as_echo "no" >&6; }
10376 fi
10377
10378
10379
10380 if test "$PKG_CONFIG" = "no" ; then
10381 HAVE_LIBOTF=no
10382 else
10383 PKG_CONFIG_MIN_VERSION=0.9.0
10384 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10386 $as_echo_n "checking for libotf... " >&6; }
10387
10388 if $PKG_CONFIG --exists "libotf" 2>&5; then
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10390 $as_echo "yes" >&6; }
10391 succeeded=yes
10392
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10394 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10395 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10397 $as_echo "$LIBOTF_CFLAGS" >&6; }
10398
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10400 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10401 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10403 $as_echo "$LIBOTF_LIBS" >&6; }
10404 else
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10406 $as_echo "no" >&6; }
10407 LIBOTF_CFLAGS=""
10408 LIBOTF_LIBS=""
10409 ## If we have a custom action on failure, don't print errors, but
10410 ## do set a variable so people can do so.
10411 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10412
10413 fi
10414
10415
10416
10417 else
10418 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10419 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10420 fi
10421 fi
10422
10423 if test $succeeded = yes; then
10424 HAVE_LIBOTF=yes
10425 else
10426 HAVE_LIBOTF=no
10427 fi
10428
10429 if test "$HAVE_LIBOTF" = "yes"; then
10430
10431 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10432
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10434 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10435 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10436 $as_echo_n "(cached) " >&6
10437 else
10438 ac_check_lib_save_LIBS=$LIBS
10439 LIBS="-lotf $LIBS"
10440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441 /* end confdefs.h. */
10442
10443 /* Override any GCC internal prototype to avoid an error.
10444 Use char because int might match the return type of a GCC
10445 builtin and then its argument prototype would still apply. */
10446 #ifdef __cplusplus
10447 extern "C"
10448 #endif
10449 char OTF_get_variation_glyphs ();
10450 int
10451 main ()
10452 {
10453 return OTF_get_variation_glyphs ();
10454 ;
10455 return 0;
10456 }
10457 _ACEOF
10458 if ac_fn_c_try_link "$LINENO"; then :
10459 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
10460 else
10461 ac_cv_lib_otf_OTF_get_variation_glyphs=no
10462 fi
10463 rm -f core conftest.err conftest.$ac_objext \
10464 conftest$ac_exeext conftest.$ac_ext
10465 LIBS=$ac_check_lib_save_LIBS
10466 fi
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10468 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10469 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
10470 HAVE_OTF_GET_VARIATION_GLYPHS=yes
10471 else
10472 HAVE_OTF_GET_VARIATION_GLYPHS=no
10473 fi
10474
10475 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10476
10477 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10478
10479 fi
10480 fi
10481 fi
10482 fi
10483
10484 HAVE_M17N_FLT=no
10485 if test "${HAVE_LIBOTF}" = yes; then
10486 if test "${with_m17n_flt}" != "no"; then
10487
10488 succeeded=no
10489
10490 # Extract the first word of "pkg-config", so it can be a program name with args.
10491 set dummy pkg-config; ac_word=$2
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493 $as_echo_n "checking for $ac_word... " >&6; }
10494 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10495 $as_echo_n "(cached) " >&6
10496 else
10497 case $PKG_CONFIG in
10498 [\\/]* | ?:[\\/]*)
10499 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10500 ;;
10501 *)
10502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503 for as_dir in $PATH
10504 do
10505 IFS=$as_save_IFS
10506 test -z "$as_dir" && as_dir=.
10507 for ac_exec_ext in '' $ac_executable_extensions; do
10508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10509 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10511 break 2
10512 fi
10513 done
10514 done
10515 IFS=$as_save_IFS
10516
10517 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10518 ;;
10519 esac
10520 fi
10521 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10522 if test -n "$PKG_CONFIG"; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10524 $as_echo "$PKG_CONFIG" >&6; }
10525 else
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527 $as_echo "no" >&6; }
10528 fi
10529
10530
10531
10532 if test "$PKG_CONFIG" = "no" ; then
10533 HAVE_M17N_FLT=no
10534 else
10535 PKG_CONFIG_MIN_VERSION=0.9.0
10536 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10538 $as_echo_n "checking for m17n-flt... " >&6; }
10539
10540 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10542 $as_echo "yes" >&6; }
10543 succeeded=yes
10544
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10546 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10547 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10549 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10550
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10552 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10553 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10555 $as_echo "$M17N_FLT_LIBS" >&6; }
10556 else
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558 $as_echo "no" >&6; }
10559 M17N_FLT_CFLAGS=""
10560 M17N_FLT_LIBS=""
10561 ## If we have a custom action on failure, don't print errors, but
10562 ## do set a variable so people can do so.
10563 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10564
10565 fi
10566
10567
10568
10569 else
10570 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10571 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10572 fi
10573 fi
10574
10575 if test $succeeded = yes; then
10576 HAVE_M17N_FLT=yes
10577 else
10578 HAVE_M17N_FLT=no
10579 fi
10580
10581 if test "$HAVE_M17N_FLT" = "yes"; then
10582
10583 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10584
10585 fi
10586 fi
10587 fi
10588 else
10589 HAVE_XFT=no
10590 HAVE_FREETYPE=no
10591 HAVE_LIBOTF=no
10592 HAVE_M17N_FLT=no
10593 fi
10594
10595 ### End of font-backend (under X11) section.
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606 ### Use -lXpm if available, unless `--with-xpm=no'.
10607 HAVE_XPM=no
10608 LIBXPM=
10609 if test "${HAVE_X11}" = "yes"; then
10610 if test "${with_xpm}" != "no"; then
10611 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10612 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10614 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10615 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10616 $as_echo_n "(cached) " >&6
10617 else
10618 ac_check_lib_save_LIBS=$LIBS
10619 LIBS="-lXpm -lX11 $LIBS"
10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10622
10623 /* Override any GCC internal prototype to avoid an error.
10624 Use char because int might match the return type of a GCC
10625 builtin and then its argument prototype would still apply. */
10626 #ifdef __cplusplus
10627 extern "C"
10628 #endif
10629 char XpmReadFileToPixmap ();
10630 int
10631 main ()
10632 {
10633 return XpmReadFileToPixmap ();
10634 ;
10635 return 0;
10636 }
10637 _ACEOF
10638 if ac_fn_c_try_link "$LINENO"; then :
10639 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10640 else
10641 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10642 fi
10643 rm -f core conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
10645 LIBS=$ac_check_lib_save_LIBS
10646 fi
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10648 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10649 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10650 HAVE_XPM=yes
10651 fi
10652
10653 fi
10654
10655
10656 if test "${HAVE_XPM}" = "yes"; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10658 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10661 #include "X11/xpm.h"
10662 #ifndef XpmReturnAllocPixels
10663 no_return_alloc_pixels
10664 #endif
10665
10666 _ACEOF
10667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10668 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10669 HAVE_XPM=no
10670 else
10671 HAVE_XPM=yes
10672 fi
10673 rm -f conftest*
10674
10675
10676 if test "${HAVE_XPM}" = "yes"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10678 $as_echo "yes" >&6; }
10679 else
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10682 fi
10683 fi
10684 fi
10685
10686 if test "${HAVE_XPM}" = "yes"; then
10687
10688 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10689
10690 LIBXPM=-lXpm
10691 fi
10692 fi
10693
10694
10695 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10696 HAVE_JPEG=no
10697 LIBJPEG=
10698 if test "${HAVE_X11}" = "yes"; then
10699 if test "${with_jpeg}" != "no"; then
10700 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10701 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10703 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10704 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 ac_check_lib_save_LIBS=$LIBS
10708 LIBS="-ljpeg $LIBS"
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h. */
10711
10712 /* Override any GCC internal prototype to avoid an error.
10713 Use char because int might match the return type of a GCC
10714 builtin and then its argument prototype would still apply. */
10715 #ifdef __cplusplus
10716 extern "C"
10717 #endif
10718 char jpeg_destroy_compress ();
10719 int
10720 main ()
10721 {
10722 return jpeg_destroy_compress ();
10723 ;
10724 return 0;
10725 }
10726 _ACEOF
10727 if ac_fn_c_try_link "$LINENO"; then :
10728 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10729 else
10730 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10731 fi
10732 rm -f core conftest.err conftest.$ac_objext \
10733 conftest$ac_exeext conftest.$ac_ext
10734 LIBS=$ac_check_lib_save_LIBS
10735 fi
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10737 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10738 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10739 HAVE_JPEG=yes
10740 fi
10741
10742 fi
10743
10744
10745 fi
10746
10747 if test "${HAVE_JPEG}" = "yes"; then
10748 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10749
10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h. */
10752 #include <jpeglib.h>
10753 version=JPEG_LIB_VERSION
10754
10755 _ACEOF
10756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10757 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10758 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10759
10760 else
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10762 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10763 HAVE_JPEG=no
10764 fi
10765 rm -f conftest*
10766
10767 fi
10768 if test "${HAVE_JPEG}" = "yes"; then
10769 LIBJPEG=-ljpeg
10770 fi
10771 fi
10772
10773
10774 ### Use -lpng if available, unless `--with-png=no'.
10775 HAVE_PNG=no
10776 LIBPNG=
10777 if test "${HAVE_X11}" = "yes"; then
10778 if test "${with_png}" != "no"; then
10779 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10780 # in /usr/include/libpng.
10781 for ac_header in png.h libpng/png.h
10782 do :
10783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10784 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10785 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10786 cat >>confdefs.h <<_ACEOF
10787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10788 _ACEOF
10789
10790 fi
10791
10792 done
10793
10794 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10796 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10797 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10798 $as_echo_n "(cached) " >&6
10799 else
10800 ac_check_lib_save_LIBS=$LIBS
10801 LIBS="-lpng -lz -lm $LIBS"
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10804
10805 /* Override any GCC internal prototype to avoid an error.
10806 Use char because int might match the return type of a GCC
10807 builtin and then its argument prototype would still apply. */
10808 #ifdef __cplusplus
10809 extern "C"
10810 #endif
10811 char png_get_channels ();
10812 int
10813 main ()
10814 {
10815 return png_get_channels ();
10816 ;
10817 return 0;
10818 }
10819 _ACEOF
10820 if ac_fn_c_try_link "$LINENO"; then :
10821 ac_cv_lib_png_png_get_channels=yes
10822 else
10823 ac_cv_lib_png_png_get_channels=no
10824 fi
10825 rm -f core conftest.err conftest.$ac_objext \
10826 conftest$ac_exeext conftest.$ac_ext
10827 LIBS=$ac_check_lib_save_LIBS
10828 fi
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10830 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10831 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10832 HAVE_PNG=yes
10833 fi
10834
10835 fi
10836 fi
10837
10838 if test "${HAVE_PNG}" = "yes"; then
10839
10840 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10841
10842 LIBPNG="-lpng -lz -lm"
10843 fi
10844 fi
10845
10846
10847 ### Use -ltiff if available, unless `--with-tiff=no'.
10848 HAVE_TIFF=no
10849 LIBTIFF=
10850 if test "${HAVE_X11}" = "yes"; then
10851 if test "${with_tiff}" != "no"; then
10852 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10853 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10854 tifflibs="-lz -lm"
10855 # At least one tiff package requires the jpeg library.
10856 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10858 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10859 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
10861 else
10862 ac_check_lib_save_LIBS=$LIBS
10863 LIBS="-ltiff $tifflibs $LIBS"
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10866
10867 /* Override any GCC internal prototype to avoid an error.
10868 Use char because int might match the return type of a GCC
10869 builtin and then its argument prototype would still apply. */
10870 #ifdef __cplusplus
10871 extern "C"
10872 #endif
10873 char TIFFGetVersion ();
10874 int
10875 main ()
10876 {
10877 return TIFFGetVersion ();
10878 ;
10879 return 0;
10880 }
10881 _ACEOF
10882 if ac_fn_c_try_link "$LINENO"; then :
10883 ac_cv_lib_tiff_TIFFGetVersion=yes
10884 else
10885 ac_cv_lib_tiff_TIFFGetVersion=no
10886 fi
10887 rm -f core conftest.err conftest.$ac_objext \
10888 conftest$ac_exeext conftest.$ac_ext
10889 LIBS=$ac_check_lib_save_LIBS
10890 fi
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10892 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10893 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10894 HAVE_TIFF=yes
10895 fi
10896
10897 fi
10898
10899
10900 fi
10901
10902 if test "${HAVE_TIFF}" = "yes"; then
10903
10904 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10905
10906 LIBTIFF=-ltiff
10907 fi
10908 fi
10909
10910
10911 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10912 HAVE_GIF=no
10913 LIBGIF=
10914 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10915 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10916 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10917 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10918 # Earlier versions can crash Emacs.
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10920 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10921 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10922 $as_echo_n "(cached) " >&6
10923 else
10924 ac_check_lib_save_LIBS=$LIBS
10925 LIBS="-lgif $LIBS"
10926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h. */
10928
10929 /* Override any GCC internal prototype to avoid an error.
10930 Use char because int might match the return type of a GCC
10931 builtin and then its argument prototype would still apply. */
10932 #ifdef __cplusplus
10933 extern "C"
10934 #endif
10935 char EGifPutExtensionLast ();
10936 int
10937 main ()
10938 {
10939 return EGifPutExtensionLast ();
10940 ;
10941 return 0;
10942 }
10943 _ACEOF
10944 if ac_fn_c_try_link "$LINENO"; then :
10945 ac_cv_lib_gif_EGifPutExtensionLast=yes
10946 else
10947 ac_cv_lib_gif_EGifPutExtensionLast=no
10948 fi
10949 rm -f core conftest.err conftest.$ac_objext \
10950 conftest$ac_exeext conftest.$ac_ext
10951 LIBS=$ac_check_lib_save_LIBS
10952 fi
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10954 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10955 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10956 HAVE_GIF=yes
10957 else
10958 HAVE_GIF=maybe
10959 fi
10960
10961 fi
10962
10963
10964
10965 if test "$HAVE_GIF" = yes; then
10966 LIBGIF=-lgif
10967 elif test "$HAVE_GIF" = maybe; then
10968 # If gif_lib.h but no libgif, try libungif.
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10970 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10971 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10972 $as_echo_n "(cached) " >&6
10973 else
10974 ac_check_lib_save_LIBS=$LIBS
10975 LIBS="-lungif $LIBS"
10976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10977 /* end confdefs.h. */
10978
10979 /* Override any GCC internal prototype to avoid an error.
10980 Use char because int might match the return type of a GCC
10981 builtin and then its argument prototype would still apply. */
10982 #ifdef __cplusplus
10983 extern "C"
10984 #endif
10985 char EGifPutExtensionLast ();
10986 int
10987 main ()
10988 {
10989 return EGifPutExtensionLast ();
10990 ;
10991 return 0;
10992 }
10993 _ACEOF
10994 if ac_fn_c_try_link "$LINENO"; then :
10995 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10996 else
10997 ac_cv_lib_ungif_EGifPutExtensionLast=no
10998 fi
10999 rm -f core conftest.err conftest.$ac_objext \
11000 conftest$ac_exeext conftest.$ac_ext
11001 LIBS=$ac_check_lib_save_LIBS
11002 fi
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11004 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
11005 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
11006 HAVE_GIF=yes
11007 else
11008 HAVE_GIF=no
11009 fi
11010
11011 test "$HAVE_GIF" = yes && LIBGIF=-lungif
11012 fi
11013
11014 if test "${HAVE_GIF}" = "yes"; then
11015
11016 $as_echo "#define HAVE_GIF 1" >>confdefs.h
11017
11018 fi
11019 fi
11020
11021
11022 if test "${HAVE_X11}" = "yes"; then
11023 MISSING=""
11024 WITH_NO=""
11025 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11026 MISSING="libXpm" && WITH_NO="--with-xpm=no"
11027 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11028 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
11029 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11030 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
11031 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11032 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
11033 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11034 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
11035
11036 if test "X${MISSING}" != X; then
11037 as_fn_error $? "The following required libraries were not found:
11038 $MISSING
11039 Maybe some development libraries/packages are missing?
11040 If you don't want to link with them give
11041 $WITH_NO
11042 as options to configure" "$LINENO" 5
11043 fi
11044 fi
11045
11046 ### Use -lgpm if available, unless `--with-gpm=no'.
11047 HAVE_GPM=no
11048 LIBGPM=
11049 MOUSE_SUPPORT=
11050 if test "${with_gpm}" != "no"; then
11051 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11052 if test "x$ac_cv_header_gpm_h" = x""yes; then :
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11054 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11055 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
11057 else
11058 ac_check_lib_save_LIBS=$LIBS
11059 LIBS="-lgpm $LIBS"
11060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11061 /* end confdefs.h. */
11062
11063 /* Override any GCC internal prototype to avoid an error.
11064 Use char because int might match the return type of a GCC
11065 builtin and then its argument prototype would still apply. */
11066 #ifdef __cplusplus
11067 extern "C"
11068 #endif
11069 char Gpm_Open ();
11070 int
11071 main ()
11072 {
11073 return Gpm_Open ();
11074 ;
11075 return 0;
11076 }
11077 _ACEOF
11078 if ac_fn_c_try_link "$LINENO"; then :
11079 ac_cv_lib_gpm_Gpm_Open=yes
11080 else
11081 ac_cv_lib_gpm_Gpm_Open=no
11082 fi
11083 rm -f core conftest.err conftest.$ac_objext \
11084 conftest$ac_exeext conftest.$ac_ext
11085 LIBS=$ac_check_lib_save_LIBS
11086 fi
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11088 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11089 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
11090 HAVE_GPM=yes
11091 fi
11092
11093 fi
11094
11095
11096
11097 if test "${HAVE_GPM}" = "yes"; then
11098
11099 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11100
11101 LIBGPM=-lgpm
11102 ## May be reset below.
11103 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
11104 fi
11105 fi
11106
11107
11108 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11109 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
11110
11111 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11112
11113 fi
11114
11115
11116
11117 C_SWITCH_X_SYSTEM=
11118 ### Use NeXTstep API to implement GUI.
11119 if test "${HAVE_NS}" = "yes"; then
11120
11121 $as_echo "#define HAVE_NS 1" >>confdefs.h
11122
11123 if test "${NS_IMPL_COCOA}" = "yes"; then
11124
11125 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11126
11127 GNU_OBJC_CFLAGS=
11128 fi
11129 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11130
11131 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11132
11133 # See also .m.o rule in Makefile.in */
11134 # FIXME: are all these flags really needed? Document here why. */
11135 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
11136 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11137 fi
11138 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11139
11140 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11141
11142 fi
11143 # We also have mouse menus.
11144 HAVE_MENUS=yes
11145 OTHER_FILES=ns-app
11146 fi
11147
11148
11149 ### Use session management (-lSM -lICE) if available
11150 HAVE_X_SM=no
11151 LIBXSM=
11152 if test "${HAVE_X11}" = "yes"; then
11153 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11154 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11156 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11157 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
11158 $as_echo_n "(cached) " >&6
11159 else
11160 ac_check_lib_save_LIBS=$LIBS
11161 LIBS="-lSM -lICE $LIBS"
11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h. */
11164
11165 /* Override any GCC internal prototype to avoid an error.
11166 Use char because int might match the return type of a GCC
11167 builtin and then its argument prototype would still apply. */
11168 #ifdef __cplusplus
11169 extern "C"
11170 #endif
11171 char SmcOpenConnection ();
11172 int
11173 main ()
11174 {
11175 return SmcOpenConnection ();
11176 ;
11177 return 0;
11178 }
11179 _ACEOF
11180 if ac_fn_c_try_link "$LINENO"; then :
11181 ac_cv_lib_SM_SmcOpenConnection=yes
11182 else
11183 ac_cv_lib_SM_SmcOpenConnection=no
11184 fi
11185 rm -f core conftest.err conftest.$ac_objext \
11186 conftest$ac_exeext conftest.$ac_ext
11187 LIBS=$ac_check_lib_save_LIBS
11188 fi
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11190 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11191 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
11192 HAVE_X_SM=yes
11193 fi
11194
11195 fi
11196
11197
11198
11199 if test "${HAVE_X_SM}" = "yes"; then
11200
11201 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11202
11203 LIBXSM="-lSM -lICE"
11204 case "$LIBS" in
11205 *-lSM*) ;;
11206 *) LIBS="$LIBXSM $LIBS" ;;
11207 esac
11208 fi
11209 fi
11210
11211
11212 ### Use libxml (-lxml2) if available
11213 if test "${with_xml2}" != "no"; then
11214 ### I'm not sure what the version number should be, so I just guessed.
11215
11216 succeeded=no
11217
11218 # Extract the first word of "pkg-config", so it can be a program name with args.
11219 set dummy pkg-config; ac_word=$2
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11221 $as_echo_n "checking for $ac_word... " >&6; }
11222 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11223 $as_echo_n "(cached) " >&6
11224 else
11225 case $PKG_CONFIG in
11226 [\\/]* | ?:[\\/]*)
11227 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11228 ;;
11229 *)
11230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231 for as_dir in $PATH
11232 do
11233 IFS=$as_save_IFS
11234 test -z "$as_dir" && as_dir=.
11235 for ac_exec_ext in '' $ac_executable_extensions; do
11236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11237 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11239 break 2
11240 fi
11241 done
11242 done
11243 IFS=$as_save_IFS
11244
11245 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11246 ;;
11247 esac
11248 fi
11249 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11250 if test -n "$PKG_CONFIG"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11252 $as_echo "$PKG_CONFIG" >&6; }
11253 else
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11256 fi
11257
11258
11259
11260 if test "$PKG_CONFIG" = "no" ; then
11261 HAVE_LIBXML2=no
11262 else
11263 PKG_CONFIG_MIN_VERSION=0.9.0
11264 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11266 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11267
11268 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11270 $as_echo "yes" >&6; }
11271 succeeded=yes
11272
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11274 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11275 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11277 $as_echo "$LIBXML2_CFLAGS" >&6; }
11278
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11280 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11281 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11283 $as_echo "$LIBXML2_LIBS" >&6; }
11284 else
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11286 $as_echo "no" >&6; }
11287 LIBXML2_CFLAGS=""
11288 LIBXML2_LIBS=""
11289 ## If we have a custom action on failure, don't print errors, but
11290 ## do set a variable so people can do so.
11291 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11292
11293 fi
11294
11295
11296
11297 else
11298 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11299 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11300 fi
11301 fi
11302
11303 if test $succeeded = yes; then
11304 HAVE_LIBXML2=yes
11305 else
11306 HAVE_LIBXML2=no
11307 fi
11308
11309 if test "${HAVE_LIBXML2}" = "yes"; then
11310 LIBS="$LIBXML2_LIBS $LIBS"
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11312 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11313 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
11314 $as_echo_n "(cached) " >&6
11315 else
11316 ac_check_lib_save_LIBS=$LIBS
11317 LIBS="-lxml2 $LIBS"
11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h. */
11320
11321 /* Override any GCC internal prototype to avoid an error.
11322 Use char because int might match the return type of a GCC
11323 builtin and then its argument prototype would still apply. */
11324 #ifdef __cplusplus
11325 extern "C"
11326 #endif
11327 char htmlReadMemory ();
11328 int
11329 main ()
11330 {
11331 return htmlReadMemory ();
11332 ;
11333 return 0;
11334 }
11335 _ACEOF
11336 if ac_fn_c_try_link "$LINENO"; then :
11337 ac_cv_lib_xml2_htmlReadMemory=yes
11338 else
11339 ac_cv_lib_xml2_htmlReadMemory=no
11340 fi
11341 rm -f core conftest.err conftest.$ac_objext \
11342 conftest$ac_exeext conftest.$ac_ext
11343 LIBS=$ac_check_lib_save_LIBS
11344 fi
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11346 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11347 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
11348 HAVE_LIBXML2=yes
11349 else
11350 HAVE_LIBXML2=no
11351 fi
11352
11353 if test "${HAVE_LIBXML2}" = "yes"; then
11354
11355 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11356
11357 else
11358 LIBXML2_LIBS=""
11359 LIBXML2_CFLAGS=""
11360 fi
11361 fi
11362 fi
11363
11364
11365
11366 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11368 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11369 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
11370 $as_echo_n "(cached) " >&6
11371 else
11372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11373 /* end confdefs.h. */
11374 #include <netdb.h>
11375 int
11376 main ()
11377 {
11378 return h_errno;
11379 ;
11380 return 0;
11381 }
11382 _ACEOF
11383 if ac_fn_c_try_link "$LINENO"; then :
11384 emacs_cv_netdb_declares_h_errno=yes
11385 else
11386 emacs_cv_netdb_declares_h_errno=no
11387 fi
11388 rm -f core conftest.err conftest.$ac_objext \
11389 conftest$ac_exeext conftest.$ac_ext
11390 fi
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11392 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11393 if test $emacs_cv_netdb_declares_h_errno = yes; then
11394
11395 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11396
11397 fi
11398
11399 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11400 # for constant arguments. Useless!
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11402 $as_echo_n "checking for working alloca.h... " >&6; }
11403 if test "${ac_cv_working_alloca_h+set}" = set; then :
11404 $as_echo_n "(cached) " >&6
11405 else
11406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407 /* end confdefs.h. */
11408 #include <alloca.h>
11409 int
11410 main ()
11411 {
11412 char *p = (char *) alloca (2 * sizeof (int));
11413 if (p) return 0;
11414 ;
11415 return 0;
11416 }
11417 _ACEOF
11418 if ac_fn_c_try_link "$LINENO"; then :
11419 ac_cv_working_alloca_h=yes
11420 else
11421 ac_cv_working_alloca_h=no
11422 fi
11423 rm -f core conftest.err conftest.$ac_objext \
11424 conftest$ac_exeext conftest.$ac_ext
11425 fi
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11427 $as_echo "$ac_cv_working_alloca_h" >&6; }
11428 if test $ac_cv_working_alloca_h = yes; then
11429
11430 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11431
11432 fi
11433
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11435 $as_echo_n "checking for alloca... " >&6; }
11436 if test "${ac_cv_func_alloca_works+set}" = set; then :
11437 $as_echo_n "(cached) " >&6
11438 else
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11441 #ifdef __GNUC__
11442 # define alloca __builtin_alloca
11443 #else
11444 # ifdef _MSC_VER
11445 # include <malloc.h>
11446 # define alloca _alloca
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 char *alloca ();
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 test "${ac_cv_os_cray+set}" = set; 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 test "${ac_cv_c_stack_direction+set}" = set; 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 test "${ac_cv_lib_m_sqrt+set}" = set; 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" = x""yes; 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 test "${ac_cv_lib_mail_maillock+set}" = set; 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" = x""yes; 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 test "${ac_cv_lib_lockfile_maillock+set}" = set; 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" = x""yes; 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 test "${ac_cv_prog_liblockfile+set}" = set; 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" = x""yes; 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" = x""yes; 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 for ac_header in sys/un.h
11885 do :
11886 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11887 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11888 cat >>confdefs.h <<_ACEOF
11889 #define HAVE_SYS_UN_H 1
11890 _ACEOF
11891
11892 fi
11893
11894 done
11895
11896
11897
11898
11899
11900
11901
11902 for ac_func in $ac_func_list
11903 do :
11904 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11905 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11906 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11907 cat >>confdefs.h <<_ACEOF
11908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11909 _ACEOF
11910
11911 fi
11912 done
11913
11914
11915
11916
11917
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11919 $as_echo_n "checking for working mktime... " >&6; }
11920 if test "${ac_cv_func_working_mktime+set}" = set; then :
11921 $as_echo_n "(cached) " >&6
11922 else
11923 if test "$cross_compiling" = yes; then :
11924 ac_cv_func_working_mktime=no
11925 else
11926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11927 /* end confdefs.h. */
11928 /* Test program from Paul Eggert and Tony Leneis. */
11929 #ifdef TIME_WITH_SYS_TIME
11930 # include <sys/time.h>
11931 # include <time.h>
11932 #else
11933 # ifdef HAVE_SYS_TIME_H
11934 # include <sys/time.h>
11935 # else
11936 # include <time.h>
11937 # endif
11938 #endif
11939
11940 #include <limits.h>
11941 #include <stdlib.h>
11942
11943 #ifdef HAVE_UNISTD_H
11944 # include <unistd.h>
11945 #endif
11946
11947 #ifndef HAVE_ALARM
11948 # define alarm(X) /* empty */
11949 #endif
11950
11951 /* Work around redefinition to rpl_putenv by other config tests. */
11952 #undef putenv
11953
11954 static time_t time_t_max;
11955 static time_t time_t_min;
11956
11957 /* Values we'll use to set the TZ environment variable. */
11958 static const char *tz_strings[] = {
11959 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11960 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11961 };
11962 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11963
11964 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11965 Based on a problem report from Andreas Jaeger. */
11966 static int
11967 spring_forward_gap ()
11968 {
11969 /* glibc (up to about 1998-10-07) failed this test. */
11970 struct tm tm;
11971
11972 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11973 instead of "TZ=America/Vancouver" in order to detect the bug even
11974 on systems that don't support the Olson extension, or don't have the
11975 full zoneinfo tables installed. */
11976 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11977
11978 tm.tm_year = 98;
11979 tm.tm_mon = 3;
11980 tm.tm_mday = 5;
11981 tm.tm_hour = 2;
11982 tm.tm_min = 0;
11983 tm.tm_sec = 0;
11984 tm.tm_isdst = -1;
11985 return mktime (&tm) != (time_t) -1;
11986 }
11987
11988 static int
11989 mktime_test1 (time_t now)
11990 {
11991 struct tm *lt;
11992 return ! (lt = localtime (&now)) || mktime (lt) == now;
11993 }
11994
11995 static int
11996 mktime_test (time_t now)
11997 {
11998 return (mktime_test1 (now)
11999 && mktime_test1 ((time_t) (time_t_max - now))
12000 && mktime_test1 ((time_t) (time_t_min + now)));
12001 }
12002
12003 static int
12004 irix_6_4_bug ()
12005 {
12006 /* Based on code from Ariel Faigon. */
12007 struct tm tm;
12008 tm.tm_year = 96;
12009 tm.tm_mon = 3;
12010 tm.tm_mday = 0;
12011 tm.tm_hour = 0;
12012 tm.tm_min = 0;
12013 tm.tm_sec = 0;
12014 tm.tm_isdst = -1;
12015 mktime (&tm);
12016 return tm.tm_mon == 2 && tm.tm_mday == 31;
12017 }
12018
12019 static int
12020 bigtime_test (int j)
12021 {
12022 struct tm tm;
12023 time_t now;
12024 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12025 now = mktime (&tm);
12026 if (now != (time_t) -1)
12027 {
12028 struct tm *lt = localtime (&now);
12029 if (! (lt
12030 && lt->tm_year == tm.tm_year
12031 && lt->tm_mon == tm.tm_mon
12032 && lt->tm_mday == tm.tm_mday
12033 && lt->tm_hour == tm.tm_hour
12034 && lt->tm_min == tm.tm_min
12035 && lt->tm_sec == tm.tm_sec
12036 && lt->tm_yday == tm.tm_yday
12037 && lt->tm_wday == tm.tm_wday
12038 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12039 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12040 return 0;
12041 }
12042 return 1;
12043 }
12044
12045 static int
12046 year_2050_test ()
12047 {
12048 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12049 ignoring leap seconds. */
12050 unsigned long int answer = 2527315200UL;
12051
12052 struct tm tm;
12053 time_t t;
12054 tm.tm_year = 2050 - 1900;
12055 tm.tm_mon = 2 - 1;
12056 tm.tm_mday = 1;
12057 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12058 tm.tm_isdst = -1;
12059
12060 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12061 instead of "TZ=America/Vancouver" in order to detect the bug even
12062 on systems that don't support the Olson extension, or don't have the
12063 full zoneinfo tables installed. */
12064 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12065
12066 t = mktime (&tm);
12067
12068 /* Check that the result is either a failure, or close enough
12069 to the correct answer that we can assume the discrepancy is
12070 due to leap seconds. */
12071 return (t == (time_t) -1
12072 || (0 < t && answer - 120 <= t && t <= answer + 120));
12073 }
12074
12075 int
12076 main ()
12077 {
12078 time_t t, delta;
12079 int i, j;
12080
12081 /* This test makes some buggy mktime implementations loop.
12082 Give up after 60 seconds; a mktime slower than that
12083 isn't worth using anyway. */
12084 alarm (60);
12085
12086 for (;;)
12087 {
12088 t = (time_t_max << 1) + 1;
12089 if (t <= time_t_max)
12090 break;
12091 time_t_max = t;
12092 }
12093 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12094
12095 delta = time_t_max / 997; /* a suitable prime number */
12096 for (i = 0; i < N_STRINGS; i++)
12097 {
12098 if (tz_strings[i])
12099 putenv ((char*) tz_strings[i]);
12100
12101 for (t = 0; t <= time_t_max - delta; t += delta)
12102 if (! mktime_test (t))
12103 return 1;
12104 if (! (mktime_test ((time_t) 1)
12105 && mktime_test ((time_t) (60 * 60))
12106 && mktime_test ((time_t) (60 * 60 * 24))))
12107 return 1;
12108
12109 for (j = 1; ; j <<= 1)
12110 if (! bigtime_test (j))
12111 return 1;
12112 else if (INT_MAX / 2 < j)
12113 break;
12114 if (! bigtime_test (INT_MAX))
12115 return 1;
12116 }
12117 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12118 }
12119 _ACEOF
12120 if ac_fn_c_try_run "$LINENO"; then :
12121 ac_cv_func_working_mktime=yes
12122 else
12123 ac_cv_func_working_mktime=no
12124 fi
12125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12126 conftest.$ac_objext conftest.beam conftest.$ac_ext
12127 fi
12128
12129 fi
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12131 $as_echo "$ac_cv_func_working_mktime" >&6; }
12132 if test $ac_cv_func_working_mktime = no; then
12133 case " $LIBOBJS " in
12134 *" mktime.$ac_objext "* ) ;;
12135 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12136 ;;
12137 esac
12138
12139 fi
12140
12141 if test "$ac_cv_func_working_mktime" = no; then
12142
12143 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12144
12145 fi
12146
12147 ac_have_func=no # yes means we've found a way to get the load average.
12148
12149 # Make sure getloadavg.c is where it belongs, at configure-time.
12150 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12151 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12152
12153 ac_save_LIBS=$LIBS
12154
12155 # Check for getloadavg, but be sure not to touch the cache variable.
12156 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12157 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12158 exit 0
12159 else
12160 exit 1
12161 fi
12162 ) && ac_have_func=yes
12163
12164 # On HPUX9, an unprivileged user can get load averages through this function.
12165 for ac_func in pstat_getdynamic
12166 do :
12167 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12168 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
12169 cat >>confdefs.h <<_ACEOF
12170 #define HAVE_PSTAT_GETDYNAMIC 1
12171 _ACEOF
12172
12173 fi
12174 done
12175
12176
12177 # Solaris has libkstat which does not require root.
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12179 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12180 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12181 $as_echo_n "(cached) " >&6
12182 else
12183 ac_check_lib_save_LIBS=$LIBS
12184 LIBS="-lkstat $LIBS"
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12187
12188 /* Override any GCC internal prototype to avoid an error.
12189 Use char because int might match the return type of a GCC
12190 builtin and then its argument prototype would still apply. */
12191 #ifdef __cplusplus
12192 extern "C"
12193 #endif
12194 char kstat_open ();
12195 int
12196 main ()
12197 {
12198 return kstat_open ();
12199 ;
12200 return 0;
12201 }
12202 _ACEOF
12203 if ac_fn_c_try_link "$LINENO"; then :
12204 ac_cv_lib_kstat_kstat_open=yes
12205 else
12206 ac_cv_lib_kstat_kstat_open=no
12207 fi
12208 rm -f core conftest.err conftest.$ac_objext \
12209 conftest$ac_exeext conftest.$ac_ext
12210 LIBS=$ac_check_lib_save_LIBS
12211 fi
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12213 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12214 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12215 cat >>confdefs.h <<_ACEOF
12216 #define HAVE_LIBKSTAT 1
12217 _ACEOF
12218
12219 LIBS="-lkstat $LIBS"
12220
12221 fi
12222
12223 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12224
12225 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12226 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12227 # to get the right answer into the cache.
12228 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12229 if test $ac_have_func = no; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12231 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12232 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12233 $as_echo_n "(cached) " >&6
12234 else
12235 ac_check_lib_save_LIBS=$LIBS
12236 LIBS="-lelf $LIBS"
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12239
12240 /* Override any GCC internal prototype to avoid an error.
12241 Use char because int might match the return type of a GCC
12242 builtin and then its argument prototype would still apply. */
12243 #ifdef __cplusplus
12244 extern "C"
12245 #endif
12246 char elf_begin ();
12247 int
12248 main ()
12249 {
12250 return elf_begin ();
12251 ;
12252 return 0;
12253 }
12254 _ACEOF
12255 if ac_fn_c_try_link "$LINENO"; then :
12256 ac_cv_lib_elf_elf_begin=yes
12257 else
12258 ac_cv_lib_elf_elf_begin=no
12259 fi
12260 rm -f core conftest.err conftest.$ac_objext \
12261 conftest$ac_exeext conftest.$ac_ext
12262 LIBS=$ac_check_lib_save_LIBS
12263 fi
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12265 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12266 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
12267 LIBS="-lelf $LIBS"
12268 fi
12269
12270 fi
12271 if test $ac_have_func = no; then
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12273 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12274 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12275 $as_echo_n "(cached) " >&6
12276 else
12277 ac_check_lib_save_LIBS=$LIBS
12278 LIBS="-lkvm $LIBS"
12279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12281
12282 /* Override any GCC internal prototype to avoid an error.
12283 Use char because int might match the return type of a GCC
12284 builtin and then its argument prototype would still apply. */
12285 #ifdef __cplusplus
12286 extern "C"
12287 #endif
12288 char kvm_open ();
12289 int
12290 main ()
12291 {
12292 return kvm_open ();
12293 ;
12294 return 0;
12295 }
12296 _ACEOF
12297 if ac_fn_c_try_link "$LINENO"; then :
12298 ac_cv_lib_kvm_kvm_open=yes
12299 else
12300 ac_cv_lib_kvm_kvm_open=no
12301 fi
12302 rm -f core conftest.err conftest.$ac_objext \
12303 conftest$ac_exeext conftest.$ac_ext
12304 LIBS=$ac_check_lib_save_LIBS
12305 fi
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12307 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12308 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
12309 LIBS="-lkvm $LIBS"
12310 fi
12311
12312 # Check for the 4.4BSD definition of getloadavg.
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12314 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12315 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12316 $as_echo_n "(cached) " >&6
12317 else
12318 ac_check_lib_save_LIBS=$LIBS
12319 LIBS="-lutil $LIBS"
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12322
12323 /* Override any GCC internal prototype to avoid an error.
12324 Use char because int might match the return type of a GCC
12325 builtin and then its argument prototype would still apply. */
12326 #ifdef __cplusplus
12327 extern "C"
12328 #endif
12329 char getloadavg ();
12330 int
12331 main ()
12332 {
12333 return getloadavg ();
12334 ;
12335 return 0;
12336 }
12337 _ACEOF
12338 if ac_fn_c_try_link "$LINENO"; then :
12339 ac_cv_lib_util_getloadavg=yes
12340 else
12341 ac_cv_lib_util_getloadavg=no
12342 fi
12343 rm -f core conftest.err conftest.$ac_objext \
12344 conftest$ac_exeext conftest.$ac_ext
12345 LIBS=$ac_check_lib_save_LIBS
12346 fi
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12348 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12349 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
12350 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12351 fi
12352
12353 fi
12354
12355 if test $ac_have_func = no; then
12356 # There is a commonly available library for RS/6000 AIX.
12357 # Since it is not a standard part of AIX, it might be installed locally.
12358 ac_getloadavg_LIBS=$LIBS
12359 LIBS="-L/usr/local/lib $LIBS"
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12361 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12362 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12363 $as_echo_n "(cached) " >&6
12364 else
12365 ac_check_lib_save_LIBS=$LIBS
12366 LIBS="-lgetloadavg $LIBS"
12367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12368 /* end confdefs.h. */
12369
12370 /* Override any GCC internal prototype to avoid an error.
12371 Use char because int might match the return type of a GCC
12372 builtin and then its argument prototype would still apply. */
12373 #ifdef __cplusplus
12374 extern "C"
12375 #endif
12376 char getloadavg ();
12377 int
12378 main ()
12379 {
12380 return getloadavg ();
12381 ;
12382 return 0;
12383 }
12384 _ACEOF
12385 if ac_fn_c_try_link "$LINENO"; then :
12386 ac_cv_lib_getloadavg_getloadavg=yes
12387 else
12388 ac_cv_lib_getloadavg_getloadavg=no
12389 fi
12390 rm -f core conftest.err conftest.$ac_objext \
12391 conftest$ac_exeext conftest.$ac_ext
12392 LIBS=$ac_check_lib_save_LIBS
12393 fi
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12395 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12396 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
12397 LIBS="-lgetloadavg $LIBS"
12398 else
12399 LIBS=$ac_getloadavg_LIBS
12400 fi
12401
12402 fi
12403
12404 # Make sure it is really in the library, if we think we found it,
12405 # otherwise set up the replacement function.
12406 for ac_func in getloadavg
12407 do :
12408 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12409 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12410 cat >>confdefs.h <<_ACEOF
12411 #define HAVE_GETLOADAVG 1
12412 _ACEOF
12413
12414 else
12415 case " $LIBOBJS " in
12416 *" getloadavg.$ac_objext "* ) ;;
12417 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12418 ;;
12419 esac
12420
12421
12422 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12423
12424 # Figure out what our getloadavg.c needs.
12425 ac_have_func=no
12426 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12427 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
12428 ac_have_func=yes
12429
12430 $as_echo "#define DGUX 1" >>confdefs.h
12431
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12433 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12434 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
12436 else
12437 ac_check_lib_save_LIBS=$LIBS
12438 LIBS="-ldgc $LIBS"
12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h. */
12441
12442 /* Override any GCC internal prototype to avoid an error.
12443 Use char because int might match the return type of a GCC
12444 builtin and then its argument prototype would still apply. */
12445 #ifdef __cplusplus
12446 extern "C"
12447 #endif
12448 char dg_sys_info ();
12449 int
12450 main ()
12451 {
12452 return dg_sys_info ();
12453 ;
12454 return 0;
12455 }
12456 _ACEOF
12457 if ac_fn_c_try_link "$LINENO"; then :
12458 ac_cv_lib_dgc_dg_sys_info=yes
12459 else
12460 ac_cv_lib_dgc_dg_sys_info=no
12461 fi
12462 rm -f core conftest.err conftest.$ac_objext \
12463 conftest$ac_exeext conftest.$ac_ext
12464 LIBS=$ac_check_lib_save_LIBS
12465 fi
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12467 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12468 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
12469 cat >>confdefs.h <<_ACEOF
12470 #define HAVE_LIBDGC 1
12471 _ACEOF
12472
12473 LIBS="-ldgc $LIBS"
12474
12475 fi
12476
12477 fi
12478
12479
12480
12481 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12482 if test "x$ac_cv_header_locale_h" = x""yes; then :
12483
12484 fi
12485
12486
12487 for ac_func in setlocale
12488 do :
12489 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12490 if test "x$ac_cv_func_setlocale" = x""yes; then :
12491 cat >>confdefs.h <<_ACEOF
12492 #define HAVE_SETLOCALE 1
12493 _ACEOF
12494
12495 fi
12496 done
12497
12498
12499 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12500 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12501 # Irix 4.0.5F has the header but not the library.
12502 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12503 ac_have_func=yes
12504
12505 $as_echo "#define SVR4 1" >>confdefs.h
12506
12507 fi
12508
12509 if test $ac_have_func = no; then
12510 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12511 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
12512 ac_have_func=yes
12513
12514 $as_echo "#define UMAX 1" >>confdefs.h
12515
12516
12517 $as_echo "#define UMAX4_3 1" >>confdefs.h
12518
12519 fi
12520
12521
12522 fi
12523
12524 if test $ac_have_func = no; then
12525 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12526 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
12527 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
12528
12529 fi
12530
12531
12532 fi
12533
12534 if test $ac_have_func = no; then
12535 for ac_header in mach/mach.h
12536 do :
12537 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12538 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
12539 cat >>confdefs.h <<_ACEOF
12540 #define HAVE_MACH_MACH_H 1
12541 _ACEOF
12542
12543 fi
12544
12545 done
12546
12547 fi
12548
12549 for ac_header in nlist.h
12550 do :
12551 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12552 if test "x$ac_cv_header_nlist_h" = x""yes; then :
12553 cat >>confdefs.h <<_ACEOF
12554 #define HAVE_NLIST_H 1
12555 _ACEOF
12556 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12557 "
12558 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
12559
12560 cat >>confdefs.h <<_ACEOF
12561 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12562 _ACEOF
12563
12564
12565 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12566
12567 fi
12568
12569
12570 fi
12571
12572 done
12573
12574 fi
12575 done
12576
12577
12578 # Some definitions of getloadavg require that the program be installed setgid.
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12580 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12581 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12582 $as_echo_n "(cached) " >&6
12583 else
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12586 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12587 #ifdef LDAV_PRIVILEGED
12588 Yowza Am I SETGID yet
12589 #endif
12590 _ACEOF
12591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12592 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
12593 ac_cv_func_getloadavg_setgid=yes
12594 else
12595 ac_cv_func_getloadavg_setgid=no
12596 fi
12597 rm -f conftest*
12598
12599 fi
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12601 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12602 if test $ac_cv_func_getloadavg_setgid = yes; then
12603 NEED_SETGID=true
12604
12605 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12606
12607 else
12608 NEED_SETGID=false
12609 fi
12610
12611 if test $ac_cv_func_getloadavg_setgid = yes; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12613 $as_echo_n "checking group of /dev/kmem... " >&6; }
12614 if test "${ac_cv_group_kmem+set}" = set; then :
12615 $as_echo_n "(cached) " >&6
12616 else
12617 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12618 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12619 # If we got an error (system does not support symlinks), try without -L.
12620 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12621 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
12622 | sed -ne 's/[ ][ ]*/ /g;
12623 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12624 / /s/.* //;p;'`
12625
12626 fi
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12628 $as_echo "$ac_cv_group_kmem" >&6; }
12629 KMEM_GROUP=$ac_cv_group_kmem
12630 fi
12631 if test "x$ac_save_LIBS" = x; then
12632 GETLOADAVG_LIBS=$LIBS
12633 else
12634 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12635 fi
12636 LIBS=$ac_save_LIBS
12637
12638
12639
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12641 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12642 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12643 $as_echo_n "(cached) " >&6
12644 else
12645 while :; do
12646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647 /* end confdefs.h. */
12648 #include <sys/types.h> /* for off_t */
12649 #include <stdio.h>
12650 int
12651 main ()
12652 {
12653 int (*fp) (FILE *, off_t, int) = fseeko;
12654 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12655 ;
12656 return 0;
12657 }
12658 _ACEOF
12659 if ac_fn_c_try_link "$LINENO"; then :
12660 ac_cv_sys_largefile_source=no; break
12661 fi
12662 rm -f core conftest.err conftest.$ac_objext \
12663 conftest$ac_exeext conftest.$ac_ext
12664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h. */
12666 #define _LARGEFILE_SOURCE 1
12667 #include <sys/types.h> /* for off_t */
12668 #include <stdio.h>
12669 int
12670 main ()
12671 {
12672 int (*fp) (FILE *, off_t, int) = fseeko;
12673 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12674 ;
12675 return 0;
12676 }
12677 _ACEOF
12678 if ac_fn_c_try_link "$LINENO"; then :
12679 ac_cv_sys_largefile_source=1; break
12680 fi
12681 rm -f core conftest.err conftest.$ac_objext \
12682 conftest$ac_exeext conftest.$ac_ext
12683 ac_cv_sys_largefile_source=unknown
12684 break
12685 done
12686 fi
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12688 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12689 case $ac_cv_sys_largefile_source in #(
12690 no | unknown) ;;
12691 *)
12692 cat >>confdefs.h <<_ACEOF
12693 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12694 _ACEOF
12695 ;;
12696 esac
12697 rm -rf conftest*
12698
12699 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12700 # in glibc 2.1.3, but that breaks too many other things.
12701 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12702 if test $ac_cv_sys_largefile_source != unknown; then
12703
12704 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12705
12706 fi
12707
12708
12709 # Configure getopt.
12710 # getopt.m4 serial 10
12711
12712 # The getopt module assume you want GNU getopt, with getopt_long etc,
12713 # rather than vanilla POSIX getopt. This means your your code should
12714 # always include <getopt.h> for the getopt prototypes.
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726 # Prerequisites of lib/getopt*.
12727
12728
12729
12730
12731 GETOPT_H=
12732 for ac_header in getopt.h
12733 do :
12734 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12735 if test "x$ac_cv_header_getopt_h" = x""yes; then :
12736 cat >>confdefs.h <<_ACEOF
12737 #define HAVE_GETOPT_H 1
12738 _ACEOF
12739
12740 else
12741 GETOPT_H=getopt.h
12742 fi
12743
12744 done
12745
12746 if test -z "$GETOPT_H"; then
12747 for ac_func in getopt_long_only
12748 do :
12749 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12750 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
12751 cat >>confdefs.h <<_ACEOF
12752 #define HAVE_GETOPT_LONG_ONLY 1
12753 _ACEOF
12754
12755 else
12756 GETOPT_H=getopt.h
12757 fi
12758 done
12759
12760 fi
12761
12762 if test -z "$GETOPT_H"; then
12763 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12764 "
12765 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
12766 GETOPT_H=getopt.h
12767 fi
12768
12769 fi
12770
12771 if test -z "$GETOPT_H"; then
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12773 $as_echo_n "checking for working GNU getopt function... " >&6; }
12774 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12775 $as_echo_n "(cached) " >&6
12776 else
12777 if test "$cross_compiling" = yes; then :
12778 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12779 "
12780 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12781 gl_cv_func_gnu_getopt=no
12782 else
12783 gl_cv_func_gnu_getopt=yes
12784 fi
12785
12786 else
12787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788 /* end confdefs.h. */
12789 #include <getopt.h>
12790 int
12791 main ()
12792 {
12793
12794 char *myargv[3];
12795 myargv[0] = "conftest";
12796 myargv[1] = "-+";
12797 myargv[2] = 0;
12798 return getopt (2, myargv, "+a") != '?';
12799
12800 ;
12801 return 0;
12802 }
12803 _ACEOF
12804 if ac_fn_c_try_run "$LINENO"; then :
12805 gl_cv_func_gnu_getopt=yes
12806 else
12807 gl_cv_func_gnu_getopt=no
12808 fi
12809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12810 conftest.$ac_objext conftest.beam conftest.$ac_ext
12811 fi
12812
12813 fi
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12815 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12816 if test "$gl_cv_func_gnu_getopt" = "no"; then
12817 GETOPT_H=getopt.h
12818 fi
12819 fi
12820
12821
12822
12823 if test -n "$GETOPT_H"; then :
12824
12825
12826 GETOPT_H=getopt.h
12827
12828 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12829
12830
12831
12832 :
12833 GETOPTOBJS='getopt.o getopt1.o'
12834
12835 fi
12836
12837
12838
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12840 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12841 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12842 $as_echo_n "(cached) " >&6
12843 else
12844 # Use it with a single arg.
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12847 $ac_includes_default
12848 int
12849 main ()
12850 {
12851 getpgrp (0);
12852 ;
12853 return 0;
12854 }
12855 _ACEOF
12856 if ac_fn_c_try_compile "$LINENO"; then :
12857 ac_cv_func_getpgrp_void=no
12858 else
12859 ac_cv_func_getpgrp_void=yes
12860 fi
12861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862
12863 fi
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12865 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12866 if test $ac_cv_func_getpgrp_void = yes; then
12867
12868 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12869
12870 fi
12871
12872
12873 for ac_func in strftime
12874 do :
12875 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12876 if test "x$ac_cv_func_strftime" = x""yes; then :
12877 cat >>confdefs.h <<_ACEOF
12878 #define HAVE_STRFTIME 1
12879 _ACEOF
12880
12881 else
12882 # strftime is in -lintl on SCO UNIX.
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12884 $as_echo_n "checking for strftime in -lintl... " >&6; }
12885 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12886 $as_echo_n "(cached) " >&6
12887 else
12888 ac_check_lib_save_LIBS=$LIBS
12889 LIBS="-lintl $LIBS"
12890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12891 /* end confdefs.h. */
12892
12893 /* Override any GCC internal prototype to avoid an error.
12894 Use char because int might match the return type of a GCC
12895 builtin and then its argument prototype would still apply. */
12896 #ifdef __cplusplus
12897 extern "C"
12898 #endif
12899 char strftime ();
12900 int
12901 main ()
12902 {
12903 return strftime ();
12904 ;
12905 return 0;
12906 }
12907 _ACEOF
12908 if ac_fn_c_try_link "$LINENO"; then :
12909 ac_cv_lib_intl_strftime=yes
12910 else
12911 ac_cv_lib_intl_strftime=no
12912 fi
12913 rm -f core conftest.err conftest.$ac_objext \
12914 conftest$ac_exeext conftest.$ac_ext
12915 LIBS=$ac_check_lib_save_LIBS
12916 fi
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12918 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12919 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12920 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12921
12922 LIBS="-lintl $LIBS"
12923 fi
12924
12925 fi
12926 done
12927
12928
12929 # UNIX98 PTYs.
12930 for ac_func in grantpt
12931 do :
12932 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12933 if test "x$ac_cv_func_grantpt" = x""yes; then :
12934 cat >>confdefs.h <<_ACEOF
12935 #define HAVE_GRANTPT 1
12936 _ACEOF
12937
12938 fi
12939 done
12940
12941
12942 # PTY-related GNU extensions.
12943 for ac_func in getpt
12944 do :
12945 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12946 if test "x$ac_cv_func_getpt" = x""yes; then :
12947 cat >>confdefs.h <<_ACEOF
12948 #define HAVE_GETPT 1
12949 _ACEOF
12950
12951 fi
12952 done
12953
12954
12955 # Check this now, so that we will NOT find the above functions in ncurses.
12956 # That is because we have not set up to link ncurses in lib-src.
12957 # It's better to believe a function is not available
12958 # than to expect to find it in ncurses.
12959 # Also we need tputs and friends to be able to build at all.
12960 have_tputs_et_al=true
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12962 $as_echo_n "checking for library containing tputs... " >&6; }
12963 if test "${ac_cv_search_tputs+set}" = set; then :
12964 $as_echo_n "(cached) " >&6
12965 else
12966 ac_func_search_save_LIBS=$LIBS
12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h. */
12969
12970 /* Override any GCC internal prototype to avoid an error.
12971 Use char because int might match the return type of a GCC
12972 builtin and then its argument prototype would still apply. */
12973 #ifdef __cplusplus
12974 extern "C"
12975 #endif
12976 char tputs ();
12977 int
12978 main ()
12979 {
12980 return tputs ();
12981 ;
12982 return 0;
12983 }
12984 _ACEOF
12985 for ac_lib in '' ncurses terminfo termcap; do
12986 if test -z "$ac_lib"; then
12987 ac_res="none required"
12988 else
12989 ac_res=-l$ac_lib
12990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12991 fi
12992 if ac_fn_c_try_link "$LINENO"; then :
12993 ac_cv_search_tputs=$ac_res
12994 fi
12995 rm -f core conftest.err conftest.$ac_objext \
12996 conftest$ac_exeext
12997 if test "${ac_cv_search_tputs+set}" = set; then :
12998 break
12999 fi
13000 done
13001 if test "${ac_cv_search_tputs+set}" = set; then :
13002
13003 else
13004 ac_cv_search_tputs=no
13005 fi
13006 rm conftest.$ac_ext
13007 LIBS=$ac_func_search_save_LIBS
13008 fi
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13010 $as_echo "$ac_cv_search_tputs" >&6; }
13011 ac_res=$ac_cv_search_tputs
13012 if test "$ac_res" != no; then :
13013 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13014
13015 else
13016 have_tputs_et_al=false
13017 fi
13018
13019 if test "$have_tputs_et_al" != true; then
13020 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
13021 Maybe some development libraries/packages are missing? Try installing
13022 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13023 fi
13024 # Must define this when any termcap library is found.
13025
13026 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13027
13028 ## FIXME This was the cpp logic, but I am not sure it is right.
13029 ## The above test has not necessarily found libncurses.
13030 HAVE_LIBNCURSES=yes
13031
13032 ## Use terminfo instead of termcap?
13033 ## Note only system files NOT using terminfo are:
13034 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13035 ## darwin|gnu without ncurses.
13036 TERMINFO=no
13037 LIBS_TERMCAP=
13038 case "$opsys" in
13039 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13040 ## hpux10-20: Use the system provided termcap(3) library.
13041 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13042 ## is necessary. Otherwise Emacs dumps core when run -nw.
13043 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
13044
13045 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13046 ## The ncurses library has been moved out of the System framework in
13047 ## Mac OS X 10.2. So if configure detects it, set the command-line
13048 ## option to use it.
13049 darwin|gnu*)
13050 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13051 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13052 TERMINFO=yes
13053 LIBS_TERMCAP="-lncurses"
13054 fi
13055 ;;
13056
13057 freebsd)
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13059 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13060 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13061 $as_echo_n "(cached) " >&6
13062 else
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13065 #include <osreldate.h>
13066 int
13067 main ()
13068 {
13069 #if __FreeBSD_version < 400000
13070 fail;
13071 #endif
13072
13073 ;
13074 return 0;
13075 }
13076 _ACEOF
13077 if ac_fn_c_try_link "$LINENO"; then :
13078 emacs_cv_freebsd_terminfo=yes
13079 else
13080 emacs_cv_freebsd_terminfo=no
13081 fi
13082 rm -f core conftest.err conftest.$ac_objext \
13083 conftest$ac_exeext conftest.$ac_ext
13084 fi
13085
13086
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13088 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13089
13090 if test $emacs_cv_freebsd_terminfo = yes; then
13091 TERMINFO=yes
13092 LIBS_TERMCAP="-lncurses"
13093 else
13094 LIBS_TERMCAP="-ltermcap"
13095 fi
13096 ;;
13097
13098 netbsd)
13099 if test $ac_cv_search_tputs = -lterminfo; then
13100 TERMINFO=yes
13101 LIBS_TERMCAP="-lterminfo"
13102 else
13103 LIBS_TERMCAP="-ltermcap"
13104 fi
13105 ;;
13106
13107 esac
13108
13109 case "$opsys" in
13110 ## hpux: Make sure we get select from libc rather than from libcurses
13111 ## because libcurses on HPUX 10.10 has a broken version of select.
13112 ## We used to use -lc -lcurses, but this may be cleaner.
13113 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13114
13115 openbsd) LIBS_TERMCAP="-lncurses" ;;
13116
13117 ## Must use system termcap, if we use any termcap. It does special things.
13118 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
13119 esac
13120
13121 TERMCAP_OBJ=tparam.o
13122 if test $TERMINFO = yes; then
13123
13124 $as_echo "#define TERMINFO 1" >>confdefs.h
13125
13126
13127 ## Default used to be -ltermcap. Add a case above if need something else.
13128 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
13129
13130 TERMCAP_OBJ=terminfo.o
13131 fi
13132
13133
13134
13135
13136 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13137 resolv=no
13138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13139 /* end confdefs.h. */
13140 #include <netinet/in.h>
13141 #include <arpa/nameser.h>
13142 #include <resolv.h>
13143 int
13144 main ()
13145 {
13146 return res_init();
13147 ;
13148 return 0;
13149 }
13150 _ACEOF
13151 if ac_fn_c_try_link "$LINENO"; then :
13152 have_res_init=yes
13153 else
13154 have_res_init=no
13155 fi
13156 rm -f core conftest.err conftest.$ac_objext \
13157 conftest$ac_exeext conftest.$ac_ext
13158 if test "$have_res_init" = no; then
13159 OLIBS="$LIBS"
13160 LIBS="$LIBS -lresolv"
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13162 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13165 #include <netinet/in.h>
13166 #include <arpa/nameser.h>
13167 #include <resolv.h>
13168 int
13169 main ()
13170 {
13171 return res_init();
13172 ;
13173 return 0;
13174 }
13175 _ACEOF
13176 if ac_fn_c_try_link "$LINENO"; then :
13177 have_res_init=yes
13178 else
13179 have_res_init=no
13180 fi
13181 rm -f core conftest.err conftest.$ac_objext \
13182 conftest$ac_exeext conftest.$ac_ext
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13184 $as_echo "$have_res_init" >&6; }
13185 if test "$have_res_init" = yes ; then
13186 resolv=yes
13187 fi
13188 LIBS="$OLIBS"
13189 fi
13190
13191 if test "$have_res_init" = yes; then
13192
13193 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13194
13195 fi
13196
13197 # Do we need the Hesiod library to provide the support routines?
13198 LIBHESIOD=
13199 if test "$with_hesiod" != no ; then
13200 # Don't set $LIBS here -- see comments above. FIXME which comments?
13201 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13202 if test "x$ac_cv_func_res_send" = x""yes; then :
13203
13204 else
13205 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13206 if test "x$ac_cv_func___res_send" = x""yes; then :
13207
13208 else
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13210 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13211 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13212 $as_echo_n "(cached) " >&6
13213 else
13214 ac_check_lib_save_LIBS=$LIBS
13215 LIBS="-lresolv $LIBS"
13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13218
13219 /* Override any GCC internal prototype to avoid an error.
13220 Use char because int might match the return type of a GCC
13221 builtin and then its argument prototype would still apply. */
13222 #ifdef __cplusplus
13223 extern "C"
13224 #endif
13225 char res_send ();
13226 int
13227 main ()
13228 {
13229 return res_send ();
13230 ;
13231 return 0;
13232 }
13233 _ACEOF
13234 if ac_fn_c_try_link "$LINENO"; then :
13235 ac_cv_lib_resolv_res_send=yes
13236 else
13237 ac_cv_lib_resolv_res_send=no
13238 fi
13239 rm -f core conftest.err conftest.$ac_objext \
13240 conftest$ac_exeext conftest.$ac_ext
13241 LIBS=$ac_check_lib_save_LIBS
13242 fi
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13244 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13245 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13246 resolv=yes
13247 else
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13249 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13250 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13251 $as_echo_n "(cached) " >&6
13252 else
13253 ac_check_lib_save_LIBS=$LIBS
13254 LIBS="-lresolv $LIBS"
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13257
13258 /* Override any GCC internal prototype to avoid an error.
13259 Use char because int might match the return type of a GCC
13260 builtin and then its argument prototype would still apply. */
13261 #ifdef __cplusplus
13262 extern "C"
13263 #endif
13264 char __res_send ();
13265 int
13266 main ()
13267 {
13268 return __res_send ();
13269 ;
13270 return 0;
13271 }
13272 _ACEOF
13273 if ac_fn_c_try_link "$LINENO"; then :
13274 ac_cv_lib_resolv___res_send=yes
13275 else
13276 ac_cv_lib_resolv___res_send=no
13277 fi
13278 rm -f core conftest.err conftest.$ac_objext \
13279 conftest$ac_exeext conftest.$ac_ext
13280 LIBS=$ac_check_lib_save_LIBS
13281 fi
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13283 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13284 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13285 resolv=yes
13286 fi
13287
13288 fi
13289
13290 fi
13291
13292 fi
13293
13294 if test "$resolv" = yes ; then
13295 RESOLVLIB=-lresolv
13296 else
13297 RESOLVLIB=
13298 fi
13299 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13300 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13301
13302 else
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13304 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13305 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13306 $as_echo_n "(cached) " >&6
13307 else
13308 ac_check_lib_save_LIBS=$LIBS
13309 LIBS="-lhesiod $RESOLVLIB $LIBS"
13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13311 /* end confdefs.h. */
13312
13313 /* Override any GCC internal prototype to avoid an error.
13314 Use char because int might match the return type of a GCC
13315 builtin and then its argument prototype would still apply. */
13316 #ifdef __cplusplus
13317 extern "C"
13318 #endif
13319 char hes_getmailhost ();
13320 int
13321 main ()
13322 {
13323 return hes_getmailhost ();
13324 ;
13325 return 0;
13326 }
13327 _ACEOF
13328 if ac_fn_c_try_link "$LINENO"; then :
13329 ac_cv_lib_hesiod_hes_getmailhost=yes
13330 else
13331 ac_cv_lib_hesiod_hes_getmailhost=no
13332 fi
13333 rm -f core conftest.err conftest.$ac_objext \
13334 conftest$ac_exeext conftest.$ac_ext
13335 LIBS=$ac_check_lib_save_LIBS
13336 fi
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13338 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13339 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13340 hesiod=yes
13341 else
13342 :
13343 fi
13344
13345 fi
13346
13347
13348 if test x"$hesiod" = xyes; then
13349
13350 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13351
13352 LIBHESIOD=-lhesiod
13353 fi
13354 fi
13355
13356
13357 # Do we need libresolv (due to res_init or Hesiod)?
13358 if test "$resolv" = yes ; then
13359
13360 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13361
13362 LIBRESOLV=-lresolv
13363 else
13364 LIBRESOLV=
13365 fi
13366
13367
13368 # These tell us which Kerberos-related libraries to use.
13369 COM_ERRLIB=
13370 CRYPTOLIB=
13371 KRB5LIB=
13372 DESLIB=
13373 KRB4LIB=
13374
13375 if test "${with_kerberos}" != no; then
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13377 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13378 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13379 $as_echo_n "(cached) " >&6
13380 else
13381 ac_check_lib_save_LIBS=$LIBS
13382 LIBS="-lcom_err $LIBS"
13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13385
13386 /* Override any GCC internal prototype to avoid an error.
13387 Use char because int might match the return type of a GCC
13388 builtin and then its argument prototype would still apply. */
13389 #ifdef __cplusplus
13390 extern "C"
13391 #endif
13392 char com_err ();
13393 int
13394 main ()
13395 {
13396 return com_err ();
13397 ;
13398 return 0;
13399 }
13400 _ACEOF
13401 if ac_fn_c_try_link "$LINENO"; then :
13402 ac_cv_lib_com_err_com_err=yes
13403 else
13404 ac_cv_lib_com_err_com_err=no
13405 fi
13406 rm -f core conftest.err conftest.$ac_objext \
13407 conftest$ac_exeext conftest.$ac_ext
13408 LIBS=$ac_check_lib_save_LIBS
13409 fi
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13411 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13412 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13413 have_com_err=yes
13414 else
13415 have_com_err=no
13416 fi
13417
13418 if test $have_com_err = yes; then
13419 COM_ERRLIB=-lcom_err
13420 LIBS="$COM_ERRLIB $LIBS"
13421
13422 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13423
13424 fi
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13426 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13427 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13428 $as_echo_n "(cached) " >&6
13429 else
13430 ac_check_lib_save_LIBS=$LIBS
13431 LIBS="-lcrypto $LIBS"
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13434
13435 /* Override any GCC internal prototype to avoid an error.
13436 Use char because int might match the return type of a GCC
13437 builtin and then its argument prototype would still apply. */
13438 #ifdef __cplusplus
13439 extern "C"
13440 #endif
13441 char mit_des_cbc_encrypt ();
13442 int
13443 main ()
13444 {
13445 return mit_des_cbc_encrypt ();
13446 ;
13447 return 0;
13448 }
13449 _ACEOF
13450 if ac_fn_c_try_link "$LINENO"; then :
13451 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13452 else
13453 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13454 fi
13455 rm -f core conftest.err conftest.$ac_objext \
13456 conftest$ac_exeext conftest.$ac_ext
13457 LIBS=$ac_check_lib_save_LIBS
13458 fi
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13460 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13461 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13462 have_crypto=yes
13463 else
13464 have_crypto=no
13465 fi
13466
13467 if test $have_crypto = yes; then
13468 CRYPTOLIB=-lcrypto
13469 LIBS="$CRYPTOLIB $LIBS"
13470
13471 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13472
13473 fi
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13475 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13476 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13477 $as_echo_n "(cached) " >&6
13478 else
13479 ac_check_lib_save_LIBS=$LIBS
13480 LIBS="-lk5crypto $LIBS"
13481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13482 /* end confdefs.h. */
13483
13484 /* Override any GCC internal prototype to avoid an error.
13485 Use char because int might match the return type of a GCC
13486 builtin and then its argument prototype would still apply. */
13487 #ifdef __cplusplus
13488 extern "C"
13489 #endif
13490 char mit_des_cbc_encrypt ();
13491 int
13492 main ()
13493 {
13494 return mit_des_cbc_encrypt ();
13495 ;
13496 return 0;
13497 }
13498 _ACEOF
13499 if ac_fn_c_try_link "$LINENO"; then :
13500 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13501 else
13502 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13503 fi
13504 rm -f core conftest.err conftest.$ac_objext \
13505 conftest$ac_exeext conftest.$ac_ext
13506 LIBS=$ac_check_lib_save_LIBS
13507 fi
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13509 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13510 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13511 have_k5crypto=yes
13512 else
13513 have_k5crypto=no
13514 fi
13515
13516 if test $have_k5crypto = yes; then
13517 CRYPTOLIB=-lk5crypto
13518 LIBS="$CRYPTOLIB $LIBS"
13519
13520 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13521
13522 fi
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13524 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13525 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13526 $as_echo_n "(cached) " >&6
13527 else
13528 ac_check_lib_save_LIBS=$LIBS
13529 LIBS="-lkrb5 $LIBS"
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532
13533 /* Override any GCC internal prototype to avoid an error.
13534 Use char because int might match the return type of a GCC
13535 builtin and then its argument prototype would still apply. */
13536 #ifdef __cplusplus
13537 extern "C"
13538 #endif
13539 char krb5_init_context ();
13540 int
13541 main ()
13542 {
13543 return krb5_init_context ();
13544 ;
13545 return 0;
13546 }
13547 _ACEOF
13548 if ac_fn_c_try_link "$LINENO"; then :
13549 ac_cv_lib_krb5_krb5_init_context=yes
13550 else
13551 ac_cv_lib_krb5_krb5_init_context=no
13552 fi
13553 rm -f core conftest.err conftest.$ac_objext \
13554 conftest$ac_exeext conftest.$ac_ext
13555 LIBS=$ac_check_lib_save_LIBS
13556 fi
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13558 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13559 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13560 have_krb5=yes
13561 else
13562 have_krb5=no
13563 fi
13564
13565 if test $have_krb5=yes; then
13566 KRB5LIB=-lkrb5
13567 LIBS="$KRB5LIB $LIBS"
13568
13569 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13570
13571 fi
13572 if test "${with_kerberos5}" = no; then
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13574 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13575 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13576 $as_echo_n "(cached) " >&6
13577 else
13578 ac_check_lib_save_LIBS=$LIBS
13579 LIBS="-ldes425 $LIBS"
13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13581 /* end confdefs.h. */
13582
13583 /* Override any GCC internal prototype to avoid an error.
13584 Use char because int might match the return type of a GCC
13585 builtin and then its argument prototype would still apply. */
13586 #ifdef __cplusplus
13587 extern "C"
13588 #endif
13589 char des_cbc_encrypt ();
13590 int
13591 main ()
13592 {
13593 return des_cbc_encrypt ();
13594 ;
13595 return 0;
13596 }
13597 _ACEOF
13598 if ac_fn_c_try_link "$LINENO"; then :
13599 ac_cv_lib_des425_des_cbc_encrypt=yes
13600 else
13601 ac_cv_lib_des425_des_cbc_encrypt=no
13602 fi
13603 rm -f core conftest.err conftest.$ac_objext \
13604 conftest$ac_exeext conftest.$ac_ext
13605 LIBS=$ac_check_lib_save_LIBS
13606 fi
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13608 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13609 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13610 have_des425=yes
13611 else
13612 have_des425=no
13613 fi
13614
13615 if test $have_des425 = yes; then
13616 DESLIB=-ldes425
13617 LIBS="$DESLIB $LIBS"
13618
13619 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13620
13621 else
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13623 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13624 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 ac_check_lib_save_LIBS=$LIBS
13628 LIBS="-ldes $LIBS"
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630 /* end confdefs.h. */
13631
13632 /* Override any GCC internal prototype to avoid an error.
13633 Use char because int might match the return type of a GCC
13634 builtin and then its argument prototype would still apply. */
13635 #ifdef __cplusplus
13636 extern "C"
13637 #endif
13638 char des_cbc_encrypt ();
13639 int
13640 main ()
13641 {
13642 return des_cbc_encrypt ();
13643 ;
13644 return 0;
13645 }
13646 _ACEOF
13647 if ac_fn_c_try_link "$LINENO"; then :
13648 ac_cv_lib_des_des_cbc_encrypt=yes
13649 else
13650 ac_cv_lib_des_des_cbc_encrypt=no
13651 fi
13652 rm -f core conftest.err conftest.$ac_objext \
13653 conftest$ac_exeext conftest.$ac_ext
13654 LIBS=$ac_check_lib_save_LIBS
13655 fi
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13657 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13658 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13659 have_des=yes
13660 else
13661 have_des=no
13662 fi
13663
13664 if test $have_des = yes; then
13665 DESLIB=-ldes
13666 LIBS="$DESLIB $LIBS"
13667
13668 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13669
13670 fi
13671 fi
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13673 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13674 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13675 $as_echo_n "(cached) " >&6
13676 else
13677 ac_check_lib_save_LIBS=$LIBS
13678 LIBS="-lkrb4 $LIBS"
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13681
13682 /* Override any GCC internal prototype to avoid an error.
13683 Use char because int might match the return type of a GCC
13684 builtin and then its argument prototype would still apply. */
13685 #ifdef __cplusplus
13686 extern "C"
13687 #endif
13688 char krb_get_cred ();
13689 int
13690 main ()
13691 {
13692 return krb_get_cred ();
13693 ;
13694 return 0;
13695 }
13696 _ACEOF
13697 if ac_fn_c_try_link "$LINENO"; then :
13698 ac_cv_lib_krb4_krb_get_cred=yes
13699 else
13700 ac_cv_lib_krb4_krb_get_cred=no
13701 fi
13702 rm -f core conftest.err conftest.$ac_objext \
13703 conftest$ac_exeext conftest.$ac_ext
13704 LIBS=$ac_check_lib_save_LIBS
13705 fi
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13707 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13708 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13709 have_krb4=yes
13710 else
13711 have_krb4=no
13712 fi
13713
13714 if test $have_krb4 = yes; then
13715 KRB4LIB=-lkrb4
13716 LIBS="$KRB4LIB $LIBS"
13717
13718 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13719
13720 else
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13722 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13723 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13724 $as_echo_n "(cached) " >&6
13725 else
13726 ac_check_lib_save_LIBS=$LIBS
13727 LIBS="-lkrb $LIBS"
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13730
13731 /* Override any GCC internal prototype to avoid an error.
13732 Use char because int might match the return type of a GCC
13733 builtin and then its argument prototype would still apply. */
13734 #ifdef __cplusplus
13735 extern "C"
13736 #endif
13737 char krb_get_cred ();
13738 int
13739 main ()
13740 {
13741 return krb_get_cred ();
13742 ;
13743 return 0;
13744 }
13745 _ACEOF
13746 if ac_fn_c_try_link "$LINENO"; then :
13747 ac_cv_lib_krb_krb_get_cred=yes
13748 else
13749 ac_cv_lib_krb_krb_get_cred=no
13750 fi
13751 rm -f core conftest.err conftest.$ac_objext \
13752 conftest$ac_exeext conftest.$ac_ext
13753 LIBS=$ac_check_lib_save_LIBS
13754 fi
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13756 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13757 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13758 have_krb=yes
13759 else
13760 have_krb=no
13761 fi
13762
13763 if test $have_krb = yes; then
13764 KRB4LIB=-lkrb
13765 LIBS="$KRB4LIB $LIBS"
13766
13767 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13768
13769 fi
13770 fi
13771 fi
13772
13773 if test "${with_kerberos5}" != no; then
13774 for ac_header in krb5.h
13775 do :
13776 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13777 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13778 cat >>confdefs.h <<_ACEOF
13779 #define HAVE_KRB5_H 1
13780 _ACEOF
13781 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13782 "
13783 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13784
13785 cat >>confdefs.h <<_ACEOF
13786 #define HAVE_KRB5_ERROR_TEXT 1
13787 _ACEOF
13788
13789
13790 fi
13791 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13792 "
13793 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13794
13795 cat >>confdefs.h <<_ACEOF
13796 #define HAVE_KRB5_ERROR_E_TEXT 1
13797 _ACEOF
13798
13799
13800 fi
13801
13802 fi
13803
13804 done
13805
13806 else
13807 for ac_header in des.h
13808 do :
13809 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13810 if test "x$ac_cv_header_des_h" = x""yes; then :
13811 cat >>confdefs.h <<_ACEOF
13812 #define HAVE_DES_H 1
13813 _ACEOF
13814
13815 else
13816 for ac_header in kerberosIV/des.h
13817 do :
13818 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13819 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
13820 cat >>confdefs.h <<_ACEOF
13821 #define HAVE_KERBEROSIV_DES_H 1
13822 _ACEOF
13823
13824 else
13825 for ac_header in kerberos/des.h
13826 do :
13827 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13828 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
13829 cat >>confdefs.h <<_ACEOF
13830 #define HAVE_KERBEROS_DES_H 1
13831 _ACEOF
13832
13833 fi
13834
13835 done
13836
13837 fi
13838
13839 done
13840
13841 fi
13842
13843 done
13844
13845 for ac_header in krb.h
13846 do :
13847 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13848 if test "x$ac_cv_header_krb_h" = x""yes; then :
13849 cat >>confdefs.h <<_ACEOF
13850 #define HAVE_KRB_H 1
13851 _ACEOF
13852
13853 else
13854 for ac_header in kerberosIV/krb.h
13855 do :
13856 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13857 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13858 cat >>confdefs.h <<_ACEOF
13859 #define HAVE_KERBEROSIV_KRB_H 1
13860 _ACEOF
13861
13862 else
13863 for ac_header in kerberos/krb.h
13864 do :
13865 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13866 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13867 cat >>confdefs.h <<_ACEOF
13868 #define HAVE_KERBEROS_KRB_H 1
13869 _ACEOF
13870
13871 fi
13872
13873 done
13874
13875 fi
13876
13877 done
13878
13879 fi
13880
13881 done
13882
13883 fi
13884 for ac_header in com_err.h
13885 do :
13886 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13887 if test "x$ac_cv_header_com_err_h" = x""yes; then :
13888 cat >>confdefs.h <<_ACEOF
13889 #define HAVE_COM_ERR_H 1
13890 _ACEOF
13891
13892 fi
13893
13894 done
13895
13896 fi
13897
13898
13899
13900
13901
13902
13903
13904 # Solaris requires -lintl if you want strerror (which calls dgettext)
13905 # to return localized messages.
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13907 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13908 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13909 $as_echo_n "(cached) " >&6
13910 else
13911 ac_check_lib_save_LIBS=$LIBS
13912 LIBS="-lintl $LIBS"
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h. */
13915
13916 /* Override any GCC internal prototype to avoid an error.
13917 Use char because int might match the return type of a GCC
13918 builtin and then its argument prototype would still apply. */
13919 #ifdef __cplusplus
13920 extern "C"
13921 #endif
13922 char dgettext ();
13923 int
13924 main ()
13925 {
13926 return dgettext ();
13927 ;
13928 return 0;
13929 }
13930 _ACEOF
13931 if ac_fn_c_try_link "$LINENO"; then :
13932 ac_cv_lib_intl_dgettext=yes
13933 else
13934 ac_cv_lib_intl_dgettext=no
13935 fi
13936 rm -f core conftest.err conftest.$ac_objext \
13937 conftest$ac_exeext conftest.$ac_ext
13938 LIBS=$ac_check_lib_save_LIBS
13939 fi
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13941 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13942 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13943 cat >>confdefs.h <<_ACEOF
13944 #define HAVE_LIBINTL 1
13945 _ACEOF
13946
13947 LIBS="-lintl $LIBS"
13948
13949 fi
13950
13951
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13953 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13954 if test "${emacs_cv_localtime_cache+set}" = set; then :
13955 $as_echo_n "(cached) " >&6
13956 else
13957 if test x$ac_cv_func_tzset = xyes; then
13958 if test "$cross_compiling" = yes; then :
13959 # If we have tzset, assume the worst when cross-compiling.
13960 emacs_cv_localtime_cache=yes
13961 else
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13964 #include <time.h>
13965 char TZ_GMT0[] = "TZ=GMT0";
13966 char TZ_PST8[] = "TZ=PST8";
13967 main()
13968 {
13969 time_t now = time ((time_t *) 0);
13970 int hour_GMT0, hour_unset;
13971 if (putenv (TZ_GMT0) != 0)
13972 exit (1);
13973 hour_GMT0 = localtime (&now)->tm_hour;
13974 unsetenv("TZ");
13975 hour_unset = localtime (&now)->tm_hour;
13976 if (putenv (TZ_PST8) != 0)
13977 exit (1);
13978 if (localtime (&now)->tm_hour == hour_GMT0)
13979 exit (1);
13980 unsetenv("TZ");
13981 if (localtime (&now)->tm_hour != hour_unset)
13982 exit (1);
13983 exit (0);
13984 }
13985 _ACEOF
13986 if ac_fn_c_try_run "$LINENO"; then :
13987 emacs_cv_localtime_cache=no
13988 else
13989 emacs_cv_localtime_cache=yes
13990 fi
13991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13992 conftest.$ac_objext conftest.beam conftest.$ac_ext
13993 fi
13994
13995 else
13996 # If we lack tzset, report that localtime does not cache TZ,
13997 # since we can't invalidate the cache if we don't have tzset.
13998 emacs_cv_localtime_cache=no
13999 fi
14000 fi
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14002 $as_echo "$emacs_cv_localtime_cache" >&6; }
14003 if test $emacs_cv_localtime_cache = yes; then
14004
14005 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14006
14007 fi
14008
14009 if test "x$HAVE_TIMEVAL" = xyes; then
14010 for ac_func in gettimeofday
14011 do :
14012 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14013 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14014 cat >>confdefs.h <<_ACEOF
14015 #define HAVE_GETTIMEOFDAY 1
14016 _ACEOF
14017
14018 fi
14019 done
14020
14021 if test $ac_cv_func_gettimeofday = yes; then
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14023 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14024 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14025 $as_echo_n "(cached) " >&6
14026 else
14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h. */
14029
14030 #ifdef TIME_WITH_SYS_TIME
14031 #include <sys/time.h>
14032 #include <time.h>
14033 #else
14034 #ifdef HAVE_SYS_TIME_H
14035 #include <sys/time.h>
14036 #else
14037 #include <time.h>
14038 #endif
14039 #endif
14040 int
14041 main ()
14042 {
14043 struct timeval time;
14044 gettimeofday (&time, 0);
14045 ;
14046 return 0;
14047 }
14048 _ACEOF
14049 if ac_fn_c_try_compile "$LINENO"; then :
14050 emacs_cv_gettimeofday_two_arguments=yes
14051 else
14052 emacs_cv_gettimeofday_two_arguments=no
14053 fi
14054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14055 fi
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14057 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14058 if test $emacs_cv_gettimeofday_two_arguments = no; then
14059
14060 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14061
14062 fi
14063 fi
14064 fi
14065
14066 ok_so_far=yes
14067 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14068 if test "x$ac_cv_func_socket" = x""yes; then :
14069
14070 else
14071 ok_so_far=no
14072 fi
14073
14074 if test $ok_so_far = yes; then
14075 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14076 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14077
14078 else
14079 ok_so_far=no
14080 fi
14081
14082
14083 fi
14084 if test $ok_so_far = yes; then
14085 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14086 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14087
14088 else
14089 ok_so_far=no
14090 fi
14091
14092
14093 fi
14094 if test $ok_so_far = yes; then
14095
14096 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14097
14098 fi
14099
14100 for ac_header in sys/ioctl.h
14101 do :
14102 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
14103 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
14104 cat >>confdefs.h <<_ACEOF
14105 #define HAVE_SYS_IOCTL_H 1
14106 _ACEOF
14107
14108 fi
14109
14110 done
14111
14112
14113 if test -f /usr/lpp/X11/bin/smt.exp; then
14114
14115 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14116
14117 fi
14118
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14120 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14121 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14123 $as_echo "yes" >&6; }
14124
14125 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14126
14127 else
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14129 $as_echo "no" >&6; }
14130 fi
14131
14132 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14133 if test "x$ac_cv_type_pid_t" = x""yes; then :
14134
14135 else
14136
14137 cat >>confdefs.h <<_ACEOF
14138 #define pid_t int
14139 _ACEOF
14140
14141 fi
14142
14143 for ac_header in vfork.h
14144 do :
14145 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14146 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14147 cat >>confdefs.h <<_ACEOF
14148 #define HAVE_VFORK_H 1
14149 _ACEOF
14150
14151 fi
14152
14153 done
14154
14155 for ac_func in fork vfork
14156 do :
14157 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14158 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14159 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14160 cat >>confdefs.h <<_ACEOF
14161 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14162 _ACEOF
14163
14164 fi
14165 done
14166
14167 if test "x$ac_cv_func_fork" = xyes; then
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14169 $as_echo_n "checking for working fork... " >&6; }
14170 if test "${ac_cv_func_fork_works+set}" = set; then :
14171 $as_echo_n "(cached) " >&6
14172 else
14173 if test "$cross_compiling" = yes; then :
14174 ac_cv_func_fork_works=cross
14175 else
14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h. */
14178 $ac_includes_default
14179 int
14180 main ()
14181 {
14182
14183 /* By Ruediger Kuhlmann. */
14184 return fork () < 0;
14185
14186 ;
14187 return 0;
14188 }
14189 _ACEOF
14190 if ac_fn_c_try_run "$LINENO"; then :
14191 ac_cv_func_fork_works=yes
14192 else
14193 ac_cv_func_fork_works=no
14194 fi
14195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14196 conftest.$ac_objext conftest.beam conftest.$ac_ext
14197 fi
14198
14199 fi
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14201 $as_echo "$ac_cv_func_fork_works" >&6; }
14202
14203 else
14204 ac_cv_func_fork_works=$ac_cv_func_fork
14205 fi
14206 if test "x$ac_cv_func_fork_works" = xcross; then
14207 case $host in
14208 *-*-amigaos* | *-*-msdosdjgpp*)
14209 # Override, as these systems have only a dummy fork() stub
14210 ac_cv_func_fork_works=no
14211 ;;
14212 *)
14213 ac_cv_func_fork_works=yes
14214 ;;
14215 esac
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14217 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14218 fi
14219 ac_cv_func_vfork_works=$ac_cv_func_vfork
14220 if test "x$ac_cv_func_vfork" = xyes; then
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14222 $as_echo_n "checking for working vfork... " >&6; }
14223 if test "${ac_cv_func_vfork_works+set}" = set; then :
14224 $as_echo_n "(cached) " >&6
14225 else
14226 if test "$cross_compiling" = yes; then :
14227 ac_cv_func_vfork_works=cross
14228 else
14229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14230 /* end confdefs.h. */
14231 /* Thanks to Paul Eggert for this test. */
14232 $ac_includes_default
14233 #include <sys/wait.h>
14234 #ifdef HAVE_VFORK_H
14235 # include <vfork.h>
14236 #endif
14237 /* On some sparc systems, changes by the child to local and incoming
14238 argument registers are propagated back to the parent. The compiler
14239 is told about this with #include <vfork.h>, but some compilers
14240 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14241 static variable whose address is put into a register that is
14242 clobbered by the vfork. */
14243 static void
14244 #ifdef __cplusplus
14245 sparc_address_test (int arg)
14246 # else
14247 sparc_address_test (arg) int arg;
14248 #endif
14249 {
14250 static pid_t child;
14251 if (!child) {
14252 child = vfork ();
14253 if (child < 0) {
14254 perror ("vfork");
14255 _exit(2);
14256 }
14257 if (!child) {
14258 arg = getpid();
14259 write(-1, "", 0);
14260 _exit (arg);
14261 }
14262 }
14263 }
14264
14265 int
14266 main ()
14267 {
14268 pid_t parent = getpid ();
14269 pid_t child;
14270
14271 sparc_address_test (0);
14272
14273 child = vfork ();
14274
14275 if (child == 0) {
14276 /* Here is another test for sparc vfork register problems. This
14277 test uses lots of local variables, at least as many local
14278 variables as main has allocated so far including compiler
14279 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14280 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14281 reuse the register of parent for one of the local variables,
14282 since it will think that parent can't possibly be used any more
14283 in this routine. Assigning to the local variable will thus
14284 munge parent in the parent process. */
14285 pid_t
14286 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14287 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14288 /* Convince the compiler that p..p7 are live; otherwise, it might
14289 use the same hardware register for all 8 local variables. */
14290 if (p != p1 || p != p2 || p != p3 || p != p4
14291 || p != p5 || p != p6 || p != p7)
14292 _exit(1);
14293
14294 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14295 from child file descriptors. If the child closes a descriptor
14296 before it execs or exits, this munges the parent's descriptor
14297 as well. Test for this by closing stdout in the child. */
14298 _exit(close(fileno(stdout)) != 0);
14299 } else {
14300 int status;
14301 struct stat st;
14302
14303 while (wait(&status) != child)
14304 ;
14305 return (
14306 /* Was there some problem with vforking? */
14307 child < 0
14308
14309 /* Did the child fail? (This shouldn't happen.) */
14310 || status
14311
14312 /* Did the vfork/compiler bug occur? */
14313 || parent != getpid()
14314
14315 /* Did the file descriptor bug occur? */
14316 || fstat(fileno(stdout), &st) != 0
14317 );
14318 }
14319 }
14320 _ACEOF
14321 if ac_fn_c_try_run "$LINENO"; then :
14322 ac_cv_func_vfork_works=yes
14323 else
14324 ac_cv_func_vfork_works=no
14325 fi
14326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14327 conftest.$ac_objext conftest.beam conftest.$ac_ext
14328 fi
14329
14330 fi
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14332 $as_echo "$ac_cv_func_vfork_works" >&6; }
14333
14334 fi;
14335 if test "x$ac_cv_func_fork_works" = xcross; then
14336 ac_cv_func_vfork_works=$ac_cv_func_vfork
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14338 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14339 fi
14340
14341 if test "x$ac_cv_func_vfork_works" = xyes; then
14342
14343 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14344
14345 else
14346
14347 $as_echo "#define vfork fork" >>confdefs.h
14348
14349 fi
14350 if test "x$ac_cv_func_fork_works" = xyes; then
14351
14352 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14353
14354 fi
14355
14356
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14358 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14359 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14360 $as_echo_n "(cached) " >&6
14361 else
14362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363 /* end confdefs.h. */
14364 #include <langinfo.h>
14365 int
14366 main ()
14367 {
14368 char* cs = nl_langinfo(CODESET);
14369 ;
14370 return 0;
14371 }
14372 _ACEOF
14373 if ac_fn_c_try_link "$LINENO"; then :
14374 emacs_cv_langinfo_codeset=yes
14375 else
14376 emacs_cv_langinfo_codeset=no
14377 fi
14378 rm -f core conftest.err conftest.$ac_objext \
14379 conftest$ac_exeext conftest.$ac_ext
14380
14381 fi
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14383 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14384 if test $emacs_cv_langinfo_codeset = yes; then
14385
14386 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14387
14388 fi
14389
14390 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14391 if test "x$ac_cv_type_size_t" = x""yes; then :
14392
14393 cat >>confdefs.h <<_ACEOF
14394 #define HAVE_SIZE_T 1
14395 _ACEOF
14396
14397
14398 fi
14399
14400
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14402 $as_echo_n "checking for mbstate_t... " >&6; }
14403 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14404 $as_echo_n "(cached) " >&6
14405 else
14406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407 /* end confdefs.h. */
14408 $ac_includes_default
14409 # include <wchar.h>
14410 int
14411 main ()
14412 {
14413 mbstate_t x; return sizeof x;
14414 ;
14415 return 0;
14416 }
14417 _ACEOF
14418 if ac_fn_c_try_compile "$LINENO"; then :
14419 ac_cv_type_mbstate_t=yes
14420 else
14421 ac_cv_type_mbstate_t=no
14422 fi
14423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14424 fi
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14426 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14427 if test $ac_cv_type_mbstate_t = yes; then
14428
14429 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14430
14431 else
14432
14433 $as_echo "#define mbstate_t int" >>confdefs.h
14434
14435 fi
14436
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14438 $as_echo_n "checking for C restrict keyword... " >&6; }
14439 if test "${emacs_cv_c_restrict+set}" = set; then :
14440 $as_echo_n "(cached) " >&6
14441 else
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14444 void fred (int *restrict x);
14445 int
14446 main ()
14447 {
14448
14449 ;
14450 return 0;
14451 }
14452 _ACEOF
14453 if ac_fn_c_try_compile "$LINENO"; then :
14454 emacs_cv_c_restrict=yes
14455 else
14456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h. */
14458 void fred (int *__restrict x);
14459 int
14460 main ()
14461 {
14462
14463 ;
14464 return 0;
14465 }
14466 _ACEOF
14467 if ac_fn_c_try_compile "$LINENO"; then :
14468 emacs_cv_c_restrict=__restrict
14469 else
14470 emacs_cv_c_restrict=no
14471 fi
14472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14473 fi
14474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475 fi
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14477 $as_echo "$emacs_cv_c_restrict" >&6; }
14478 case "$emacs_cv_c_restrict" in
14479 yes) emacs_restrict=restrict;;
14480 no) emacs_restrict="";;
14481 *) emacs_restrict="$emacs_cv_c_restrict";;
14482 esac
14483 if test "$emacs_restrict" != __restrict; then
14484
14485 cat >>confdefs.h <<_ACEOF
14486 #define __restrict $emacs_restrict
14487 _ACEOF
14488
14489 fi
14490
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14492 $as_echo_n "checking for C restricted array declarations... " >&6; }
14493 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14494 $as_echo_n "(cached) " >&6
14495 else
14496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14498 void fred (int x[__restrict]);
14499 int
14500 main ()
14501 {
14502
14503 ;
14504 return 0;
14505 }
14506 _ACEOF
14507 if ac_fn_c_try_compile "$LINENO"; then :
14508 emacs_cv_c_restrict_arr=yes
14509 else
14510 emacs_cv_c_restrict_arr=no
14511 fi
14512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14513 fi
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14515 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14516 if test "$emacs_cv_c_restrict_arr" = yes; then
14517
14518 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14519
14520 fi
14521
14522
14523
14524 # Set up the CFLAGS for real compilation, so we can substitute it.
14525 CFLAGS="$REAL_CFLAGS"
14526 CPPFLAGS="$REAL_CPPFLAGS"
14527
14528 ## Hack to detect a buggy GCC version.
14529 if test "x$GCC" = xyes \
14530 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14531 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14532 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14533 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14534 fi
14535
14536 #### Find out which version of Emacs this is.
14537 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14538 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14539 if test x"${version}" = x; then
14540 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14541 fi
14542 if test x"${version}" != x"$PACKAGE_VERSION"; then
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14544 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14545 fi
14546
14547 ### Specify what sort of things we'll be editing into Makefile and config.h.
14548 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14549
14550
14551 ## Unused?
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14573 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14574 ## end of LIBX_BASE, but nothing ever set it.
14575
14576
14577
14578
14579 ## Used in lwlib/Makefile.in.
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592 cat >>confdefs.h <<_ACEOF
14593 #define EMACS_CONFIGURATION "${canonical}"
14594 _ACEOF
14595
14596
14597 cat >>confdefs.h <<_ACEOF
14598 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14599 _ACEOF
14600
14601
14602 cat >>confdefs.h <<_ACEOF
14603 #define config_machfile "${machfile}"
14604 _ACEOF
14605
14606
14607 cat >>confdefs.h <<_ACEOF
14608 #define config_opsysfile "${opsysfile}"
14609 _ACEOF
14610
14611
14612 XMENU_OBJ=
14613 XOBJ=
14614 FONT_OBJ=
14615 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14616
14617 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14618
14619 XMENU_OBJ=xmenu.o
14620 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14621 FONT_OBJ=xfont.o
14622 if test "$HAVE_XFT" = "yes"; then
14623 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14624 elif test "$HAVE_FREETYPE" = "yes"; then
14625 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14626 fi
14627
14628 fi
14629
14630
14631
14632
14633 WIDGET_OBJ=
14634 MOTIF_LIBW=
14635 if test "${USE_X_TOOLKIT}" != "none" ; then
14636 WIDGET_OBJ=widget.o
14637
14638 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14639
14640 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14641
14642 $as_echo "#define USE_LUCID 1" >>confdefs.h
14643
14644 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14645
14646 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14647
14648 MOTIF_LIBW=-lXm
14649 case "$opsys" in
14650 gnu-linux)
14651 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14652 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14653 ;;
14654
14655 unixware)
14656 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14657 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14658 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14659 ;;
14660
14661 aix4-2)
14662 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14663 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14664 ;;
14665 esac
14666 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14667 fi
14668 fi
14669
14670
14671 TOOLKIT_LIBW=
14672 case "$USE_X_TOOLKIT" in
14673 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14674 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14675 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14676 esac
14677
14678
14679 if test "$USE_X_TOOLKIT" = "none"; then
14680 LIBXT_OTHER="\$(LIBXSM)"
14681 OLDXMENU_TARGET="really-oldXMenu"
14682 else
14683 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14684 OLDXMENU_TARGET="really-lwlib"
14685 fi
14686
14687
14688 ## The X Menu stuff is present in the X10 distribution, but missing
14689 ## from X11. If we have X10, just use the installed library;
14690 ## otherwise, use our own copy.
14691 if test "${HAVE_X11}" = "yes" ; then
14692
14693 $as_echo "#define HAVE_X11 1" >>confdefs.h
14694
14695
14696 if test "$USE_X_TOOLKIT" = "none"; then
14697 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
14698 else
14699 OLDXMENU="\${lwlibdir}/liblw.a"
14700 fi
14701 LIBXMENU="\$(OLDXMENU)"
14702 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14703 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14704 else
14705 ## For a syntactically valid Makefile; not actually used for anything.
14706 ## See comments in src/Makefile.in.
14707 OLDXMENU=nothing
14708 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14709 if test "${HAVE_X_WINDOWS}" = "yes"; then
14710 LIBXMENU="-lXMenu"
14711 else
14712 LIBXMENU=
14713 fi
14714 LIBX_OTHER=
14715 OLDXMENU_DEPS=
14716 fi
14717
14718 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14719 OLDXMENU_TARGET=
14720 OLDXMENU=nothing
14721 LIBXMENU=
14722 OLDXMENU_DEPS=
14723 fi
14724
14725
14726
14727
14728
14729
14730
14731 if test "${HAVE_MENUS}" = "yes" ; then
14732
14733 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14734
14735 fi
14736
14737 if test "${GNU_MALLOC}" = "yes" ; then
14738
14739 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14740
14741 fi
14742
14743 RALLOC_OBJ=
14744 if test "${REL_ALLOC}" = "yes" ; then
14745
14746 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14747
14748
14749 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14750 fi
14751
14752
14753 if test "$opsys" = "cygwin"; then
14754 CYGWIN_OBJ="sheap.o"
14755 ## Cygwin differs because of its unexec().
14756 PRE_ALLOC_OBJ=
14757 POST_ALLOC_OBJ=lastfile.o
14758 else
14759 CYGWIN_OBJ=
14760 PRE_ALLOC_OBJ=lastfile.o
14761 POST_ALLOC_OBJ=
14762 fi
14763
14764
14765
14766
14767
14768 case "$opsys" in
14769 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14770
14771 darwin)
14772 ## The -headerpad option tells ld (see man page) to leave room at the
14773 ## end of the header for adding load commands. Needed for dumping.
14774 ## 0x690 is the total size of 30 segment load commands (at 56
14775 ## each); under Cocoa 31 commands are required.
14776 if test "$HAVE_NS" = "yes"; then
14777 libs_nsgui="-framework AppKit"
14778 headerpad_extra=6C8
14779 else
14780 libs_nsgui=
14781 headerpad_extra=690
14782 fi
14783 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14784
14785 ## This is here because src/Makefile.in did some extra fiddling around
14786 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14787 ## #ifndef LD_SWITCH_SYSTEM
14788 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14789 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14790 ## not using gcc, darwin system not on an alpha (ie darwin, since
14791 ## darwin + alpha does not occur).
14792 ## Because this was done in src/Makefile.in, the resulting part of
14793 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14794 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14795 ## rather than LD_SWITCH_SYSTEM.
14796 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14797 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14798 ;;
14799
14800 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14801 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14802 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14803 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14804 ## had different values in configure (in ac_link) and src/Makefile.in.
14805 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14806 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14807
14808 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14809 esac
14810
14811 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14812 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14813 fi
14814
14815
14816
14817
14818 LD_FIRSTFLAG=
14819 ORDINARY_LINK=
14820 case "$opsys" in
14821 ## gnu: GNU needs its own crt0.
14822 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14823
14824 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14825 ## library search parth, i.e. it won't search /usr/lib for libc and
14826 ## friends. Using -nostartfiles instead avoids this problem, and
14827 ## will also work on earlier NetBSD releases.
14828 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
14829
14830 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14831 ## MkLinux/LinuxPPC needs this.
14832 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14833 gnu-*)
14834 case "$machine" in
14835 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
14836 esac
14837 ;;
14838 esac
14839
14840
14841 if test "x$ORDINARY_LINK" = "xyes"; then
14842
14843 LD_FIRSTFLAG=""
14844
14845 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14846
14847
14848 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14849 ## freebsd, gnu-* not on macppc|ibms390x.
14850 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14851
14852 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14853 ## places that are difficult to figure out at make time. Fortunately,
14854 ## these same versions allow you to pass arbitrary flags on to the
14855 ## linker, so there is no reason not to use it as a linker.
14856 ##
14857 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14858 ## searching for libraries in its internal directories, so we have to
14859 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14860 LD_FIRSTFLAG="-nostdlib"
14861 fi
14862
14863 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14864 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
14865
14866
14867
14868
14869 ## FIXME? The logic here is not precisely the same as that above.
14870 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14871 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14872 LIB_GCC=
14873 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14874
14875 case "$opsys" in
14876 freebsd|netbsd|openbsd) LIB_GCC= ;;
14877
14878 gnu-*)
14879 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14880 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14881 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14882 if test "$machine" = "arm"; then
14883 LIB_GCC="-lgcc_s"
14884 else
14885 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14886 ## immediately undefine it again and redefine it to empty.
14887 ## Was the C_SWITCH_X_SITE part really necessary?
14888 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14889 LIB_GCC=
14890 fi
14891 ;;
14892
14893 ## Ask GCC where to find libgcc.a.
14894 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14895 esac
14896 fi
14897
14898
14899 TOOLTIP_SUPPORT=
14900 WINDOW_SUPPORT=
14901 ## If we're using X11/GNUstep, define some consequences.
14902 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14903
14904 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14905
14906
14907 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14908
14909 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14910 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
14911
14912 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14913 test "$HAVE_X_WINDOWS" = "yes" && \
14914 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14915
14916 fi
14917
14918
14919
14920
14921
14922
14923
14924 #### Report on what we decided to do.
14925 #### Report GTK as a toolkit, even if it doesn't use Xt.
14926 #### It makes printing result more understandable as using GTK sets
14927 #### toolkit_scroll_bars to yes by default.
14928 if test "${HAVE_GTK}" = "yes"; then
14929 USE_X_TOOLKIT=GTK
14930 fi
14931
14932 echo "
14933 Configured for \`${canonical}'.
14934
14935 Where should the build process find the source code? ${srcdir}
14936 What operating system and machine description files should Emacs use?
14937 \`${opsysfile}' and \`${machfile}'
14938 What compiler should emacs be built with? ${CC} ${CFLAGS}
14939 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14940 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14941 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14942 What window system should Emacs use? ${window_system}
14943 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14944
14945 if test -n "${x_includes}"; then
14946 echo " Where do we find X Windows header files? ${x_includes}"
14947 else
14948 echo " Where do we find X Windows header files? Standard dirs"
14949 fi
14950 if test -n "${x_libraries}"; then
14951 echo " Where do we find X Windows libraries? ${x_libraries}"
14952 else
14953 echo " Where do we find X Windows libraries? Standard dirs"
14954 fi
14955
14956 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14957 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14958 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14959 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14960 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14961 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14962 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14963 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14964
14965 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14966 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14967 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14968 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14969 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
14970 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
14971
14972 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14973 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14974 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14975 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14976
14977 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14978 echo
14979
14980 if test $USE_XASSERTS = yes; then
14981 echo " Compiling with asserts turned on."
14982 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14983 fi
14984
14985 echo
14986
14987 if test "$HAVE_NS" = "yes"; then
14988 echo
14989 echo "You must run \"make install\" in order to test the built application.
14990 The installed application will go to nextstep/Emacs.app and can be
14991 run or moved from there."
14992 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14993 echo "The application will be fully self-contained."
14994 else
14995 echo "The lisp resources for the application will be installed under ${prefix}.
14996 You may need to run \"make install\" with sudo. The application will fail
14997 to run if these resources are not installed."
14998 fi
14999 echo
15000 fi
15001
15002
15003 # Remove any trailing slashes in these variables.
15004 test "${prefix}" != NONE &&
15005 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15006 test "${exec_prefix}" != NONE &&
15007 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15008
15009 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"
15010
15011 ac_config_commands="$ac_config_commands default"
15012
15013 cat >confcache <<\_ACEOF
15014 # This file is a shell script that caches the results of configure
15015 # tests run on this system so they can be shared between configure
15016 # scripts and configure runs, see configure's option --config-cache.
15017 # It is not useful on other systems. If it contains results you don't
15018 # want to keep, you may remove or edit it.
15019 #
15020 # config.status only pays attention to the cache file if you give it
15021 # the --recheck option to rerun configure.
15022 #
15023 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15024 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15025 # following values.
15026
15027 _ACEOF
15028
15029 # The following way of writing the cache mishandles newlines in values,
15030 # but we know of no workaround that is simple, portable, and efficient.
15031 # So, we kill variables containing newlines.
15032 # Ultrix sh set writes to stderr and can't be redirected directly,
15033 # and sets the high bit in the cache file unless we assign to the vars.
15034 (
15035 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15036 eval ac_val=\$$ac_var
15037 case $ac_val in #(
15038 *${as_nl}*)
15039 case $ac_var in #(
15040 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15041 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15042 esac
15043 case $ac_var in #(
15044 _ | IFS | as_nl) ;; #(
15045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15046 *) { eval $ac_var=; unset $ac_var;} ;;
15047 esac ;;
15048 esac
15049 done
15050
15051 (set) 2>&1 |
15052 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15053 *${as_nl}ac_space=\ *)
15054 # `set' does not quote correctly, so add quotes: double-quote
15055 # substitution turns \\\\ into \\, and sed turns \\ into \.
15056 sed -n \
15057 "s/'/'\\\\''/g;
15058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15059 ;; #(
15060 *)
15061 # `set' quotes correctly as required by POSIX, so do not add quotes.
15062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15063 ;;
15064 esac |
15065 sort
15066 ) |
15067 sed '
15068 /^ac_cv_env_/b end
15069 t clear
15070 :clear
15071 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15072 t end
15073 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15074 :end' >>confcache
15075 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15076 if test -w "$cache_file"; then
15077 test "x$cache_file" != "x/dev/null" &&
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15079 $as_echo "$as_me: updating cache $cache_file" >&6;}
15080 cat confcache >$cache_file
15081 else
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15083 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15084 fi
15085 fi
15086 rm -f confcache
15087
15088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15089 # Let make expand exec_prefix.
15090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15091
15092 DEFS=-DHAVE_CONFIG_H
15093
15094 ac_libobjs=
15095 ac_ltlibobjs=
15096 U=
15097 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15098 # 1. Remove the extension, and $U if already installed.
15099 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15100 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15101 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15102 # will be set to the directory where LIBOBJS objects are built.
15103 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15104 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15105 done
15106 LIBOBJS=$ac_libobjs
15107
15108 LTLIBOBJS=$ac_ltlibobjs
15109
15110
15111
15112
15113 : ${CONFIG_STATUS=./config.status}
15114 ac_write_fail=0
15115 ac_clean_files_save=$ac_clean_files
15116 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15118 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15119 as_write_fail=0
15120 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15121 #! $SHELL
15122 # Generated by $as_me.
15123 # Run this file to recreate the current configuration.
15124 # Compiler output produced by configure, useful for debugging
15125 # configure, is in config.log if it exists.
15126
15127 debug=false
15128 ac_cs_recheck=false
15129 ac_cs_silent=false
15130
15131 SHELL=\${CONFIG_SHELL-$SHELL}
15132 export SHELL
15133 _ASEOF
15134 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15135 ## -------------------- ##
15136 ## M4sh Initialization. ##
15137 ## -------------------- ##
15138
15139 # Be more Bourne compatible
15140 DUALCASE=1; export DUALCASE # for MKS sh
15141 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15142 emulate sh
15143 NULLCMD=:
15144 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15145 # is contrary to our usage. Disable this feature.
15146 alias -g '${1+"$@"}'='"$@"'
15147 setopt NO_GLOB_SUBST
15148 else
15149 case `(set -o) 2>/dev/null` in #(
15150 *posix*) :
15151 set -o posix ;; #(
15152 *) :
15153 ;;
15154 esac
15155 fi
15156
15157
15158 as_nl='
15159 '
15160 export as_nl
15161 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15162 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15163 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15164 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15165 # Prefer a ksh shell builtin over an external printf program on Solaris,
15166 # but without wasting forks for bash or zsh.
15167 if test -z "$BASH_VERSION$ZSH_VERSION" \
15168 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15169 as_echo='print -r --'
15170 as_echo_n='print -rn --'
15171 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15172 as_echo='printf %s\n'
15173 as_echo_n='printf %s'
15174 else
15175 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15176 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15177 as_echo_n='/usr/ucb/echo -n'
15178 else
15179 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15180 as_echo_n_body='eval
15181 arg=$1;
15182 case $arg in #(
15183 *"$as_nl"*)
15184 expr "X$arg" : "X\\(.*\\)$as_nl";
15185 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15186 esac;
15187 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15188 '
15189 export as_echo_n_body
15190 as_echo_n='sh -c $as_echo_n_body as_echo'
15191 fi
15192 export as_echo_body
15193 as_echo='sh -c $as_echo_body as_echo'
15194 fi
15195
15196 # The user is always right.
15197 if test "${PATH_SEPARATOR+set}" != set; then
15198 PATH_SEPARATOR=:
15199 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15200 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15201 PATH_SEPARATOR=';'
15202 }
15203 fi
15204
15205
15206 # IFS
15207 # We need space, tab and new line, in precisely that order. Quoting is
15208 # there to prevent editors from complaining about space-tab.
15209 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15210 # splitting by setting IFS to empty value.)
15211 IFS=" "" $as_nl"
15212
15213 # Find who we are. Look in the path if we contain no directory separator.
15214 case $0 in #((
15215 *[\\/]* ) as_myself=$0 ;;
15216 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15217 for as_dir in $PATH
15218 do
15219 IFS=$as_save_IFS
15220 test -z "$as_dir" && as_dir=.
15221 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15222 done
15223 IFS=$as_save_IFS
15224
15225 ;;
15226 esac
15227 # We did not find ourselves, most probably we were run as `sh COMMAND'
15228 # in which case we are not to be found in the path.
15229 if test "x$as_myself" = x; then
15230 as_myself=$0
15231 fi
15232 if test ! -f "$as_myself"; then
15233 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15234 exit 1
15235 fi
15236
15237 # Unset variables that we do not need and which cause bugs (e.g. in
15238 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15239 # suppresses any "Segmentation fault" message there. '((' could
15240 # trigger a bug in pdksh 5.2.14.
15241 for as_var in BASH_ENV ENV MAIL MAILPATH
15242 do eval test x\${$as_var+set} = xset \
15243 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15244 done
15245 PS1='$ '
15246 PS2='> '
15247 PS4='+ '
15248
15249 # NLS nuisances.
15250 LC_ALL=C
15251 export LC_ALL
15252 LANGUAGE=C
15253 export LANGUAGE
15254
15255 # CDPATH.
15256 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15257
15258
15259 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15260 # ----------------------------------------
15261 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15262 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15263 # script with STATUS, using 1 if that was 0.
15264 as_fn_error ()
15265 {
15266 as_status=$1; test $as_status -eq 0 && as_status=1
15267 if test "$4"; then
15268 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15269 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15270 fi
15271 $as_echo "$as_me: error: $2" >&2
15272 as_fn_exit $as_status
15273 } # as_fn_error
15274
15275
15276 # as_fn_set_status STATUS
15277 # -----------------------
15278 # Set $? to STATUS, without forking.
15279 as_fn_set_status ()
15280 {
15281 return $1
15282 } # as_fn_set_status
15283
15284 # as_fn_exit STATUS
15285 # -----------------
15286 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15287 as_fn_exit ()
15288 {
15289 set +e
15290 as_fn_set_status $1
15291 exit $1
15292 } # as_fn_exit
15293
15294 # as_fn_unset VAR
15295 # ---------------
15296 # Portably unset VAR.
15297 as_fn_unset ()
15298 {
15299 { eval $1=; unset $1;}
15300 }
15301 as_unset=as_fn_unset
15302 # as_fn_append VAR VALUE
15303 # ----------------------
15304 # Append the text in VALUE to the end of the definition contained in VAR. Take
15305 # advantage of any shell optimizations that allow amortized linear growth over
15306 # repeated appends, instead of the typical quadratic growth present in naive
15307 # implementations.
15308 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15309 eval 'as_fn_append ()
15310 {
15311 eval $1+=\$2
15312 }'
15313 else
15314 as_fn_append ()
15315 {
15316 eval $1=\$$1\$2
15317 }
15318 fi # as_fn_append
15319
15320 # as_fn_arith ARG...
15321 # ------------------
15322 # Perform arithmetic evaluation on the ARGs, and store the result in the
15323 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15324 # must be portable across $(()) and expr.
15325 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15326 eval 'as_fn_arith ()
15327 {
15328 as_val=$(( $* ))
15329 }'
15330 else
15331 as_fn_arith ()
15332 {
15333 as_val=`expr "$@" || test $? -eq 1`
15334 }
15335 fi # as_fn_arith
15336
15337
15338 if expr a : '\(a\)' >/dev/null 2>&1 &&
15339 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15340 as_expr=expr
15341 else
15342 as_expr=false
15343 fi
15344
15345 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15346 as_basename=basename
15347 else
15348 as_basename=false
15349 fi
15350
15351 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15352 as_dirname=dirname
15353 else
15354 as_dirname=false
15355 fi
15356
15357 as_me=`$as_basename -- "$0" ||
15358 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15359 X"$0" : 'X\(//\)$' \| \
15360 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15361 $as_echo X/"$0" |
15362 sed '/^.*\/\([^/][^/]*\)\/*$/{
15363 s//\1/
15364 q
15365 }
15366 /^X\/\(\/\/\)$/{
15367 s//\1/
15368 q
15369 }
15370 /^X\/\(\/\).*/{
15371 s//\1/
15372 q
15373 }
15374 s/.*/./; q'`
15375
15376 # Avoid depending upon Character Ranges.
15377 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15378 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15379 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15380 as_cr_digits='0123456789'
15381 as_cr_alnum=$as_cr_Letters$as_cr_digits
15382
15383 ECHO_C= ECHO_N= ECHO_T=
15384 case `echo -n x` in #(((((
15385 -n*)
15386 case `echo 'xy\c'` in
15387 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15388 xy) ECHO_C='\c';;
15389 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15390 ECHO_T=' ';;
15391 esac;;
15392 *)
15393 ECHO_N='-n';;
15394 esac
15395
15396 rm -f conf$$ conf$$.exe conf$$.file
15397 if test -d conf$$.dir; then
15398 rm -f conf$$.dir/conf$$.file
15399 else
15400 rm -f conf$$.dir
15401 mkdir conf$$.dir 2>/dev/null
15402 fi
15403 if (echo >conf$$.file) 2>/dev/null; then
15404 if ln -s conf$$.file conf$$ 2>/dev/null; then
15405 as_ln_s='ln -s'
15406 # ... but there are two gotchas:
15407 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15408 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15409 # In both cases, we have to default to `cp -p'.
15410 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15411 as_ln_s='cp -p'
15412 elif ln conf$$.file conf$$ 2>/dev/null; then
15413 as_ln_s=ln
15414 else
15415 as_ln_s='cp -p'
15416 fi
15417 else
15418 as_ln_s='cp -p'
15419 fi
15420 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15421 rmdir conf$$.dir 2>/dev/null
15422
15423
15424 # as_fn_mkdir_p
15425 # -------------
15426 # Create "$as_dir" as a directory, including parents if necessary.
15427 as_fn_mkdir_p ()
15428 {
15429
15430 case $as_dir in #(
15431 -*) as_dir=./$as_dir;;
15432 esac
15433 test -d "$as_dir" || eval $as_mkdir_p || {
15434 as_dirs=
15435 while :; do
15436 case $as_dir in #(
15437 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15438 *) as_qdir=$as_dir;;
15439 esac
15440 as_dirs="'$as_qdir' $as_dirs"
15441 as_dir=`$as_dirname -- "$as_dir" ||
15442 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15443 X"$as_dir" : 'X\(//\)[^/]' \| \
15444 X"$as_dir" : 'X\(//\)$' \| \
15445 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15446 $as_echo X"$as_dir" |
15447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15448 s//\1/
15449 q
15450 }
15451 /^X\(\/\/\)[^/].*/{
15452 s//\1/
15453 q
15454 }
15455 /^X\(\/\/\)$/{
15456 s//\1/
15457 q
15458 }
15459 /^X\(\/\).*/{
15460 s//\1/
15461 q
15462 }
15463 s/.*/./; q'`
15464 test -d "$as_dir" && break
15465 done
15466 test -z "$as_dirs" || eval "mkdir $as_dirs"
15467 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15468
15469
15470 } # as_fn_mkdir_p
15471 if mkdir -p . 2>/dev/null; then
15472 as_mkdir_p='mkdir -p "$as_dir"'
15473 else
15474 test -d ./-p && rmdir ./-p
15475 as_mkdir_p=false
15476 fi
15477
15478 if test -x / >/dev/null 2>&1; then
15479 as_test_x='test -x'
15480 else
15481 if ls -dL / >/dev/null 2>&1; then
15482 as_ls_L_option=L
15483 else
15484 as_ls_L_option=
15485 fi
15486 as_test_x='
15487 eval sh -c '\''
15488 if test -d "$1"; then
15489 test -d "$1/.";
15490 else
15491 case $1 in #(
15492 -*)set "./$1";;
15493 esac;
15494 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15495 ???[sx]*):;;*)false;;esac;fi
15496 '\'' sh
15497 '
15498 fi
15499 as_executable_p=$as_test_x
15500
15501 # Sed expression to map a string onto a valid CPP name.
15502 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15503
15504 # Sed expression to map a string onto a valid variable name.
15505 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15506
15507
15508 exec 6>&1
15509 ## ----------------------------------- ##
15510 ## Main body of $CONFIG_STATUS script. ##
15511 ## ----------------------------------- ##
15512 _ASEOF
15513 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15514
15515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15516 # Save the log message, to keep $0 and so on meaningful, and to
15517 # report actual input values of CONFIG_FILES etc. instead of their
15518 # values after options handling.
15519 ac_log="
15520 This file was extended by emacs $as_me 24.0.50, which was
15521 generated by GNU Autoconf 2.67. Invocation command line was
15522
15523 CONFIG_FILES = $CONFIG_FILES
15524 CONFIG_HEADERS = $CONFIG_HEADERS
15525 CONFIG_LINKS = $CONFIG_LINKS
15526 CONFIG_COMMANDS = $CONFIG_COMMANDS
15527 $ $0 $@
15528
15529 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15530 "
15531
15532 _ACEOF
15533
15534 case $ac_config_files in *"
15535 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15536 esac
15537
15538 case $ac_config_headers in *"
15539 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15540 esac
15541
15542
15543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15544 # Files that config.status was made for.
15545 config_files="$ac_config_files"
15546 config_headers="$ac_config_headers"
15547 config_commands="$ac_config_commands"
15548
15549 _ACEOF
15550
15551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15552 ac_cs_usage="\
15553 \`$as_me' instantiates files and other configuration actions
15554 from templates according to the current configuration. Unless the files
15555 and actions are specified as TAGs, all are instantiated by default.
15556
15557 Usage: $0 [OPTION]... [TAG]...
15558
15559 -h, --help print this help, then exit
15560 -V, --version print version number and configuration settings, then exit
15561 --config print configuration, then exit
15562 -q, --quiet, --silent
15563 do not print progress messages
15564 -d, --debug don't remove temporary files
15565 --recheck update $as_me by reconfiguring in the same conditions
15566 --file=FILE[:TEMPLATE]
15567 instantiate the configuration file FILE
15568 --header=FILE[:TEMPLATE]
15569 instantiate the configuration header FILE
15570
15571 Configuration files:
15572 $config_files
15573
15574 Configuration headers:
15575 $config_headers
15576
15577 Configuration commands:
15578 $config_commands
15579
15580 Report bugs to the package provider."
15581
15582 _ACEOF
15583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15584 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15585 ac_cs_version="\\
15586 emacs config.status 24.0.50
15587 configured by $0, generated by GNU Autoconf 2.67,
15588 with options \\"\$ac_cs_config\\"
15589
15590 Copyright (C) 2010 Free Software Foundation, Inc.
15591 This config.status script is free software; the Free Software Foundation
15592 gives unlimited permission to copy, distribute and modify it."
15593
15594 ac_pwd='$ac_pwd'
15595 srcdir='$srcdir'
15596 INSTALL='$INSTALL'
15597 test -n "\$AWK" || AWK=awk
15598 _ACEOF
15599
15600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15601 # The default lists apply if the user does not specify any file.
15602 ac_need_defaults=:
15603 while test $# != 0
15604 do
15605 case $1 in
15606 --*=?*)
15607 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15608 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15609 ac_shift=:
15610 ;;
15611 --*=)
15612 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15613 ac_optarg=
15614 ac_shift=:
15615 ;;
15616 *)
15617 ac_option=$1
15618 ac_optarg=$2
15619 ac_shift=shift
15620 ;;
15621 esac
15622
15623 case $ac_option in
15624 # Handling of the options.
15625 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15626 ac_cs_recheck=: ;;
15627 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15628 $as_echo "$ac_cs_version"; exit ;;
15629 --config | --confi | --conf | --con | --co | --c )
15630 $as_echo "$ac_cs_config"; exit ;;
15631 --debug | --debu | --deb | --de | --d | -d )
15632 debug=: ;;
15633 --file | --fil | --fi | --f )
15634 $ac_shift
15635 case $ac_optarg in
15636 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15637 '') as_fn_error $? "missing file argument" ;;
15638 esac
15639 as_fn_append CONFIG_FILES " '$ac_optarg'"
15640 ac_need_defaults=false;;
15641 --header | --heade | --head | --hea )
15642 $ac_shift
15643 case $ac_optarg in
15644 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15645 esac
15646 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15647 ac_need_defaults=false;;
15648 --he | --h)
15649 # Conflict between --help and --header
15650 as_fn_error $? "ambiguous option: \`$1'
15651 Try \`$0 --help' for more information.";;
15652 --help | --hel | -h )
15653 $as_echo "$ac_cs_usage"; exit ;;
15654 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15655 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15656 ac_cs_silent=: ;;
15657
15658 # This is an error.
15659 -*) as_fn_error $? "unrecognized option: \`$1'
15660 Try \`$0 --help' for more information." ;;
15661
15662 *) as_fn_append ac_config_targets " $1"
15663 ac_need_defaults=false ;;
15664
15665 esac
15666 shift
15667 done
15668
15669 ac_configure_extra_args=
15670
15671 if $ac_cs_silent; then
15672 exec 6>/dev/null
15673 ac_configure_extra_args="$ac_configure_extra_args --silent"
15674 fi
15675
15676 _ACEOF
15677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15678 if \$ac_cs_recheck; then
15679 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15680 shift
15681 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15682 CONFIG_SHELL='$SHELL'
15683 export CONFIG_SHELL
15684 exec "\$@"
15685 fi
15686
15687 _ACEOF
15688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15689 exec 5>>config.log
15690 {
15691 echo
15692 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15693 ## Running $as_me. ##
15694 _ASBOX
15695 $as_echo "$ac_log"
15696 } >&5
15697
15698 _ACEOF
15699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15700 #
15701 # INIT-COMMANDS
15702 #
15703 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15704
15705 _ACEOF
15706
15707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15708
15709 # Handling of arguments.
15710 for ac_config_target in $ac_config_targets
15711 do
15712 case $ac_config_target in
15713 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15714 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15715 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15716 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15717 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15718 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15719 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15720 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15721 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15722 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15723 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15724 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15725 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15726
15727 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
15728 esac
15729 done
15730
15731
15732 # If the user did not use the arguments to specify the items to instantiate,
15733 # then the envvar interface is used. Set only those that are not.
15734 # We use the long form for the default assignment because of an extremely
15735 # bizarre bug on SunOS 4.1.3.
15736 if $ac_need_defaults; then
15737 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15738 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15739 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15740 fi
15741
15742 # Have a temporary directory for convenience. Make it in the build tree
15743 # simply because there is no reason against having it here, and in addition,
15744 # creating and moving files from /tmp can sometimes cause problems.
15745 # Hook for its removal unless debugging.
15746 # Note that there is a small window in which the directory will not be cleaned:
15747 # after its creation but before its name has been assigned to `$tmp'.
15748 $debug ||
15749 {
15750 tmp=
15751 trap 'exit_status=$?
15752 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15753 ' 0
15754 trap 'as_fn_exit 1' 1 2 13 15
15755 }
15756 # Create a (secure) tmp directory for tmp files.
15757
15758 {
15759 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15760 test -n "$tmp" && test -d "$tmp"
15761 } ||
15762 {
15763 tmp=./conf$$-$RANDOM
15764 (umask 077 && mkdir "$tmp")
15765 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15766
15767 # Set up the scripts for CONFIG_FILES section.
15768 # No need to generate them if there are no CONFIG_FILES.
15769 # This happens for instance with `./config.status config.h'.
15770 if test -n "$CONFIG_FILES"; then
15771
15772 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15773 ac_cs_awk_getline=:
15774 ac_cs_awk_pipe_init=
15775 ac_cs_awk_read_file='
15776 while ((getline aline < (F[key])) > 0)
15777 print(aline)
15778 close(F[key])'
15779 ac_cs_awk_pipe_fini=
15780 else
15781 ac_cs_awk_getline=false
15782 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15783 ac_cs_awk_read_file='
15784 print "|#_!!_#|"
15785 print "cat " F[key] " &&"
15786 '$ac_cs_awk_pipe_init
15787 # The final `:' finishes the AND list.
15788 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15789 fi
15790 ac_cr=`echo X | tr X '\015'`
15791 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15792 # But we know of no other shell where ac_cr would be empty at this
15793 # point, so we can use a bashism as a fallback.
15794 if test "x$ac_cr" = x; then
15795 eval ac_cr=\$\'\\r\'
15796 fi
15797 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15798 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15799 ac_cs_awk_cr='\\r'
15800 else
15801 ac_cs_awk_cr=$ac_cr
15802 fi
15803
15804 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15805 _ACEOF
15806
15807 # Create commands to substitute file output variables.
15808 {
15809 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15810 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15811 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15812 echo "_ACAWK" &&
15813 echo "_ACEOF"
15814 } >conf$$files.sh &&
15815 . ./conf$$files.sh ||
15816 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15817 rm -f conf$$files.sh
15818
15819 {
15820 echo "cat >conf$$subs.awk <<_ACEOF" &&
15821 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15822 echo "_ACEOF"
15823 } >conf$$subs.sh ||
15824 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15825 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15826 ac_delim='%!_!# '
15827 for ac_last_try in false false false false false :; do
15828 . ./conf$$subs.sh ||
15829 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15830
15831 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15832 if test $ac_delim_n = $ac_delim_num; then
15833 break
15834 elif $ac_last_try; then
15835 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15836 else
15837 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15838 fi
15839 done
15840 rm -f conf$$subs.sh
15841
15842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15843 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15844 _ACEOF
15845 sed -n '
15846 h
15847 s/^/S["/; s/!.*/"]=/
15848 p
15849 g
15850 s/^[^!]*!//
15851 :repl
15852 t repl
15853 s/'"$ac_delim"'$//
15854 t delim
15855 :nl
15856 h
15857 s/\(.\{148\}\)..*/\1/
15858 t more1
15859 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15860 p
15861 n
15862 b repl
15863 :more1
15864 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15865 p
15866 g
15867 s/.\{148\}//
15868 t nl
15869 :delim
15870 h
15871 s/\(.\{148\}\)..*/\1/
15872 t more2
15873 s/["\\]/\\&/g; s/^/"/; s/$/"/
15874 p
15875 b
15876 :more2
15877 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15878 p
15879 g
15880 s/.\{148\}//
15881 t delim
15882 ' <conf$$subs.awk | sed '
15883 /^[^""]/{
15884 N
15885 s/\n//
15886 }
15887 ' >>$CONFIG_STATUS || ac_write_fail=1
15888 rm -f conf$$subs.awk
15889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15890 _ACAWK
15891 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15892 for (key in S) S_is_set[key] = 1
15893 FS = "\a"
15894 \$ac_cs_awk_pipe_init
15895 }
15896 {
15897 line = $ 0
15898 nfields = split(line, field, "@")
15899 substed = 0
15900 len = length(field[1])
15901 for (i = 2; i < nfields; i++) {
15902 key = field[i]
15903 keylen = length(key)
15904 if (S_is_set[key]) {
15905 value = S[key]
15906 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15907 len += length(value) + length(field[++i])
15908 substed = 1
15909 } else
15910 len += 1 + keylen
15911 }
15912 if (nfields == 3 && !substed) {
15913 key = field[2]
15914 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15915 \$ac_cs_awk_read_file
15916 next
15917 }
15918 }
15919 print line
15920 }
15921 \$ac_cs_awk_pipe_fini
15922 _ACAWK
15923 _ACEOF
15924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15925 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15926 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15927 else
15928 cat
15929 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15930 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15931 _ACEOF
15932
15933 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15934 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15935 # trailing colons and then remove the whole line if VPATH becomes empty
15936 # (actually we leave an empty line to preserve line numbers).
15937 if test "x$srcdir" = x.; then
15938 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15939 h
15940 s///
15941 s/^/:/
15942 s/[ ]*$/:/
15943 s/:\$(srcdir):/:/g
15944 s/:\${srcdir}:/:/g
15945 s/:@srcdir@:/:/g
15946 s/^:*//
15947 s/:*$//
15948 x
15949 s/\(=[ ]*\).*/\1/
15950 G
15951 s/\n//
15952 s/^[^=]*=[ ]*$//
15953 }'
15954 fi
15955
15956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15957 fi # test -n "$CONFIG_FILES"
15958
15959 # Set up the scripts for CONFIG_HEADERS section.
15960 # No need to generate them if there are no CONFIG_HEADERS.
15961 # This happens for instance with `./config.status Makefile'.
15962 if test -n "$CONFIG_HEADERS"; then
15963 cat >"$tmp/defines.awk" <<\_ACAWK ||
15964 BEGIN {
15965 _ACEOF
15966
15967 # Transform confdefs.h into an awk script `defines.awk', embedded as
15968 # here-document in config.status, that substitutes the proper values into
15969 # config.h.in to produce config.h.
15970
15971 # Create a delimiter string that does not exist in confdefs.h, to ease
15972 # handling of long lines.
15973 ac_delim='%!_!# '
15974 for ac_last_try in false false :; do
15975 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15976 if test -z "$ac_t"; then
15977 break
15978 elif $ac_last_try; then
15979 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15980 else
15981 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15982 fi
15983 done
15984
15985 # For the awk script, D is an array of macro values keyed by name,
15986 # likewise P contains macro parameters if any. Preserve backslash
15987 # newline sequences.
15988
15989 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15990 sed -n '
15991 s/.\{148\}/&'"$ac_delim"'/g
15992 t rset
15993 :rset
15994 s/^[ ]*#[ ]*define[ ][ ]*/ /
15995 t def
15996 d
15997 :def
15998 s/\\$//
15999 t bsnl
16000 s/["\\]/\\&/g
16001 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16002 D["\1"]=" \3"/p
16003 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16004 d
16005 :bsnl
16006 s/["\\]/\\&/g
16007 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16008 D["\1"]=" \3\\\\\\n"\\/p
16009 t cont
16010 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16011 t cont
16012 d
16013 :cont
16014 n
16015 s/.\{148\}/&'"$ac_delim"'/g
16016 t clear
16017 :clear
16018 s/\\$//
16019 t bsnlc
16020 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16021 d
16022 :bsnlc
16023 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16024 b cont
16025 ' <confdefs.h | sed '
16026 s/'"$ac_delim"'/"\\\
16027 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16028
16029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16030 for (key in D) D_is_set[key] = 1
16031 FS = "\a"
16032 }
16033 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16034 line = \$ 0
16035 split(line, arg, " ")
16036 if (arg[1] == "#") {
16037 defundef = arg[2]
16038 mac1 = arg[3]
16039 } else {
16040 defundef = substr(arg[1], 2)
16041 mac1 = arg[2]
16042 }
16043 split(mac1, mac2, "(") #)
16044 macro = mac2[1]
16045 prefix = substr(line, 1, index(line, defundef) - 1)
16046 if (D_is_set[macro]) {
16047 # Preserve the white space surrounding the "#".
16048 print prefix "define", macro P[macro] D[macro]
16049 next
16050 } else {
16051 # Replace #undef with comments. This is necessary, for example,
16052 # in the case of _POSIX_SOURCE, which is predefined and required
16053 # on some systems where configure will not decide to define it.
16054 if (defundef == "undef") {
16055 print "/*", prefix defundef, macro, "*/"
16056 next
16057 }
16058 }
16059 }
16060 { print }
16061 _ACAWK
16062 _ACEOF
16063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16064 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16065 fi # test -n "$CONFIG_HEADERS"
16066
16067
16068 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16069 shift
16070 for ac_tag
16071 do
16072 case $ac_tag in
16073 :[FHLC]) ac_mode=$ac_tag; continue;;
16074 esac
16075 case $ac_mode$ac_tag in
16076 :[FHL]*:*);;
16077 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16078 :[FH]-) ac_tag=-:-;;
16079 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16080 esac
16081 ac_save_IFS=$IFS
16082 IFS=:
16083 set x $ac_tag
16084 IFS=$ac_save_IFS
16085 shift
16086 ac_file=$1
16087 shift
16088
16089 case $ac_mode in
16090 :L) ac_source=$1;;
16091 :[FH])
16092 ac_file_inputs=
16093 for ac_f
16094 do
16095 case $ac_f in
16096 -) ac_f="$tmp/stdin";;
16097 *) # Look for the file first in the build tree, then in the source tree
16098 # (if the path is not absolute). The absolute path cannot be DOS-style,
16099 # because $ac_f cannot contain `:'.
16100 test -f "$ac_f" ||
16101 case $ac_f in
16102 [\\/$]*) false;;
16103 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16104 esac ||
16105 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16106 esac
16107 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16108 as_fn_append ac_file_inputs " '$ac_f'"
16109 done
16110
16111 # Let's still pretend it is `configure' which instantiates (i.e., don't
16112 # use $as_me), people would be surprised to read:
16113 # /* config.h. Generated by config.status. */
16114 configure_input='Generated from '`
16115 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16116 `' by configure.'
16117 if test x"$ac_file" != x-; then
16118 configure_input="$ac_file. $configure_input"
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16120 $as_echo "$as_me: creating $ac_file" >&6;}
16121 fi
16122 # Neutralize special characters interpreted by sed in replacement strings.
16123 case $configure_input in #(
16124 *\&* | *\|* | *\\* )
16125 ac_sed_conf_input=`$as_echo "$configure_input" |
16126 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16127 *) ac_sed_conf_input=$configure_input;;
16128 esac
16129
16130 case $ac_tag in
16131 *:-:* | *:-) cat >"$tmp/stdin" \
16132 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16133 esac
16134 ;;
16135 esac
16136
16137 ac_dir=`$as_dirname -- "$ac_file" ||
16138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16139 X"$ac_file" : 'X\(//\)[^/]' \| \
16140 X"$ac_file" : 'X\(//\)$' \| \
16141 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16142 $as_echo X"$ac_file" |
16143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16144 s//\1/
16145 q
16146 }
16147 /^X\(\/\/\)[^/].*/{
16148 s//\1/
16149 q
16150 }
16151 /^X\(\/\/\)$/{
16152 s//\1/
16153 q
16154 }
16155 /^X\(\/\).*/{
16156 s//\1/
16157 q
16158 }
16159 s/.*/./; q'`
16160 as_dir="$ac_dir"; as_fn_mkdir_p
16161 ac_builddir=.
16162
16163 case "$ac_dir" in
16164 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16165 *)
16166 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16167 # A ".." for each directory in $ac_dir_suffix.
16168 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16169 case $ac_top_builddir_sub in
16170 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16171 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16172 esac ;;
16173 esac
16174 ac_abs_top_builddir=$ac_pwd
16175 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16176 # for backward compatibility:
16177 ac_top_builddir=$ac_top_build_prefix
16178
16179 case $srcdir in
16180 .) # We are building in place.
16181 ac_srcdir=.
16182 ac_top_srcdir=$ac_top_builddir_sub
16183 ac_abs_top_srcdir=$ac_pwd ;;
16184 [\\/]* | ?:[\\/]* ) # Absolute name.
16185 ac_srcdir=$srcdir$ac_dir_suffix;
16186 ac_top_srcdir=$srcdir
16187 ac_abs_top_srcdir=$srcdir ;;
16188 *) # Relative name.
16189 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16190 ac_top_srcdir=$ac_top_build_prefix$srcdir
16191 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16192 esac
16193 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16194
16195
16196 case $ac_mode in
16197 :F)
16198 #
16199 # CONFIG_FILE
16200 #
16201
16202 case $INSTALL in
16203 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16204 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16205 esac
16206 _ACEOF
16207
16208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16209 # If the template does not know about datarootdir, expand it.
16210 # FIXME: This hack should be removed a few years after 2.60.
16211 ac_datarootdir_hack=; ac_datarootdir_seen=
16212 ac_sed_dataroot='
16213 /datarootdir/ {
16214 p
16215 q
16216 }
16217 /@datadir@/p
16218 /@docdir@/p
16219 /@infodir@/p
16220 /@localedir@/p
16221 /@mandir@/p'
16222 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16223 *datarootdir*) ac_datarootdir_seen=yes;;
16224 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16226 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16227 _ACEOF
16228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16229 ac_datarootdir_hack='
16230 s&@datadir@&$datadir&g
16231 s&@docdir@&$docdir&g
16232 s&@infodir@&$infodir&g
16233 s&@localedir@&$localedir&g
16234 s&@mandir@&$mandir&g
16235 s&\\\${datarootdir}&$datarootdir&g' ;;
16236 esac
16237 _ACEOF
16238
16239 # Neutralize VPATH when `$srcdir' = `.'.
16240 # Shell code in configure.ac might set extrasub.
16241 # FIXME: do we really want to maintain this feature?
16242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16243 ac_sed_extra="$ac_vpsub
16244 $extrasub
16245 _ACEOF
16246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16247 :t
16248 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16249 s|@configure_input@|$ac_sed_conf_input|;t t
16250 s&@top_builddir@&$ac_top_builddir_sub&;t t
16251 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16252 s&@srcdir@&$ac_srcdir&;t t
16253 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16254 s&@top_srcdir@&$ac_top_srcdir&;t t
16255 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16256 s&@builddir@&$ac_builddir&;t t
16257 s&@abs_builddir@&$ac_abs_builddir&;t t
16258 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16259 s&@INSTALL@&$ac_INSTALL&;t t
16260 $ac_datarootdir_hack
16261 "
16262 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16263 if $ac_cs_awk_getline; then
16264 $AWK -f "$tmp/subs.awk"
16265 else
16266 $AWK -f "$tmp/subs.awk" | $SHELL
16267 fi >$tmp/out \
16268 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16269
16270 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16271 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16272 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16274 which seems to be undefined. Please make sure it is defined" >&5
16275 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16276 which seems to be undefined. Please make sure it is defined" >&2;}
16277
16278 rm -f "$tmp/stdin"
16279 case $ac_file in
16280 -) cat "$tmp/out" && rm -f "$tmp/out";;
16281 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16282 esac \
16283 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16284 ;;
16285 :H)
16286 #
16287 # CONFIG_HEADER
16288 #
16289 if test x"$ac_file" != x-; then
16290 {
16291 $as_echo "/* $configure_input */" \
16292 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16293 } >"$tmp/config.h" \
16294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16295 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16297 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16298 else
16299 rm -f "$ac_file"
16300 mv "$tmp/config.h" "$ac_file" \
16301 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16302 fi
16303 else
16304 $as_echo "/* $configure_input */" \
16305 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16306 || as_fn_error $? "could not create -" "$LINENO" 5
16307 fi
16308 ;;
16309
16310 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16311 $as_echo "$as_me: executing $ac_file commands" >&6;}
16312 ;;
16313 esac
16314
16315
16316 case $ac_file$ac_mode in
16317 "default":C)
16318
16319 ### Make the necessary directories, if they don't exist.
16320 for dir in etc lisp ; do
16321 test -d ${dir} || mkdir ${dir}
16322 done
16323
16324 echo creating src/epaths.h
16325 ${MAKE-make} epaths-force
16326
16327 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
16328 echo creating src/.gdbinit
16329 echo source $srcdir/src/.gdbinit > src/.gdbinit
16330 fi
16331
16332 ;;
16333
16334 esac
16335 done # for ac_tag
16336
16337
16338 as_fn_exit 0
16339 _ACEOF
16340 ac_clean_files=$ac_clean_files_save
16341
16342 test $ac_write_fail = 0 ||
16343 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16344
16345
16346 # configure is writing to config.log, and then calls config.status.
16347 # config.status does its own redirection, appending to config.log.
16348 # Unfortunately, on DOS this fails, as config.log is still kept open
16349 # by configure, so config.status won't be able to write to it; its
16350 # output is simply discarded. So we exec the FD to /dev/null,
16351 # effectively closing config.log, so it can be properly (re)opened and
16352 # appended to by config.status. When coming back to configure, we
16353 # need to make the FD available again.
16354 if test "$no_create" != yes; then
16355 ac_cs_success=:
16356 ac_config_status_args=
16357 test "$silent" = yes &&
16358 ac_config_status_args="$ac_config_status_args --quiet"
16359 exec 5>/dev/null
16360 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16361 exec 5>>config.log
16362 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16363 # would make configure fail if this is the last instruction.
16364 $ac_cs_success || as_fn_exit 1
16365 fi
16366 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16368 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16369 fi
16370
16371