]> code.delx.au - gnu-emacs/blob - configure
Regenerate configure.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_config_libobj_dir=src
595 ac_header_list=
596 ac_func_list=
597 ac_subst_vars='LTLIBOBJS
598 WINDOW_SUPPORT
599 TOOLTIP_SUPPORT
600 MOUSE_SUPPORT
601 LIB_GCC
602 LD_FIRSTFLAG
603 LD_SWITCH_SYSTEM_TEMACS
604 POST_ALLOC_OBJ
605 PRE_ALLOC_OBJ
606 CYGWIN_OBJ
607 RALLOC_OBJ
608 OLDXMENU_DEPS
609 LIBX_OTHER
610 LIBXMENU
611 OLDXMENU
612 OLDXMENU_TARGET
613 LIBXT_OTHER
614 TOOLKIT_LIBW
615 WIDGET_OBJ
616 XOBJ
617 XMENU_OBJ
618 FONT_OBJ
619 OTHER_FILES
620 GNU_OBJC_CFLAGS
621 ns_appsrc
622 ns_appresdir
623 ns_appbindir
624 ns_appdir
625 S_FILE
626 M_FILE
627 X_TOOLKIT_TYPE
628 C_SWITCH_X_SYSTEM
629 C_SWITCH_X_SITE
630 LD_SWITCH_X_SITE
631 gameuser
632 gamedir
633 bitmapdir
634 archlibdir
635 etcdir
636 x_default_search_path
637 lisppath
638 locallisppath
639 lispdir
640 srcdir
641 canonical
642 configuration
643 version
644 KRB4LIB
645 DESLIB
646 KRB5LIB
647 CRYPTOLIB
648 COM_ERRLIB
649 LIBRESOLV
650 LIBHESIOD
651 TERMCAP_OBJ
652 LIBS_TERMCAP
653 GETOPTOBJS
654 GETOPT_H
655 GETLOADAVG_LIBS
656 KMEM_GROUP
657 NEED_SETGID
658 LIBOBJS
659 BLESSMAIL_TARGET
660 LIBS_MAIL
661 liblockfile
662 ALLOCA
663 LIBXML2_LIBS
664 LIBXML2_CFLAGS
665 LIBXSM
666 LIBGPM
667 LIBGIF
668 LIBTIFF
669 LIBPNG
670 LIBJPEG
671 LIBXPM
672 FREETYPE_LIBS
673 FREETYPE_CFLAGS
674 M17N_FLT_LIBS
675 M17N_FLT_CFLAGS
676 LIBOTF_LIBS
677 LIBOTF_CFLAGS
678 XFT_LIBS
679 XFT_CFLAGS
680 FONTCONFIG_LIBS
681 FONTCONFIG_CFLAGS
682 LIBXMU
683 LIBXTR6
684 LIBGNUTLS_LIBS
685 LIBGNUTLS_CFLAGS
686 LIBSELINUX_LIBS
687 GCONF_LIBS
688 GCONF_CFLAGS
689 DBUS_OBJ
690 DBUS_LIBS
691 DBUS_CFLAGS
692 GTK_OBJ
693 GTK_LIBS
694 GTK_CFLAGS
695 IMAGEMAGICK_LIBS
696 IMAGEMAGICK_CFLAGS
697 RSVG_LIBS
698 RSVG_CFLAGS
699 VMLIMIT_OBJ
700 GMALLOC_OBJ
701 HAVE_XSERVER
702 LIB_STANDARD
703 NS_SUPPORT
704 NS_OBJ
705 TEMACS_LDFLAGS2
706 LD_SWITCH_X_SITE_AUX_RPATH
707 LD_SWITCH_X_SITE_AUX
708 XMKMF
709 DEPFLAGS
710 MKDEPDIR
711 SET_MAKE
712 CFLAGS_SOUND
713 ALSA_LIBS
714 ALSA_CFLAGS
715 PKG_CONFIG
716 LIBSOUND
717 START_FILES
718 LIB_MATH
719 CRT_DIR
720 LIBS_SYSTEM
721 C_SWITCH_SYSTEM
722 UNEXEC_OBJ
723 C_SWITCH_MACHINE
724 LD_SWITCH_SYSTEM
725 CANNOT_DUMP
726 HAVE_MAKEINFO
727 MAKEINFO
728 GZIP_PROG
729 INSTALL_INFO
730 RANLIB
731 INSTALL_DATA
732 INSTALL_SCRIPT
733 INSTALL_PROGRAM
734 C_WARNINGS_SWITCH
735 EGREP
736 GREP
737 CPP
738 OBJEXT
739 EXEEXT
740 ac_ct_CC
741 CPPFLAGS
742 LDFLAGS
743 CFLAGS
744 CC
745 host_os
746 host_vendor
747 host_cpu
748 host
749 build_os
750 build_vendor
751 build_cpu
752 build
753 PROFILING_CFLAGS
754 MAINT
755 GZIP_INFO
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files='deps_frag
795 ns_frag'
796 ac_user_opts='
797 enable_option_checking
798 with_pop
799 with_kerberos
800 with_kerberos5
801 with_hesiod
802 with_mmdf
803 with_mail_unlink
804 with_mailhost
805 with_sound
806 with_sync_input
807 with_x_toolkit
808 with_xpm
809 with_jpeg
810 with_tiff
811 with_gif
812 with_png
813 with_rsvg
814 with_xml2
815 with_imagemagick
816 with_xft
817 with_libotf
818 with_m17n_flt
819 with_toolkit_scroll_bars
820 with_xaw3d
821 with_xim
822 with_ns
823 with_gpm
824 with_dbus
825 with_gconf
826 with_selinux
827 with_gnutls
828 with_makeinfo
829 with_compress_info
830 with_pkg_config_prog
831 with_crt_dir
832 with_gameuser
833 with_gnustep_conf
834 enable_ns_self_contained
835 enable_asserts
836 enable_maintainer_mode
837 enable_locallisppath
838 enable_checking
839 enable_use_lisp_union_type
840 enable_profiling
841 enable_autodepend
842 enable_largefile
843 with_x
844 '
845 ac_precious_vars='build_alias
846 host_alias
847 target_alias
848 CC
849 CFLAGS
850 LDFLAGS
851 LIBS
852 CPPFLAGS
853 CPP
854 XMKMF'
855
856
857 # Initialize some variables set by options.
858 ac_init_help=
859 ac_init_version=false
860 ac_unrecognized_opts=
861 ac_unrecognized_sep=
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
864 cache_file=/dev/null
865 exec_prefix=NONE
866 no_create=
867 no_recursion=
868 prefix=NONE
869 program_prefix=NONE
870 program_suffix=NONE
871 program_transform_name=s,x,x,
872 silent=
873 site=
874 srcdir=
875 verbose=
876 x_includes=NONE
877 x_libraries=NONE
878
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
896 infodir='${datarootdir}/info'
897 htmldir='${docdir}'
898 dvidir='${docdir}'
899 pdfdir='${docdir}'
900 psdir='${docdir}'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
904
905 ac_prev=
906 ac_dashdash=
907 for ac_option
908 do
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\$ac_option
912 ac_prev=
913 continue
914 fi
915
916 case $ac_option in
917 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 *) ac_optarg=yes ;;
919 esac
920
921 # Accept the important Cygnus configure options, so we can diagnose typos.
922
923 case $ac_dashdash$ac_option in
924 --)
925 ac_dashdash=yes ;;
926
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
928 ac_prev=bindir ;;
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930 bindir=$ac_optarg ;;
931
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
936
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
943
944 --config-cache | -C)
945 cache_file=config.cache ;;
946
947 -datadir | --datadir | --datadi | --datad)
948 ac_prev=datadir ;;
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
951
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
958
959 -disable-* | --disable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
967 *"
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=no ;;
974
975 -docdir | --docdir | --docdi | --doc | --do)
976 ac_prev=docdir ;;
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 docdir=$ac_optarg ;;
979
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981 ac_prev=dvidir ;;
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 dvidir=$ac_optarg ;;
984
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error "invalid feature name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
993 *"
994 "enable_$ac_useropt"
995 "*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=\$ac_optarg ;;
1000
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1009
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1012 with_gas=yes ;;
1013
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1020
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1025
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027 ac_prev=htmldir ;;
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029 | --ht=*)
1030 htmldir=$ac_optarg ;;
1031
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1038
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1040 ac_prev=infodir ;;
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1043
1044 -libdir | --libdir | --libdi | --libd)
1045 ac_prev=libdir ;;
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1048
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1055
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1060
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1067
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069 ac_prev=mandir ;;
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1072
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1075 with_fp=no ;;
1076
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1079 no_create=yes ;;
1080
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083 no_recursion=yes ;;
1084
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1093
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095 ac_prev=prefix ;;
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1098
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1105
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1112
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1129
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131 ac_prev=pdfdir ;;
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1134
1135 -psdir | --psdir | --psdi | --psd | --ps)
1136 ac_prev=psdir ;;
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138 psdir=$ac_optarg ;;
1139
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1142 silent=yes ;;
1143
1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145 ac_prev=sbindir ;;
1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147 | --sbi=* | --sb=*)
1148 sbindir=$ac_optarg ;;
1149
1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152 | --sharedst | --shareds | --shared | --share | --shar \
1153 | --sha | --sh)
1154 ac_prev=sharedstatedir ;;
1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158 | --sha=* | --sh=*)
1159 sharedstatedir=$ac_optarg ;;
1160
1161 -site | --site | --sit)
1162 ac_prev=site ;;
1163 -site=* | --site=* | --sit=*)
1164 site=$ac_optarg ;;
1165
1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167 ac_prev=srcdir ;;
1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169 srcdir=$ac_optarg ;;
1170
1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172 | --syscon | --sysco | --sysc | --sys | --sy)
1173 ac_prev=sysconfdir ;;
1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176 sysconfdir=$ac_optarg ;;
1177
1178 -target | --target | --targe | --targ | --tar | --ta | --t)
1179 ac_prev=target_alias ;;
1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181 target_alias=$ac_optarg ;;
1182
1183 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184 verbose=yes ;;
1185
1186 -version | --version | --versio | --versi | --vers | -V)
1187 ac_init_version=: ;;
1188
1189 -with-* | --with-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=\$ac_optarg ;;
1204
1205 -without-* | --without-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 as_fn_error "invalid package name: $ac_useropt"
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1213 *"
1214 "with_$ac_useropt"
1215 "*) ;;
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1218 esac
1219 eval with_$ac_useropt=no ;;
1220
1221 --x)
1222 # Obsolete; use --with-x.
1223 with_x=yes ;;
1224
1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226 | --x-incl | --x-inc | --x-in | --x-i)
1227 ac_prev=x_includes ;;
1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230 x_includes=$ac_optarg ;;
1231
1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234 ac_prev=x_libraries ;;
1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237 x_libraries=$ac_optarg ;;
1238
1239 -*) as_fn_error "unrecognized option: \`$ac_option'
1240 Try \`$0 --help' for more information."
1241 ;;
1242
1243 *=*)
1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 case $ac_envvar in #(
1247 '' | [0-9]* | *[!_$as_cr_alnum]* )
1248 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1249 esac
1250 eval $ac_envvar=\$ac_optarg
1251 export $ac_envvar ;;
1252
1253 *)
1254 # FIXME: should be removed in autoconf 3.0.
1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1259 ;;
1260
1261 esac
1262 done
1263
1264 if test -n "$ac_prev"; then
1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266 as_fn_error "missing argument to $ac_option"
1267 fi
1268
1269 if test -n "$ac_unrecognized_opts"; then
1270 case $enable_option_checking in
1271 no) ;;
1272 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274 esac
1275 fi
1276
1277 # Check all directory arguments for consistency.
1278 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
1282 do
1283 eval ac_val=\$$ac_var
1284 # Remove trailing slashes.
1285 case $ac_val in
1286 */ )
1287 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288 eval $ac_var=\$ac_val;;
1289 esac
1290 # Be sure to have absolute directory names.
1291 case $ac_val in
1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294 esac
1295 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1296 done
1297
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1301 build=$build_alias
1302 host=$host_alias
1303 target=$target_alias
1304
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
1309 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1310 If a cross compiler is detected then cross compile mode will be used." >&2
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1313 fi
1314 fi
1315
1316 ac_tool_prefix=
1317 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319 test "$silent" = yes && exec 6>/dev/null
1320
1321
1322 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di=`ls -di .` &&
1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error "working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error "pwd does not report name of working directory"
1328
1329
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\).*/{
1353 s//\1/
1354 q
1355 }
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1360 fi
1361 else
1362 ac_srcdir_defaulted=no
1363 fi
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1371 pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375 fi
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1388
1389 #
1390 # Report the --help message.
1391 #
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1450
1451 cat <<\_ACEOF
1452
1453 Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458 X features:
1459 --x-includes=DIR X include files are in DIR
1460 --x-libraries=DIR X library files are in DIR
1461
1462 System types:
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 _ACEOF
1466 fi
1467
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1471 esac
1472 cat <<\_ACEOF
1473
1474 Optional Features:
1475 --disable-option-checking ignore unrecognized --enable/--with options
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1478 --disable-ns-self-contained
1479 disable self contained build under NeXTstep
1480 --enable-asserts compile code with asserts enabled
1481 --enable-maintainer-mode
1482 enable make rules and dependencies not useful (and
1483 sometimes confusing) to the casual installer
1484 --enable-locallisppath=PATH
1485 directories Emacs should search for lisp files
1486 specific to this site
1487 --enable-checking[=LIST]
1488 enable expensive run-time checks. With LIST, enable
1489 only specific categories of checks. Categories are:
1490 all,yes,no. Flags are: stringbytes, stringoverrun,
1491 stringfreelist, xmallocoverrun, conslist
1492 --enable-use-lisp-union-type
1493 use a union for the Lisp_Object data type. This is
1494 only useful for development for catching certain
1495 types of bugs.
1496 --enable-profiling build emacs with profiling support. This might not
1497 work on all platforms
1498 --enable-autodepend automatically generate dependencies to .h-files.
1499 Requires GNU Make and Gcc. Enabled if GNU Make and
1500 Gcc is found
1501 --disable-largefile omit support for large files
1502
1503 Optional Packages:
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506 --without-pop don't support POP mail retrieval with movemail
1507 --with-kerberos support Kerberos-authenticated POP
1508 --with-kerberos5 support Kerberos version 5 authenticated POP
1509 --with-hesiod support Hesiod to get the POP server host
1510 --with-mmdf support MMDF mailboxes
1511 --with-mail-unlink unlink, rather than empty, mail spool after reading
1512 --with-mailhost=HOSTNAME
1513 string giving default POP mail host
1514 --without-sound don't compile with sound support
1515 --without-sync-input process async input synchronously
1516 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1517 lucid or athena, motif, no)
1518 --without-xpm don't compile with XPM image support
1519 --without-jpeg don't compile with JPEG image support
1520 --without-tiff don't compile with TIFF image support
1521 --without-gif don't compile with GIF image support
1522 --without-png don't compile with PNG image support
1523 --without-rsvg don't compile with SVG image support
1524 --without-xml2 don't compile with XML parsing support
1525 --without-imagemagick don't compile with ImageMagick image support
1526 --without-xft don't use XFT for anti aliased fonts
1527 --without-libotf don't use libotf for OpenType font support
1528 --without-m17n-flt don't use m17n-flt for text shaping
1529 --without-toolkit-scroll-bars
1530 don't use Motif or Xaw3d scroll bars
1531 --without-xaw3d don't use Xaw3d
1532 --without-xim don't use X11 XIM
1533 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1534 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1535 console
1536 --without-dbus don't compile with D-Bus support
1537 --without-gconf don't compile with GConf support
1538 --without-selinux don't compile with SELinux support
1539 --without-gnutls don't use -lgnutls for SSL/TLS support
1540 --without-makeinfo don't require makeinfo for building manuals
1541 --without-compress-info don't compress the installed Info pages
1542 --with-pkg-config-prog=PATH
1543 path to pkg-config for finding GTK and librsvg
1544 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1545 /usr/lib, or /usr/lib64 on some platforms.
1546 --with-gameuser=USER user for shared game score files
1547 --with-gnustep-conf=PATH
1548 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1549 or /etc/GNUstep/GNUstep.conf
1550 --with-x use the X Window System
1551
1552 Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
1560 CPP C preprocessor
1561 XMKMF Path to xmkmf, Makefile generator for X Window System
1562
1563 Use these variables to override the choices made by `configure' or to help
1564 it to find libraries and programs with nonstandard names/locations.
1565
1566 Report bugs to the package provider.
1567 _ACEOF
1568 ac_status=$?
1569 fi
1570
1571 if test "$ac_init_help" = "recursive"; then
1572 # If there are subdirs, report their specific --help.
1573 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1574 test -d "$ac_dir" ||
1575 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576 continue
1577 ac_builddir=.
1578
1579 case "$ac_dir" in
1580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *)
1582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1583 # A ".." for each directory in $ac_dir_suffix.
1584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1585 case $ac_top_builddir_sub in
1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588 esac ;;
1589 esac
1590 ac_abs_top_builddir=$ac_pwd
1591 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1592 # for backward compatibility:
1593 ac_top_builddir=$ac_top_build_prefix
1594
1595 case $srcdir in
1596 .) # We are building in place.
1597 ac_srcdir=.
1598 ac_top_srcdir=$ac_top_builddir_sub
1599 ac_abs_top_srcdir=$ac_pwd ;;
1600 [\\/]* | ?:[\\/]* ) # Absolute name.
1601 ac_srcdir=$srcdir$ac_dir_suffix;
1602 ac_top_srcdir=$srcdir
1603 ac_abs_top_srcdir=$srcdir ;;
1604 *) # Relative name.
1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606 ac_top_srcdir=$ac_top_build_prefix$srcdir
1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1608 esac
1609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1610
1611 cd "$ac_dir" || { ac_status=$?; continue; }
1612 # Check for guested configure.
1613 if test -f "$ac_srcdir/configure.gnu"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1616 elif test -f "$ac_srcdir/configure"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure" --help=recursive
1619 else
1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1621 fi || ac_status=$?
1622 cd "$ac_pwd" || { ac_status=$?; break; }
1623 done
1624 fi
1625
1626 test -n "$ac_init_help" && exit $ac_status
1627 if $ac_init_version; then
1628 cat <<\_ACEOF
1629 emacs configure 24.0.50
1630 generated by GNU Autoconf 2.65
1631
1632 Copyright (C) 2009 Free Software Foundation, Inc.
1633 This configure script is free software; the Free Software Foundation
1634 gives unlimited permission to copy, distribute and modify it.
1635 _ACEOF
1636 exit
1637 fi
1638
1639 ## ------------------------ ##
1640 ## Autoconf initialization. ##
1641 ## ------------------------ ##
1642
1643 # ac_fn_c_try_compile LINENO
1644 # --------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_compile ()
1647 {
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext
1650 if { { ac_try="$ac_compile"
1651 case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1663 fi
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1669 ac_retval=0
1670 else
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674 ac_retval=1
1675 fi
1676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 as_fn_set_status $ac_retval
1678
1679 } # ac_fn_c_try_compile
1680
1681 # ac_fn_c_try_link LINENO
1682 # -----------------------
1683 # Try to link conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_link ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext conftest$ac_exeext
1688 if { { ac_try="$ac_link"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest$ac_exeext && {
1707 test "$cross_compiling" = yes ||
1708 $as_test_x conftest$ac_exeext
1709 }; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1
1716 fi
1717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719 # interfere with the next link command; also delete a directory that is
1720 # left behind by Apple's compiler. We do this before executing the actions.
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 as_fn_set_status $ac_retval
1724
1725 } # ac_fn_c_try_link
1726
1727 # ac_fn_c_try_cpp LINENO
1728 # ----------------------
1729 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_c_try_cpp ()
1731 {
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_cpp conftest.$ac_ext"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1746 fi
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } >/dev/null && {
1749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 }; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1756
1757 ac_retval=1
1758 fi
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 as_fn_set_status $ac_retval
1761
1762 } # ac_fn_c_try_cpp
1763
1764 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1765 # -------------------------------------------------------
1766 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1767 # the include files in INCLUDES and setting the cache variable VAR
1768 # accordingly.
1769 ac_fn_c_check_header_mongrel ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1776 $as_echo_n "(cached) " >&6
1777 fi
1778 eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 else
1782 # Is the header compilable?
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1784 $as_echo_n "checking $2 usability... " >&6; }
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 $4
1788 #include <$2>
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791 ac_header_compiler=yes
1792 else
1793 ac_header_compiler=no
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1797 $as_echo "$ac_header_compiler" >&6; }
1798
1799 # Is the header present?
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1801 $as_echo_n "checking $2 presence... " >&6; }
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 #include <$2>
1805 _ACEOF
1806 if ac_fn_c_try_cpp "$LINENO"; then :
1807 ac_header_preproc=yes
1808 else
1809 ac_header_preproc=no
1810 fi
1811 rm -f conftest.err conftest.$ac_ext
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1813 $as_echo "$ac_header_preproc" >&6; }
1814
1815 # So? What about this header?
1816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1817 yes:no: )
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1819 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 ;;
1823 no:yes:* )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1825 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1827 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1829 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1831 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834 ;;
1835 esac
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1840 else
1841 eval "$3=\$ac_header_compiler"
1842 fi
1843 eval ac_res=\$$3
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1846 fi
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848
1849 } # ac_fn_c_check_header_mongrel
1850
1851 # ac_fn_c_try_run LINENO
1852 # ----------------------
1853 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1854 # that executables *can* be run.
1855 ac_fn_c_try_run ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { { ac_try="$ac_link"
1859 case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_link") 2>&5
1866 ac_status=$?
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1869 { { case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_try") 2>&5
1876 ac_status=$?
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; }; }; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: program exited with status $ac_status" >&5
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1884
1885 ac_retval=$ac_status
1886 fi
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889 as_fn_set_status $ac_retval
1890
1891 } # ac_fn_c_try_run
1892
1893 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1894 # -------------------------------------------------------
1895 # Tests whether HEADER exists and can be compiled using the include files in
1896 # INCLUDES, setting the cache variable VAR accordingly.
1897 ac_fn_c_check_header_compile ()
1898 {
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903 $as_echo_n "(cached) " >&6
1904 else
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 $4
1908 #include <$2>
1909 _ACEOF
1910 if ac_fn_c_try_compile "$LINENO"; then :
1911 eval "$3=yes"
1912 else
1913 eval "$3=no"
1914 fi
1915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 fi
1917 eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1921
1922 } # ac_fn_c_check_header_compile
1923
1924 # ac_fn_c_check_decl LINENO SYMBOL VAR
1925 # ------------------------------------
1926 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1927 ac_fn_c_check_decl ()
1928 {
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1931 $as_echo_n "checking whether $2 is declared... " >&6; }
1932 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1933 $as_echo_n "(cached) " >&6
1934 else
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1937 $4
1938 int
1939 main ()
1940 {
1941 #ifndef $2
1942 (void) $2;
1943 #endif
1944
1945 ;
1946 return 0;
1947 }
1948 _ACEOF
1949 if ac_fn_c_try_compile "$LINENO"; then :
1950 eval "$3=yes"
1951 else
1952 eval "$3=no"
1953 fi
1954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 fi
1956 eval ac_res=\$$3
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960
1961 } # ac_fn_c_check_decl
1962
1963 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1964 # ----------------------------------------------
1965 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1966 ac_fn_c_check_header_preproc ()
1967 {
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970 $as_echo_n "checking for $2... " >&6; }
1971 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1972 $as_echo_n "(cached) " >&6
1973 else
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1976 #include <$2>
1977 _ACEOF
1978 if ac_fn_c_try_cpp "$LINENO"; then :
1979 eval "$3=yes"
1980 else
1981 eval "$3=no"
1982 fi
1983 rm -f conftest.err conftest.$ac_ext
1984 fi
1985 eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989
1990 } # ac_fn_c_check_header_preproc
1991
1992 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1993 # ----------------------------------------------------
1994 # Tries to find if the field MEMBER exists in type AGGR, after including
1995 # INCLUDES, setting cache variable VAR accordingly.
1996 ac_fn_c_check_member ()
1997 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2000 $as_echo_n "checking for $2.$3... " >&6; }
2001 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2002 $as_echo_n "(cached) " >&6
2003 else
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 $5
2007 int
2008 main ()
2009 {
2010 static $2 ac_aggr;
2011 if (ac_aggr.$3)
2012 return 0;
2013 ;
2014 return 0;
2015 }
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018 eval "$4=yes"
2019 else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $5
2023 int
2024 main ()
2025 {
2026 static $2 ac_aggr;
2027 if (sizeof ac_aggr.$3)
2028 return 0;
2029 ;
2030 return 0;
2031 }
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 eval "$4=yes"
2035 else
2036 eval "$4=no"
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 fi
2042 eval ac_res=\$$4
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046
2047 } # ac_fn_c_check_member
2048
2049 # ac_fn_c_check_func LINENO FUNC VAR
2050 # ----------------------------------
2051 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2052 ac_fn_c_check_func ()
2053 {
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2058 $as_echo_n "(cached) " >&6
2059 else
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2062 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2064 #define $2 innocuous_$2
2065
2066 /* System header to define __stub macros and hopefully few prototypes,
2067 which can conflict with char $2 (); below.
2068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2069 <limits.h> exists even on freestanding compilers. */
2070
2071 #ifdef __STDC__
2072 # include <limits.h>
2073 #else
2074 # include <assert.h>
2075 #endif
2076
2077 #undef $2
2078
2079 /* Override any GCC internal prototype to avoid an error.
2080 Use char because int might match the return type of a GCC
2081 builtin and then its argument prototype would still apply. */
2082 #ifdef __cplusplus
2083 extern "C"
2084 #endif
2085 char $2 ();
2086 /* The GNU C library defines this for functions which it implements
2087 to always fail with ENOSYS. Some functions are actually named
2088 something starting with __ and the normal name is an alias. */
2089 #if defined __stub_$2 || defined __stub___$2
2090 choke me
2091 #endif
2092
2093 int
2094 main ()
2095 {
2096 return $2 ();
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_link "$LINENO"; then :
2102 eval "$3=yes"
2103 else
2104 eval "$3=no"
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext \
2107 conftest$ac_exeext conftest.$ac_ext
2108 fi
2109 eval ac_res=\$$3
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2113
2114 } # ac_fn_c_check_func
2115
2116 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2117 # -------------------------------------------
2118 # Tests whether TYPE exists after having included INCLUDES, setting cache
2119 # variable VAR accordingly.
2120 ac_fn_c_check_type ()
2121 {
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2126 $as_echo_n "(cached) " >&6
2127 else
2128 eval "$3=no"
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2131 $4
2132 int
2133 main ()
2134 {
2135 if (sizeof ($2))
2136 return 0;
2137 ;
2138 return 0;
2139 }
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2144 $4
2145 int
2146 main ()
2147 {
2148 if (sizeof (($2)))
2149 return 0;
2150 ;
2151 return 0;
2152 }
2153 _ACEOF
2154 if ac_fn_c_try_compile "$LINENO"; then :
2155
2156 else
2157 eval "$3=yes"
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 fi
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 fi
2163 eval ac_res=\$$3
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2166 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2167
2168 } # ac_fn_c_check_type
2169 cat >config.log <<_ACEOF
2170 This file contains any messages produced by compilers while
2171 running configure, to aid debugging if configure makes a mistake.
2172
2173 It was created by emacs $as_me 24.0.50, which was
2174 generated by GNU Autoconf 2.65. Invocation command line was
2175
2176 $ $0 $@
2177
2178 _ACEOF
2179 exec 5>>config.log
2180 {
2181 cat <<_ASUNAME
2182 ## --------- ##
2183 ## Platform. ##
2184 ## --------- ##
2185
2186 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2187 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2188 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2189 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2190 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2191
2192 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2193 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2194
2195 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2196 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2197 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2198 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2199 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2200 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2201 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2202
2203 _ASUNAME
2204
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2207 do
2208 IFS=$as_save_IFS
2209 test -z "$as_dir" && as_dir=.
2210 $as_echo "PATH: $as_dir"
2211 done
2212 IFS=$as_save_IFS
2213
2214 } >&5
2215
2216 cat >&5 <<_ACEOF
2217
2218
2219 ## ----------- ##
2220 ## Core tests. ##
2221 ## ----------- ##
2222
2223 _ACEOF
2224
2225
2226 # Keep a trace of the command line.
2227 # Strip out --no-create and --no-recursion so they do not pile up.
2228 # Strip out --silent because we don't want to record it for future runs.
2229 # Also quote any args containing shell meta-characters.
2230 # Make two passes to allow for proper duplicate-argument suppression.
2231 ac_configure_args=
2232 ac_configure_args0=
2233 ac_configure_args1=
2234 ac_must_keep_next=false
2235 for ac_pass in 1 2
2236 do
2237 for ac_arg
2238 do
2239 case $ac_arg in
2240 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2242 | -silent | --silent | --silen | --sile | --sil)
2243 continue ;;
2244 *\'*)
2245 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2246 esac
2247 case $ac_pass in
2248 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2249 2)
2250 as_fn_append ac_configure_args1 " '$ac_arg'"
2251 if test $ac_must_keep_next = true; then
2252 ac_must_keep_next=false # Got value, back to normal.
2253 else
2254 case $ac_arg in
2255 *=* | --config-cache | -C | -disable-* | --disable-* \
2256 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2257 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2258 | -with-* | --with-* | -without-* | --without-* | --x)
2259 case "$ac_configure_args0 " in
2260 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2261 esac
2262 ;;
2263 -* ) ac_must_keep_next=true ;;
2264 esac
2265 fi
2266 as_fn_append ac_configure_args " '$ac_arg'"
2267 ;;
2268 esac
2269 done
2270 done
2271 { ac_configure_args0=; unset ac_configure_args0;}
2272 { ac_configure_args1=; unset ac_configure_args1;}
2273
2274 # When interrupted or exit'd, cleanup temporary files, and complete
2275 # config.log. We remove comments because anyway the quotes in there
2276 # would cause problems or look ugly.
2277 # WARNING: Use '\'' to represent an apostrophe within the trap.
2278 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2279 trap 'exit_status=$?
2280 # Save into config.log some information that might help in debugging.
2281 {
2282 echo
2283
2284 cat <<\_ASBOX
2285 ## ---------------- ##
2286 ## Cache variables. ##
2287 ## ---------------- ##
2288 _ASBOX
2289 echo
2290 # The following way of writing the cache mishandles newlines in values,
2291 (
2292 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2293 eval ac_val=\$$ac_var
2294 case $ac_val in #(
2295 *${as_nl}*)
2296 case $ac_var in #(
2297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2298 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2299 esac
2300 case $ac_var in #(
2301 _ | IFS | as_nl) ;; #(
2302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2303 *) { eval $ac_var=; unset $ac_var;} ;;
2304 esac ;;
2305 esac
2306 done
2307 (set) 2>&1 |
2308 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2309 *${as_nl}ac_space=\ *)
2310 sed -n \
2311 "s/'\''/'\''\\\\'\'''\''/g;
2312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2313 ;; #(
2314 *)
2315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2316 ;;
2317 esac |
2318 sort
2319 )
2320 echo
2321
2322 cat <<\_ASBOX
2323 ## ----------------- ##
2324 ## Output variables. ##
2325 ## ----------------- ##
2326 _ASBOX
2327 echo
2328 for ac_var in $ac_subst_vars
2329 do
2330 eval ac_val=\$$ac_var
2331 case $ac_val in
2332 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333 esac
2334 $as_echo "$ac_var='\''$ac_val'\''"
2335 done | sort
2336 echo
2337
2338 if test -n "$ac_subst_files"; then
2339 cat <<\_ASBOX
2340 ## ------------------- ##
2341 ## File substitutions. ##
2342 ## ------------------- ##
2343 _ASBOX
2344 echo
2345 for ac_var in $ac_subst_files
2346 do
2347 eval ac_val=\$$ac_var
2348 case $ac_val in
2349 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2350 esac
2351 $as_echo "$ac_var='\''$ac_val'\''"
2352 done | sort
2353 echo
2354 fi
2355
2356 if test -s confdefs.h; then
2357 cat <<\_ASBOX
2358 ## ----------- ##
2359 ## confdefs.h. ##
2360 ## ----------- ##
2361 _ASBOX
2362 echo
2363 cat confdefs.h
2364 echo
2365 fi
2366 test "$ac_signal" != 0 &&
2367 $as_echo "$as_me: caught signal $ac_signal"
2368 $as_echo "$as_me: exit $exit_status"
2369 } >&5
2370 rm -f core *.core core.conftest.* &&
2371 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2372 exit $exit_status
2373 ' 0
2374 for ac_signal in 1 2 13 15; do
2375 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2376 done
2377 ac_signal=0
2378
2379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2380 rm -f -r conftest* confdefs.h
2381
2382 $as_echo "/* confdefs.h */" > confdefs.h
2383
2384 # Predefined preprocessor variables.
2385
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_NAME "$PACKAGE_NAME"
2388 _ACEOF
2389
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2392 _ACEOF
2393
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2396 _ACEOF
2397
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_STRING "$PACKAGE_STRING"
2400 _ACEOF
2401
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2404 _ACEOF
2405
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_URL "$PACKAGE_URL"
2408 _ACEOF
2409
2410
2411 # Let the site file select an alternate cache file if it wants to.
2412 # Prefer an explicitly selected file to automatically selected ones.
2413 ac_site_file1=NONE
2414 ac_site_file2=NONE
2415 if test -n "$CONFIG_SITE"; then
2416 ac_site_file1=$CONFIG_SITE
2417 elif test "x$prefix" != xNONE; then
2418 ac_site_file1=$prefix/share/config.site
2419 ac_site_file2=$prefix/etc/config.site
2420 else
2421 ac_site_file1=$ac_default_prefix/share/config.site
2422 ac_site_file2=$ac_default_prefix/etc/config.site
2423 fi
2424 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2425 do
2426 test "x$ac_site_file" = xNONE && continue
2427 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2429 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2430 sed 's/^/| /' "$ac_site_file" >&5
2431 . "$ac_site_file"
2432 fi
2433 done
2434
2435 if test -r "$cache_file"; then
2436 # Some versions of bash will fail to source /dev/null (special files
2437 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2438 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2440 $as_echo "$as_me: loading cache $cache_file" >&6;}
2441 case $cache_file in
2442 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2443 *) . "./$cache_file";;
2444 esac
2445 fi
2446 else
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2448 $as_echo "$as_me: creating cache $cache_file" >&6;}
2449 >$cache_file
2450 fi
2451
2452 as_fn_append ac_header_list " stdlib.h"
2453 as_fn_append ac_header_list " unistd.h"
2454 as_fn_append ac_header_list " sys/param.h"
2455 as_fn_append ac_header_list " sys/time.h"
2456 as_fn_append ac_func_list " alarm"
2457 # Check that the precious variables saved in the cache have kept the same
2458 # value.
2459 ac_cache_corrupted=false
2460 for ac_var in $ac_precious_vars; do
2461 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2462 eval ac_new_set=\$ac_env_${ac_var}_set
2463 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2464 eval ac_new_val=\$ac_env_${ac_var}_value
2465 case $ac_old_set,$ac_new_set in
2466 set,)
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2468 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2469 ac_cache_corrupted=: ;;
2470 ,set)
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2472 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2473 ac_cache_corrupted=: ;;
2474 ,);;
2475 *)
2476 if test "x$ac_old_val" != "x$ac_new_val"; then
2477 # differences in whitespace do not lead to failure.
2478 ac_old_val_w=`echo x $ac_old_val`
2479 ac_new_val_w=`echo x $ac_new_val`
2480 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2482 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2483 ac_cache_corrupted=:
2484 else
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2486 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2487 eval $ac_var=\$ac_old_val
2488 fi
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2490 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2492 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2493 fi;;
2494 esac
2495 # Pass precious variables to config.status.
2496 if test "$ac_new_set" = set; then
2497 case $ac_new_val in
2498 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2499 *) ac_arg=$ac_var=$ac_new_val ;;
2500 esac
2501 case " $ac_configure_args " in
2502 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2503 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2504 esac
2505 fi
2506 done
2507 if $ac_cache_corrupted; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2511 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2512 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2513 fi
2514 ## -------------------- ##
2515 ## Main body of script. ##
2516 ## -------------------- ##
2517
2518 ac_ext=c
2519 ac_cpp='$CPP $CPPFLAGS'
2520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523
2524
2525 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2526
2527
2528
2529 test "$program_prefix" != NONE &&
2530 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2531 # Use a double $ so make ignores it.
2532 test "$program_suffix" != NONE &&
2533 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2534 # Double any \ or $.
2535 # By default was `s,x,x', remove it if useless.
2536 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2537 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2538
2539
2540 lispdir='${datadir}/emacs/${version}/lisp'
2541 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2542 '${datadir}/emacs/site-lisp'
2543 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2544 etcdir='${datadir}/emacs/${version}/etc'
2545 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2546 docdir='${datadir}/emacs/${version}/etc'
2547 gamedir='${localstatedir}/games/emacs'
2548
2549
2550
2551
2552 # Check whether --with-pop was given.
2553 if test "${with_pop+set}" = set; then :
2554 withval=$with_pop;
2555 else
2556 with_pop=yes
2557 fi
2558
2559 if test "$with_pop" = yes; then
2560 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2561
2562 fi
2563
2564
2565 # Check whether --with-kerberos was given.
2566 if test "${with_kerberos+set}" = set; then :
2567 withval=$with_kerberos;
2568 else
2569 with_kerberos=no
2570 fi
2571
2572 if test "$with_kerberos" != no; then
2573 $as_echo "#define KERBEROS 1" >>confdefs.h
2574
2575 fi
2576
2577
2578 # Check whether --with-kerberos5 was given.
2579 if test "${with_kerberos5+set}" = set; then :
2580 withval=$with_kerberos5;
2581 else
2582 with_kerberos5=no
2583 fi
2584
2585 if test "${with_kerberos5}" != no; then
2586 if test "${with_kerberos}" = no; then
2587 with_kerberos=yes
2588 $as_echo "#define KERBEROS 1" >>confdefs.h
2589
2590 fi
2591
2592 $as_echo "#define KERBEROS5 1" >>confdefs.h
2593
2594 fi
2595
2596
2597 # Check whether --with-hesiod was given.
2598 if test "${with_hesiod+set}" = set; then :
2599 withval=$with_hesiod;
2600 else
2601 with_hesiod=no
2602 fi
2603
2604 if test "$with_hesiod" != no; then
2605
2606 $as_echo "#define HESIOD 1" >>confdefs.h
2607
2608 fi
2609
2610
2611 # Check whether --with-mmdf was given.
2612 if test "${with_mmdf+set}" = set; then :
2613 withval=$with_mmdf;
2614 else
2615 with_mmdf=no
2616 fi
2617
2618 if test "$with_mmdf" != no; then
2619
2620 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2621
2622 fi
2623
2624
2625 # Check whether --with-mail-unlink was given.
2626 if test "${with_mail_unlink+set}" = set; then :
2627 withval=$with_mail_unlink;
2628 else
2629 with_mail_unlink=no
2630 fi
2631
2632 if test "$with_mail_unlink" != no; then
2633
2634 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2635
2636 fi
2637
2638
2639 # Check whether --with-mailhost was given.
2640 if test "${with_mailhost+set}" = set; then :
2641 withval=$with_mailhost;
2642 cat >>confdefs.h <<_ACEOF
2643 #define MAILHOST "$withval"
2644 _ACEOF
2645
2646 fi
2647
2648
2649
2650 # Check whether --with-sound was given.
2651 if test "${with_sound+set}" = set; then :
2652 withval=$with_sound;
2653 else
2654 with_sound=yes
2655 fi
2656
2657
2658
2659 # Check whether --with-sync-input was given.
2660 if test "${with_sync_input+set}" = set; then :
2661 withval=$with_sync_input;
2662 else
2663 with_sync_input=yes
2664 fi
2665
2666 if test "$with_sync_input" = yes; then
2667
2668 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2669
2670 fi
2671
2672
2673 # Check whether --with-x-toolkit was given.
2674 if test "${with_x_toolkit+set}" = set; then :
2675 withval=$with_x_toolkit; case "${withval}" in
2676 y | ye | yes ) val=gtk ;;
2677 n | no ) val=no ;;
2678 l | lu | luc | luci | lucid ) val=lucid ;;
2679 a | at | ath | athe | athen | athena ) val=athena ;;
2680 m | mo | mot | moti | motif ) val=motif ;;
2681 g | gt | gtk ) val=gtk ;;
2682 gtk3 ) val=gtk3 ;;
2683 * )
2684 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2685 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2686 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2687 ;;
2688 esac
2689 with_x_toolkit=$val
2690
2691 fi
2692
2693
2694
2695 # Check whether --with-xpm was given.
2696 if test "${with_xpm+set}" = set; then :
2697 withval=$with_xpm;
2698 else
2699 with_xpm=yes
2700 fi
2701
2702
2703 # Check whether --with-jpeg was given.
2704 if test "${with_jpeg+set}" = set; then :
2705 withval=$with_jpeg;
2706 else
2707 with_jpeg=yes
2708 fi
2709
2710
2711 # Check whether --with-tiff was given.
2712 if test "${with_tiff+set}" = set; then :
2713 withval=$with_tiff;
2714 else
2715 with_tiff=yes
2716 fi
2717
2718
2719 # Check whether --with-gif was given.
2720 if test "${with_gif+set}" = set; then :
2721 withval=$with_gif;
2722 else
2723 with_gif=yes
2724 fi
2725
2726
2727 # Check whether --with-png was given.
2728 if test "${with_png+set}" = set; then :
2729 withval=$with_png;
2730 else
2731 with_png=yes
2732 fi
2733
2734
2735 # Check whether --with-rsvg was given.
2736 if test "${with_rsvg+set}" = set; then :
2737 withval=$with_rsvg;
2738 else
2739 with_rsvg=yes
2740 fi
2741
2742
2743 # Check whether --with-xml2 was given.
2744 if test "${with_xml2+set}" = set; then :
2745 withval=$with_xml2;
2746 else
2747 with_xml2=yes
2748 fi
2749
2750
2751 # Check whether --with-imagemagick was given.
2752 if test "${with_imagemagick+set}" = set; then :
2753 withval=$with_imagemagick;
2754 else
2755 with_imagemagick=yes
2756 fi
2757
2758
2759
2760 # Check whether --with-xft was given.
2761 if test "${with_xft+set}" = set; then :
2762 withval=$with_xft;
2763 else
2764 with_xft=yes
2765 fi
2766
2767
2768 # Check whether --with-libotf was given.
2769 if test "${with_libotf+set}" = set; then :
2770 withval=$with_libotf;
2771 else
2772 with_libotf=yes
2773 fi
2774
2775
2776 # Check whether --with-m17n-flt was given.
2777 if test "${with_m17n_flt+set}" = set; then :
2778 withval=$with_m17n_flt;
2779 else
2780 with_m17n_flt=yes
2781 fi
2782
2783
2784
2785 # Check whether --with-toolkit-scroll-bars was given.
2786 if test "${with_toolkit_scroll_bars+set}" = set; then :
2787 withval=$with_toolkit_scroll_bars;
2788 else
2789 with_toolkit_scroll_bars=yes
2790 fi
2791
2792
2793 # Check whether --with-xaw3d was given.
2794 if test "${with_xaw3d+set}" = set; then :
2795 withval=$with_xaw3d;
2796 else
2797 with_xaw3d=yes
2798 fi
2799
2800
2801 # Check whether --with-xim was given.
2802 if test "${with_xim+set}" = set; then :
2803 withval=$with_xim;
2804 else
2805 with_xim=yes
2806 fi
2807
2808
2809 # Check whether --with-ns was given.
2810 if test "${with_ns+set}" = set; then :
2811 withval=$with_ns;
2812 else
2813 with_ns=no
2814 fi
2815
2816
2817
2818 # Check whether --with-gpm was given.
2819 if test "${with_gpm+set}" = set; then :
2820 withval=$with_gpm;
2821 else
2822 with_gpm=yes
2823 fi
2824
2825
2826 # Check whether --with-dbus was given.
2827 if test "${with_dbus+set}" = set; then :
2828 withval=$with_dbus;
2829 else
2830 with_dbus=yes
2831 fi
2832
2833
2834 # Check whether --with-gconf was given.
2835 if test "${with_gconf+set}" = set; then :
2836 withval=$with_gconf;
2837 else
2838 with_gconf=yes
2839 fi
2840
2841
2842 # Check whether --with-selinux was given.
2843 if test "${with_selinux+set}" = set; then :
2844 withval=$with_selinux;
2845 else
2846 with_selinux=yes
2847 fi
2848
2849
2850 # Check whether --with-gnutls was given.
2851 if test "${with_gnutls+set}" = set; then :
2852 withval=$with_gnutls;
2853 else
2854 with_gnutls=yes
2855 fi
2856
2857
2858 ## For the times when you want to build Emacs but don't have
2859 ## a suitable makeinfo, and can live without the manuals.
2860
2861 # Check whether --with-makeinfo was given.
2862 if test "${with_makeinfo+set}" = set; then :
2863 withval=$with_makeinfo;
2864 else
2865 with_makeinfo=yes
2866 fi
2867
2868
2869 ## This is an option because I do not know if all info/man support
2870 ## compressed files, nor how to test if they do so.
2871
2872 # Check whether --with-compress-info was given.
2873 if test "${with_compress_info+set}" = set; then :
2874 withval=$with_compress_info;
2875 else
2876 with_compress_info=yes
2877 fi
2878
2879 if test $with_compress_info = yes; then
2880 GZIP_INFO=yes
2881 else
2882 GZIP_INFO=
2883 fi
2884
2885
2886
2887 # Check whether --with-pkg-config-prog was given.
2888 if test "${with_pkg_config_prog+set}" = set; then :
2889 withval=$with_pkg_config_prog;
2890 fi
2891
2892 if test "X${with_pkg_config_prog}" != X; then
2893 if test "${with_pkg_config_prog}" != yes; then
2894 PKG_CONFIG="${with_pkg_config_prog}"
2895 fi
2896 fi
2897
2898 CRT_DIR=
2899
2900 # Check whether --with-crt-dir was given.
2901 if test "${with_crt_dir+set}" = set; then :
2902 withval=$with_crt_dir;
2903 fi
2904
2905 CRT_DIR="${with_crt_dir}"
2906
2907
2908 # Check whether --with-gameuser was given.
2909 if test "${with_gameuser+set}" = set; then :
2910 withval=$with_gameuser;
2911 fi
2912
2913 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
2914 && gameuser="${with_gameuser}"
2915 test "X$gameuser" = X && gameuser=games
2916
2917
2918 # Check whether --with-gnustep-conf was given.
2919 if test "${with_gnustep_conf+set}" = set; then :
2920 withval=$with_gnustep_conf;
2921 fi
2922
2923 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2924 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2925 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2926 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2927
2928 # Check whether --enable-ns-self-contained was given.
2929 if test "${enable_ns_self_contained+set}" = set; then :
2930 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2931 else
2932 EN_NS_SELF_CONTAINED=yes
2933 fi
2934
2935
2936 # Check whether --enable-asserts was given.
2937 if test "${enable_asserts+set}" = set; then :
2938 enableval=$enable_asserts; USE_XASSERTS=$enableval
2939 else
2940 USE_XASSERTS=no
2941 fi
2942
2943
2944 # Check whether --enable-maintainer-mode was given.
2945 if test "${enable_maintainer_mode+set}" = set; then :
2946 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2947 else
2948 USE_MAINTAINER_MODE=no
2949 fi
2950
2951 if test $USE_MAINTAINER_MODE = yes; then
2952 MAINT=
2953 else
2954 MAINT=#
2955 fi
2956
2957
2958 # Check whether --enable-locallisppath was given.
2959 if test "${enable_locallisppath+set}" = set; then :
2960 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2961 locallisppath=
2962 elif test "${enableval}" != "yes"; then
2963 locallisppath=${enableval}
2964 fi
2965 fi
2966
2967
2968 # Check whether --enable-checking was given.
2969 if test "${enable_checking+set}" = set; then :
2970 enableval=$enable_checking; ac_checking_flags="${enableval}"
2971 fi
2972
2973 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2974 for check in $ac_checking_flags
2975 do
2976 case $check in
2977 # these set all the flags to specific states
2978 yes) ac_enable_checking=1 ;;
2979 no) ac_enable_checking= ;
2980 ac_gc_check_stringbytes= ;
2981 ac_gc_check_string_overrun= ;
2982 ac_gc_check_string_free_list= ;
2983 ac_xmalloc_overrun= ;
2984 ac_gc_check_cons_list= ;;
2985 all) ac_enable_checking=1 ;
2986 ac_gc_check_stringbytes=1 ;
2987 ac_gc_check_string_overrun=1 ;
2988 ac_gc_check_string_free_list=1 ;
2989 ac_xmalloc_overrun=1 ;
2990 ac_gc_check_cons_list=1 ;;
2991 # these enable particular checks
2992 stringbytes) ac_gc_check_stringbytes=1 ;;
2993 stringoverrun) ac_gc_check_string_overrun=1 ;;
2994 stringfreelist) ac_gc_check_string_free_list=1 ;;
2995 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2996 conslist) ac_gc_check_cons_list=1 ;;
2997 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2998 esac
2999 done
3000 IFS="$ac_save_IFS"
3001
3002 if test x$ac_enable_checking != x ; then
3003
3004 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3005
3006 fi
3007 if test x$ac_gc_check_stringbytes != x ; then
3008
3009 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3010
3011 fi
3012 if test x$ac_gc_check_stringoverrun != x ; then
3013
3014 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3015
3016 fi
3017 if test x$ac_gc_check_string_free_list != x ; then
3018
3019 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3020
3021 fi
3022 if test x$ac_xmalloc_overrun != x ; then
3023
3024 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3025
3026 fi
3027 if test x$ac_gc_check_cons_list != x ; then
3028
3029 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3030
3031 fi
3032
3033 # Check whether --enable-use-lisp-union-type was given.
3034 if test "${enable_use_lisp_union_type+set}" = set; then :
3035 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3036
3037 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3038
3039 fi
3040 fi
3041
3042
3043
3044 # Check whether --enable-profiling was given.
3045 if test "${enable_profiling+set}" = set; then :
3046 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3047 fi
3048
3049 if test x$ac_enable_profiling != x ; then
3050 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3051 else
3052 PROFILING_CFLAGS=
3053 fi
3054
3055
3056 # Check whether --enable-autodepend was given.
3057 if test "${enable_autodepend+set}" = set; then :
3058 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3059 else
3060 ac_enable_autodepend=yes
3061 fi
3062
3063
3064 #### Make srcdir absolute, if it isn't already. It's important to
3065 #### avoid running the path through pwd unnecessarily, since pwd can
3066 #### give you automounter prefixes, which can go away. We do all this
3067 #### so Emacs can find its files when run uninstalled.
3068 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3069 unset CDPATH
3070 case "${srcdir}" in
3071 /* ) ;;
3072 . )
3073 ## We may be able to use the $PWD environment variable to make this
3074 ## absolute. But sometimes PWD is inaccurate.
3075 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3076 ## but that tested only for a well-formed and valid PWD,
3077 ## it did not object when PWD was well-formed and valid but just wrong.
3078 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3079 then
3080 srcdir="$PWD"
3081 else
3082 srcdir="`(cd ${srcdir}; pwd)`"
3083 fi
3084 ;;
3085 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3086 esac
3087
3088 #### Check if the source directory already has a configured system in it.
3089 if test `pwd` != `(cd ${srcdir} && pwd)` \
3090 && test -f "${srcdir}/src/config.h" ; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3092 as a build directory right now; it has been configured in its own
3093 right. To configure in another directory as well, you MUST
3094 use GNU make. If you do not have GNU make, then you must
3095 now do \`make distclean' in ${srcdir},
3096 and then run $0 again." >&5
3097 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3098 as a build directory right now; it has been configured in its own
3099 right. To configure in another directory as well, you MUST
3100 use GNU make. If you do not have GNU make, then you must
3101 now do \`make distclean' in ${srcdir},
3102 and then run $0 again." >&2;}
3103 fi
3104
3105 #### Given the configuration name, set machfile and opsysfile to the
3106 #### names of the m/*.h and s/*.h files we should use.
3107
3108 ### Canonicalize the configuration name.
3109
3110 ac_aux_dir=
3111 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3112 for ac_t in install-sh install.sh shtool; do
3113 if test -f "$ac_dir/$ac_t"; then
3114 ac_aux_dir=$ac_dir
3115 ac_install_sh="$ac_aux_dir/$ac_t -c"
3116 break 2
3117 fi
3118 done
3119 done
3120 if test -z "$ac_aux_dir"; then
3121 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3122 fi
3123
3124 # These three variables are undocumented and unsupported,
3125 # and are intended to be withdrawn in a future Autoconf release.
3126 # They can cause serious problems if a builder's source tree is in a directory
3127 # whose full name contains unusual characters.
3128 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3129 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3130 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3131
3132
3133 # Make sure we can run config.sub.
3134 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3135 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3136
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3138 $as_echo_n "checking build system type... " >&6; }
3139 if test "${ac_cv_build+set}" = set; then :
3140 $as_echo_n "(cached) " >&6
3141 else
3142 ac_build_alias=$build_alias
3143 test "x$ac_build_alias" = x &&
3144 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3145 test "x$ac_build_alias" = x &&
3146 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3147 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3148 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3149
3150 fi
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3152 $as_echo "$ac_cv_build" >&6; }
3153 case $ac_cv_build in
3154 *-*-*) ;;
3155 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3156 esac
3157 build=$ac_cv_build
3158 ac_save_IFS=$IFS; IFS='-'
3159 set x $ac_cv_build
3160 shift
3161 build_cpu=$1
3162 build_vendor=$2
3163 shift; shift
3164 # Remember, the first character of IFS is used to create $*,
3165 # except with old shells:
3166 build_os=$*
3167 IFS=$ac_save_IFS
3168 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3169
3170
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3172 $as_echo_n "checking host system type... " >&6; }
3173 if test "${ac_cv_host+set}" = set; then :
3174 $as_echo_n "(cached) " >&6
3175 else
3176 if test "x$host_alias" = x; then
3177 ac_cv_host=$ac_cv_build
3178 else
3179 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3180 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3181 fi
3182
3183 fi
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3185 $as_echo "$ac_cv_host" >&6; }
3186 case $ac_cv_host in
3187 *-*-*) ;;
3188 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3189 esac
3190 host=$ac_cv_host
3191 ac_save_IFS=$IFS; IFS='-'
3192 set x $ac_cv_host
3193 shift
3194 host_cpu=$1
3195 host_vendor=$2
3196 shift; shift
3197 # Remember, the first character of IFS is used to create $*,
3198 # except with old shells:
3199 host_os=$*
3200 IFS=$ac_save_IFS
3201 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3202
3203
3204 canonical=$host
3205 configuration=${host_alias-${build_alias-$host}}
3206
3207
3208
3209 ### If you add support for a new configuration, add code to this
3210 ### switch statement to recognize your configuration name and select
3211 ### the appropriate operating system and machine description files.
3212
3213 ### You would hope that you could choose an m/*.h file pretty much
3214 ### based on the machine portion of the configuration name, and an s/*.h
3215 ### file based on the operating system portion. However, it turns out
3216 ### that each m/*.h file is pretty manufacturer-specific - for
3217 ### example mips.h is MIPS
3218 ### So we basically have to have a special case for each
3219 ### configuration name.
3220 ###
3221 ### As far as handling version numbers on operating systems is
3222 ### concerned, make sure things will fail in a fixable way. If
3223 ### /etc/MACHINES doesn't say anything about version numbers, be
3224 ### prepared to handle anything reasonably. If version numbers
3225 ### matter, be sure /etc/MACHINES says something about it.
3226
3227 machine='' opsys='' unported=no
3228 case "${canonical}" in
3229
3230 ## GNU/Linux ports
3231 *-*-linux-gnu*)
3232 opsys=gnu-linux
3233 case ${canonical} in
3234 alpha*) machine=alpha ;;
3235 s390-*) machine=ibms390 ;;
3236 s390x-*) machine=ibms390x ;;
3237 powerpc*) machine=macppc ;;
3238 sparc*) machine=sparc ;;
3239 ia64*) machine=ia64 ;;
3240 m68k*) machine=m68k ;;
3241 x86_64*) machine=amdx86-64 ;;
3242 esac
3243 ;;
3244
3245 ## FreeBSD ports
3246 *-*-freebsd* )
3247 opsys=freebsd
3248 case "${canonical}" in
3249 alpha*) machine=alpha ;;
3250 amd64-*|x86_64-*) machine=amdx86-64 ;;
3251 ia64-*) machine=ia64 ;;
3252 i[3456]86-*) machine=intel386 ;;
3253 powerpc-*) machine=macppc ;;
3254 sparc-*) machine=sparc ;;
3255 sparc64-*) machine=sparc ;;
3256 esac
3257 ;;
3258
3259 ## FreeBSD kernel + glibc based userland
3260 *-*-kfreebsd*gnu* )
3261 opsys=gnu-kfreebsd
3262 case "${canonical}" in
3263 alpha*) machine=alpha ;;
3264 amd64-*|x86_64-*) machine=amdx86-64 ;;
3265 ia64-*) machine=ia64 ;;
3266 i[3456]86-*) machine=intel386 ;;
3267 powerpc-*) machine=macppc ;;
3268 sparc-*) machine=sparc ;;
3269 sparc64-*) machine=sparc ;;
3270 esac
3271 ;;
3272
3273 ## NetBSD ports
3274 *-*-netbsd* )
3275 opsys=netbsd
3276 case "${canonical}" in
3277 alpha*) machine=alpha ;;
3278 x86_64-*) machine=amdx86-64 ;;
3279 i[3456]86-*) machine=intel386 ;;
3280 m68k-*) machine=m68k ;;
3281 powerpc-*) machine=macppc ;;
3282 sparc*-) machine=sparc ;;
3283 vax-*) machine=vax ;;
3284 esac
3285 ;;
3286
3287 ## OpenBSD ports
3288 *-*-openbsd* )
3289 opsys=openbsd
3290 case "${canonical}" in
3291 alpha*) machine=alpha ;;
3292 x86_64-*) machine=amdx86-64 ;;
3293 i386-*) machine=intel386 ;;
3294 powerpc-*) machine=macppc ;;
3295 sparc*) machine=sparc ;;
3296 vax-*) machine=vax ;;
3297 esac
3298 ;;
3299
3300 ## Apple Darwin / Mac OS X
3301 *-apple-darwin* )
3302 case "${canonical}" in
3303 i[3456]86-* ) machine=intel386 ;;
3304 powerpc-* ) machine=macppc ;;
3305 x86_64-* ) machine=amdx86-64 ;;
3306 * ) unported=yes ;;
3307 esac
3308 opsys=darwin
3309 # Define CPP as follows to make autoconf work correctly.
3310 CPP="${CC-cc} -E -no-cpp-precomp"
3311 # Use fink packages if available.
3312 if test -d /sw/include && test -d /sw/lib; then
3313 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3314 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3315 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3316 fi
3317 ;;
3318
3319 ## HP 9000 series 700 and 800, running HP/UX
3320 hppa*-hp-hpux10.2* )
3321 opsys=hpux10-20
3322 ;;
3323 hppa*-hp-hpux1[1-9]* )
3324 opsys=hpux11
3325 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3326 ;;
3327
3328 ## IBM machines
3329 rs6000-ibm-aix4.[23]* )
3330 machine=ibmrs6000 opsys=aix4-2
3331 ;;
3332 powerpc-ibm-aix4.[23]* )
3333 machine=ibmrs6000 opsys=aix4-2
3334 ;;
3335 rs6000-ibm-aix[56]* )
3336 machine=ibmrs6000 opsys=aix4-2
3337 ;;
3338 powerpc-ibm-aix[56]* )
3339 machine=ibmrs6000 opsys=aix4-2
3340 ;;
3341
3342 ## Silicon Graphics machines
3343 ## Iris 4D
3344 mips-sgi-irix6.5 )
3345 machine=iris4d opsys=irix6-5
3346 # Without defining _LANGUAGE_C, things get masked out in the headers
3347 # so that, for instance, grepping for `free' in stdlib.h fails and
3348 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3349 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3350 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3351 ;;
3352
3353 ## Suns
3354 *-sun-solaris* \
3355 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3356 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3357 case "${canonical}" in
3358 i[3456]86-*-* ) machine=intel386 ;;
3359 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3360 sparc* ) machine=sparc ;;
3361 * ) unported=yes ;;
3362 esac
3363 case "${canonical}" in
3364 *-sunos5.6* | *-solaris2.6* )
3365 opsys=sol2-6
3366 NON_GNU_CPP=/usr/ccs/lib/cpp
3367 RANLIB="ar -ts"
3368 ;;
3369 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3370 opsys=sol2-6
3371 emacs_check_sunpro_c=yes
3372 NON_GNU_CPP=/usr/ccs/lib/cpp
3373 ;;
3374 *-sunos5* | *-solaris* )
3375 opsys=sol2-10
3376 emacs_check_sunpro_c=yes
3377 NON_GNU_CPP=/usr/ccs/lib/cpp
3378 ;;
3379 esac
3380 ## Watch out for a compiler that we know will not work.
3381 case "${canonical}" in
3382 *-solaris* | *-sunos5* )
3383 if [ "x$CC" = x/usr/ucb/cc ]; then
3384 ## /usr/ucb/cc doesn't work;
3385 ## we should find some other compiler that does work.
3386 unset CC
3387 fi
3388 ;;
3389 *) ;;
3390 esac
3391 ;;
3392
3393 ## Intel 386 machines where we don't care about the manufacturer.
3394 i[3456]86-*-* )
3395 machine=intel386
3396 case "${canonical}" in
3397 *-cygwin ) opsys=cygwin ;;
3398 *-darwin* ) opsys=darwin
3399 CPP="${CC-cc} -E -no-cpp-precomp"
3400 ;;
3401 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3402 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3403 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3404 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3405 esac
3406 ;;
3407
3408 * )
3409 unported=yes
3410 ;;
3411 esac
3412
3413 ### If the code above didn't choose an operating system, just choose
3414 ### an operating system based on the configuration name. You really
3415 ### only want to use this when you have no idea what the right
3416 ### operating system is; if you know what operating systems a machine
3417 ### runs, it's cleaner to make it explicit in the case statement
3418 ### above.
3419 if test x"${opsys}" = x; then
3420 case "${canonical}" in
3421 *-gnu* ) opsys=gnu ;;
3422 * )
3423 unported=yes
3424 ;;
3425 esac
3426 fi
3427
3428
3429
3430 if test $unported = yes; then
3431 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
3432 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3433 fi
3434
3435 if test -n "$machine"; then
3436 machfile="m/${machine}.h"
3437 else
3438 machfile=
3439 fi
3440 opsysfile="s/${opsys}.h"
3441
3442
3443 #### Choose a compiler.
3444 test -n "$CC" && cc_specified=yes
3445
3446 # Save the value of CFLAGS that the user specified.
3447 SPECIFIED_CFLAGS="$CFLAGS"
3448
3449 ac_ext=c
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454 if test -n "$ac_tool_prefix"; then
3455 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3456 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if test "${ac_cv_prog_CC+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 if test -n "$CC"; then
3463 ac_cv_prog_CC="$CC" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3472 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 break 2
3475 fi
3476 done
3477 done
3478 IFS=$as_save_IFS
3479
3480 fi
3481 fi
3482 CC=$ac_cv_prog_CC
3483 if test -n "$CC"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3485 $as_echo "$CC" >&6; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3489 fi
3490
3491
3492 fi
3493 if test -z "$ac_cv_prog_CC"; then
3494 ac_ct_CC=$CC
3495 # Extract the first word of "gcc", so it can be a program name with args.
3496 set dummy gcc; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 if test -n "$ac_ct_CC"; then
3503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_ac_ct_CC="gcc"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3515 fi
3516 done
3517 done
3518 IFS=$as_save_IFS
3519
3520 fi
3521 fi
3522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3523 if test -n "$ac_ct_CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3525 $as_echo "$ac_ct_CC" >&6; }
3526 else
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531 if test "x$ac_ct_CC" = x; then
3532 CC=""
3533 else
3534 case $cross_compiling:$ac_tool_warned in
3535 yes:)
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3538 ac_tool_warned=yes ;;
3539 esac
3540 CC=$ac_ct_CC
3541 fi
3542 else
3543 CC="$ac_cv_prog_CC"
3544 fi
3545
3546 if test -z "$CC"; then
3547 if test -n "$ac_tool_prefix"; then
3548 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3549 set dummy ${ac_tool_prefix}cc; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if test "${ac_cv_prog_CC+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 if test -n "$CC"; then
3556 ac_cv_prog_CC="$CC" # Let the user override the test.
3557 else
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3560 do
3561 IFS=$as_save_IFS
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3565 ac_cv_prog_CC="${ac_tool_prefix}cc"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 break 2
3568 fi
3569 done
3570 done
3571 IFS=$as_save_IFS
3572
3573 fi
3574 fi
3575 CC=$ac_cv_prog_CC
3576 if test -n "$CC"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3578 $as_echo "$CC" >&6; }
3579 else
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3582 fi
3583
3584
3585 fi
3586 fi
3587 if test -z "$CC"; then
3588 # Extract the first word of "cc", so it can be a program name with args.
3589 set dummy cc; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC="$CC" # Let the user override the test.
3597 else
3598 ac_prog_rejected=no
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3601 do
3602 IFS=$as_save_IFS
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3607 ac_prog_rejected=yes
3608 continue
3609 fi
3610 ac_cv_prog_CC="cc"
3611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3612 break 2
3613 fi
3614 done
3615 done
3616 IFS=$as_save_IFS
3617
3618 if test $ac_prog_rejected = yes; then
3619 # We found a bogon in the path, so make sure we never use it.
3620 set dummy $ac_cv_prog_CC
3621 shift
3622 if test $# != 0; then
3623 # We chose a different compiler from the bogus one.
3624 # However, it has the same basename, so the bogon will be chosen
3625 # first if we set CC to just the basename; use the full file name.
3626 shift
3627 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3628 fi
3629 fi
3630 fi
3631 fi
3632 CC=$ac_cv_prog_CC
3633 if test -n "$CC"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635 $as_echo "$CC" >&6; }
3636 else
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3639 fi
3640
3641
3642 fi
3643 if test -z "$CC"; then
3644 if test -n "$ac_tool_prefix"; then
3645 for ac_prog in cl.exe
3646 do
3647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 $as_echo_n "checking for $ac_word... " >&6; }
3651 if test "${ac_cv_prog_CC+set}" = set; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 if test -n "$CC"; then
3655 ac_cv_prog_CC="$CC" # Let the user override the test.
3656 else
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3659 do
3660 IFS=$as_save_IFS
3661 test -z "$as_dir" && as_dir=.
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3664 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 break 2
3667 fi
3668 done
3669 done
3670 IFS=$as_save_IFS
3671
3672 fi
3673 fi
3674 CC=$ac_cv_prog_CC
3675 if test -n "$CC"; then
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3677 $as_echo "$CC" >&6; }
3678 else
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 $as_echo "no" >&6; }
3681 fi
3682
3683
3684 test -n "$CC" && break
3685 done
3686 fi
3687 if test -z "$CC"; then
3688 ac_ct_CC=$CC
3689 for ac_prog in cl.exe
3690 do
3691 # Extract the first word of "$ac_prog", so it can be a program name with args.
3692 set dummy $ac_prog; ac_word=$2
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 $as_echo_n "checking for $ac_word... " >&6; }
3695 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 if test -n "$ac_ct_CC"; then
3699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3700 else
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3703 do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708 ac_cv_prog_ac_ct_CC="$ac_prog"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 2
3711 fi
3712 done
3713 done
3714 IFS=$as_save_IFS
3715
3716 fi
3717 fi
3718 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3719 if test -n "$ac_ct_CC"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3721 $as_echo "$ac_ct_CC" >&6; }
3722 else
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3725 fi
3726
3727
3728 test -n "$ac_ct_CC" && break
3729 done
3730
3731 if test "x$ac_ct_CC" = x; then
3732 CC=""
3733 else
3734 case $cross_compiling:$ac_tool_warned in
3735 yes:)
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3738 ac_tool_warned=yes ;;
3739 esac
3740 CC=$ac_ct_CC
3741 fi
3742 fi
3743
3744 fi
3745
3746
3747 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3749 as_fn_error "no acceptable C compiler found in \$PATH
3750 See \`config.log' for more details." "$LINENO" 5; }
3751
3752 # Provide some information about the compiler.
3753 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3754 set X $ac_compile
3755 ac_compiler=$2
3756 for ac_option in --version -v -V -qversion; do
3757 { { ac_try="$ac_compiler $ac_option >&5"
3758 case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761 esac
3762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3763 $as_echo "$ac_try_echo"; } >&5
3764 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3765 ac_status=$?
3766 if test -s conftest.err; then
3767 sed '10a\
3768 ... rest of stderr output deleted ...
3769 10q' conftest.err >conftest.er1
3770 cat conftest.er1 >&5
3771 fi
3772 rm -f conftest.er1 conftest.err
3773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3774 test $ac_status = 0; }
3775 done
3776
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3779
3780 int
3781 main ()
3782 {
3783
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 ac_clean_files_save=$ac_clean_files
3789 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3790 # Try to create an executable without -o first, disregard a.out.
3791 # It will help us diagnose broken compilers, and finding out an intuition
3792 # of exeext.
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3794 $as_echo_n "checking whether the C compiler works... " >&6; }
3795 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3796
3797 # The possible output files:
3798 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3799
3800 ac_rmfiles=
3801 for ac_file in $ac_files
3802 do
3803 case $ac_file in
3804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3805 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3806 esac
3807 done
3808 rm -f $ac_rmfiles
3809
3810 if { { ac_try="$ac_link_default"
3811 case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814 esac
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_link_default") 2>&5
3818 ac_status=$?
3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }; then :
3821 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3822 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3823 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3824 # so that the user can short-circuit this test for compilers unknown to
3825 # Autoconf.
3826 for ac_file in $ac_files ''
3827 do
3828 test -f "$ac_file" || continue
3829 case $ac_file in
3830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3831 ;;
3832 [ab].out )
3833 # We found the default executable, but exeext='' is most
3834 # certainly right.
3835 break;;
3836 *.* )
3837 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3838 then :; else
3839 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3840 fi
3841 # We set ac_cv_exeext here because the later test for it is not
3842 # safe: cross compilers may not add the suffix if given an `-o'
3843 # argument, so we may need to know it at that point already.
3844 # Even if this section looks crufty: it has the advantage of
3845 # actually working.
3846 break;;
3847 * )
3848 break;;
3849 esac
3850 done
3851 test "$ac_cv_exeext" = no && ac_cv_exeext=
3852
3853 else
3854 ac_file=''
3855 fi
3856 if test -z "$ac_file"; then :
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3859 $as_echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3861
3862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3864 { as_fn_set_status 77
3865 as_fn_error "C compiler cannot create executables
3866 See \`config.log' for more details." "$LINENO" 5; }; }
3867 else
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3869 $as_echo "yes" >&6; }
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3872 $as_echo_n "checking for C compiler default output file name... " >&6; }
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3874 $as_echo "$ac_file" >&6; }
3875 ac_exeext=$ac_cv_exeext
3876
3877 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3878 ac_clean_files=$ac_clean_files_save
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3880 $as_echo_n "checking for suffix of executables... " >&6; }
3881 if { { ac_try="$ac_link"
3882 case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3885 esac
3886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887 $as_echo "$ac_try_echo"; } >&5
3888 (eval "$ac_link") 2>&5
3889 ac_status=$?
3890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }; then :
3892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3894 # work properly (i.e., refer to `conftest.exe'), while it won't with
3895 # `rm'.
3896 for ac_file in conftest.exe conftest conftest.*; do
3897 test -f "$ac_file" || continue
3898 case $ac_file in
3899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3901 break;;
3902 * ) break;;
3903 esac
3904 done
3905 else
3906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3908 as_fn_error "cannot compute suffix of executables: cannot compile and link
3909 See \`config.log' for more details." "$LINENO" 5; }
3910 fi
3911 rm -f conftest conftest$ac_cv_exeext
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3913 $as_echo "$ac_cv_exeext" >&6; }
3914
3915 rm -f conftest.$ac_ext
3916 EXEEXT=$ac_cv_exeext
3917 ac_exeext=$EXEEXT
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920 #include <stdio.h>
3921 int
3922 main ()
3923 {
3924 FILE *f = fopen ("conftest.out", "w");
3925 return ferror (f) || fclose (f) != 0;
3926
3927 ;
3928 return 0;
3929 }
3930 _ACEOF
3931 ac_clean_files="$ac_clean_files conftest.out"
3932 # Check that the compiler produces executables we can run. If not, either
3933 # the compiler is broken, or we cross compile.
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3935 $as_echo_n "checking whether we are cross compiling... " >&6; }
3936 if test "$cross_compiling" != yes; then
3937 { { ac_try="$ac_link"
3938 case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941 esac
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 $as_echo "$ac_try_echo"; } >&5
3944 (eval "$ac_link") 2>&5
3945 ac_status=$?
3946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947 test $ac_status = 0; }
3948 if { ac_try='./conftest$ac_cv_exeext'
3949 { { case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954 $as_echo "$ac_try_echo"; } >&5
3955 (eval "$ac_try") 2>&5
3956 ac_status=$?
3957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958 test $ac_status = 0; }; }; then
3959 cross_compiling=no
3960 else
3961 if test "$cross_compiling" = maybe; then
3962 cross_compiling=yes
3963 else
3964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3966 as_fn_error "cannot run C compiled programs.
3967 If you meant to cross compile, use \`--host'.
3968 See \`config.log' for more details." "$LINENO" 5; }
3969 fi
3970 fi
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3973 $as_echo "$cross_compiling" >&6; }
3974
3975 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3976 ac_clean_files=$ac_clean_files_save
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3978 $as_echo_n "checking for suffix of object files... " >&6; }
3979 if test "${ac_cv_objext+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3984
3985 int
3986 main ()
3987 {
3988
3989 ;
3990 return 0;
3991 }
3992 _ACEOF
3993 rm -f conftest.o conftest.obj
3994 if { { ac_try="$ac_compile"
3995 case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001 (eval "$ac_compile") 2>&5
4002 ac_status=$?
4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004 test $ac_status = 0; }; then :
4005 for ac_file in conftest.o conftest.obj conftest.*; do
4006 test -f "$ac_file" || continue;
4007 case $ac_file in
4008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4009 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4010 break;;
4011 esac
4012 done
4013 else
4014 $as_echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4016
4017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4019 as_fn_error "cannot compute suffix of object files: cannot compile
4020 See \`config.log' for more details." "$LINENO" 5; }
4021 fi
4022 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4023 fi
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4025 $as_echo "$ac_cv_objext" >&6; }
4026 OBJEXT=$ac_cv_objext
4027 ac_objext=$OBJEXT
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4029 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4030 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035
4036 int
4037 main ()
4038 {
4039 #ifndef __GNUC__
4040 choke me
4041 #endif
4042
4043 ;
4044 return 0;
4045 }
4046 _ACEOF
4047 if ac_fn_c_try_compile "$LINENO"; then :
4048 ac_compiler_gnu=yes
4049 else
4050 ac_compiler_gnu=no
4051 fi
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4054
4055 fi
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4057 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4058 if test $ac_compiler_gnu = yes; then
4059 GCC=yes
4060 else
4061 GCC=
4062 fi
4063 ac_test_CFLAGS=${CFLAGS+set}
4064 ac_save_CFLAGS=$CFLAGS
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4066 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4067 if test "${ac_cv_prog_cc_g+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 ac_save_c_werror_flag=$ac_c_werror_flag
4071 ac_c_werror_flag=yes
4072 ac_cv_prog_cc_g=no
4073 CFLAGS="-g"
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076
4077 int
4078 main ()
4079 {
4080
4081 ;
4082 return 0;
4083 }
4084 _ACEOF
4085 if ac_fn_c_try_compile "$LINENO"; then :
4086 ac_cv_prog_cc_g=yes
4087 else
4088 CFLAGS=""
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4091
4092 int
4093 main ()
4094 {
4095
4096 ;
4097 return 0;
4098 }
4099 _ACEOF
4100 if ac_fn_c_try_compile "$LINENO"; then :
4101
4102 else
4103 ac_c_werror_flag=$ac_save_c_werror_flag
4104 CFLAGS="-g"
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107
4108 int
4109 main ()
4110 {
4111
4112 ;
4113 return 0;
4114 }
4115 _ACEOF
4116 if ac_fn_c_try_compile "$LINENO"; then :
4117 ac_cv_prog_cc_g=yes
4118 fi
4119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 fi
4121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122 fi
4123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4125 fi
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4127 $as_echo "$ac_cv_prog_cc_g" >&6; }
4128 if test "$ac_test_CFLAGS" = set; then
4129 CFLAGS=$ac_save_CFLAGS
4130 elif test $ac_cv_prog_cc_g = yes; then
4131 if test "$GCC" = yes; then
4132 CFLAGS="-g -O2"
4133 else
4134 CFLAGS="-g"
4135 fi
4136 else
4137 if test "$GCC" = yes; then
4138 CFLAGS="-O2"
4139 else
4140 CFLAGS=
4141 fi
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4144 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4145 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 ac_cv_prog_cc_c89=no
4149 ac_save_CC=$CC
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4152 #include <stdarg.h>
4153 #include <stdio.h>
4154 #include <sys/types.h>
4155 #include <sys/stat.h>
4156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4157 struct buf { int x; };
4158 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4159 static char *e (p, i)
4160 char **p;
4161 int i;
4162 {
4163 return p[i];
4164 }
4165 static char *f (char * (*g) (char **, int), char **p, ...)
4166 {
4167 char *s;
4168 va_list v;
4169 va_start (v,p);
4170 s = g (p, va_arg (v,int));
4171 va_end (v);
4172 return s;
4173 }
4174
4175 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4176 function prototypes and stuff, but not '\xHH' hex character constants.
4177 These don't provoke an error unfortunately, instead are silently treated
4178 as 'x'. The following induces an error, until -std is added to get
4179 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4180 array size at least. It's necessary to write '\x00'==0 to get something
4181 that's true only with -std. */
4182 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4183
4184 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4185 inside strings and character constants. */
4186 #define FOO(x) 'x'
4187 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4188
4189 int test (int i, double x);
4190 struct s1 {int (*f) (int a);};
4191 struct s2 {int (*f) (double a);};
4192 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4193 int argc;
4194 char **argv;
4195 int
4196 main ()
4197 {
4198 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4199 ;
4200 return 0;
4201 }
4202 _ACEOF
4203 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4204 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4205 do
4206 CC="$ac_save_CC $ac_arg"
4207 if ac_fn_c_try_compile "$LINENO"; then :
4208 ac_cv_prog_cc_c89=$ac_arg
4209 fi
4210 rm -f core conftest.err conftest.$ac_objext
4211 test "x$ac_cv_prog_cc_c89" != "xno" && break
4212 done
4213 rm -f conftest.$ac_ext
4214 CC=$ac_save_CC
4215
4216 fi
4217 # AC_CACHE_VAL
4218 case "x$ac_cv_prog_cc_c89" in
4219 x)
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4221 $as_echo "none needed" >&6; } ;;
4222 xno)
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4224 $as_echo "unsupported" >&6; } ;;
4225 *)
4226 CC="$CC $ac_cv_prog_cc_c89"
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4228 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4229 esac
4230 if test "x$ac_cv_prog_cc_c89" != xno; then :
4231
4232 fi
4233
4234 ac_ext=c
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240
4241 # On Suns, sometimes $CPP names a directory.
4242 if test -n "$CPP" && test -d "$CPP"; then
4243 CPP=
4244 fi
4245
4246 ## If not using gcc, and on Solaris, and no CPP specified, see if
4247 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4248 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4249 test x"$CPP" = x; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4251 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4252
4253 if test "${emacs_cv_sunpro_c+set}" = set; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258
4259 int
4260 main ()
4261 {
4262 #ifndef __SUNPRO_C
4263 fail;
4264 #endif
4265
4266 ;
4267 return 0;
4268 }
4269 _ACEOF
4270 if ac_fn_c_try_link "$LINENO"; then :
4271 emacs_cv_sunpro_c=yes
4272 else
4273 emacs_cv_sunpro_c=no
4274 fi
4275 rm -f core conftest.err conftest.$ac_objext \
4276 conftest$ac_exeext conftest.$ac_ext
4277 fi
4278
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4280 $as_echo "$emacs_cv_sunpro_c" >&6; }
4281
4282 if test x"$emacs_cv_sunpro_c" = xyes; then
4283 NON_GNU_CPP="$CC -E -Xs"
4284 fi
4285 fi
4286
4287 #### Some systems specify a CPP to use unless we are using GCC.
4288 #### Now that we know whether we are using GCC, we can decide whether
4289 #### to use that one.
4290 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4291 then
4292 CPP="$NON_GNU_CPP"
4293 fi
4294
4295 #### Some systems specify a CC to use unless we are using GCC.
4296 #### Now that we know whether we are using GCC, we can decide whether
4297 #### to use that one.
4298 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4299 test x$cc_specified != xyes
4300 then
4301 CC="$NON_GNU_CC"
4302 fi
4303
4304 if test x$GCC = xyes; then
4305 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4306 else
4307 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4308 fi
4309
4310 ac_ext=c
4311 ac_cpp='$CPP $CPPFLAGS'
4312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4316 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4317 # On Suns, sometimes $CPP names a directory.
4318 if test -n "$CPP" && test -d "$CPP"; then
4319 CPP=
4320 fi
4321 if test -z "$CPP"; then
4322 if test "${ac_cv_prog_CPP+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4324 else
4325 # Double quotes because CPP needs to be expanded
4326 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4327 do
4328 ac_preproc_ok=false
4329 for ac_c_preproc_warn_flag in '' yes
4330 do
4331 # Use a header file that comes with gcc, so configuring glibc
4332 # with a fresh cross-compiler works.
4333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4334 # <limits.h> exists even on freestanding compilers.
4335 # On the NeXT, cc -E runs the code through the compiler's parser,
4336 # not just through cpp. "Syntax error" is here to catch this case.
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4339 #ifdef __STDC__
4340 # include <limits.h>
4341 #else
4342 # include <assert.h>
4343 #endif
4344 Syntax error
4345 _ACEOF
4346 if ac_fn_c_try_cpp "$LINENO"; then :
4347
4348 else
4349 # Broken: fails on valid input.
4350 continue
4351 fi
4352 rm -f conftest.err conftest.$ac_ext
4353
4354 # OK, works on sane cases. Now check whether nonexistent headers
4355 # can be detected and how.
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4358 #include <ac_nonexistent.h>
4359 _ACEOF
4360 if ac_fn_c_try_cpp "$LINENO"; then :
4361 # Broken: success on invalid input.
4362 continue
4363 else
4364 # Passes both tests.
4365 ac_preproc_ok=:
4366 break
4367 fi
4368 rm -f conftest.err conftest.$ac_ext
4369
4370 done
4371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4372 rm -f conftest.err conftest.$ac_ext
4373 if $ac_preproc_ok; then :
4374 break
4375 fi
4376
4377 done
4378 ac_cv_prog_CPP=$CPP
4379
4380 fi
4381 CPP=$ac_cv_prog_CPP
4382 else
4383 ac_cv_prog_CPP=$CPP
4384 fi
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4386 $as_echo "$CPP" >&6; }
4387 ac_preproc_ok=false
4388 for ac_c_preproc_warn_flag in '' yes
4389 do
4390 # Use a header file that comes with gcc, so configuring glibc
4391 # with a fresh cross-compiler works.
4392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4393 # <limits.h> exists even on freestanding compilers.
4394 # On the NeXT, cc -E runs the code through the compiler's parser,
4395 # not just through cpp. "Syntax error" is here to catch this case.
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398 #ifdef __STDC__
4399 # include <limits.h>
4400 #else
4401 # include <assert.h>
4402 #endif
4403 Syntax error
4404 _ACEOF
4405 if ac_fn_c_try_cpp "$LINENO"; then :
4406
4407 else
4408 # Broken: fails on valid input.
4409 continue
4410 fi
4411 rm -f conftest.err conftest.$ac_ext
4412
4413 # OK, works on sane cases. Now check whether nonexistent headers
4414 # can be detected and how.
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 #include <ac_nonexistent.h>
4418 _ACEOF
4419 if ac_fn_c_try_cpp "$LINENO"; then :
4420 # Broken: success on invalid input.
4421 continue
4422 else
4423 # Passes both tests.
4424 ac_preproc_ok=:
4425 break
4426 fi
4427 rm -f conftest.err conftest.$ac_ext
4428
4429 done
4430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4431 rm -f conftest.err conftest.$ac_ext
4432 if $ac_preproc_ok; then :
4433
4434 else
4435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4437 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4438 See \`config.log' for more details." "$LINENO" 5; }
4439 fi
4440
4441 ac_ext=c
4442 ac_cpp='$CPP $CPPFLAGS'
4443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446
4447
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4449 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4450 if test "${ac_cv_path_GREP+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
4452 else
4453 if test -z "$GREP"; then
4454 ac_path_GREP_found=false
4455 # Loop through the user's path and test for each of PROGNAME-LIST
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4458 do
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_prog in grep ggrep; do
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4464 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4465 # Check for GNU ac_path_GREP and select it if it is found.
4466 # Check for GNU $ac_path_GREP
4467 case `"$ac_path_GREP" --version 2>&1` in
4468 *GNU*)
4469 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4470 *)
4471 ac_count=0
4472 $as_echo_n 0123456789 >"conftest.in"
4473 while :
4474 do
4475 cat "conftest.in" "conftest.in" >"conftest.tmp"
4476 mv "conftest.tmp" "conftest.in"
4477 cp "conftest.in" "conftest.nl"
4478 $as_echo 'GREP' >> "conftest.nl"
4479 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4480 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4481 as_fn_arith $ac_count + 1 && ac_count=$as_val
4482 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4483 # Best one so far, save it but keep looking for a better one
4484 ac_cv_path_GREP="$ac_path_GREP"
4485 ac_path_GREP_max=$ac_count
4486 fi
4487 # 10*(2^10) chars as input seems more than enough
4488 test $ac_count -gt 10 && break
4489 done
4490 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4491 esac
4492
4493 $ac_path_GREP_found && break 3
4494 done
4495 done
4496 done
4497 IFS=$as_save_IFS
4498 if test -z "$ac_cv_path_GREP"; then
4499 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4500 fi
4501 else
4502 ac_cv_path_GREP=$GREP
4503 fi
4504
4505 fi
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4507 $as_echo "$ac_cv_path_GREP" >&6; }
4508 GREP="$ac_cv_path_GREP"
4509
4510
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4512 $as_echo_n "checking for egrep... " >&6; }
4513 if test "${ac_cv_path_EGREP+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4517 then ac_cv_path_EGREP="$GREP -E"
4518 else
4519 if test -z "$EGREP"; then
4520 ac_path_EGREP_found=false
4521 # Loop through the user's path and test for each of PROGNAME-LIST
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4524 do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_prog in egrep; do
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4530 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4531 # Check for GNU ac_path_EGREP and select it if it is found.
4532 # Check for GNU $ac_path_EGREP
4533 case `"$ac_path_EGREP" --version 2>&1` in
4534 *GNU*)
4535 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4536 *)
4537 ac_count=0
4538 $as_echo_n 0123456789 >"conftest.in"
4539 while :
4540 do
4541 cat "conftest.in" "conftest.in" >"conftest.tmp"
4542 mv "conftest.tmp" "conftest.in"
4543 cp "conftest.in" "conftest.nl"
4544 $as_echo 'EGREP' >> "conftest.nl"
4545 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4546 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4547 as_fn_arith $ac_count + 1 && ac_count=$as_val
4548 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4549 # Best one so far, save it but keep looking for a better one
4550 ac_cv_path_EGREP="$ac_path_EGREP"
4551 ac_path_EGREP_max=$ac_count
4552 fi
4553 # 10*(2^10) chars as input seems more than enough
4554 test $ac_count -gt 10 && break
4555 done
4556 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4557 esac
4558
4559 $ac_path_EGREP_found && break 3
4560 done
4561 done
4562 done
4563 IFS=$as_save_IFS
4564 if test -z "$ac_cv_path_EGREP"; then
4565 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4566 fi
4567 else
4568 ac_cv_path_EGREP=$EGREP
4569 fi
4570
4571 fi
4572 fi
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4574 $as_echo "$ac_cv_path_EGREP" >&6; }
4575 EGREP="$ac_cv_path_EGREP"
4576
4577
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4579 $as_echo_n "checking for ANSI C header files... " >&6; }
4580 if test "${ac_cv_header_stdc+set}" = set; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4585 #include <stdlib.h>
4586 #include <stdarg.h>
4587 #include <string.h>
4588 #include <float.h>
4589
4590 int
4591 main ()
4592 {
4593
4594 ;
4595 return 0;
4596 }
4597 _ACEOF
4598 if ac_fn_c_try_compile "$LINENO"; then :
4599 ac_cv_header_stdc=yes
4600 else
4601 ac_cv_header_stdc=no
4602 fi
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604
4605 if test $ac_cv_header_stdc = yes; then
4606 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4609 #include <string.h>
4610
4611 _ACEOF
4612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613 $EGREP "memchr" >/dev/null 2>&1; then :
4614
4615 else
4616 ac_cv_header_stdc=no
4617 fi
4618 rm -f conftest*
4619
4620 fi
4621
4622 if test $ac_cv_header_stdc = yes; then
4623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626 #include <stdlib.h>
4627
4628 _ACEOF
4629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4630 $EGREP "free" >/dev/null 2>&1; then :
4631
4632 else
4633 ac_cv_header_stdc=no
4634 fi
4635 rm -f conftest*
4636
4637 fi
4638
4639 if test $ac_cv_header_stdc = yes; then
4640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4641 if test "$cross_compiling" = yes; then :
4642 :
4643 else
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4646 #include <ctype.h>
4647 #include <stdlib.h>
4648 #if ((' ' & 0x0FF) == 0x020)
4649 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4650 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4651 #else
4652 # define ISLOWER(c) \
4653 (('a' <= (c) && (c) <= 'i') \
4654 || ('j' <= (c) && (c) <= 'r') \
4655 || ('s' <= (c) && (c) <= 'z'))
4656 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4657 #endif
4658
4659 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4660 int
4661 main ()
4662 {
4663 int i;
4664 for (i = 0; i < 256; i++)
4665 if (XOR (islower (i), ISLOWER (i))
4666 || toupper (i) != TOUPPER (i))
4667 return 2;
4668 return 0;
4669 }
4670 _ACEOF
4671 if ac_fn_c_try_run "$LINENO"; then :
4672
4673 else
4674 ac_cv_header_stdc=no
4675 fi
4676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4677 conftest.$ac_objext conftest.beam conftest.$ac_ext
4678 fi
4679
4680 fi
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4683 $as_echo "$ac_cv_header_stdc" >&6; }
4684 if test $ac_cv_header_stdc = yes; then
4685
4686 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4687
4688 fi
4689
4690 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4691 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4692 inttypes.h stdint.h unistd.h
4693 do :
4694 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4695 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4696 "
4697 eval as_val=\$$as_ac_Header
4698 if test "x$as_val" = x""yes; then :
4699 cat >>confdefs.h <<_ACEOF
4700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4701 _ACEOF
4702
4703 fi
4704
4705 done
4706
4707
4708
4709 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4710 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4711 MINIX=yes
4712 else
4713 MINIX=
4714 fi
4715
4716
4717 if test "$MINIX" = yes; then
4718
4719 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4720
4721
4722 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4723
4724
4725 $as_echo "#define _MINIX 1" >>confdefs.h
4726
4727 fi
4728
4729
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4731 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4732 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4737
4738 # define __EXTENSIONS__ 1
4739 $ac_includes_default
4740 int
4741 main ()
4742 {
4743
4744 ;
4745 return 0;
4746 }
4747 _ACEOF
4748 if ac_fn_c_try_compile "$LINENO"; then :
4749 ac_cv_safe_to_define___extensions__=yes
4750 else
4751 ac_cv_safe_to_define___extensions__=no
4752 fi
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 fi
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4756 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4757 test $ac_cv_safe_to_define___extensions__ = yes &&
4758 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4759
4760 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4761
4762 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4763
4764 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4765
4766 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4767
4768
4769
4770 ### Use -Wno-pointer-sign if the compiler supports it
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4772 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4773 SAVE_CFLAGS="$CFLAGS"
4774 CFLAGS="$CFLAGS -Wno-pointer-sign"
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4777
4778 int
4779 main ()
4780 {
4781
4782 ;
4783 return 0;
4784 }
4785 _ACEOF
4786 if ac_fn_c_try_compile "$LINENO"; then :
4787 has_option=yes
4788 else
4789 has_option=no
4790 fi
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 if test $has_option = yes; then
4793 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4794 fi
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4796 $as_echo "$has_option" >&6; }
4797 CFLAGS="$SAVE_CFLAGS"
4798 unset has_option
4799 unset SAVE_CFLAGS
4800
4801 ### Use -Wdeclaration-after-statement if the compiler supports it
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4803 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4804 SAVE_CFLAGS="$CFLAGS"
4805 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4808
4809 int
4810 main ()
4811 {
4812
4813 ;
4814 return 0;
4815 }
4816 _ACEOF
4817 if ac_fn_c_try_compile "$LINENO"; then :
4818 has_option=yes
4819 else
4820 has_option=no
4821 fi
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 if test $has_option = yes; then
4824 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4825 fi
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4827 $as_echo "$has_option" >&6; }
4828 CFLAGS="$SAVE_CFLAGS"
4829 unset has_option
4830 unset SAVE_CFLAGS
4831
4832 ### Use -Wold-style-definition if the compiler supports it
4833 # This can be removed when conversion to standard C is finished.
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4835 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4836 SAVE_CFLAGS="$CFLAGS"
4837 CFLAGS="$CFLAGS -Wold-style-definition"
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4840
4841 int
4842 main ()
4843 {
4844
4845 ;
4846 return 0;
4847 }
4848 _ACEOF
4849 if ac_fn_c_try_compile "$LINENO"; then :
4850 has_option=yes
4851 else
4852 has_option=no
4853 fi
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 if test $has_option = yes; then
4856 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4857 fi
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4859 $as_echo "$has_option" >&6; }
4860 CFLAGS="$SAVE_CFLAGS"
4861 unset has_option
4862 unset SAVE_CFLAGS
4863
4864 ### Use -Wimplicit-function-declaration if the compiler supports it
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4866 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4867 SAVE_CFLAGS="$CFLAGS"
4868 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4871
4872 int
4873 main ()
4874 {
4875
4876 ;
4877 return 0;
4878 }
4879 _ACEOF
4880 if ac_fn_c_try_compile "$LINENO"; then :
4881 has_option=yes
4882 else
4883 has_option=no
4884 fi
4885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886 if test $has_option = yes; then
4887 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4890 $as_echo "$has_option" >&6; }
4891 CFLAGS="$SAVE_CFLAGS"
4892 unset has_option
4893 unset SAVE_CFLAGS
4894
4895
4896
4897
4898 #### Some other nice autoconf tests.
4899
4900 ac_ext=c
4901 ac_cpp='$CPP $CPPFLAGS'
4902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4906 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4907 # On Suns, sometimes $CPP names a directory.
4908 if test -n "$CPP" && test -d "$CPP"; then
4909 CPP=
4910 fi
4911 if test -z "$CPP"; then
4912 if test "${ac_cv_prog_CPP+set}" = set; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 # Double quotes because CPP needs to be expanded
4916 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4917 do
4918 ac_preproc_ok=false
4919 for ac_c_preproc_warn_flag in '' yes
4920 do
4921 # Use a header file that comes with gcc, so configuring glibc
4922 # with a fresh cross-compiler works.
4923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924 # <limits.h> exists even on freestanding compilers.
4925 # On the NeXT, cc -E runs the code through the compiler's parser,
4926 # not just through cpp. "Syntax error" is here to catch this case.
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929 #ifdef __STDC__
4930 # include <limits.h>
4931 #else
4932 # include <assert.h>
4933 #endif
4934 Syntax error
4935 _ACEOF
4936 if ac_fn_c_try_cpp "$LINENO"; then :
4937
4938 else
4939 # Broken: fails on valid input.
4940 continue
4941 fi
4942 rm -f conftest.err conftest.$ac_ext
4943
4944 # OK, works on sane cases. Now check whether nonexistent headers
4945 # can be detected and how.
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 #include <ac_nonexistent.h>
4949 _ACEOF
4950 if ac_fn_c_try_cpp "$LINENO"; then :
4951 # Broken: success on invalid input.
4952 continue
4953 else
4954 # Passes both tests.
4955 ac_preproc_ok=:
4956 break
4957 fi
4958 rm -f conftest.err conftest.$ac_ext
4959
4960 done
4961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4962 rm -f conftest.err conftest.$ac_ext
4963 if $ac_preproc_ok; then :
4964 break
4965 fi
4966
4967 done
4968 ac_cv_prog_CPP=$CPP
4969
4970 fi
4971 CPP=$ac_cv_prog_CPP
4972 else
4973 ac_cv_prog_CPP=$CPP
4974 fi
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4976 $as_echo "$CPP" >&6; }
4977 ac_preproc_ok=false
4978 for ac_c_preproc_warn_flag in '' yes
4979 do
4980 # Use a header file that comes with gcc, so configuring glibc
4981 # with a fresh cross-compiler works.
4982 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4983 # <limits.h> exists even on freestanding compilers.
4984 # On the NeXT, cc -E runs the code through the compiler's parser,
4985 # not just through cpp. "Syntax error" is here to catch this case.
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988 #ifdef __STDC__
4989 # include <limits.h>
4990 #else
4991 # include <assert.h>
4992 #endif
4993 Syntax error
4994 _ACEOF
4995 if ac_fn_c_try_cpp "$LINENO"; then :
4996
4997 else
4998 # Broken: fails on valid input.
4999 continue
5000 fi
5001 rm -f conftest.err conftest.$ac_ext
5002
5003 # OK, works on sane cases. Now check whether nonexistent headers
5004 # can be detected and how.
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5007 #include <ac_nonexistent.h>
5008 _ACEOF
5009 if ac_fn_c_try_cpp "$LINENO"; then :
5010 # Broken: success on invalid input.
5011 continue
5012 else
5013 # Passes both tests.
5014 ac_preproc_ok=:
5015 break
5016 fi
5017 rm -f conftest.err conftest.$ac_ext
5018
5019 done
5020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5021 rm -f conftest.err conftest.$ac_ext
5022 if $ac_preproc_ok; then :
5023
5024 else
5025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5027 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5028 See \`config.log' for more details." "$LINENO" 5; }
5029 fi
5030
5031 ac_ext=c
5032 ac_cpp='$CPP $CPPFLAGS'
5033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5036
5037 # Find a good install program. We prefer a C program (faster),
5038 # so one script is as good as another. But avoid the broken or
5039 # incompatible versions:
5040 # SysV /etc/install, /usr/sbin/install
5041 # SunOS /usr/etc/install
5042 # IRIX /sbin/install
5043 # AIX /bin/install
5044 # AmigaOS /C/install, which installs bootblocks on floppy discs
5045 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5046 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5047 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5048 # OS/2's system install, which has a completely different semantic
5049 # ./install, which can be erroneously created by make from ./install.sh.
5050 # Reject install programs that cannot install multiple files.
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5052 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5053 if test -z "$INSTALL"; then
5054 if test "${ac_cv_path_install+set}" = set; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 # Account for people who put trailing slashes in PATH elements.
5063 case $as_dir/ in #((
5064 ./ | .// | /[cC]/* | \
5065 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5066 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5067 /usr/ucb/* ) ;;
5068 *)
5069 # OSF1 and SCO ODT 3.0 have their own names for install.
5070 # Don't use installbsd from OSF since it installs stuff as root
5071 # by default.
5072 for ac_prog in ginstall scoinst install; do
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5075 if test $ac_prog = install &&
5076 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5077 # AIX install. It has an incompatible calling convention.
5078 :
5079 elif test $ac_prog = install &&
5080 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5081 # program-specific install script used by HP pwplus--don't use.
5082 :
5083 else
5084 rm -rf conftest.one conftest.two conftest.dir
5085 echo one > conftest.one
5086 echo two > conftest.two
5087 mkdir conftest.dir
5088 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5089 test -s conftest.one && test -s conftest.two &&
5090 test -s conftest.dir/conftest.one &&
5091 test -s conftest.dir/conftest.two
5092 then
5093 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5094 break 3
5095 fi
5096 fi
5097 fi
5098 done
5099 done
5100 ;;
5101 esac
5102
5103 done
5104 IFS=$as_save_IFS
5105
5106 rm -rf conftest.one conftest.two conftest.dir
5107
5108 fi
5109 if test "${ac_cv_path_install+set}" = set; then
5110 INSTALL=$ac_cv_path_install
5111 else
5112 # As a last resort, use the slow shell script. Don't cache a
5113 # value for INSTALL within a source directory, because that will
5114 # break other packages using the cache if that directory is
5115 # removed, or if the value is a relative name.
5116 INSTALL=$ac_install_sh
5117 fi
5118 fi
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5120 $as_echo "$INSTALL" >&6; }
5121
5122 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5123 # It thinks the first close brace ends the variable substitution.
5124 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5125
5126 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5127
5128 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5129
5130 if test "x$RANLIB" = x; then
5131 if test -n "$ac_tool_prefix"; then
5132 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5133 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 if test -n "$RANLIB"; then
5140 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5152 fi
5153 done
5154 done
5155 IFS=$as_save_IFS
5156
5157 fi
5158 fi
5159 RANLIB=$ac_cv_prog_RANLIB
5160 if test -n "$RANLIB"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5162 $as_echo "$RANLIB" >&6; }
5163 else
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5166 fi
5167
5168
5169 fi
5170 if test -z "$ac_cv_prog_RANLIB"; then
5171 ac_ct_RANLIB=$RANLIB
5172 # Extract the first word of "ranlib", so it can be a program name with args.
5173 set dummy ranlib; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$ac_ct_RANLIB"; then
5180 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5184 do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_ac_ct_RANLIB="ranlib"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5192 fi
5193 done
5194 done
5195 IFS=$as_save_IFS
5196
5197 fi
5198 fi
5199 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5200 if test -n "$ac_ct_RANLIB"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5202 $as_echo "$ac_ct_RANLIB" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5206 fi
5207
5208 if test "x$ac_ct_RANLIB" = x; then
5209 RANLIB=":"
5210 else
5211 case $cross_compiling:$ac_tool_warned in
5212 yes:)
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215 ac_tool_warned=yes ;;
5216 esac
5217 RANLIB=$ac_ct_RANLIB
5218 fi
5219 else
5220 RANLIB="$ac_cv_prog_RANLIB"
5221 fi
5222
5223 fi
5224
5225 ## Although we're running on an amd64 kernel, we're actually compiling for
5226 ## the x86 architecture. The user should probably have provided an
5227 ## explicit --build to `configure', but if everything else than the kernel
5228 ## is running in i386 mode, we can help them out.
5229 if test "$machine" = "amdx86-64"; then
5230 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5231 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5232
5233 fi
5234
5235 if test "$ac_cv_have_decl_i386" = "yes"; then
5236 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5237 machine=intel386
5238 machfile="m/${machine}.h"
5239 fi
5240 fi
5241
5242 # Extract the first word of "install-info", so it can be a program name with args.
5243 set dummy install-info; ac_word=$2
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245 $as_echo_n "checking for $ac_word... " >&6; }
5246 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 case $INSTALL_INFO in
5250 [\\/]* | ?:[\\/]*)
5251 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5252 ;;
5253 *)
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5256 do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5264 fi
5265 done
5266 done
5267 IFS=$as_save_IFS
5268
5269 ;;
5270 esac
5271 fi
5272 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5273 if test -n "$INSTALL_INFO"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5275 $as_echo "$INSTALL_INFO" >&6; }
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5279 fi
5280
5281
5282 # Extract the first word of "install-info", so it can be a program name with args.
5283 set dummy install-info; ac_word=$2
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285 $as_echo_n "checking for $ac_word... " >&6; }
5286 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5288 else
5289 case $INSTALL_INFO in
5290 [\\/]* | ?:[\\/]*)
5291 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5292 ;;
5293 *)
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in /usr/sbin
5296 do
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5304 fi
5305 done
5306 done
5307 IFS=$as_save_IFS
5308
5309 ;;
5310 esac
5311 fi
5312 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5313 if test -n "$INSTALL_INFO"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5315 $as_echo "$INSTALL_INFO" >&6; }
5316 else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5319 fi
5320
5321
5322 # Extract the first word of "install-info", so it can be a program name with args.
5323 set dummy install-info; ac_word=$2
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 case $INSTALL_INFO in
5330 [\\/]* | ?:[\\/]*)
5331 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5332 ;;
5333 *)
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in /sbin
5336 do
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5344 fi
5345 done
5346 done
5347 IFS=$as_save_IFS
5348
5349 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5350 ;;
5351 esac
5352 fi
5353 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5354 if test -n "$INSTALL_INFO"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5356 $as_echo "$INSTALL_INFO" >&6; }
5357 else
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5360 fi
5361
5362
5363 # Extract the first word of "gzip", so it can be a program name with args.
5364 set dummy gzip; ac_word=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 case $GZIP_PROG in
5371 [\\/]* | ?:[\\/]*)
5372 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5373 ;;
5374 *)
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5377 do
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 break 2
5385 fi
5386 done
5387 done
5388 IFS=$as_save_IFS
5389
5390 ;;
5391 esac
5392 fi
5393 GZIP_PROG=$ac_cv_path_GZIP_PROG
5394 if test -n "$GZIP_PROG"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5396 $as_echo "$GZIP_PROG" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5400 fi
5401
5402
5403
5404
5405 ## Need makeinfo >= 4.6 (?) to build the manuals.
5406 # Extract the first word of "makeinfo", so it can be a program name with args.
5407 set dummy makeinfo; ac_word=$2
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 $as_echo_n "checking for $ac_word... " >&6; }
5410 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 case $MAKEINFO in
5414 [\\/]* | ?:[\\/]*)
5415 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5416 ;;
5417 *)
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5420 do
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5425 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 break 2
5428 fi
5429 done
5430 done
5431 IFS=$as_save_IFS
5432
5433 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5434 ;;
5435 esac
5436 fi
5437 MAKEINFO=$ac_cv_path_MAKEINFO
5438 if test -n "$MAKEINFO"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5440 $as_echo "$MAKEINFO" >&6; }
5441 else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5444 fi
5445
5446
5447 if test "$MAKEINFO" != "no" && \
5448 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
5449 MAKEINFO=no
5450 fi
5451
5452 ## Makeinfo is unusual. For a released Emacs, the manuals are
5453 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5454 ## therefore in the category of "special tools" not normally required, which
5455 ## configure does not have to check for (eg autoconf itself).
5456 ## In a Bazaar checkout on the other hand, the manuals are not included.
5457 ## So makeinfo is a requirement to build from Bazaar, and configure
5458 ## should test for it as it does for any other build requirement.
5459 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5460 ## with pre-built manuals, from a Bazaar checkout.
5461 HAVE_MAKEINFO=yes
5462
5463 if test "$MAKEINFO" = "no"; then
5464 MAKEINFO=makeinfo
5465 if test "x${with_makeinfo}" = "xno"; then
5466 HAVE_MAKEINFO=no
5467 elif test ! -e $srcdir/info/emacs; then
5468 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5469 source tree does not seem to have pre-built manuals in the \`info' directory.
5470 Either install a suitable version of makeinfo, or re-run configure
5471 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5472 fi
5473 fi
5474
5475
5476
5477 if test x$GCC = xyes; then
5478 test "x$GCC_LINK_TEST_OPTIONS" != x && \
5479 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5480 else
5481 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
5482 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5483 fi
5484
5485
5486 late_LDFLAGS=$LDFLAGS
5487 if test x$GCC = xyes; then
5488 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5489 else
5490 LDFLAGS="$LDFLAGS -znocombreloc"
5491 fi
5492
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5494 $as_echo_n "checking for -znocombreloc... " >&6; }
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5497
5498 int
5499 main ()
5500 {
5501
5502 ;
5503 return 0;
5504 }
5505 _ACEOF
5506 if ac_fn_c_try_link "$LINENO"; then :
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5508 $as_echo "yes" >&6; }
5509 else
5510 LDFLAGS=$late_LDFLAGS
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5513 fi
5514 rm -f core conftest.err conftest.$ac_objext \
5515 conftest$ac_exeext conftest.$ac_ext
5516
5517
5518 # The value of CPP is a quoted variable reference, so we need to do this
5519 # to get its actual value...
5520 CPP=`eval "echo $CPP"`
5521
5522
5523 CANNOT_DUMP=no
5524 case "$opsys" in
5525 your-opsys-here)
5526 CANNOT_DUMP=yes
5527
5528 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5529
5530 ;;
5531 esac
5532
5533
5534
5535 UNEXEC_OBJ=unexelf.o
5536 case "$opsys" in
5537 # MSDOS uses unexcoff.o
5538 # MSWindows uses unexw32.o
5539 aix4-2)
5540 UNEXEC_OBJ=unexaix.o
5541 ;;
5542 cygwin)
5543 UNEXEC_OBJ=unexcw.o
5544 ;;
5545 darwin)
5546 UNEXEC_OBJ=unexmacosx.o
5547 ;;
5548 hpux10-20 | hpux11)
5549 UNEXEC_OBJ=unexhp9k800.o
5550 ;;
5551 sol2-10)
5552 # Use the Solaris dldump() function, called from unexsol.c, to dump
5553 # emacs, instead of the generic ELF dump code found in unexelf.c.
5554 # The resulting binary has a complete symbol table, and is better
5555 # for debugging and other observability tools (debuggers, pstack, etc).
5556 #
5557 # If you encounter a problem using dldump(), please consider sending
5558 # a message to the OpenSolaris tools-linking mailing list:
5559 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5560 #
5561 # It is likely that dldump() works with older Solaris too, but this has
5562 # not been tested, so for now this change is for Solaris 10 or newer.
5563 UNEXEC_OBJ=unexsol.o
5564 ;;
5565 esac
5566
5567 LD_SWITCH_SYSTEM=
5568 case "$opsys" in
5569 freebsd)
5570 ## Let `ld' find image libs and similar things in /usr/local/lib.
5571 ## The system compiler, GCC, has apparently been modified to not
5572 ## look there, contrary to what a stock GCC would do.
5573 LD_SWITCH_SYSTEM=-L/usr/local/lib
5574 ;;
5575
5576 gnu-linux)
5577 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5578 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
5579 ;;
5580
5581 netbsd)
5582 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5583 ;;
5584
5585 openbsd)
5586 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5587 ## otherwise Emacs dumps core on elf systems.
5588 LD_SWITCH_SYSTEM="-Z"
5589 ;;
5590 esac
5591
5592
5593 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5594
5595 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5596 ## which has not been defined yet. When this was handled with cpp,
5597 ## it was expanded to null when configure sourced the s/*.h file.
5598 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5599 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5600 ## (or somesuch), but because it is supposed to go at the _front_
5601 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5602 ## Compare with the gnu-linux case below, which added to the end
5603 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5604 ## LD_SWITCH_SYSTEM_TEMACS.
5605 case "$opsys" in
5606 netbsd|openbsd)
5607 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5608 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5609 esac
5610
5611
5612 C_SWITCH_MACHINE=
5613 if test "$machine" = "alpha"; then
5614 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5615 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5616
5617 fi
5618
5619 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5620 ## With ELF, make sure that all common symbols get allocated to in the
5621 ## data section. Otherwise, the dump of temacs may miss variables in
5622 ## the shared library that have been initialized. For example, with
5623 ## GNU libc, __malloc_initialized would normally be resolved to the
5624 ## shared library's .bss section, which is fatal.
5625 if test "x$GCC" = "xyes"; then
5626 C_SWITCH_MACHINE="-fno-common"
5627 else
5628 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5629 fi
5630 else
5631 UNEXEC_OBJ=unexalpha.o
5632 fi
5633 fi
5634
5635
5636
5637
5638 C_SWITCH_SYSTEM=
5639 ## Some programs in src produce warnings saying certain subprograms
5640 ## are too complex and need a MAXMEM value greater than 2000 for
5641 ## additional optimization. --nils@exp-math.uni-essen.de
5642 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5643 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5644 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5645 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5646
5647
5648
5649 LIBS_SYSTEM=
5650 case "$opsys" in
5651 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5652 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5653
5654 freebsd) LIBS_SYSTEM="-lutil" ;;
5655
5656 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5657
5658 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5659
5660 ## Motif needs -lgen.
5661 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5662 esac
5663
5664
5665
5666 ### Make sure subsequent tests use flags consistent with the build flags.
5667
5668 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5669 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5670 else
5671 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5672 fi
5673
5674
5675
5676 # Check whether --enable-largefile was given.
5677 if test "${enable_largefile+set}" = set; then :
5678 enableval=$enable_largefile;
5679 fi
5680
5681 if test "$enable_largefile" != no; then
5682
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5684 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5685 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 ac_cv_sys_largefile_CC=no
5689 if test "$GCC" != yes; then
5690 ac_save_CC=$CC
5691 while :; do
5692 # IRIX 6.2 and later do not support large files by default,
5693 # so use the C compiler's -n32 option if that helps.
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 #include <sys/types.h>
5697 /* Check that off_t can represent 2**63 - 1 correctly.
5698 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5699 since some C++ compilers masquerading as C compilers
5700 incorrectly reject 9223372036854775807. */
5701 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5702 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5703 && LARGE_OFF_T % 2147483647 == 1)
5704 ? 1 : -1];
5705 int
5706 main ()
5707 {
5708
5709 ;
5710 return 0;
5711 }
5712 _ACEOF
5713 if ac_fn_c_try_compile "$LINENO"; then :
5714 break
5715 fi
5716 rm -f core conftest.err conftest.$ac_objext
5717 CC="$CC -n32"
5718 if ac_fn_c_try_compile "$LINENO"; then :
5719 ac_cv_sys_largefile_CC=' -n32'; break
5720 fi
5721 rm -f core conftest.err conftest.$ac_objext
5722 break
5723 done
5724 CC=$ac_save_CC
5725 rm -f conftest.$ac_ext
5726 fi
5727 fi
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5729 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5730 if test "$ac_cv_sys_largefile_CC" != no; then
5731 CC=$CC$ac_cv_sys_largefile_CC
5732 fi
5733
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5735 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5736 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 while :; do
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 #include <sys/types.h>
5743 /* Check that off_t can represent 2**63 - 1 correctly.
5744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5745 since some C++ compilers masquerading as C compilers
5746 incorrectly reject 9223372036854775807. */
5747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5749 && LARGE_OFF_T % 2147483647 == 1)
5750 ? 1 : -1];
5751 int
5752 main ()
5753 {
5754
5755 ;
5756 return 0;
5757 }
5758 _ACEOF
5759 if ac_fn_c_try_compile "$LINENO"; then :
5760 ac_cv_sys_file_offset_bits=no; break
5761 fi
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #define _FILE_OFFSET_BITS 64
5766 #include <sys/types.h>
5767 /* Check that off_t can represent 2**63 - 1 correctly.
5768 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5769 since some C++ compilers masquerading as C compilers
5770 incorrectly reject 9223372036854775807. */
5771 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5772 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5773 && LARGE_OFF_T % 2147483647 == 1)
5774 ? 1 : -1];
5775 int
5776 main ()
5777 {
5778
5779 ;
5780 return 0;
5781 }
5782 _ACEOF
5783 if ac_fn_c_try_compile "$LINENO"; then :
5784 ac_cv_sys_file_offset_bits=64; break
5785 fi
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 ac_cv_sys_file_offset_bits=unknown
5788 break
5789 done
5790 fi
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5792 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5793 case $ac_cv_sys_file_offset_bits in #(
5794 no | unknown) ;;
5795 *)
5796 cat >>confdefs.h <<_ACEOF
5797 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5798 _ACEOF
5799 ;;
5800 esac
5801 rm -rf conftest*
5802 if test $ac_cv_sys_file_offset_bits = unknown; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5804 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5805 if test "${ac_cv_sys_large_files+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 while :; do
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
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_large_files=no; break
5830 fi
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 #define _LARGE_FILES 1
5835 #include <sys/types.h>
5836 /* Check that off_t can represent 2**63 - 1 correctly.
5837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5838 since some C++ compilers masquerading as C compilers
5839 incorrectly reject 9223372036854775807. */
5840 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5842 && LARGE_OFF_T % 2147483647 == 1)
5843 ? 1 : -1];
5844 int
5845 main ()
5846 {
5847
5848 ;
5849 return 0;
5850 }
5851 _ACEOF
5852 if ac_fn_c_try_compile "$LINENO"; then :
5853 ac_cv_sys_large_files=1; break
5854 fi
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856 ac_cv_sys_large_files=unknown
5857 break
5858 done
5859 fi
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5861 $as_echo "$ac_cv_sys_large_files" >&6; }
5862 case $ac_cv_sys_large_files in #(
5863 no | unknown) ;;
5864 *)
5865 cat >>confdefs.h <<_ACEOF
5866 #define _LARGE_FILES $ac_cv_sys_large_files
5867 _ACEOF
5868 ;;
5869 esac
5870 rm -rf conftest*
5871 fi
5872 fi
5873
5874
5875
5876 ## If user specified a crt-dir, use that unconditionally.
5877 if test "X$CRT_DIR" = "X"; then
5878
5879 case "$canonical" in
5880 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5881 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5882 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5883 ## For anything else (eg /usr/lib32), it is up the user to specify
5884 ## the location (bug#5655).
5885 ## Test for crtn.o, not just the directory, because sometimes the
5886 ## directory exists but does not have the relevant files (bug#1287).
5887 ## FIXME better to test for binary compatibility somehow.
5888 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5889 ;;
5890
5891 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5892 esac
5893
5894 case "$opsys" in
5895 hpux10-20) CRT_DIR=/lib ;;
5896 esac
5897
5898 ## Default is /usr/lib.
5899 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5900
5901 else
5902
5903 ## Some platforms don't use any of these files, so it is not
5904 ## appropriate to put this test outside the if block.
5905 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5906 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
5907
5908 fi
5909
5910
5911
5912 LIB_MATH=-lm
5913 LIB_STANDARD=
5914 START_FILES=
5915
5916 case $opsys in
5917 cygwin )
5918 LIB_MATH=
5919 START_FILES='pre-crt0.o'
5920 ;;
5921 darwin )
5922 ## Adding -lm confuses the dynamic linker, so omit it.
5923 LIB_MATH=
5924 START_FILES='pre-crt0.o'
5925 ;;
5926 freebsd )
5927 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5928 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5929 ;;
5930 gnu-linux | gnu-kfreebsd )
5931 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5932 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5933 ;;
5934 hpux10-20 | hpux11 )
5935 LIB_STANDARD=-lc
5936 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5937 ;;
5938 netbsd | openbsd )
5939 if test -f $CRT_DIR/crti.o; then
5940 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5941 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5942 else
5943 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5944 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5945 fi
5946 ;;
5947 esac
5948
5949
5950
5951
5952
5953
5954
5955 if test "${with_sound}" != "no"; then
5956 # Sound support for GNU/Linux and the free BSDs.
5957 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5958 do :
5959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5960 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5961 eval as_val=\$$as_ac_Header
5962 if test "x$as_val" = x""yes; then :
5963 cat >>confdefs.h <<_ACEOF
5964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5965 _ACEOF
5966 have_sound_header=yes
5967 fi
5968
5969 done
5970
5971 # Emulation library used on NetBSD.
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5973 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5974 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 ac_check_lib_save_LIBS=$LIBS
5978 LIBS="-lossaudio $LIBS"
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981
5982 /* Override any GCC internal prototype to avoid an error.
5983 Use char because int might match the return type of a GCC
5984 builtin and then its argument prototype would still apply. */
5985 #ifdef __cplusplus
5986 extern "C"
5987 #endif
5988 char _oss_ioctl ();
5989 int
5990 main ()
5991 {
5992 return _oss_ioctl ();
5993 ;
5994 return 0;
5995 }
5996 _ACEOF
5997 if ac_fn_c_try_link "$LINENO"; then :
5998 ac_cv_lib_ossaudio__oss_ioctl=yes
5999 else
6000 ac_cv_lib_ossaudio__oss_ioctl=no
6001 fi
6002 rm -f core conftest.err conftest.$ac_objext \
6003 conftest$ac_exeext conftest.$ac_ext
6004 LIBS=$ac_check_lib_save_LIBS
6005 fi
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6007 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6008 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
6009 LIBSOUND=-lossaudio
6010 else
6011 LIBSOUND=
6012 fi
6013
6014
6015
6016 ALSA_REQUIRED=1.0.0
6017 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6018
6019 succeeded=no
6020
6021 # Extract the first word of "pkg-config", so it can be a program name with args.
6022 set dummy pkg-config; ac_word=$2
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024 $as_echo_n "checking for $ac_word... " >&6; }
6025 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6026 $as_echo_n "(cached) " >&6
6027 else
6028 case $PKG_CONFIG in
6029 [\\/]* | ?:[\\/]*)
6030 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6031 ;;
6032 *)
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036 IFS=$as_save_IFS
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 break 2
6043 fi
6044 done
6045 done
6046 IFS=$as_save_IFS
6047
6048 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6049 ;;
6050 esac
6051 fi
6052 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6053 if test -n "$PKG_CONFIG"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6055 $as_echo "$PKG_CONFIG" >&6; }
6056 else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6059 fi
6060
6061
6062
6063 if test "$PKG_CONFIG" = "no" ; then
6064 HAVE_ALSA=no
6065 else
6066 PKG_CONFIG_MIN_VERSION=0.9.0
6067 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6069 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6070
6071 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6073 $as_echo "yes" >&6; }
6074 succeeded=yes
6075
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6077 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6078 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6080 $as_echo "$ALSA_CFLAGS" >&6; }
6081
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6083 $as_echo_n "checking ALSA_LIBS... " >&6; }
6084 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6086 $as_echo "$ALSA_LIBS" >&6; }
6087 else
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6090 ALSA_CFLAGS=""
6091 ALSA_LIBS=""
6092 ## If we have a custom action on failure, don't print errors, but
6093 ## do set a variable so people can do so.
6094 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6095
6096 fi
6097
6098
6099
6100 else
6101 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6102 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6103 fi
6104 fi
6105
6106 if test $succeeded = yes; then
6107 HAVE_ALSA=yes
6108 else
6109 HAVE_ALSA=no
6110 fi
6111
6112 if test $HAVE_ALSA = yes; then
6113 SAVE_CFLAGS="$CFLAGS"
6114 SAVE_LDFLAGS="$LDFLAGS"
6115 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6116 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6119 #include <asoundlib.h>
6120 int
6121 main ()
6122 {
6123 snd_lib_error_set_handler (0);
6124 ;
6125 return 0;
6126 }
6127 _ACEOF
6128 if ac_fn_c_try_compile "$LINENO"; then :
6129 emacs_alsa_normal=yes
6130 else
6131 emacs_alsa_normal=no
6132 fi
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 if test "$emacs_alsa_normal" != yes; then
6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h. */
6137 #include <alsa/asoundlib.h>
6138 int
6139 main ()
6140 {
6141 snd_lib_error_set_handler (0);
6142 ;
6143 return 0;
6144 }
6145 _ACEOF
6146 if ac_fn_c_try_compile "$LINENO"; then :
6147 emacs_alsa_subdir=yes
6148 else
6149 emacs_alsa_subdir=no
6150 fi
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6152 if test "$emacs_alsa_subdir" != yes; then
6153 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6154 fi
6155 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6156 fi
6157
6158 CFLAGS="$SAVE_CFLAGS"
6159 LDFLAGS="$SAVE_LDFLAGS"
6160 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6161 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6162
6163 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6164
6165 fi
6166
6167 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6168 case "$opsys" in
6169 gnu-linux|freebsd|netbsd)
6170
6171 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6172
6173 ;;
6174 esac
6175 fi
6176
6177
6178 fi
6179
6180 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
6181 linux/version.h sys/systeminfo.h limits.h \
6182 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
6183 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6184 sys/utsname.h pwd.h utmp.h dirent.h util.h
6185 do :
6186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6187 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6188 eval as_val=\$$as_ac_Header
6189 if test "x$as_val" = x""yes; then :
6190 cat >>confdefs.h <<_ACEOF
6191 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6192 _ACEOF
6193
6194 fi
6195
6196 done
6197
6198
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6200 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6203 #include <sys/personality.h>
6204 int
6205 main ()
6206 {
6207 personality (PER_LINUX32)
6208 ;
6209 return 0;
6210 }
6211 _ACEOF
6212 if ac_fn_c_try_compile "$LINENO"; then :
6213 emacs_cv_personality_linux32=yes
6214 else
6215 emacs_cv_personality_linux32=no
6216 fi
6217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6219 $as_echo "$emacs_cv_personality_linux32" >&6; }
6220
6221 if test $emacs_cv_personality_linux32 = yes; then
6222
6223 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6224
6225 fi
6226
6227 for ac_header in term.h
6228 do :
6229 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6230 if test "x$ac_cv_header_term_h" = x""yes; then :
6231 cat >>confdefs.h <<_ACEOF
6232 #define HAVE_TERM_H 1
6233 _ACEOF
6234
6235 fi
6236
6237 done
6238
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6240 $as_echo_n "checking for ANSI C header files... " >&6; }
6241 if test "${ac_cv_header_stdc+set}" = set; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246 #include <stdlib.h>
6247 #include <stdarg.h>
6248 #include <string.h>
6249 #include <float.h>
6250
6251 int
6252 main ()
6253 {
6254
6255 ;
6256 return 0;
6257 }
6258 _ACEOF
6259 if ac_fn_c_try_compile "$LINENO"; then :
6260 ac_cv_header_stdc=yes
6261 else
6262 ac_cv_header_stdc=no
6263 fi
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265
6266 if test $ac_cv_header_stdc = yes; then
6267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 #include <string.h>
6271
6272 _ACEOF
6273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6274 $EGREP "memchr" >/dev/null 2>&1; then :
6275
6276 else
6277 ac_cv_header_stdc=no
6278 fi
6279 rm -f conftest*
6280
6281 fi
6282
6283 if test $ac_cv_header_stdc = yes; then
6284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6287 #include <stdlib.h>
6288
6289 _ACEOF
6290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6291 $EGREP "free" >/dev/null 2>&1; then :
6292
6293 else
6294 ac_cv_header_stdc=no
6295 fi
6296 rm -f conftest*
6297
6298 fi
6299
6300 if test $ac_cv_header_stdc = yes; then
6301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6302 if test "$cross_compiling" = yes; then :
6303 :
6304 else
6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306 /* end confdefs.h. */
6307 #include <ctype.h>
6308 #include <stdlib.h>
6309 #if ((' ' & 0x0FF) == 0x020)
6310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6312 #else
6313 # define ISLOWER(c) \
6314 (('a' <= (c) && (c) <= 'i') \
6315 || ('j' <= (c) && (c) <= 'r') \
6316 || ('s' <= (c) && (c) <= 'z'))
6317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6318 #endif
6319
6320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6321 int
6322 main ()
6323 {
6324 int i;
6325 for (i = 0; i < 256; i++)
6326 if (XOR (islower (i), ISLOWER (i))
6327 || toupper (i) != TOUPPER (i))
6328 return 2;
6329 return 0;
6330 }
6331 _ACEOF
6332 if ac_fn_c_try_run "$LINENO"; then :
6333
6334 else
6335 ac_cv_header_stdc=no
6336 fi
6337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6338 conftest.$ac_objext conftest.beam conftest.$ac_ext
6339 fi
6340
6341 fi
6342 fi
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6344 $as_echo "$ac_cv_header_stdc" >&6; }
6345 if test $ac_cv_header_stdc = yes; then
6346
6347 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6348
6349 fi
6350
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6352 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6353 if test "${ac_cv_header_time+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6358 #include <sys/types.h>
6359 #include <sys/time.h>
6360 #include <time.h>
6361
6362 int
6363 main ()
6364 {
6365 if ((struct tm *) 0)
6366 return 0;
6367 ;
6368 return 0;
6369 }
6370 _ACEOF
6371 if ac_fn_c_try_compile "$LINENO"; then :
6372 ac_cv_header_time=yes
6373 else
6374 ac_cv_header_time=no
6375 fi
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377 fi
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6379 $as_echo "$ac_cv_header_time" >&6; }
6380 if test $ac_cv_header_time = yes; then
6381
6382 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6383
6384 fi
6385
6386 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6387 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6388 ac_have_decl=1
6389 else
6390 ac_have_decl=0
6391 fi
6392
6393 cat >>confdefs.h <<_ACEOF
6394 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6395 _ACEOF
6396
6397 if test $ac_cv_have_decl_sys_siglist != yes; then
6398 # For Tru64, at least:
6399 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6400 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6401 ac_have_decl=1
6402 else
6403 ac_have_decl=0
6404 fi
6405
6406 cat >>confdefs.h <<_ACEOF
6407 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6408 _ACEOF
6409
6410 if test $ac_cv_have_decl___sys_siglist = yes; then
6411
6412 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6413
6414 fi
6415 fi
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6417 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6418 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 #include <sys/types.h>
6424 #include <sys/wait.h>
6425 #ifndef WEXITSTATUS
6426 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6427 #endif
6428 #ifndef WIFEXITED
6429 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6430 #endif
6431
6432 int
6433 main ()
6434 {
6435 int s;
6436 wait (&s);
6437 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6438 ;
6439 return 0;
6440 }
6441 _ACEOF
6442 if ac_fn_c_try_compile "$LINENO"; then :
6443 ac_cv_header_sys_wait_h=yes
6444 else
6445 ac_cv_header_sys_wait_h=no
6446 fi
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 fi
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6450 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6451 if test $ac_cv_header_sys_wait_h = yes; then
6452
6453 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6454
6455 fi
6456
6457
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6459 $as_echo_n "checking for struct utimbuf... " >&6; }
6460 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465 #ifdef TIME_WITH_SYS_TIME
6466 #include <sys/time.h>
6467 #include <time.h>
6468 #else
6469 #ifdef HAVE_SYS_TIME_H
6470 #include <sys/time.h>
6471 #else
6472 #include <time.h>
6473 #endif
6474 #endif
6475 #ifdef HAVE_UTIME_H
6476 #include <utime.h>
6477 #endif
6478 int
6479 main ()
6480 {
6481 static struct utimbuf x; x.actime = x.modtime;
6482 ;
6483 return 0;
6484 }
6485 _ACEOF
6486 if ac_fn_c_try_compile "$LINENO"; then :
6487 emacs_cv_struct_utimbuf=yes
6488 else
6489 emacs_cv_struct_utimbuf=no
6490 fi
6491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492 fi
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6494 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6495 if test $emacs_cv_struct_utimbuf = yes; then
6496
6497 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6498
6499 fi
6500
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6502 $as_echo_n "checking return type of signal handlers... " >&6; }
6503 if test "${ac_cv_type_signal+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508 #include <sys/types.h>
6509 #include <signal.h>
6510
6511 int
6512 main ()
6513 {
6514 return *(signal (0, 0)) (0) == 1;
6515 ;
6516 return 0;
6517 }
6518 _ACEOF
6519 if ac_fn_c_try_compile "$LINENO"; then :
6520 ac_cv_type_signal=int
6521 else
6522 ac_cv_type_signal=void
6523 fi
6524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 fi
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6527 $as_echo "$ac_cv_type_signal" >&6; }
6528
6529 cat >>confdefs.h <<_ACEOF
6530 #define RETSIGTYPE $ac_cv_type_signal
6531 _ACEOF
6532
6533
6534
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6536 $as_echo_n "checking for speed_t... " >&6; }
6537 if test "${emacs_cv_speed_t+set}" = set; then :
6538 $as_echo_n "(cached) " >&6
6539 else
6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h. */
6542 #include <termios.h>
6543 int
6544 main ()
6545 {
6546 speed_t x = 1;
6547 ;
6548 return 0;
6549 }
6550 _ACEOF
6551 if ac_fn_c_try_compile "$LINENO"; then :
6552 emacs_cv_speed_t=yes
6553 else
6554 emacs_cv_speed_t=no
6555 fi
6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557 fi
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6559 $as_echo "$emacs_cv_speed_t" >&6; }
6560 if test $emacs_cv_speed_t = yes; then
6561
6562 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6563
6564 fi
6565
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6567 $as_echo_n "checking for struct timeval... " >&6; }
6568 if test "${emacs_cv_struct_timeval+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573 #ifdef TIME_WITH_SYS_TIME
6574 #include <sys/time.h>
6575 #include <time.h>
6576 #else
6577 #ifdef HAVE_SYS_TIME_H
6578 #include <sys/time.h>
6579 #else
6580 #include <time.h>
6581 #endif
6582 #endif
6583 int
6584 main ()
6585 {
6586 static struct timeval x; x.tv_sec = x.tv_usec;
6587 ;
6588 return 0;
6589 }
6590 _ACEOF
6591 if ac_fn_c_try_compile "$LINENO"; then :
6592 emacs_cv_struct_timeval=yes
6593 else
6594 emacs_cv_struct_timeval=no
6595 fi
6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 fi
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6599 $as_echo "$emacs_cv_struct_timeval" >&6; }
6600 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6601 if test $emacs_cv_struct_timeval = yes; then
6602
6603 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6604
6605 fi
6606
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6608 $as_echo_n "checking for struct exception... " >&6; }
6609 if test "${emacs_cv_struct_exception+set}" = set; then :
6610 $as_echo_n "(cached) " >&6
6611 else
6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6614 #include <math.h>
6615 int
6616 main ()
6617 {
6618 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6619 ;
6620 return 0;
6621 }
6622 _ACEOF
6623 if ac_fn_c_try_compile "$LINENO"; then :
6624 emacs_cv_struct_exception=yes
6625 else
6626 emacs_cv_struct_exception=no
6627 fi
6628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 fi
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6631 $as_echo "$emacs_cv_struct_exception" >&6; }
6632 HAVE_EXCEPTION=$emacs_cv_struct_exception
6633 if test $emacs_cv_struct_exception != yes; then
6634
6635 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6636
6637 fi
6638
6639 for ac_header in sys/socket.h
6640 do :
6641 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6642 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6643 cat >>confdefs.h <<_ACEOF
6644 #define HAVE_SYS_SOCKET_H 1
6645 _ACEOF
6646
6647 fi
6648
6649 done
6650
6651 for ac_header in net/if.h
6652 do :
6653 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6654 #if HAVE_SYS_SOCKET_H
6655 #include <sys/socket.h>
6656 #endif
6657 "
6658 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6659 cat >>confdefs.h <<_ACEOF
6660 #define HAVE_NET_IF_H 1
6661 _ACEOF
6662
6663 fi
6664
6665 done
6666
6667
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6669 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6670 if test "${ac_cv_struct_tm+set}" = set; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6675 #include <sys/types.h>
6676 #include <time.h>
6677
6678 int
6679 main ()
6680 {
6681 struct tm tm;
6682 int *p = &tm.tm_sec;
6683 return !p;
6684 ;
6685 return 0;
6686 }
6687 _ACEOF
6688 if ac_fn_c_try_compile "$LINENO"; then :
6689 ac_cv_struct_tm=time.h
6690 else
6691 ac_cv_struct_tm=sys/time.h
6692 fi
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 fi
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6696 $as_echo "$ac_cv_struct_tm" >&6; }
6697 if test $ac_cv_struct_tm = sys/time.h; then
6698
6699 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6700
6701 fi
6702
6703 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6704 #include <$ac_cv_struct_tm>
6705
6706 "
6707 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6708
6709 cat >>confdefs.h <<_ACEOF
6710 #define HAVE_STRUCT_TM_TM_ZONE 1
6711 _ACEOF
6712
6713
6714 fi
6715
6716 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6717
6718 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6719
6720 else
6721 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6722 "
6723 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6724 ac_have_decl=1
6725 else
6726 ac_have_decl=0
6727 fi
6728
6729 cat >>confdefs.h <<_ACEOF
6730 #define HAVE_DECL_TZNAME $ac_have_decl
6731 _ACEOF
6732
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6734 $as_echo_n "checking for tzname... " >&6; }
6735 if test "${ac_cv_var_tzname+set}" = set; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6740 #include <time.h>
6741 #if !HAVE_DECL_TZNAME
6742 extern char *tzname[];
6743 #endif
6744
6745 int
6746 main ()
6747 {
6748 return tzname[0][0];
6749 ;
6750 return 0;
6751 }
6752 _ACEOF
6753 if ac_fn_c_try_link "$LINENO"; then :
6754 ac_cv_var_tzname=yes
6755 else
6756 ac_cv_var_tzname=no
6757 fi
6758 rm -f core conftest.err conftest.$ac_objext \
6759 conftest$ac_exeext conftest.$ac_ext
6760 fi
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6762 $as_echo "$ac_cv_var_tzname" >&6; }
6763 if test $ac_cv_var_tzname = yes; then
6764
6765 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6766
6767 fi
6768 fi
6769
6770 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6771 "
6772 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6773
6774 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6775
6776 fi
6777
6778 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6779 #if HAVE_SYS_SOCKET_H
6780 #include <sys/socket.h>
6781 #endif
6782 #if HAVE_NET_IF_H
6783 #include <net/if.h>
6784 #endif
6785 "
6786 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6787
6788 cat >>confdefs.h <<_ACEOF
6789 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6790 _ACEOF
6791
6792
6793 fi
6794 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6795 #if HAVE_SYS_SOCKET_H
6796 #include <sys/socket.h>
6797 #endif
6798 #if HAVE_NET_IF_H
6799 #include <net/if.h>
6800 #endif
6801 "
6802 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6803
6804 cat >>confdefs.h <<_ACEOF
6805 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6806 _ACEOF
6807
6808
6809 fi
6810 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6811 #if HAVE_SYS_SOCKET_H
6812 #include <sys/socket.h>
6813 #endif
6814 #if HAVE_NET_IF_H
6815 #include <net/if.h>
6816 #endif
6817 "
6818 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6819
6820 cat >>confdefs.h <<_ACEOF
6821 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6822 _ACEOF
6823
6824
6825 fi
6826 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6827 #if HAVE_SYS_SOCKET_H
6828 #include <sys/socket.h>
6829 #endif
6830 #if HAVE_NET_IF_H
6831 #include <net/if.h>
6832 #endif
6833 "
6834 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6835
6836 cat >>confdefs.h <<_ACEOF
6837 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6838 _ACEOF
6839
6840
6841 fi
6842 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6843 #if HAVE_SYS_SOCKET_H
6844 #include <sys/socket.h>
6845 #endif
6846 #if HAVE_NET_IF_H
6847 #include <net/if.h>
6848 #endif
6849 "
6850 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6851
6852 cat >>confdefs.h <<_ACEOF
6853 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6854 _ACEOF
6855
6856
6857 fi
6858
6859
6860
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6862 $as_echo_n "checking for function prototypes... " >&6; }
6863 if test "$ac_cv_prog_cc_c89" != no; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6865 $as_echo "yes" >&6; }
6866
6867 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6868
6869
6870 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6871
6872 else
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6875 fi
6876
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6878 $as_echo_n "checking for working volatile... " >&6; }
6879 if test "${ac_cv_c_volatile+set}" = set; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6884
6885 int
6886 main ()
6887 {
6888
6889 volatile int x;
6890 int * volatile y = (int *) 0;
6891 return !x && !y;
6892 ;
6893 return 0;
6894 }
6895 _ACEOF
6896 if ac_fn_c_try_compile "$LINENO"; then :
6897 ac_cv_c_volatile=yes
6898 else
6899 ac_cv_c_volatile=no
6900 fi
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 fi
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6904 $as_echo "$ac_cv_c_volatile" >&6; }
6905 if test $ac_cv_c_volatile = no; then
6906
6907 $as_echo "#define volatile /**/" >>confdefs.h
6908
6909 fi
6910
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6912 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6913 if test "${ac_cv_c_const+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6918
6919 int
6920 main ()
6921 {
6922 /* FIXME: Include the comments suggested by Paul. */
6923 #ifndef __cplusplus
6924 /* Ultrix mips cc rejects this. */
6925 typedef int charset[2];
6926 const charset cs;
6927 /* SunOS 4.1.1 cc rejects this. */
6928 char const *const *pcpcc;
6929 char **ppc;
6930 /* NEC SVR4.0.2 mips cc rejects this. */
6931 struct point {int x, y;};
6932 static struct point const zero = {0,0};
6933 /* AIX XL C 1.02.0.0 rejects this.
6934 It does not let you subtract one const X* pointer from another in
6935 an arm of an if-expression whose if-part is not a constant
6936 expression */
6937 const char *g = "string";
6938 pcpcc = &g + (g ? g-g : 0);
6939 /* HPUX 7.0 cc rejects these. */
6940 ++pcpcc;
6941 ppc = (char**) pcpcc;
6942 pcpcc = (char const *const *) ppc;
6943 { /* SCO 3.2v4 cc rejects this. */
6944 char *t;
6945 char const *s = 0 ? (char *) 0 : (char const *) 0;
6946
6947 *t++ = 0;
6948 if (s) return 0;
6949 }
6950 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6951 int x[] = {25, 17};
6952 const int *foo = &x[0];
6953 ++foo;
6954 }
6955 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6956 typedef const int *iptr;
6957 iptr p = 0;
6958 ++p;
6959 }
6960 { /* AIX XL C 1.02.0.0 rejects this saying
6961 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6962 struct s { int j; const int *ap[3]; };
6963 struct s *b; b->j = 5;
6964 }
6965 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6966 const int foo = 10;
6967 if (!foo) return 0;
6968 }
6969 return !cs[0] && !zero.x;
6970 #endif
6971
6972 ;
6973 return 0;
6974 }
6975 _ACEOF
6976 if ac_fn_c_try_compile "$LINENO"; then :
6977 ac_cv_c_const=yes
6978 else
6979 ac_cv_c_const=no
6980 fi
6981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 fi
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6984 $as_echo "$ac_cv_c_const" >&6; }
6985 if test $ac_cv_c_const = no; then
6986
6987 $as_echo "#define const /**/" >>confdefs.h
6988
6989 fi
6990
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6992 $as_echo_n "checking for void * support... " >&6; }
6993 if test "${emacs_cv_void_star+set}" = set; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
6998
6999 int
7000 main ()
7001 {
7002 void * foo;
7003 ;
7004 return 0;
7005 }
7006 _ACEOF
7007 if ac_fn_c_try_compile "$LINENO"; then :
7008 emacs_cv_void_star=yes
7009 else
7010 emacs_cv_void_star=no
7011 fi
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013 fi
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7015 $as_echo "$emacs_cv_void_star" >&6; }
7016 if test $emacs_cv_void_star = yes; then
7017 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7018
7019 else
7020 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7021
7022 fi
7023
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7025 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7026 if test "${ac_cv_c_bigendian+set}" = set; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 ac_cv_c_bigendian=unknown
7030 # See if we're dealing with a universal compiler.
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7033 #ifndef __APPLE_CC__
7034 not a universal capable compiler
7035 #endif
7036 typedef int dummy;
7037
7038 _ACEOF
7039 if ac_fn_c_try_compile "$LINENO"; then :
7040
7041 # Check for potential -arch flags. It is not universal unless
7042 # there are at least two -arch flags with different values.
7043 ac_arch=
7044 ac_prev=
7045 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7046 if test -n "$ac_prev"; then
7047 case $ac_word in
7048 i?86 | x86_64 | ppc | ppc64)
7049 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7050 ac_arch=$ac_word
7051 else
7052 ac_cv_c_bigendian=universal
7053 break
7054 fi
7055 ;;
7056 esac
7057 ac_prev=
7058 elif test "x$ac_word" = "x-arch"; then
7059 ac_prev=arch
7060 fi
7061 done
7062 fi
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7064 if test $ac_cv_c_bigendian = unknown; then
7065 # See if sys/param.h defines the BYTE_ORDER macro.
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7068 #include <sys/types.h>
7069 #include <sys/param.h>
7070
7071 int
7072 main ()
7073 {
7074 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7075 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7076 && LITTLE_ENDIAN)
7077 bogus endian macros
7078 #endif
7079
7080 ;
7081 return 0;
7082 }
7083 _ACEOF
7084 if ac_fn_c_try_compile "$LINENO"; then :
7085 # It does; now see whether it defined to BIG_ENDIAN or not.
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7088 #include <sys/types.h>
7089 #include <sys/param.h>
7090
7091 int
7092 main ()
7093 {
7094 #if BYTE_ORDER != BIG_ENDIAN
7095 not big endian
7096 #endif
7097
7098 ;
7099 return 0;
7100 }
7101 _ACEOF
7102 if ac_fn_c_try_compile "$LINENO"; then :
7103 ac_cv_c_bigendian=yes
7104 else
7105 ac_cv_c_bigendian=no
7106 fi
7107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7108 fi
7109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7110 fi
7111 if test $ac_cv_c_bigendian = unknown; then
7112 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7115 #include <limits.h>
7116
7117 int
7118 main ()
7119 {
7120 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7121 bogus endian macros
7122 #endif
7123
7124 ;
7125 return 0;
7126 }
7127 _ACEOF
7128 if ac_fn_c_try_compile "$LINENO"; then :
7129 # It does; now see whether it defined to _BIG_ENDIAN or not.
7130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7131 /* end confdefs.h. */
7132 #include <limits.h>
7133
7134 int
7135 main ()
7136 {
7137 #ifndef _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 # Compile a test program.
7156 if test "$cross_compiling" = yes; then :
7157 # Try to guess by grepping values from an object file.
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7160 short int ascii_mm[] =
7161 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7162 short int ascii_ii[] =
7163 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7164 int use_ascii (int i) {
7165 return ascii_mm[i] + ascii_ii[i];
7166 }
7167 short int ebcdic_ii[] =
7168 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7169 short int ebcdic_mm[] =
7170 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7171 int use_ebcdic (int i) {
7172 return ebcdic_mm[i] + ebcdic_ii[i];
7173 }
7174 extern int foo;
7175
7176 int
7177 main ()
7178 {
7179 return use_ascii (foo) == use_ebcdic (foo);
7180 ;
7181 return 0;
7182 }
7183 _ACEOF
7184 if ac_fn_c_try_compile "$LINENO"; then :
7185 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7186 ac_cv_c_bigendian=yes
7187 fi
7188 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7189 if test "$ac_cv_c_bigendian" = unknown; then
7190 ac_cv_c_bigendian=no
7191 else
7192 # finding both strings is unlikely to happen, but who knows?
7193 ac_cv_c_bigendian=unknown
7194 fi
7195 fi
7196 fi
7197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198 else
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7201 $ac_includes_default
7202 int
7203 main ()
7204 {
7205
7206 /* Are we little or big endian? From Harbison&Steele. */
7207 union
7208 {
7209 long int l;
7210 char c[sizeof (long int)];
7211 } u;
7212 u.l = 1;
7213 return u.c[sizeof (long int) - 1] == 1;
7214
7215 ;
7216 return 0;
7217 }
7218 _ACEOF
7219 if ac_fn_c_try_run "$LINENO"; then :
7220 ac_cv_c_bigendian=no
7221 else
7222 ac_cv_c_bigendian=yes
7223 fi
7224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7225 conftest.$ac_objext conftest.beam conftest.$ac_ext
7226 fi
7227
7228 fi
7229 fi
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7231 $as_echo "$ac_cv_c_bigendian" >&6; }
7232 case $ac_cv_c_bigendian in #(
7233 yes)
7234 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7235 ;; #(
7236 no)
7237 ;; #(
7238 universal)
7239
7240 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7241
7242 ;; #(
7243 *)
7244 as_fn_error "unknown endianness
7245 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7246 esac
7247
7248
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7250 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7251 set x ${MAKE-make}
7252 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7253 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 cat >conftest.make <<\_ACEOF
7257 SHELL = /bin/sh
7258 all:
7259 @echo '@@@%%%=$(MAKE)=@@@%%%'
7260 _ACEOF
7261 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7262 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7263 *@@@%%%=?*=@@@%%%*)
7264 eval ac_cv_prog_make_${ac_make}_set=yes;;
7265 *)
7266 eval ac_cv_prog_make_${ac_make}_set=no;;
7267 esac
7268 rm -f conftest.make
7269 fi
7270 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7272 $as_echo "yes" >&6; }
7273 SET_MAKE=
7274 else
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7277 SET_MAKE="MAKE=${MAKE-make}"
7278 fi
7279
7280
7281 DEPFLAGS=
7282 MKDEPDIR=":"
7283 deps_frag=deps.mk
7284 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7286 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7287 HAVE_GNU_MAKE=no
7288 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7289 if test "x$testval" != x; then
7290 HAVE_GNU_MAKE=yes
7291 else
7292 ac_enable_autodepend=no
7293 fi
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7295 $as_echo "$HAVE_GNU_MAKE" >&6; }
7296 if test $HAVE_GNU_MAKE = yes; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7298 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7299 SAVE_CFLAGS="$CFLAGS"
7300 CFLAGS="$CFLAGS -MMD -MF deps.d"
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7303
7304 int
7305 main ()
7306 {
7307
7308 ;
7309 return 0;
7310 }
7311 _ACEOF
7312 if ac_fn_c_try_compile "$LINENO"; then :
7313
7314 else
7315 ac_enable_autodepend=no
7316 fi
7317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318 CFLAGS="$SAVE_CFLAGS"
7319 test -f deps.d || ac_enable_autodepend=no
7320 rm -rf deps.d
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7322 $as_echo "$ac_enable_autodepend" >&6; }
7323 fi
7324 if test $ac_enable_autodepend = yes; then
7325 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7326 ## In parallel builds, another make might create depdir between
7327 ## the first test and mkdir, so stick another test on the end.
7328 ## Or use mkinstalldirs? mkdir -p is not portable.
7329 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7330 deps_frag=autodeps.mk
7331 fi
7332 fi
7333 deps_frag=$srcdir/src/$deps_frag
7334
7335
7336
7337
7338
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7340 $as_echo_n "checking for long file names... " >&6; }
7341 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7342 $as_echo_n "(cached) " >&6
7343 else
7344 ac_cv_sys_long_file_names=yes
7345 # Test for long file names in all the places we know might matter:
7346 # . the current directory, where building will happen
7347 # $prefix/lib where we will be installing things
7348 # $exec_prefix/lib likewise
7349 # $TMPDIR if set, where it might want to write temporary files
7350 # /tmp where it might want to write temporary files
7351 # /var/tmp likewise
7352 # /usr/tmp likewise
7353 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7354 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7355 # in the usual case where exec_prefix is '${prefix}'.
7356 case $ac_dir in #(
7357 . | /* | ?:[\\/]*) ;; #(
7358 *) continue;;
7359 esac
7360 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7361 ac_xdir=$ac_dir/cf$$
7362 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7363 ac_tf1=$ac_xdir/conftest9012345
7364 ac_tf2=$ac_xdir/conftest9012346
7365 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7366 ac_cv_sys_long_file_names=no
7367 rm -f -r "$ac_xdir" 2>/dev/null
7368 test $ac_cv_sys_long_file_names = no && break
7369 done
7370 fi
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7372 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7373 if test $ac_cv_sys_long_file_names = yes; then
7374
7375 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7376
7377 fi
7378
7379
7380 #### Choose a window system.
7381
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7383 $as_echo_n "checking for X... " >&6; }
7384
7385
7386 # Check whether --with-x was given.
7387 if test "${with_x+set}" = set; then :
7388 withval=$with_x;
7389 fi
7390
7391 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7392 if test "x$with_x" = xno; then
7393 # The user explicitly disabled X.
7394 have_x=disabled
7395 else
7396 case $x_includes,$x_libraries in #(
7397 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7398 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401 # One or both of the vars are not set, and there is no cached value.
7402 ac_x_includes=no ac_x_libraries=no
7403 rm -f -r conftest.dir
7404 if mkdir conftest.dir; then
7405 cd conftest.dir
7406 cat >Imakefile <<'_ACEOF'
7407 incroot:
7408 @echo incroot='${INCROOT}'
7409 usrlibdir:
7410 @echo usrlibdir='${USRLIBDIR}'
7411 libdir:
7412 @echo libdir='${LIBDIR}'
7413 _ACEOF
7414 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7415 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7416 for ac_var in incroot usrlibdir libdir; do
7417 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7418 done
7419 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7420 for ac_extension in a so sl dylib la dll; do
7421 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7422 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7423 ac_im_usrlibdir=$ac_im_libdir; break
7424 fi
7425 done
7426 # Screen out bogus values from the imake configuration. They are
7427 # bogus both because they are the default anyway, and because
7428 # using them would break gcc on systems where it needs fixed includes.
7429 case $ac_im_incroot in
7430 /usr/include) ac_x_includes= ;;
7431 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7432 esac
7433 case $ac_im_usrlibdir in
7434 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7435 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7436 esac
7437 fi
7438 cd ..
7439 rm -f -r conftest.dir
7440 fi
7441
7442 # Standard set of common directories for X headers.
7443 # Check X11 before X11Rn because it is often a symlink to the current release.
7444 ac_x_header_dirs='
7445 /usr/X11/include
7446 /usr/X11R7/include
7447 /usr/X11R6/include
7448 /usr/X11R5/include
7449 /usr/X11R4/include
7450
7451 /usr/include/X11
7452 /usr/include/X11R7
7453 /usr/include/X11R6
7454 /usr/include/X11R5
7455 /usr/include/X11R4
7456
7457 /usr/local/X11/include
7458 /usr/local/X11R7/include
7459 /usr/local/X11R6/include
7460 /usr/local/X11R5/include
7461 /usr/local/X11R4/include
7462
7463 /usr/local/include/X11
7464 /usr/local/include/X11R7
7465 /usr/local/include/X11R6
7466 /usr/local/include/X11R5
7467 /usr/local/include/X11R4
7468
7469 /usr/X386/include
7470 /usr/x386/include
7471 /usr/XFree86/include/X11
7472
7473 /usr/include
7474 /usr/local/include
7475 /usr/unsupported/include
7476 /usr/athena/include
7477 /usr/local/x11r5/include
7478 /usr/lpp/Xamples/include
7479
7480 /usr/openwin/include
7481 /usr/openwin/share/include'
7482
7483 if test "$ac_x_includes" = no; then
7484 # Guess where to find include files, by looking for Xlib.h.
7485 # First, try using that file with no special directory specified.
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7488 #include <X11/Xlib.h>
7489 _ACEOF
7490 if ac_fn_c_try_cpp "$LINENO"; then :
7491 # We can compile using X headers with no special include directory.
7492 ac_x_includes=
7493 else
7494 for ac_dir in $ac_x_header_dirs; do
7495 if test -r "$ac_dir/X11/Xlib.h"; then
7496 ac_x_includes=$ac_dir
7497 break
7498 fi
7499 done
7500 fi
7501 rm -f conftest.err conftest.$ac_ext
7502 fi # $ac_x_includes = no
7503
7504 if test "$ac_x_libraries" = no; then
7505 # Check for the libraries.
7506 # See if we find them without any special options.
7507 # Don't add to $LIBS permanently.
7508 ac_save_LIBS=$LIBS
7509 LIBS="-lX11 $LIBS"
7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7512 #include <X11/Xlib.h>
7513 int
7514 main ()
7515 {
7516 XrmInitialize ()
7517 ;
7518 return 0;
7519 }
7520 _ACEOF
7521 if ac_fn_c_try_link "$LINENO"; then :
7522 LIBS=$ac_save_LIBS
7523 # We can link X programs with no special library path.
7524 ac_x_libraries=
7525 else
7526 LIBS=$ac_save_LIBS
7527 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7528 do
7529 # Don't even attempt the hair of trying to link an X program!
7530 for ac_extension in a so sl dylib la dll; do
7531 if test -r "$ac_dir/libX11.$ac_extension"; then
7532 ac_x_libraries=$ac_dir
7533 break 2
7534 fi
7535 done
7536 done
7537 fi
7538 rm -f core conftest.err conftest.$ac_objext \
7539 conftest$ac_exeext conftest.$ac_ext
7540 fi # $ac_x_libraries = no
7541
7542 case $ac_x_includes,$ac_x_libraries in #(
7543 no,* | *,no | *\'*)
7544 # Didn't find X, or a directory has "'" in its name.
7545 ac_cv_have_x="have_x=no";; #(
7546 *)
7547 # Record where we found X for the cache.
7548 ac_cv_have_x="have_x=yes\
7549 ac_x_includes='$ac_x_includes'\
7550 ac_x_libraries='$ac_x_libraries'"
7551 esac
7552 fi
7553 ;; #(
7554 *) have_x=yes;;
7555 esac
7556 eval "$ac_cv_have_x"
7557 fi # $with_x != no
7558
7559 if test "$have_x" != yes; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7561 $as_echo "$have_x" >&6; }
7562 no_x=yes
7563 else
7564 # If each of the values was on the command line, it overrides each guess.
7565 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7566 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7567 # Update the cache value to reflect the command line values.
7568 ac_cv_have_x="have_x=yes\
7569 ac_x_includes='$x_includes'\
7570 ac_x_libraries='$x_libraries'"
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7572 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7573 fi
7574
7575 if test "$no_x" = yes; then
7576 window_system=none
7577 else
7578 window_system=x11
7579 fi
7580
7581 ## Workaround for bug in autoconf <= 2.62.
7582 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7583 ## No need to do anything special for these standard directories.
7584 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7585
7586 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7587
7588 fi
7589
7590 LD_SWITCH_X_SITE_AUX=
7591 LD_SWITCH_X_SITE_AUX_RPATH=
7592 if test "${x_libraries}" != NONE; then
7593 if test -n "${x_libraries}"; then
7594 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7595 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7596 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7597 fi
7598 x_default_search_path=""
7599 x_search_path=${x_libraries}
7600 if test -z "${x_search_path}"; then
7601 x_search_path=/usr/lib
7602 fi
7603 for x_library in `echo ${x_search_path}: | \
7604 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7605 x_search_path="\
7606 ${x_library}/X11/%L/%T/%N%C%S:\
7607 ${x_library}/X11/%l/%T/%N%C%S:\
7608 ${x_library}/X11/%T/%N%C%S:\
7609 ${x_library}/X11/%L/%T/%N%S:\
7610 ${x_library}/X11/%l/%T/%N%S:\
7611 ${x_library}/X11/%T/%N%S"
7612 if test x"${x_default_search_path}" = x; then
7613 x_default_search_path=${x_search_path}
7614 else
7615 x_default_search_path="${x_search_path}:${x_default_search_path}"
7616 fi
7617 done
7618 fi
7619
7620
7621
7622 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7623 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7624 fi
7625
7626 if test x"${x_includes}" = x; then
7627 bitmapdir=/usr/include/X11/bitmaps
7628 else
7629 # accumulate include directories that have X11 bitmap subdirectories
7630 bmd_acc="dummyval"
7631 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7632 if test -d "${bmd}/X11/bitmaps"; then
7633 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7634 fi
7635 if test -d "${bmd}/bitmaps"; then
7636 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7637 fi
7638 done
7639 if test ${bmd_acc} != "dummyval"; then
7640 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7641 fi
7642 fi
7643
7644 HAVE_NS=no
7645 NS_IMPL_COCOA=no
7646 NS_IMPL_GNUSTEP=no
7647 tmp_CPPFLAGS="$CPPFLAGS"
7648 tmp_CFLAGS="$CFLAGS"
7649 CPPFLAGS="$CPPFLAGS -x objective-c"
7650 CFLAGS="$CFLAGS -x objective-c"
7651 TEMACS_LDFLAGS2="\${LDFLAGS}"
7652 if test "${with_ns}" != no; then
7653 if test "${opsys}" = darwin; then
7654 NS_IMPL_COCOA=yes
7655 ns_appdir=`pwd`/nextstep/Emacs.app
7656 ns_appbindir=${ns_appdir}/Contents/MacOS/
7657 ns_appresdir=${ns_appdir}/Contents/Resources
7658 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7659 elif test -f $GNUSTEP_CONFIG_FILE; then
7660 NS_IMPL_GNUSTEP=yes
7661 ns_appdir=`pwd`/nextstep/Emacs.app
7662 ns_appbindir=${ns_appdir}/
7663 ns_appresdir=${ns_appdir}/Resources
7664 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7665 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7666 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7667 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7668 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7669 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7670 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7671 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7672 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7673 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7674 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7675 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7676 LIB_STANDARD=
7677 START_FILES=
7678 TEMACS_LDFLAGS2=
7679 fi
7680 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7681 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7682 HAVE_NS=yes
7683 else
7684 as_fn_error "\`--with-ns' was specified, but the include
7685 files are missing or cannot be compiled." "$LINENO" 5
7686 fi
7687
7688
7689 NS_HAVE_NSINTEGER=yes
7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h. */
7692 #include <Foundation/NSObjCRuntime.h>
7693 int
7694 main ()
7695 {
7696 NSInteger i;
7697 ;
7698 return 0;
7699 }
7700 _ACEOF
7701 if ac_fn_c_try_compile "$LINENO"; then :
7702 ns_have_nsinteger=yes
7703 else
7704 ns_have_nsinteger=no
7705 fi
7706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7707 if test $ns_have_nsinteger = no; then
7708 NS_HAVE_NSINTEGER=no
7709 fi
7710 fi
7711
7712
7713 ns_frag=/dev/null
7714 NS_OBJ=
7715 NS_SUPPORT=
7716 if test "${HAVE_NS}" = yes; then
7717 window_system=nextstep
7718 with_xft=no
7719 # set up packaging dirs
7720 exec_prefix=${ns_appbindir}
7721 libexecdir=${ns_appbindir}/libexec
7722 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7723 prefix=${ns_appresdir}
7724 fi
7725 ns_frag=$srcdir/src/ns.mk
7726 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7727 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
7728 fi
7729 CFLAGS="$tmp_CFLAGS"
7730 CPPFLAGS="$tmp_CPPFLAGS"
7731
7732
7733
7734
7735
7736 case "${window_system}" in
7737 x11 )
7738 HAVE_X_WINDOWS=yes
7739 HAVE_X11=yes
7740 case "${with_x_toolkit}" in
7741 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7742 motif ) USE_X_TOOLKIT=MOTIF ;;
7743 gtk ) with_gtk=yes
7744 USE_X_TOOLKIT=none ;;
7745 gtk3 ) with_gtk3=yes
7746 USE_X_TOOLKIT=none ;;
7747 no ) USE_X_TOOLKIT=none ;;
7748 * ) USE_X_TOOLKIT=maybe ;;
7749 esac
7750 ;;
7751 nextstep | none )
7752 HAVE_X_WINDOWS=no
7753 HAVE_X11=no
7754 USE_X_TOOLKIT=none
7755 ;;
7756 esac
7757
7758 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7759 # Extract the first word of "X", so it can be a program name with args.
7760 set dummy X; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 if test -n "$HAVE_XSERVER"; then
7767 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7768 else
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7771 do
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7776 ac_cv_prog_HAVE_XSERVER="true"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 break 2
7779 fi
7780 done
7781 done
7782 IFS=$as_save_IFS
7783
7784 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7785 fi
7786 fi
7787 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7788 if test -n "$HAVE_XSERVER"; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7790 $as_echo "$HAVE_XSERVER" >&6; }
7791 else
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7794 fi
7795
7796
7797 if test "$HAVE_XSERVER" = true ||
7798 test -n "$DISPLAY" ||
7799 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7800 as_fn_error "You seem to be running X, but no X development libraries
7801 were found. You should install the relevant development files for X
7802 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7803 sure you have development files for image handling, i.e.
7804 tiff, gif, jpeg, png and xpm.
7805 If you are sure you want Emacs compiled without X window support, pass
7806 --without-x
7807 to configure." "$LINENO" 5
7808 fi
7809 fi
7810
7811 ### If we're using X11, we should use the X menu package.
7812 HAVE_MENUS=no
7813 case ${HAVE_X11} in
7814 yes ) HAVE_MENUS=yes ;;
7815 esac
7816
7817 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7818 # Assume not, until told otherwise.
7819 GNU_MALLOC=yes
7820 doug_lea_malloc=yes
7821 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7822 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7823
7824 else
7825 doug_lea_malloc=no
7826 fi
7827
7828 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7829 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7830
7831 else
7832 doug_lea_malloc=no
7833 fi
7834
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7836 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7837 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7838 $as_echo_n "(cached) " >&6
7839 else
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h. */
7842 extern void (* __after_morecore_hook)();
7843 int
7844 main ()
7845 {
7846 __after_morecore_hook = 0
7847 ;
7848 return 0;
7849 }
7850 _ACEOF
7851 if ac_fn_c_try_link "$LINENO"; then :
7852 emacs_cv_var___after_morecore_hook=yes
7853 else
7854 emacs_cv_var___after_morecore_hook=no
7855 fi
7856 rm -f core conftest.err conftest.$ac_objext \
7857 conftest$ac_exeext conftest.$ac_ext
7858 fi
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7860 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7861 if test $emacs_cv_var___after_morecore_hook = no; then
7862 doug_lea_malloc=no
7863 fi
7864
7865
7866 system_malloc=no
7867 case "$opsys" in
7868 ## darwin ld insists on the use of malloc routines in the System framework.
7869 darwin|sol2-10) system_malloc=yes ;;
7870 esac
7871
7872 if test "${system_malloc}" = "yes"; then
7873
7874 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7875
7876 GNU_MALLOC=no
7877 GNU_MALLOC_reason="
7878 (The GNU allocators don't work with this system configuration.)"
7879 GMALLOC_OBJ=
7880 VMLIMIT_OBJ=
7881 else
7882 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7883 VMLIMIT_OBJ=vm-limit.o
7884 fi
7885
7886
7887
7888 if test "$doug_lea_malloc" = "yes" ; then
7889 if test "$GNU_MALLOC" = yes ; then
7890 GNU_MALLOC_reason="
7891 (Using Doug Lea's new malloc from the GNU C Library.)"
7892 fi
7893
7894 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7895
7896
7897 ## Use mmap directly for allocating larger buffers.
7898 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7899 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7900 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7901 case "$opsys" in
7902 gnu*) REL_ALLOC=no ;;
7903 esac
7904 fi
7905
7906 if test x"${REL_ALLOC}" = x; then
7907 REL_ALLOC=${GNU_MALLOC}
7908 fi
7909
7910 use_mmap_for_buffers=no
7911 case "$opsys" in
7912 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7913 esac
7914
7915
7916
7917
7918 for ac_header in $ac_header_list
7919 do :
7920 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7921 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7922 "
7923 eval as_val=\$$as_ac_Header
7924 if test "x$as_val" = x""yes; then :
7925 cat >>confdefs.h <<_ACEOF
7926 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7927 _ACEOF
7928
7929 fi
7930
7931 done
7932
7933
7934
7935
7936
7937
7938
7939
7940 for ac_func in getpagesize
7941 do :
7942 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7943 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7944 cat >>confdefs.h <<_ACEOF
7945 #define HAVE_GETPAGESIZE 1
7946 _ACEOF
7947
7948 fi
7949 done
7950
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7952 $as_echo_n "checking for working mmap... " >&6; }
7953 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 if test "$cross_compiling" = yes; then :
7957 ac_cv_func_mmap_fixed_mapped=no
7958 else
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961 $ac_includes_default
7962 /* malloc might have been renamed as rpl_malloc. */
7963 #undef malloc
7964
7965 /* Thanks to Mike Haertel and Jim Avera for this test.
7966 Here is a matrix of mmap possibilities:
7967 mmap private not fixed
7968 mmap private fixed at somewhere currently unmapped
7969 mmap private fixed at somewhere already mapped
7970 mmap shared not fixed
7971 mmap shared fixed at somewhere currently unmapped
7972 mmap shared fixed at somewhere already mapped
7973 For private mappings, we should verify that changes cannot be read()
7974 back from the file, nor mmap's back from the file at a different
7975 address. (There have been systems where private was not correctly
7976 implemented like the infamous i386 svr4.0, and systems where the
7977 VM page cache was not coherent with the file system buffer cache
7978 like early versions of FreeBSD and possibly contemporary NetBSD.)
7979 For shared mappings, we should conversely verify that changes get
7980 propagated back to all the places they're supposed to be.
7981
7982 Grep wants private fixed already mapped.
7983 The main things grep needs to know about mmap are:
7984 * does it exist and is it safe to write into the mmap'd area
7985 * how to use it (BSD variants) */
7986
7987 #include <fcntl.h>
7988 #include <sys/mman.h>
7989
7990 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7991 char *malloc ();
7992 #endif
7993
7994 /* This mess was copied from the GNU getpagesize.h. */
7995 #ifndef HAVE_GETPAGESIZE
7996 # ifdef _SC_PAGESIZE
7997 # define getpagesize() sysconf(_SC_PAGESIZE)
7998 # else /* no _SC_PAGESIZE */
7999 # ifdef HAVE_SYS_PARAM_H
8000 # include <sys/param.h>
8001 # ifdef EXEC_PAGESIZE
8002 # define getpagesize() EXEC_PAGESIZE
8003 # else /* no EXEC_PAGESIZE */
8004 # ifdef NBPG
8005 # define getpagesize() NBPG * CLSIZE
8006 # ifndef CLSIZE
8007 # define CLSIZE 1
8008 # endif /* no CLSIZE */
8009 # else /* no NBPG */
8010 # ifdef NBPC
8011 # define getpagesize() NBPC
8012 # else /* no NBPC */
8013 # ifdef PAGESIZE
8014 # define getpagesize() PAGESIZE
8015 # endif /* PAGESIZE */
8016 # endif /* no NBPC */
8017 # endif /* no NBPG */
8018 # endif /* no EXEC_PAGESIZE */
8019 # else /* no HAVE_SYS_PARAM_H */
8020 # define getpagesize() 8192 /* punt totally */
8021 # endif /* no HAVE_SYS_PARAM_H */
8022 # endif /* no _SC_PAGESIZE */
8023
8024 #endif /* no HAVE_GETPAGESIZE */
8025
8026 int
8027 main ()
8028 {
8029 char *data, *data2, *data3;
8030 int i, pagesize;
8031 int fd, fd2;
8032
8033 pagesize = getpagesize ();
8034
8035 /* First, make a file with some known garbage in it. */
8036 data = (char *) malloc (pagesize);
8037 if (!data)
8038 return 1;
8039 for (i = 0; i < pagesize; ++i)
8040 *(data + i) = rand ();
8041 umask (0);
8042 fd = creat ("conftest.mmap", 0600);
8043 if (fd < 0)
8044 return 2;
8045 if (write (fd, data, pagesize) != pagesize)
8046 return 3;
8047 close (fd);
8048
8049 /* Next, check that the tail of a page is zero-filled. File must have
8050 non-zero length, otherwise we risk SIGBUS for entire page. */
8051 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8052 if (fd2 < 0)
8053 return 4;
8054 data2 = "";
8055 if (write (fd2, data2, 1) != 1)
8056 return 5;
8057 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8058 if (data2 == MAP_FAILED)
8059 return 6;
8060 for (i = 0; i < pagesize; ++i)
8061 if (*(data2 + i))
8062 return 7;
8063 close (fd2);
8064 if (munmap (data2, pagesize))
8065 return 8;
8066
8067 /* Next, try to mmap the file at a fixed address which already has
8068 something else allocated at it. If we can, also make sure that
8069 we see the same garbage. */
8070 fd = open ("conftest.mmap", O_RDWR);
8071 if (fd < 0)
8072 return 9;
8073 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8074 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8075 return 10;
8076 for (i = 0; i < pagesize; ++i)
8077 if (*(data + i) != *(data2 + i))
8078 return 11;
8079
8080 /* Finally, make sure that changes to the mapped area do not
8081 percolate back to the file as seen by read(). (This is a bug on
8082 some variants of i386 svr4.0.) */
8083 for (i = 0; i < pagesize; ++i)
8084 *(data2 + i) = *(data2 + i) + 1;
8085 data3 = (char *) malloc (pagesize);
8086 if (!data3)
8087 return 12;
8088 if (read (fd, data3, pagesize) != pagesize)
8089 return 13;
8090 for (i = 0; i < pagesize; ++i)
8091 if (*(data + i) != *(data3 + i))
8092 return 14;
8093 close (fd);
8094 return 0;
8095 }
8096 _ACEOF
8097 if ac_fn_c_try_run "$LINENO"; then :
8098 ac_cv_func_mmap_fixed_mapped=yes
8099 else
8100 ac_cv_func_mmap_fixed_mapped=no
8101 fi
8102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8103 conftest.$ac_objext conftest.beam conftest.$ac_ext
8104 fi
8105
8106 fi
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8108 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8109 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8110
8111 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8112
8113 fi
8114 rm -f conftest.mmap conftest.txt
8115
8116 if test $use_mmap_for_buffers = yes; then
8117
8118 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8119
8120 REL_ALLOC=no
8121 fi
8122
8123 LIBS="$LIBS_SYSTEM $LIBS"
8124
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8126 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8127 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8128 $as_echo_n "(cached) " >&6
8129 else
8130 ac_check_lib_save_LIBS=$LIBS
8131 LIBS="-ldnet $LIBS"
8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8134
8135 /* Override any GCC internal prototype to avoid an error.
8136 Use char because int might match the return type of a GCC
8137 builtin and then its argument prototype would still apply. */
8138 #ifdef __cplusplus
8139 extern "C"
8140 #endif
8141 char dnet_ntoa ();
8142 int
8143 main ()
8144 {
8145 return dnet_ntoa ();
8146 ;
8147 return 0;
8148 }
8149 _ACEOF
8150 if ac_fn_c_try_link "$LINENO"; then :
8151 ac_cv_lib_dnet_dnet_ntoa=yes
8152 else
8153 ac_cv_lib_dnet_dnet_ntoa=no
8154 fi
8155 rm -f core conftest.err conftest.$ac_objext \
8156 conftest$ac_exeext conftest.$ac_ext
8157 LIBS=$ac_check_lib_save_LIBS
8158 fi
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8160 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8161 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
8162 cat >>confdefs.h <<_ACEOF
8163 #define HAVE_LIBDNET 1
8164 _ACEOF
8165
8166 LIBS="-ldnet $LIBS"
8167
8168 fi
8169
8170
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8172 $as_echo_n "checking for main in -lXbsd... " >&6; }
8173 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 ac_check_lib_save_LIBS=$LIBS
8177 LIBS="-lXbsd $LIBS"
8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8180
8181
8182 int
8183 main ()
8184 {
8185 return main ();
8186 ;
8187 return 0;
8188 }
8189 _ACEOF
8190 if ac_fn_c_try_link "$LINENO"; then :
8191 ac_cv_lib_Xbsd_main=yes
8192 else
8193 ac_cv_lib_Xbsd_main=no
8194 fi
8195 rm -f core conftest.err conftest.$ac_objext \
8196 conftest$ac_exeext conftest.$ac_ext
8197 LIBS=$ac_check_lib_save_LIBS
8198 fi
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8200 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8201 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
8202 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8203 fi
8204
8205
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8207 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8208 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 ac_check_lib_save_LIBS=$LIBS
8212 LIBS="-lpthreads $LIBS"
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8215
8216 /* Override any GCC internal prototype to avoid an error.
8217 Use char because int might match the return type of a GCC
8218 builtin and then its argument prototype would still apply. */
8219 #ifdef __cplusplus
8220 extern "C"
8221 #endif
8222 char cma_open ();
8223 int
8224 main ()
8225 {
8226 return cma_open ();
8227 ;
8228 return 0;
8229 }
8230 _ACEOF
8231 if ac_fn_c_try_link "$LINENO"; then :
8232 ac_cv_lib_pthreads_cma_open=yes
8233 else
8234 ac_cv_lib_pthreads_cma_open=no
8235 fi
8236 rm -f core conftest.err conftest.$ac_objext \
8237 conftest$ac_exeext conftest.$ac_ext
8238 LIBS=$ac_check_lib_save_LIBS
8239 fi
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8241 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8242 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
8243 cat >>confdefs.h <<_ACEOF
8244 #define HAVE_LIBPTHREADS 1
8245 _ACEOF
8246
8247 LIBS="-lpthreads $LIBS"
8248
8249 fi
8250
8251
8252 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8253 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8254 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8255 ## added to LIBS in configure would never contain the pthreads part,
8256 ## but the value used in Makefiles might. FIXME?
8257 ##
8258 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8259 ## be harmless on older versions of X where it happens to exist.
8260 test "$opsys" = "aix4-2" && \
8261 test $ac_cv_lib_pthreads_cma_open = yes && \
8262 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8263
8264
8265 case ${host_os} in
8266 aix*)
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8268 $as_echo_n "checking for -bbigtoc option... " >&6; }
8269 if test "${gdb_cv_bigtoc+set}" = set; then :
8270 $as_echo_n "(cached) " >&6
8271 else
8272
8273 case $GCC in
8274 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8275 *) gdb_cv_bigtoc=-bbigtoc ;;
8276 esac
8277
8278 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h. */
8281
8282 int
8283 main ()
8284 {
8285 int i;
8286 ;
8287 return 0;
8288 }
8289 _ACEOF
8290 if ac_fn_c_try_link "$LINENO"; then :
8291
8292 else
8293 gdb_cv_bigtoc=
8294 fi
8295 rm -f core conftest.err conftest.$ac_objext \
8296 conftest$ac_exeext conftest.$ac_ext
8297
8298 fi
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8300 $as_echo "$gdb_cv_bigtoc" >&6; }
8301 ;;
8302 esac
8303
8304 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8305 # used for the tests that follow. We set them back to REAL_CFLAGS and
8306 # REAL_CPPFLAGS later on.
8307
8308 REAL_CFLAGS="$CFLAGS"
8309 REAL_CPPFLAGS="$CPPFLAGS"
8310
8311 if test "${HAVE_X11}" = "yes"; then
8312 DEFS="$C_SWITCH_X_SITE $DEFS"
8313 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8314 LIBS="-lX11 $LIBS"
8315 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8316 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8317
8318 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8319 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8320 # but it's more convenient here to set LD_RUN_PATH
8321 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8322 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8323 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8324 export LD_RUN_PATH
8325 fi
8326
8327 if test "${opsys}" = "gnu-linux"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8329 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8332
8333 int
8334 main ()
8335 {
8336 XOpenDisplay ("foo");
8337 ;
8338 return 0;
8339 }
8340 _ACEOF
8341 if ac_fn_c_try_link "$LINENO"; then :
8342 xlinux_first_failure=no
8343 else
8344 xlinux_first_failure=yes
8345 fi
8346 rm -f core conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8348 if test "${xlinux_first_failure}" = "yes"; then
8349 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8350 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8351 OLD_CPPFLAGS="$CPPFLAGS"
8352 OLD_LIBS="$LIBS"
8353 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8354 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8355 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8356 LIBS="$LIBS -b i486-linuxaout"
8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h. */
8359
8360 int
8361 main ()
8362 {
8363 XOpenDisplay ("foo");
8364 ;
8365 return 0;
8366 }
8367 _ACEOF
8368 if ac_fn_c_try_link "$LINENO"; then :
8369 xlinux_second_failure=no
8370 else
8371 xlinux_second_failure=yes
8372 fi
8373 rm -f core conftest.err conftest.$ac_objext \
8374 conftest$ac_exeext conftest.$ac_ext
8375 if test "${xlinux_second_failure}" = "yes"; then
8376 # If we get the same failure with -b, there is no use adding -b.
8377 # So take it out. This plays safe.
8378 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8379 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8380 CPPFLAGS="$OLD_CPPFLAGS"
8381 LIBS="$OLD_LIBS"
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 $as_echo "no" >&6; }
8384 else
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8386 $as_echo "yes" >&6; }
8387 fi
8388 else
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8391 fi
8392 fi
8393
8394 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8395 # header files included from there.
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8397 $as_echo_n "checking for Xkb... " >&6; }
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8400 #include <X11/Xlib.h>
8401 #include <X11/XKBlib.h>
8402 int
8403 main ()
8404 {
8405 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8406 ;
8407 return 0;
8408 }
8409 _ACEOF
8410 if ac_fn_c_try_link "$LINENO"; then :
8411 emacs_xkb=yes
8412 else
8413 emacs_xkb=no
8414 fi
8415 rm -f core conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8418 $as_echo "$emacs_xkb" >&6; }
8419 if test $emacs_xkb = yes; then
8420
8421 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8422
8423 fi
8424
8425 for ac_func in XrmSetDatabase XScreenResourceString \
8426 XScreenNumberOfScreen XSetWMProtocols
8427 do :
8428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8430 eval as_val=\$$as_ac_var
8431 if test "x$as_val" = x""yes; then :
8432 cat >>confdefs.h <<_ACEOF
8433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8434 _ACEOF
8435
8436 fi
8437 done
8438
8439 fi
8440
8441 if test "${window_system}" = "x11"; then
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8443 $as_echo_n "checking X11 version 6... " >&6; }
8444 if test "${emacs_cv_x11_version_6+set}" = set; then :
8445 $as_echo_n "(cached) " >&6
8446 else
8447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8448 /* end confdefs.h. */
8449 #include <X11/Xlib.h>
8450 int
8451 main ()
8452 {
8453 #if XlibSpecificationRelease < 6
8454 fail;
8455 #endif
8456
8457 ;
8458 return 0;
8459 }
8460 _ACEOF
8461 if ac_fn_c_try_link "$LINENO"; then :
8462 emacs_cv_x11_version_6=yes
8463 else
8464 emacs_cv_x11_version_6=no
8465 fi
8466 rm -f core conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
8468 fi
8469
8470 if test $emacs_cv_x11_version_6 = yes; then
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8472 $as_echo "6 or newer" >&6; }
8473
8474 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8475
8476
8477 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8478
8479 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8480 ## XIM support.
8481 case "$opsys" in
8482 sol2-*) : ;;
8483 *)
8484 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8485
8486 ;;
8487 esac
8488 else
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8490 $as_echo "before 6" >&6; }
8491 fi
8492 fi
8493
8494
8495 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8496 HAVE_RSVG=no
8497 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8498 if test "${with_rsvg}" != "no"; then
8499 RSVG_REQUIRED=2.11.0
8500 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8501
8502
8503 succeeded=no
8504
8505 # Extract the first word of "pkg-config", so it can be a program name with args.
8506 set dummy pkg-config; ac_word=$2
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8508 $as_echo_n "checking for $ac_word... " >&6; }
8509 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8510 $as_echo_n "(cached) " >&6
8511 else
8512 case $PKG_CONFIG in
8513 [\\/]* | ?:[\\/]*)
8514 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8515 ;;
8516 *)
8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 for as_dir in $PATH
8519 do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8524 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8526 break 2
8527 fi
8528 done
8529 done
8530 IFS=$as_save_IFS
8531
8532 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8533 ;;
8534 esac
8535 fi
8536 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8537 if test -n "$PKG_CONFIG"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8539 $as_echo "$PKG_CONFIG" >&6; }
8540 else
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8543 fi
8544
8545
8546
8547 if test "$PKG_CONFIG" = "no" ; then
8548 :
8549 else
8550 PKG_CONFIG_MIN_VERSION=0.9.0
8551 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8553 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8554
8555 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8557 $as_echo "yes" >&6; }
8558 succeeded=yes
8559
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8561 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8562 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8564 $as_echo "$RSVG_CFLAGS" >&6; }
8565
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8567 $as_echo_n "checking RSVG_LIBS... " >&6; }
8568 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8570 $as_echo "$RSVG_LIBS" >&6; }
8571 else
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573 $as_echo "no" >&6; }
8574 RSVG_CFLAGS=""
8575 RSVG_LIBS=""
8576 ## If we have a custom action on failure, don't print errors, but
8577 ## do set a variable so people can do so.
8578 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8579
8580 fi
8581
8582
8583
8584 else
8585 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8586 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8587 fi
8588 fi
8589
8590 if test $succeeded = yes; then
8591 HAVE_RSVG=yes
8592 else
8593 :
8594 fi
8595
8596
8597
8598
8599 if test $HAVE_RSVG = yes; then
8600
8601 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8602
8603 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8604 LIBS="$RSVG_LIBS $LIBS"
8605 fi
8606 fi
8607 fi
8608
8609 HAVE_IMAGEMAGICK=no
8610 if test "${HAVE_X11}" = "yes"; then
8611 if test "${with_imagemagick}" != "no"; then
8612 IMAGEMAGICK_MODULE="Wand"
8613
8614 succeeded=no
8615
8616 # Extract the first word of "pkg-config", so it can be a program name with args.
8617 set dummy pkg-config; ac_word=$2
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8619 $as_echo_n "checking for $ac_word... " >&6; }
8620 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8621 $as_echo_n "(cached) " >&6
8622 else
8623 case $PKG_CONFIG in
8624 [\\/]* | ?:[\\/]*)
8625 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8626 ;;
8627 *)
8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 for as_dir in $PATH
8630 do
8631 IFS=$as_save_IFS
8632 test -z "$as_dir" && as_dir=.
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8635 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637 break 2
8638 fi
8639 done
8640 done
8641 IFS=$as_save_IFS
8642
8643 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8644 ;;
8645 esac
8646 fi
8647 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8648 if test -n "$PKG_CONFIG"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8650 $as_echo "$PKG_CONFIG" >&6; }
8651 else
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8654 fi
8655
8656
8657
8658 if test "$PKG_CONFIG" = "no" ; then
8659 :
8660 else
8661 PKG_CONFIG_MIN_VERSION=0.9.0
8662 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8664 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8665
8666 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8668 $as_echo "yes" >&6; }
8669 succeeded=yes
8670
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8672 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8673 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8675 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8676
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8678 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8679 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8681 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8682 else
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684 $as_echo "no" >&6; }
8685 IMAGEMAGICK_CFLAGS=""
8686 IMAGEMAGICK_LIBS=""
8687 ## If we have a custom action on failure, don't print errors, but
8688 ## do set a variable so people can do so.
8689 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8690
8691 fi
8692
8693
8694
8695 else
8696 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8697 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8698 fi
8699 fi
8700
8701 if test $succeeded = yes; then
8702 HAVE_IMAGEMAGICK=yes
8703 else
8704 :
8705 fi
8706
8707
8708
8709
8710 if test $HAVE_IMAGEMAGICK = yes; then
8711
8712 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8713
8714 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
8715 LIBS="$IMAGEMAGICK_LIBS $LIBS"
8716 for ac_func in MagickExportImagePixels
8717 do :
8718 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8719 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
8720 cat >>confdefs.h <<_ACEOF
8721 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8722 _ACEOF
8723
8724 fi
8725 done
8726
8727 fi
8728 fi
8729 fi
8730
8731
8732 HAVE_GTK=no
8733 if test "${with_gtk3}" = "yes"; then
8734 GLIB_REQUIRED=2.6
8735 GTK_REQUIRED=2.90
8736 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8737
8738
8739 succeeded=no
8740
8741 # Extract the first word of "pkg-config", so it can be a program name with args.
8742 set dummy pkg-config; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 case $PKG_CONFIG in
8749 [\\/]* | ?:[\\/]*)
8750 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8751 ;;
8752 *)
8753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 for as_dir in $PATH
8755 do
8756 IFS=$as_save_IFS
8757 test -z "$as_dir" && as_dir=.
8758 for ac_exec_ext in '' $ac_executable_extensions; do
8759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8760 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8762 break 2
8763 fi
8764 done
8765 done
8766 IFS=$as_save_IFS
8767
8768 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8769 ;;
8770 esac
8771 fi
8772 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8773 if test -n "$PKG_CONFIG"; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8775 $as_echo "$PKG_CONFIG" >&6; }
8776 else
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8778 $as_echo "no" >&6; }
8779 fi
8780
8781
8782
8783 if test "$PKG_CONFIG" = "no" ; then
8784 pkg_check_gtk=no
8785 else
8786 PKG_CONFIG_MIN_VERSION=0.9.0
8787 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8789 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8790
8791 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8793 $as_echo "yes" >&6; }
8794 succeeded=yes
8795
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8797 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8798 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8800 $as_echo "$GTK_CFLAGS" >&6; }
8801
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8803 $as_echo_n "checking GTK_LIBS... " >&6; }
8804 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8806 $as_echo "$GTK_LIBS" >&6; }
8807 else
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8810 GTK_CFLAGS=""
8811 GTK_LIBS=""
8812 ## If we have a custom action on failure, don't print errors, but
8813 ## do set a variable so people can do so.
8814 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8815
8816 fi
8817
8818
8819
8820 else
8821 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8822 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8823 fi
8824 fi
8825
8826 if test $succeeded = yes; then
8827 pkg_check_gtk=yes
8828 else
8829 pkg_check_gtk=no
8830 fi
8831
8832 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8833 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8834 fi
8835 fi
8836
8837 if test "$pkg_check_gtk" != "yes"; then
8838 HAVE_GTK=no
8839 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8840 GLIB_REQUIRED=2.6
8841 GTK_REQUIRED=2.6
8842 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8843
8844
8845 succeeded=no
8846
8847 # Extract the first word of "pkg-config", so it can be a program name with args.
8848 set dummy pkg-config; ac_word=$2
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8850 $as_echo_n "checking for $ac_word... " >&6; }
8851 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8852 $as_echo_n "(cached) " >&6
8853 else
8854 case $PKG_CONFIG in
8855 [\\/]* | ?:[\\/]*)
8856 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8857 ;;
8858 *)
8859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860 for as_dir in $PATH
8861 do
8862 IFS=$as_save_IFS
8863 test -z "$as_dir" && as_dir=.
8864 for ac_exec_ext in '' $ac_executable_extensions; do
8865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8866 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8868 break 2
8869 fi
8870 done
8871 done
8872 IFS=$as_save_IFS
8873
8874 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8875 ;;
8876 esac
8877 fi
8878 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8879 if test -n "$PKG_CONFIG"; then
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8881 $as_echo "$PKG_CONFIG" >&6; }
8882 else
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884 $as_echo "no" >&6; }
8885 fi
8886
8887
8888
8889 if test "$PKG_CONFIG" = "no" ; then
8890 pkg_check_gtk=no
8891 else
8892 PKG_CONFIG_MIN_VERSION=0.9.0
8893 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8895 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8896
8897 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8899 $as_echo "yes" >&6; }
8900 succeeded=yes
8901
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8903 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8904 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8906 $as_echo "$GTK_CFLAGS" >&6; }
8907
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8909 $as_echo_n "checking GTK_LIBS... " >&6; }
8910 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8912 $as_echo "$GTK_LIBS" >&6; }
8913 else
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915 $as_echo "no" >&6; }
8916 GTK_CFLAGS=""
8917 GTK_LIBS=""
8918 ## If we have a custom action on failure, don't print errors, but
8919 ## do set a variable so people can do so.
8920 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8921
8922 fi
8923
8924
8925
8926 else
8927 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8928 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8929 fi
8930 fi
8931
8932 if test $succeeded = yes; then
8933 pkg_check_gtk=yes
8934 else
8935 pkg_check_gtk=no
8936 fi
8937
8938 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8939 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8940 fi
8941 fi
8942 fi
8943
8944 GTK_OBJ=
8945 if test x"$pkg_check_gtk" = xyes; then
8946
8947
8948
8949 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8950 CFLAGS="$CFLAGS $GTK_CFLAGS"
8951 LIBS="$GTK_LIBS $LIBS"
8952 GTK_COMPILES=no
8953 for ac_func in gtk_main
8954 do :
8955 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8956 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8957 cat >>confdefs.h <<_ACEOF
8958 #define HAVE_GTK_MAIN 1
8959 _ACEOF
8960 GTK_COMPILES=yes
8961 fi
8962 done
8963
8964 if test "${GTK_COMPILES}" != "yes"; then
8965 if test "$USE_X_TOOLKIT" != "maybe"; then
8966 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8967 fi
8968 else
8969 HAVE_GTK=yes
8970
8971 $as_echo "#define USE_GTK 1" >>confdefs.h
8972
8973 GTK_OBJ=gtkutil.o
8974 USE_X_TOOLKIT=none
8975 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8976 :
8977 else
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8979 closing open displays. This is no problem if you just use
8980 one display, but if you use more than one and close one of them
8981 Emacs may crash." >&5
8982 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8983 closing open displays. This is no problem if you just use
8984 one display, but if you use more than one and close one of them
8985 Emacs may crash." >&2;}
8986 sleep 3
8987 fi
8988 fi
8989
8990 fi
8991
8992
8993
8994 if test "${HAVE_GTK}" = "yes"; then
8995
8996 if test "$with_toolkit_scroll_bars" != no; then
8997 with_toolkit_scroll_bars=yes
8998 fi
8999
9000 HAVE_GTK_FILE_SELECTION=no
9001 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9002 #include <gtk/gtk.h>
9003 "
9004 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
9005 HAVE_GTK_FILE_SELECTION=yes
9006 else
9007 HAVE_GTK_FILE_SELECTION=no
9008 fi
9009
9010 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9011 for ac_func in gtk_file_selection_new
9012 do :
9013 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9014 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
9015 cat >>confdefs.h <<_ACEOF
9016 #define HAVE_GTK_FILE_SELECTION_NEW 1
9017 _ACEOF
9018
9019 fi
9020 done
9021
9022 fi
9023
9024 HAVE_GTK_AND_PTHREAD=no
9025 for ac_header in pthread.h
9026 do :
9027 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9028 if test "x$ac_cv_header_pthread_h" = x""yes; then :
9029 cat >>confdefs.h <<_ACEOF
9030 #define HAVE_PTHREAD_H 1
9031 _ACEOF
9032
9033 fi
9034
9035 done
9036
9037 if test "$ac_cv_header_pthread_h"; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9039 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9040 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9041 $as_echo_n "(cached) " >&6
9042 else
9043 ac_check_lib_save_LIBS=$LIBS
9044 LIBS="-lpthread $LIBS"
9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9047
9048 /* Override any GCC internal prototype to avoid an error.
9049 Use char because int might match the return type of a GCC
9050 builtin and then its argument prototype would still apply. */
9051 #ifdef __cplusplus
9052 extern "C"
9053 #endif
9054 char pthread_self ();
9055 int
9056 main ()
9057 {
9058 return pthread_self ();
9059 ;
9060 return 0;
9061 }
9062 _ACEOF
9063 if ac_fn_c_try_link "$LINENO"; then :
9064 ac_cv_lib_pthread_pthread_self=yes
9065 else
9066 ac_cv_lib_pthread_pthread_self=no
9067 fi
9068 rm -f core conftest.err conftest.$ac_objext \
9069 conftest$ac_exeext conftest.$ac_ext
9070 LIBS=$ac_check_lib_save_LIBS
9071 fi
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9073 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9074 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
9075 HAVE_GTK_AND_PTHREAD=yes
9076 fi
9077
9078 fi
9079 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9080 case "${canonical}" in
9081 *-hpux*) ;;
9082 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
9083 esac
9084
9085 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9086
9087 fi
9088
9089 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
9090 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9091 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9092 gtk_orientable_set_orientation
9093 do :
9094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9095 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9096 eval as_val=\$$as_ac_var
9097 if test "x$as_val" = x""yes; then :
9098 cat >>confdefs.h <<_ACEOF
9099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9100 _ACEOF
9101
9102 fi
9103 done
9104
9105
9106 fi
9107
9108 HAVE_DBUS=no
9109 DBUS_OBJ=
9110 if test "${with_dbus}" = "yes"; then
9111
9112 succeeded=no
9113
9114 # Extract the first word of "pkg-config", so it can be a program name with args.
9115 set dummy pkg-config; ac_word=$2
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9117 $as_echo_n "checking for $ac_word... " >&6; }
9118 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 case $PKG_CONFIG in
9122 [\\/]* | ?:[\\/]*)
9123 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9124 ;;
9125 *)
9126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127 for as_dir in $PATH
9128 do
9129 IFS=$as_save_IFS
9130 test -z "$as_dir" && as_dir=.
9131 for ac_exec_ext in '' $ac_executable_extensions; do
9132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9133 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9135 break 2
9136 fi
9137 done
9138 done
9139 IFS=$as_save_IFS
9140
9141 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9142 ;;
9143 esac
9144 fi
9145 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9146 if test -n "$PKG_CONFIG"; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9148 $as_echo "$PKG_CONFIG" >&6; }
9149 else
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151 $as_echo "no" >&6; }
9152 fi
9153
9154
9155
9156 if test "$PKG_CONFIG" = "no" ; then
9157 HAVE_DBUS=no
9158 else
9159 PKG_CONFIG_MIN_VERSION=0.9.0
9160 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9162 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9163
9164 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9166 $as_echo "yes" >&6; }
9167 succeeded=yes
9168
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9170 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9171 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9173 $as_echo "$DBUS_CFLAGS" >&6; }
9174
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9176 $as_echo_n "checking DBUS_LIBS... " >&6; }
9177 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9179 $as_echo "$DBUS_LIBS" >&6; }
9180 else
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182 $as_echo "no" >&6; }
9183 DBUS_CFLAGS=""
9184 DBUS_LIBS=""
9185 ## If we have a custom action on failure, don't print errors, but
9186 ## do set a variable so people can do so.
9187 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9188
9189 fi
9190
9191
9192
9193 else
9194 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9195 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9196 fi
9197 fi
9198
9199 if test $succeeded = yes; then
9200 HAVE_DBUS=yes
9201 else
9202 HAVE_DBUS=no
9203 fi
9204
9205 if test "$HAVE_DBUS" = yes; then
9206 LIBS="$LIBS $DBUS_LIBS"
9207
9208 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9209
9210 for ac_func in dbus_watch_get_unix_fd
9211 do :
9212 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9213 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
9214 cat >>confdefs.h <<_ACEOF
9215 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9216 _ACEOF
9217
9218 fi
9219 done
9220
9221 DBUS_OBJ=dbusbind.o
9222 fi
9223 fi
9224
9225
9226 HAVE_GCONF=no
9227 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9228
9229 succeeded=no
9230
9231 # Extract the first word of "pkg-config", so it can be a program name with args.
9232 set dummy pkg-config; ac_word=$2
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9234 $as_echo_n "checking for $ac_word... " >&6; }
9235 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 case $PKG_CONFIG in
9239 [\\/]* | ?:[\\/]*)
9240 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9241 ;;
9242 *)
9243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9244 for as_dir in $PATH
9245 do
9246 IFS=$as_save_IFS
9247 test -z "$as_dir" && as_dir=.
9248 for ac_exec_ext in '' $ac_executable_extensions; do
9249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9250 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9252 break 2
9253 fi
9254 done
9255 done
9256 IFS=$as_save_IFS
9257
9258 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9259 ;;
9260 esac
9261 fi
9262 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9263 if test -n "$PKG_CONFIG"; then
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9265 $as_echo "$PKG_CONFIG" >&6; }
9266 else
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9268 $as_echo "no" >&6; }
9269 fi
9270
9271
9272
9273 if test "$PKG_CONFIG" = "no" ; then
9274 HAVE_GCONF=no
9275 else
9276 PKG_CONFIG_MIN_VERSION=0.9.0
9277 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9279 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9280
9281 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9283 $as_echo "yes" >&6; }
9284 succeeded=yes
9285
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9287 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9288 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9290 $as_echo "$GCONF_CFLAGS" >&6; }
9291
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9293 $as_echo_n "checking GCONF_LIBS... " >&6; }
9294 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9296 $as_echo "$GCONF_LIBS" >&6; }
9297 else
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9300 GCONF_CFLAGS=""
9301 GCONF_LIBS=""
9302 ## If we have a custom action on failure, don't print errors, but
9303 ## do set a variable so people can do so.
9304 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9305
9306 fi
9307
9308
9309
9310 else
9311 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9312 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9313 fi
9314 fi
9315
9316 if test $succeeded = yes; then
9317 HAVE_GCONF=yes
9318 else
9319 HAVE_GCONF=no
9320 fi
9321
9322 if test "$HAVE_GCONF" = yes; then
9323
9324 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9325
9326 for ac_func in g_type_init
9327 do :
9328 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
9329 if test "x$ac_cv_func_g_type_init" = x""yes; then :
9330 cat >>confdefs.h <<_ACEOF
9331 #define HAVE_G_TYPE_INIT 1
9332 _ACEOF
9333
9334 fi
9335 done
9336
9337 fi
9338 fi
9339
9340 HAVE_LIBSELINUX=no
9341 LIBSELINUX_LIBS=
9342 if test "${with_selinux}" = "yes"; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9344 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9345 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9346 $as_echo_n "(cached) " >&6
9347 else
9348 ac_check_lib_save_LIBS=$LIBS
9349 LIBS="-lselinux $LIBS"
9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351 /* end confdefs.h. */
9352
9353 /* Override any GCC internal prototype to avoid an error.
9354 Use char because int might match the return type of a GCC
9355 builtin and then its argument prototype would still apply. */
9356 #ifdef __cplusplus
9357 extern "C"
9358 #endif
9359 char lgetfilecon ();
9360 int
9361 main ()
9362 {
9363 return lgetfilecon ();
9364 ;
9365 return 0;
9366 }
9367 _ACEOF
9368 if ac_fn_c_try_link "$LINENO"; then :
9369 ac_cv_lib_selinux_lgetfilecon=yes
9370 else
9371 ac_cv_lib_selinux_lgetfilecon=no
9372 fi
9373 rm -f core conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
9375 LIBS=$ac_check_lib_save_LIBS
9376 fi
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9378 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9379 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
9380 HAVE_LIBSELINUX=yes
9381 else
9382 HAVE_LIBSELINUX=no
9383 fi
9384
9385 if test "$HAVE_LIBSELINUX" = yes; then
9386
9387 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9388
9389 LIBSELINUX_LIBS=-lselinux
9390 fi
9391 fi
9392
9393
9394 HAVE_GNUTLS=no
9395 if test "${with_gnutls}" = "yes" ; then
9396
9397 succeeded=no
9398
9399 # Extract the first word of "pkg-config", so it can be a program name with args.
9400 set dummy pkg-config; ac_word=$2
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9402 $as_echo_n "checking for $ac_word... " >&6; }
9403 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9404 $as_echo_n "(cached) " >&6
9405 else
9406 case $PKG_CONFIG in
9407 [\\/]* | ?:[\\/]*)
9408 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9409 ;;
9410 *)
9411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9412 for as_dir in $PATH
9413 do
9414 IFS=$as_save_IFS
9415 test -z "$as_dir" && as_dir=.
9416 for ac_exec_ext in '' $ac_executable_extensions; do
9417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9418 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9420 break 2
9421 fi
9422 done
9423 done
9424 IFS=$as_save_IFS
9425
9426 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9427 ;;
9428 esac
9429 fi
9430 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9431 if test -n "$PKG_CONFIG"; then
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9433 $as_echo "$PKG_CONFIG" >&6; }
9434 else
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9436 $as_echo "no" >&6; }
9437 fi
9438
9439
9440
9441 if test "$PKG_CONFIG" = "no" ; then
9442 HAVE_GNUTLS=no
9443 else
9444 PKG_CONFIG_MIN_VERSION=0.9.0
9445 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9447 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9448
9449 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9451 $as_echo "yes" >&6; }
9452 succeeded=yes
9453
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9455 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9456 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9458 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9459
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9461 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9462 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9464 $as_echo "$LIBGNUTLS_LIBS" >&6; }
9465 else
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9467 $as_echo "no" >&6; }
9468 LIBGNUTLS_CFLAGS=""
9469 LIBGNUTLS_LIBS=""
9470 ## If we have a custom action on failure, don't print errors, but
9471 ## do set a variable so people can do so.
9472 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9473
9474 fi
9475
9476
9477
9478 else
9479 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9480 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9481 fi
9482 fi
9483
9484 if test $succeeded = yes; then
9485 HAVE_GNUTLS=yes
9486 else
9487 HAVE_GNUTLS=no
9488 fi
9489
9490 if test "${HAVE_GNUTLS}" = "yes"; then
9491
9492 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9493
9494 fi
9495 fi
9496
9497
9498
9499 HAVE_XAW3D=no
9500 LUCID_LIBW=
9501 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9502 if test "$with_xaw3d" != no; then
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9504 $as_echo_n "checking for xaw3d... " >&6; }
9505 if test "${emacs_cv_xaw3d+set}" = set; then :
9506 $as_echo_n "(cached) " >&6
9507 else
9508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509 /* end confdefs.h. */
9510
9511 #include <X11/Intrinsic.h>
9512 #include <X11/Xaw3d/Simple.h>
9513 int
9514 main ()
9515 {
9516
9517 ;
9518 return 0;
9519 }
9520 _ACEOF
9521 if ac_fn_c_try_link "$LINENO"; then :
9522 emacs_cv_xaw3d=yes
9523 else
9524 emacs_cv_xaw3d=no
9525 fi
9526 rm -f core conftest.err conftest.$ac_objext \
9527 conftest$ac_exeext conftest.$ac_ext
9528 fi
9529
9530 else
9531 emacs_cv_xaw3d=no
9532 fi
9533 if test $emacs_cv_xaw3d = yes; then
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9535 $as_echo "yes; using Lucid toolkit" >&6; }
9536 USE_X_TOOLKIT=LUCID
9537 HAVE_XAW3D=yes
9538 LUCID_LIBW=-lXaw3d
9539
9540 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9541
9542 else
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9546 $as_echo_n "checking for libXaw... " >&6; }
9547 if test "${emacs_cv_xaw+set}" = set; then :
9548 $as_echo_n "(cached) " >&6
9549 else
9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9552
9553 #include <X11/Intrinsic.h>
9554 #include <X11/Xaw/Simple.h>
9555 int
9556 main ()
9557 {
9558
9559 ;
9560 return 0;
9561 }
9562 _ACEOF
9563 if ac_fn_c_try_link "$LINENO"; then :
9564 emacs_cv_xaw=yes
9565 else
9566 emacs_cv_xaw=no
9567 fi
9568 rm -f core conftest.err conftest.$ac_objext \
9569 conftest$ac_exeext conftest.$ac_ext
9570 fi
9571
9572 if test $emacs_cv_xaw = yes; then
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9574 $as_echo "yes; using Lucid toolkit" >&6; }
9575 USE_X_TOOLKIT=LUCID
9576 LUCID_LIBW=-lXaw
9577 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9578 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9579 else
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9581 $as_echo "no; do not use toolkit by default" >&6; }
9582 USE_X_TOOLKIT=none
9583 fi
9584 fi
9585 fi
9586
9587 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9588
9589 LIBXTR6=
9590 if test "${USE_X_TOOLKIT}" != "none"; then
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9592 $as_echo_n "checking X11 toolkit version... " >&6; }
9593 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h. */
9598 #include <X11/Intrinsic.h>
9599 int
9600 main ()
9601 {
9602 #if XtSpecificationRelease < 6
9603 fail;
9604 #endif
9605
9606 ;
9607 return 0;
9608 }
9609 _ACEOF
9610 if ac_fn_c_try_link "$LINENO"; then :
9611 emacs_cv_x11_toolkit_version_6=yes
9612 else
9613 emacs_cv_x11_toolkit_version_6=no
9614 fi
9615 rm -f core conftest.err conftest.$ac_objext \
9616 conftest$ac_exeext conftest.$ac_ext
9617 fi
9618
9619 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9620 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9622 $as_echo "6 or newer" >&6; }
9623
9624 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9625
9626 LIBXTR6="-lSM -lICE"
9627 case "$opsys" in
9628 ## Use libw.a along with X11R6 Xt.
9629 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9630 esac
9631 else
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9633 $as_echo "before 6" >&6; }
9634 fi
9635
9636 OLDLIBS="$LIBS"
9637 if test x$HAVE_X11XTR6 = xyes; then
9638 LIBS="-lXt -lSM -lICE $LIBS"
9639 else
9640 LIBS="-lXt $LIBS"
9641 fi
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9643 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9644 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9645 $as_echo_n "(cached) " >&6
9646 else
9647 ac_check_lib_save_LIBS=$LIBS
9648 LIBS="-lXmu $LIBS"
9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9651
9652 /* Override any GCC internal prototype to avoid an error.
9653 Use char because int might match the return type of a GCC
9654 builtin and then its argument prototype would still apply. */
9655 #ifdef __cplusplus
9656 extern "C"
9657 #endif
9658 char XmuConvertStandardSelection ();
9659 int
9660 main ()
9661 {
9662 return XmuConvertStandardSelection ();
9663 ;
9664 return 0;
9665 }
9666 _ACEOF
9667 if ac_fn_c_try_link "$LINENO"; then :
9668 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9669 else
9670 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9671 fi
9672 rm -f core conftest.err conftest.$ac_objext \
9673 conftest$ac_exeext conftest.$ac_ext
9674 LIBS=$ac_check_lib_save_LIBS
9675 fi
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9677 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9678 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9679 cat >>confdefs.h <<_ACEOF
9680 #define HAVE_LIBXMU 1
9681 _ACEOF
9682
9683 LIBS="-lXmu $LIBS"
9684
9685 fi
9686
9687 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9688 fi
9689
9690
9691 LIBXMU=-lXmu
9692 case $opsys in
9693 ## These systems don't supply Xmu.
9694 hpux* | aix4-2 )
9695 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9696 ;;
9697 esac
9698
9699
9700 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9701 if test "${HAVE_X11}" = "yes"; then
9702 if test "${USE_X_TOOLKIT}" != "none"; then
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9704 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9705 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9706 $as_echo_n "(cached) " >&6
9707 else
9708 ac_check_lib_save_LIBS=$LIBS
9709 LIBS="-lXext $LIBS"
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9712
9713 /* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 char XShapeQueryExtension ();
9720 int
9721 main ()
9722 {
9723 return XShapeQueryExtension ();
9724 ;
9725 return 0;
9726 }
9727 _ACEOF
9728 if ac_fn_c_try_link "$LINENO"; then :
9729 ac_cv_lib_Xext_XShapeQueryExtension=yes
9730 else
9731 ac_cv_lib_Xext_XShapeQueryExtension=no
9732 fi
9733 rm -f core conftest.err conftest.$ac_objext \
9734 conftest$ac_exeext conftest.$ac_ext
9735 LIBS=$ac_check_lib_save_LIBS
9736 fi
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9738 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9739 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9740 cat >>confdefs.h <<_ACEOF
9741 #define HAVE_LIBXEXT 1
9742 _ACEOF
9743
9744 LIBS="-lXext $LIBS"
9745
9746 fi
9747
9748 fi
9749 fi
9750
9751 LIBXP=
9752 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9754 $as_echo_n "checking for Motif version 2.1... " >&6; }
9755 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9756 $as_echo_n "(cached) " >&6
9757 else
9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9760 #include <Xm/Xm.h>
9761 int
9762 main ()
9763 {
9764 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9765 int x = 5;
9766 #else
9767 Motif version prior to 2.1.
9768 #endif
9769 ;
9770 return 0;
9771 }
9772 _ACEOF
9773 if ac_fn_c_try_compile "$LINENO"; then :
9774 emacs_cv_motif_version_2_1=yes
9775 else
9776 emacs_cv_motif_version_2_1=no
9777 fi
9778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9779 fi
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9781 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9782 if test $emacs_cv_motif_version_2_1 = yes; then
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9784 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9785 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 ac_check_lib_save_LIBS=$LIBS
9789 LIBS="-lXp $LIBS"
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9792
9793 /* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9796 #ifdef __cplusplus
9797 extern "C"
9798 #endif
9799 char XpCreateContext ();
9800 int
9801 main ()
9802 {
9803 return XpCreateContext ();
9804 ;
9805 return 0;
9806 }
9807 _ACEOF
9808 if ac_fn_c_try_link "$LINENO"; then :
9809 ac_cv_lib_Xp_XpCreateContext=yes
9810 else
9811 ac_cv_lib_Xp_XpCreateContext=no
9812 fi
9813 rm -f core conftest.err conftest.$ac_objext \
9814 conftest$ac_exeext conftest.$ac_ext
9815 LIBS=$ac_check_lib_save_LIBS
9816 fi
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9818 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9819 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9820 LIBXP=-lXp
9821 fi
9822
9823 else
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9825 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9826 if test "${emacs_cv_lesstif+set}" = set; then :
9827 $as_echo_n "(cached) " >&6
9828 else
9829 # We put this in CFLAGS temporarily to precede other -I options
9830 # that might be in CFLAGS temporarily.
9831 # We put this in CPPFLAGS where it precedes the other -I options.
9832 OLD_CPPFLAGS=$CPPFLAGS
9833 OLD_CFLAGS=$CFLAGS
9834 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9835 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9837 /* end confdefs.h. */
9838 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9839 int
9840 main ()
9841 {
9842 int x = 5;
9843 ;
9844 return 0;
9845 }
9846 _ACEOF
9847 if ac_fn_c_try_compile "$LINENO"; then :
9848 emacs_cv_lesstif=yes
9849 else
9850 emacs_cv_lesstif=no
9851 fi
9852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9853 fi
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9855 $as_echo "$emacs_cv_lesstif" >&6; }
9856 if test $emacs_cv_lesstif = yes; then
9857 # Make sure this -I option remains in CPPFLAGS after it is set
9858 # back to REAL_CPPFLAGS.
9859 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9860 # have those other -I options anyway. Ultimately, having this
9861 # directory ultimately in CPPFLAGS will be enough.
9862 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9863 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9864 else
9865 CFLAGS=$OLD_CFLAGS
9866 CPPFLAGS=$OLD_CPPFLAGS
9867 fi
9868 fi
9869 fi
9870
9871
9872 USE_TOOLKIT_SCROLL_BARS=no
9873 if test "${with_toolkit_scroll_bars}" != "no"; then
9874 if test "${USE_X_TOOLKIT}" != "none"; then
9875 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9876 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9877
9878 HAVE_XAW3D=no
9879 USE_TOOLKIT_SCROLL_BARS=yes
9880 elif test "${HAVE_XAW3D}" = "yes"; then
9881 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9882
9883 USE_TOOLKIT_SCROLL_BARS=yes
9884 fi
9885 elif test "${HAVE_GTK}" = "yes"; then
9886 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9887
9888 USE_TOOLKIT_SCROLL_BARS=yes
9889 elif test "${HAVE_NS}" = "yes"; then
9890 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9891
9892 USE_TOOLKIT_SCROLL_BARS=yes
9893 fi
9894 fi
9895
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9898
9899 #include <X11/Xlib.h>
9900 #include <X11/Xresource.h>
9901 int
9902 main ()
9903 {
9904 XIMProc callback;
9905 ;
9906 return 0;
9907 }
9908 _ACEOF
9909 if ac_fn_c_try_compile "$LINENO"; then :
9910 HAVE_XIM=yes
9911
9912 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9913
9914 else
9915 HAVE_XIM=no
9916 fi
9917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9918
9919
9920 if test "${with_xim}" != "no"; then
9921
9922 $as_echo "#define USE_XIM 1" >>confdefs.h
9923
9924 fi
9925
9926
9927 if test "${HAVE_XIM}" != "no"; then
9928 late_CFLAGS=$CFLAGS
9929 if test "$GCC" = yes; then
9930 CFLAGS="$CFLAGS --pedantic-errors"
9931 fi
9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h. */
9934
9935 #include <X11/Xlib.h>
9936 #include <X11/Xresource.h>
9937 int
9938 main ()
9939 {
9940 Display *display;
9941 XrmDatabase db;
9942 char *res_name;
9943 char *res_class;
9944 XIMProc callback;
9945 XPointer *client_data;
9946 #ifndef __GNUC__
9947 /* If we're not using GCC, it's probably not XFree86, and this is
9948 probably right, but we can't use something like --pedantic-errors. */
9949 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9950 char*, XIMProc, XPointer*);
9951 #endif
9952 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9953 client_data);
9954 ;
9955 return 0;
9956 }
9957 _ACEOF
9958 if ac_fn_c_try_compile "$LINENO"; then :
9959 emacs_cv_arg6_star=yes
9960 fi
9961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9962 if test "$emacs_cv_arg6_star" = yes; then
9963 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9964
9965 else
9966 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9967
9968 fi
9969 CFLAGS=$late_CFLAGS
9970 fi
9971
9972 ### Start of font-backend (under any platform) section.
9973 # (nothing here yet -- this is a placeholder)
9974 ### End of font-backend (under any platform) section.
9975
9976 ### Start of font-backend (under X11) section.
9977 if test "${HAVE_X11}" = "yes"; then
9978
9979 succeeded=no
9980
9981 # Extract the first word of "pkg-config", so it can be a program name with args.
9982 set dummy pkg-config; ac_word=$2
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9984 $as_echo_n "checking for $ac_word... " >&6; }
9985 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9986 $as_echo_n "(cached) " >&6
9987 else
9988 case $PKG_CONFIG in
9989 [\\/]* | ?:[\\/]*)
9990 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9991 ;;
9992 *)
9993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994 for as_dir in $PATH
9995 do
9996 IFS=$as_save_IFS
9997 test -z "$as_dir" && as_dir=.
9998 for ac_exec_ext in '' $ac_executable_extensions; do
9999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10000 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10002 break 2
10003 fi
10004 done
10005 done
10006 IFS=$as_save_IFS
10007
10008 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10009 ;;
10010 esac
10011 fi
10012 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10013 if test -n "$PKG_CONFIG"; then
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10015 $as_echo "$PKG_CONFIG" >&6; }
10016 else
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018 $as_echo "no" >&6; }
10019 fi
10020
10021
10022
10023 if test "$PKG_CONFIG" = "no" ; then
10024 HAVE_FC=no
10025 else
10026 PKG_CONFIG_MIN_VERSION=0.9.0
10027 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10029 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10030
10031 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10033 $as_echo "yes" >&6; }
10034 succeeded=yes
10035
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10037 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10038 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10040 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10041
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10043 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10044 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10046 $as_echo "$FONTCONFIG_LIBS" >&6; }
10047 else
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10049 $as_echo "no" >&6; }
10050 FONTCONFIG_CFLAGS=""
10051 FONTCONFIG_LIBS=""
10052 ## If we have a custom action on failure, don't print errors, but
10053 ## do set a variable so people can do so.
10054 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10055
10056 fi
10057
10058
10059
10060 else
10061 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10062 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10063 fi
10064 fi
10065
10066 if test $succeeded = yes; then
10067 HAVE_FC=yes
10068 else
10069 HAVE_FC=no
10070 fi
10071
10072
10073 ## Use -lXft if available, unless `--with-xft=no'.
10074 HAVE_XFT=maybe
10075 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
10076 with_xft="no";
10077 fi
10078 if test "x${with_xft}" != "xno"; then
10079
10080
10081 succeeded=no
10082
10083 # Extract the first word of "pkg-config", so it can be a program name with args.
10084 set dummy pkg-config; ac_word=$2
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086 $as_echo_n "checking for $ac_word... " >&6; }
10087 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10088 $as_echo_n "(cached) " >&6
10089 else
10090 case $PKG_CONFIG in
10091 [\\/]* | ?:[\\/]*)
10092 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10093 ;;
10094 *)
10095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096 for as_dir in $PATH
10097 do
10098 IFS=$as_save_IFS
10099 test -z "$as_dir" && as_dir=.
10100 for ac_exec_ext in '' $ac_executable_extensions; do
10101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10102 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10104 break 2
10105 fi
10106 done
10107 done
10108 IFS=$as_save_IFS
10109
10110 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10111 ;;
10112 esac
10113 fi
10114 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10115 if test -n "$PKG_CONFIG"; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10117 $as_echo "$PKG_CONFIG" >&6; }
10118 else
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120 $as_echo "no" >&6; }
10121 fi
10122
10123
10124
10125 if test "$PKG_CONFIG" = "no" ; then
10126 HAVE_XFT=no
10127 else
10128 PKG_CONFIG_MIN_VERSION=0.9.0
10129 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10131 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10132
10133 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10135 $as_echo "yes" >&6; }
10136 succeeded=yes
10137
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10139 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10140 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10142 $as_echo "$XFT_CFLAGS" >&6; }
10143
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10145 $as_echo_n "checking XFT_LIBS... " >&6; }
10146 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10148 $as_echo "$XFT_LIBS" >&6; }
10149 else
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10152 XFT_CFLAGS=""
10153 XFT_LIBS=""
10154 ## If we have a custom action on failure, don't print errors, but
10155 ## do set a variable so people can do so.
10156 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10157
10158 fi
10159
10160
10161
10162 else
10163 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10164 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10165 fi
10166 fi
10167
10168 if test $succeeded = yes; then
10169 :
10170 else
10171 HAVE_XFT=no
10172 fi
10173
10174 ## Because xftfont.c uses XRenderQueryExtension, we also
10175 ## need to link to -lXrender.
10176 HAVE_XRENDER=no
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10178 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10179 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 ac_check_lib_save_LIBS=$LIBS
10183 LIBS="-lXrender $LIBS"
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10186
10187 /* Override any GCC internal prototype to avoid an error.
10188 Use char because int might match the return type of a GCC
10189 builtin and then its argument prototype would still apply. */
10190 #ifdef __cplusplus
10191 extern "C"
10192 #endif
10193 char XRenderQueryExtension ();
10194 int
10195 main ()
10196 {
10197 return XRenderQueryExtension ();
10198 ;
10199 return 0;
10200 }
10201 _ACEOF
10202 if ac_fn_c_try_link "$LINENO"; then :
10203 ac_cv_lib_Xrender_XRenderQueryExtension=yes
10204 else
10205 ac_cv_lib_Xrender_XRenderQueryExtension=no
10206 fi
10207 rm -f core conftest.err conftest.$ac_objext \
10208 conftest$ac_exeext conftest.$ac_ext
10209 LIBS=$ac_check_lib_save_LIBS
10210 fi
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10212 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10213 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
10214 HAVE_XRENDER=yes
10215 fi
10216
10217 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
10218 OLD_CPPFLAGS="$CPPFLAGS"
10219 OLD_CFLAGS="$CFLAGS"
10220 OLD_LIBS="$LIBS"
10221 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
10222 CFLAGS="$CFLAGS $XFT_CFLAGS"
10223 XFT_LIBS="-lXrender $XFT_LIBS"
10224 LIBS="$XFT_LIBS $LIBS"
10225 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10226 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10228 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10229 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
10230 $as_echo_n "(cached) " >&6
10231 else
10232 ac_check_lib_save_LIBS=$LIBS
10233 LIBS="-lXft $XFT_LIBS $LIBS"
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10236
10237 /* Override any GCC internal prototype to avoid an error.
10238 Use char because int might match the return type of a GCC
10239 builtin and then its argument prototype would still apply. */
10240 #ifdef __cplusplus
10241 extern "C"
10242 #endif
10243 char XftFontOpen ();
10244 int
10245 main ()
10246 {
10247 return XftFontOpen ();
10248 ;
10249 return 0;
10250 }
10251 _ACEOF
10252 if ac_fn_c_try_link "$LINENO"; then :
10253 ac_cv_lib_Xft_XftFontOpen=yes
10254 else
10255 ac_cv_lib_Xft_XftFontOpen=no
10256 fi
10257 rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10259 LIBS=$ac_check_lib_save_LIBS
10260 fi
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10262 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10263 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
10264 HAVE_XFT=yes
10265 fi
10266
10267 fi
10268
10269
10270
10271 if test "${HAVE_XFT}" = "yes"; then
10272
10273 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10274
10275
10276 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
10277 else
10278 CPPFLAGS="$OLD_CPPFLAGS"
10279 CFLAGS="$OLD_CFLAGS"
10280 LIBS="$OLD_LIBS"
10281 fi # "${HAVE_XFT}" = "yes"
10282 fi # "$HAVE_XFT" != no
10283 fi # "x${with_xft}" != "xno"
10284
10285 if test "$HAVE_XFT" != "yes"; then
10286 HAVE_XFT=no
10287 fi
10288
10289
10290 HAVE_FREETYPE=no
10291 ## We used to allow building with FreeType and without Xft.
10292 ## However, the ftx font backend driver is not in good shape.
10293 if test "${HAVE_XFT}" = "yes"; then
10294 HAVE_FREETYPE=yes
10295 FONTCONFIG_CFLAGS=
10296 FONTCONFIG_LIBS=
10297 fi
10298
10299 HAVE_LIBOTF=no
10300 if test "${HAVE_FREETYPE}" = "yes"; then
10301
10302 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10303
10304 if test "${with_libotf}" != "no"; then
10305
10306 succeeded=no
10307
10308 # Extract the first word of "pkg-config", so it can be a program name with args.
10309 set dummy pkg-config; ac_word=$2
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10311 $as_echo_n "checking for $ac_word... " >&6; }
10312 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10313 $as_echo_n "(cached) " >&6
10314 else
10315 case $PKG_CONFIG in
10316 [\\/]* | ?:[\\/]*)
10317 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10318 ;;
10319 *)
10320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10321 for as_dir in $PATH
10322 do
10323 IFS=$as_save_IFS
10324 test -z "$as_dir" && as_dir=.
10325 for ac_exec_ext in '' $ac_executable_extensions; do
10326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10327 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10329 break 2
10330 fi
10331 done
10332 done
10333 IFS=$as_save_IFS
10334
10335 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10336 ;;
10337 esac
10338 fi
10339 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10340 if test -n "$PKG_CONFIG"; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10342 $as_echo "$PKG_CONFIG" >&6; }
10343 else
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10346 fi
10347
10348
10349
10350 if test "$PKG_CONFIG" = "no" ; then
10351 HAVE_LIBOTF=no
10352 else
10353 PKG_CONFIG_MIN_VERSION=0.9.0
10354 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10356 $as_echo_n "checking for libotf... " >&6; }
10357
10358 if $PKG_CONFIG --exists "libotf" 2>&5; then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10360 $as_echo "yes" >&6; }
10361 succeeded=yes
10362
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10364 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10365 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10367 $as_echo "$LIBOTF_CFLAGS" >&6; }
10368
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10370 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10371 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10373 $as_echo "$LIBOTF_LIBS" >&6; }
10374 else
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376 $as_echo "no" >&6; }
10377 LIBOTF_CFLAGS=""
10378 LIBOTF_LIBS=""
10379 ## If we have a custom action on failure, don't print errors, but
10380 ## do set a variable so people can do so.
10381 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10382
10383 fi
10384
10385
10386
10387 else
10388 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10389 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10390 fi
10391 fi
10392
10393 if test $succeeded = yes; then
10394 HAVE_LIBOTF=yes
10395 else
10396 HAVE_LIBOTF=no
10397 fi
10398
10399 if test "$HAVE_LIBOTF" = "yes"; then
10400
10401 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10402
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10404 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10405 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
10407 else
10408 ac_check_lib_save_LIBS=$LIBS
10409 LIBS="-lotf $LIBS"
10410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h. */
10412
10413 /* Override any GCC internal prototype to avoid an error.
10414 Use char because int might match the return type of a GCC
10415 builtin and then its argument prototype would still apply. */
10416 #ifdef __cplusplus
10417 extern "C"
10418 #endif
10419 char OTF_get_variation_glyphs ();
10420 int
10421 main ()
10422 {
10423 return OTF_get_variation_glyphs ();
10424 ;
10425 return 0;
10426 }
10427 _ACEOF
10428 if ac_fn_c_try_link "$LINENO"; then :
10429 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
10430 else
10431 ac_cv_lib_otf_OTF_get_variation_glyphs=no
10432 fi
10433 rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10435 LIBS=$ac_check_lib_save_LIBS
10436 fi
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10438 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10439 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
10440 HAVE_OTF_GET_VARIATION_GLYPHS=yes
10441 else
10442 HAVE_OTF_GET_VARIATION_GLYPHS=no
10443 fi
10444
10445 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10446
10447 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10448
10449 fi
10450 fi
10451 fi
10452 fi
10453
10454 HAVE_M17N_FLT=no
10455 if test "${HAVE_LIBOTF}" = yes; then
10456 if test "${with_m17n_flt}" != "no"; then
10457
10458 succeeded=no
10459
10460 # Extract the first word of "pkg-config", so it can be a program name with args.
10461 set dummy pkg-config; ac_word=$2
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10463 $as_echo_n "checking for $ac_word... " >&6; }
10464 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10465 $as_echo_n "(cached) " >&6
10466 else
10467 case $PKG_CONFIG in
10468 [\\/]* | ?:[\\/]*)
10469 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10470 ;;
10471 *)
10472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473 for as_dir in $PATH
10474 do
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
10477 for ac_exec_ext in '' $ac_executable_extensions; do
10478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10479 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10481 break 2
10482 fi
10483 done
10484 done
10485 IFS=$as_save_IFS
10486
10487 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10488 ;;
10489 esac
10490 fi
10491 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10492 if test -n "$PKG_CONFIG"; then
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10494 $as_echo "$PKG_CONFIG" >&6; }
10495 else
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; }
10498 fi
10499
10500
10501
10502 if test "$PKG_CONFIG" = "no" ; then
10503 HAVE_M17N_FLT=no
10504 else
10505 PKG_CONFIG_MIN_VERSION=0.9.0
10506 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10508 $as_echo_n "checking for m17n-flt... " >&6; }
10509
10510 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10512 $as_echo "yes" >&6; }
10513 succeeded=yes
10514
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10516 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10517 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10519 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10520
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10522 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10523 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10525 $as_echo "$M17N_FLT_LIBS" >&6; }
10526 else
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; }
10529 M17N_FLT_CFLAGS=""
10530 M17N_FLT_LIBS=""
10531 ## If we have a custom action on failure, don't print errors, but
10532 ## do set a variable so people can do so.
10533 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10534
10535 fi
10536
10537
10538
10539 else
10540 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10541 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10542 fi
10543 fi
10544
10545 if test $succeeded = yes; then
10546 HAVE_M17N_FLT=yes
10547 else
10548 HAVE_M17N_FLT=no
10549 fi
10550
10551 if test "$HAVE_M17N_FLT" = "yes"; then
10552
10553 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10554
10555 fi
10556 fi
10557 fi
10558 else
10559 HAVE_XFT=no
10560 HAVE_FREETYPE=no
10561 HAVE_LIBOTF=no
10562 HAVE_M17N_FLT=no
10563 fi
10564
10565 ### End of font-backend (under X11) section.
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576 ### Use -lXpm if available, unless `--with-xpm=no'.
10577 HAVE_XPM=no
10578 LIBXPM=
10579 if test "${HAVE_X11}" = "yes"; then
10580 if test "${with_xpm}" != "no"; then
10581 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10582 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10584 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10585 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10586 $as_echo_n "(cached) " >&6
10587 else
10588 ac_check_lib_save_LIBS=$LIBS
10589 LIBS="-lXpm -lX11 $LIBS"
10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10592
10593 /* Override any GCC internal prototype to avoid an error.
10594 Use char because int might match the return type of a GCC
10595 builtin and then its argument prototype would still apply. */
10596 #ifdef __cplusplus
10597 extern "C"
10598 #endif
10599 char XpmReadFileToPixmap ();
10600 int
10601 main ()
10602 {
10603 return XpmReadFileToPixmap ();
10604 ;
10605 return 0;
10606 }
10607 _ACEOF
10608 if ac_fn_c_try_link "$LINENO"; then :
10609 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10610 else
10611 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10612 fi
10613 rm -f core conftest.err conftest.$ac_objext \
10614 conftest$ac_exeext conftest.$ac_ext
10615 LIBS=$ac_check_lib_save_LIBS
10616 fi
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10618 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10619 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10620 HAVE_XPM=yes
10621 fi
10622
10623 fi
10624
10625
10626 if test "${HAVE_XPM}" = "yes"; then
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10628 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631 #include "X11/xpm.h"
10632 #ifndef XpmReturnAllocPixels
10633 no_return_alloc_pixels
10634 #endif
10635
10636 _ACEOF
10637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10638 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10639 HAVE_XPM=no
10640 else
10641 HAVE_XPM=yes
10642 fi
10643 rm -f conftest*
10644
10645
10646 if test "${HAVE_XPM}" = "yes"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648 $as_echo "yes" >&6; }
10649 else
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10652 fi
10653 fi
10654 fi
10655
10656 if test "${HAVE_XPM}" = "yes"; then
10657
10658 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10659
10660 LIBXPM=-lXpm
10661 fi
10662 fi
10663
10664
10665 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10666 HAVE_JPEG=no
10667 LIBJPEG=
10668 if test "${HAVE_X11}" = "yes"; then
10669 if test "${with_jpeg}" != "no"; then
10670 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10671 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10673 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10674 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10675 $as_echo_n "(cached) " >&6
10676 else
10677 ac_check_lib_save_LIBS=$LIBS
10678 LIBS="-ljpeg $LIBS"
10679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10681
10682 /* Override any GCC internal prototype to avoid an error.
10683 Use char because int might match the return type of a GCC
10684 builtin and then its argument prototype would still apply. */
10685 #ifdef __cplusplus
10686 extern "C"
10687 #endif
10688 char jpeg_destroy_compress ();
10689 int
10690 main ()
10691 {
10692 return jpeg_destroy_compress ();
10693 ;
10694 return 0;
10695 }
10696 _ACEOF
10697 if ac_fn_c_try_link "$LINENO"; then :
10698 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10699 else
10700 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10701 fi
10702 rm -f core conftest.err conftest.$ac_objext \
10703 conftest$ac_exeext conftest.$ac_ext
10704 LIBS=$ac_check_lib_save_LIBS
10705 fi
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10707 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10708 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10709 HAVE_JPEG=yes
10710 fi
10711
10712 fi
10713
10714
10715 fi
10716
10717 if test "${HAVE_JPEG}" = "yes"; then
10718 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10719
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10722 #include <jpeglib.h>
10723 version=JPEG_LIB_VERSION
10724
10725 _ACEOF
10726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10727 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10728 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10729
10730 else
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10732 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10733 HAVE_JPEG=no
10734 fi
10735 rm -f conftest*
10736
10737 fi
10738 if test "${HAVE_JPEG}" = "yes"; then
10739 LIBJPEG=-ljpeg
10740 fi
10741 fi
10742
10743
10744 ### Use -lpng if available, unless `--with-png=no'.
10745 HAVE_PNG=no
10746 LIBPNG=
10747 if test "${HAVE_X11}" = "yes"; then
10748 if test "${with_png}" != "no"; then
10749 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10750 # in /usr/include/libpng.
10751 for ac_header in png.h libpng/png.h
10752 do :
10753 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10754 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10755 eval as_val=\$$as_ac_Header
10756 if test "x$as_val" = x""yes; then :
10757 cat >>confdefs.h <<_ACEOF
10758 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10759 _ACEOF
10760
10761 fi
10762
10763 done
10764
10765 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10767 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10768 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10769 $as_echo_n "(cached) " >&6
10770 else
10771 ac_check_lib_save_LIBS=$LIBS
10772 LIBS="-lpng -lz -lm $LIBS"
10773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h. */
10775
10776 /* Override any GCC internal prototype to avoid an error.
10777 Use char because int might match the return type of a GCC
10778 builtin and then its argument prototype would still apply. */
10779 #ifdef __cplusplus
10780 extern "C"
10781 #endif
10782 char png_get_channels ();
10783 int
10784 main ()
10785 {
10786 return png_get_channels ();
10787 ;
10788 return 0;
10789 }
10790 _ACEOF
10791 if ac_fn_c_try_link "$LINENO"; then :
10792 ac_cv_lib_png_png_get_channels=yes
10793 else
10794 ac_cv_lib_png_png_get_channels=no
10795 fi
10796 rm -f core conftest.err conftest.$ac_objext \
10797 conftest$ac_exeext conftest.$ac_ext
10798 LIBS=$ac_check_lib_save_LIBS
10799 fi
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10801 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10802 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10803 HAVE_PNG=yes
10804 fi
10805
10806 fi
10807 fi
10808
10809 if test "${HAVE_PNG}" = "yes"; then
10810
10811 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10812
10813 LIBPNG="-lpng -lz -lm"
10814 fi
10815 fi
10816
10817
10818 ### Use -ltiff if available, unless `--with-tiff=no'.
10819 HAVE_TIFF=no
10820 LIBTIFF=
10821 if test "${HAVE_X11}" = "yes"; then
10822 if test "${with_tiff}" != "no"; then
10823 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10824 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10825 tifflibs="-lz -lm"
10826 # At least one tiff package requires the jpeg library.
10827 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10829 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10830 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10831 $as_echo_n "(cached) " >&6
10832 else
10833 ac_check_lib_save_LIBS=$LIBS
10834 LIBS="-ltiff $tifflibs $LIBS"
10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10837
10838 /* Override any GCC internal prototype to avoid an error.
10839 Use char because int might match the return type of a GCC
10840 builtin and then its argument prototype would still apply. */
10841 #ifdef __cplusplus
10842 extern "C"
10843 #endif
10844 char TIFFGetVersion ();
10845 int
10846 main ()
10847 {
10848 return TIFFGetVersion ();
10849 ;
10850 return 0;
10851 }
10852 _ACEOF
10853 if ac_fn_c_try_link "$LINENO"; then :
10854 ac_cv_lib_tiff_TIFFGetVersion=yes
10855 else
10856 ac_cv_lib_tiff_TIFFGetVersion=no
10857 fi
10858 rm -f core conftest.err conftest.$ac_objext \
10859 conftest$ac_exeext conftest.$ac_ext
10860 LIBS=$ac_check_lib_save_LIBS
10861 fi
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10863 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10864 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10865 HAVE_TIFF=yes
10866 fi
10867
10868 fi
10869
10870
10871 fi
10872
10873 if test "${HAVE_TIFF}" = "yes"; then
10874
10875 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10876
10877 LIBTIFF=-ltiff
10878 fi
10879 fi
10880
10881
10882 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10883 HAVE_GIF=no
10884 LIBGIF=
10885 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10886 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10887 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10888 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10889 # Earlier versions can crash Emacs.
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10891 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10892 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10893 $as_echo_n "(cached) " >&6
10894 else
10895 ac_check_lib_save_LIBS=$LIBS
10896 LIBS="-lgif $LIBS"
10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10899
10900 /* Override any GCC internal prototype to avoid an error.
10901 Use char because int might match the return type of a GCC
10902 builtin and then its argument prototype would still apply. */
10903 #ifdef __cplusplus
10904 extern "C"
10905 #endif
10906 char EGifPutExtensionLast ();
10907 int
10908 main ()
10909 {
10910 return EGifPutExtensionLast ();
10911 ;
10912 return 0;
10913 }
10914 _ACEOF
10915 if ac_fn_c_try_link "$LINENO"; then :
10916 ac_cv_lib_gif_EGifPutExtensionLast=yes
10917 else
10918 ac_cv_lib_gif_EGifPutExtensionLast=no
10919 fi
10920 rm -f core conftest.err conftest.$ac_objext \
10921 conftest$ac_exeext conftest.$ac_ext
10922 LIBS=$ac_check_lib_save_LIBS
10923 fi
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10925 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10926 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10927 HAVE_GIF=yes
10928 else
10929 HAVE_GIF=maybe
10930 fi
10931
10932 fi
10933
10934
10935
10936 if test "$HAVE_GIF" = yes; then
10937 LIBGIF=-lgif
10938 elif test "$HAVE_GIF" = maybe; then
10939 # If gif_lib.h but no libgif, try libungif.
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10941 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10942 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945 ac_check_lib_save_LIBS=$LIBS
10946 LIBS="-lungif $LIBS"
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10949
10950 /* Override any GCC internal prototype to avoid an error.
10951 Use char because int might match the return type of a GCC
10952 builtin and then its argument prototype would still apply. */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 char EGifPutExtensionLast ();
10957 int
10958 main ()
10959 {
10960 return EGifPutExtensionLast ();
10961 ;
10962 return 0;
10963 }
10964 _ACEOF
10965 if ac_fn_c_try_link "$LINENO"; then :
10966 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10967 else
10968 ac_cv_lib_ungif_EGifPutExtensionLast=no
10969 fi
10970 rm -f core conftest.err conftest.$ac_objext \
10971 conftest$ac_exeext conftest.$ac_ext
10972 LIBS=$ac_check_lib_save_LIBS
10973 fi
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10975 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10976 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10977 HAVE_GIF=yes
10978 else
10979 HAVE_GIF=no
10980 fi
10981
10982 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10983 fi
10984
10985 if test "${HAVE_GIF}" = "yes"; then
10986
10987 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10988
10989 fi
10990 fi
10991
10992
10993 if test "${HAVE_X11}" = "yes"; then
10994 MISSING=""
10995 WITH_NO=""
10996 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10997 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10998 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10999 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
11000 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11001 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
11002 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11003 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
11004 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11005 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
11006
11007 if test "X${MISSING}" != X; then
11008 as_fn_error "The following required libraries were not found:
11009 $MISSING
11010 Maybe some development libraries/packages are missing?
11011 If you don't want to link with them give
11012 $WITH_NO
11013 as options to configure" "$LINENO" 5
11014 fi
11015 fi
11016
11017 ### Use -lgpm if available, unless `--with-gpm=no'.
11018 HAVE_GPM=no
11019 LIBGPM=
11020 MOUSE_SUPPORT=
11021 if test "${with_gpm}" != "no"; then
11022 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11023 if test "x$ac_cv_header_gpm_h" = x""yes; then :
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11025 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11026 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
11027 $as_echo_n "(cached) " >&6
11028 else
11029 ac_check_lib_save_LIBS=$LIBS
11030 LIBS="-lgpm $LIBS"
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11033
11034 /* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11037 #ifdef __cplusplus
11038 extern "C"
11039 #endif
11040 char Gpm_Open ();
11041 int
11042 main ()
11043 {
11044 return Gpm_Open ();
11045 ;
11046 return 0;
11047 }
11048 _ACEOF
11049 if ac_fn_c_try_link "$LINENO"; then :
11050 ac_cv_lib_gpm_Gpm_Open=yes
11051 else
11052 ac_cv_lib_gpm_Gpm_Open=no
11053 fi
11054 rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext conftest.$ac_ext
11056 LIBS=$ac_check_lib_save_LIBS
11057 fi
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11059 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11060 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
11061 HAVE_GPM=yes
11062 fi
11063
11064 fi
11065
11066
11067
11068 if test "${HAVE_GPM}" = "yes"; then
11069
11070 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11071
11072 LIBGPM=-lgpm
11073 ## May be reset below.
11074 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
11075 fi
11076 fi
11077
11078
11079 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11080 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
11081
11082 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11083
11084 fi
11085
11086
11087
11088 C_SWITCH_X_SYSTEM=
11089 ### Use NeXTstep API to implement GUI.
11090 if test "${HAVE_NS}" = "yes"; then
11091
11092 $as_echo "#define HAVE_NS 1" >>confdefs.h
11093
11094 if test "${NS_IMPL_COCOA}" = "yes"; then
11095
11096 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11097
11098 GNU_OBJC_CFLAGS=
11099 fi
11100 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11101
11102 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11103
11104 # See also .m.o rule in Makefile.in */
11105 # FIXME: are all these flags really needed? Document here why. */
11106 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
11107 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11108 fi
11109 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11110
11111 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11112
11113 fi
11114 # We also have mouse menus.
11115 HAVE_MENUS=yes
11116 OTHER_FILES=ns-app
11117 fi
11118
11119
11120 ### Use session management (-lSM -lICE) if available
11121 HAVE_X_SM=no
11122 LIBXSM=
11123 if test "${HAVE_X11}" = "yes"; then
11124 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11125 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11127 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11128 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
11129 $as_echo_n "(cached) " >&6
11130 else
11131 ac_check_lib_save_LIBS=$LIBS
11132 LIBS="-lSM -lICE $LIBS"
11133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h. */
11135
11136 /* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
11139 #ifdef __cplusplus
11140 extern "C"
11141 #endif
11142 char SmcOpenConnection ();
11143 int
11144 main ()
11145 {
11146 return SmcOpenConnection ();
11147 ;
11148 return 0;
11149 }
11150 _ACEOF
11151 if ac_fn_c_try_link "$LINENO"; then :
11152 ac_cv_lib_SM_SmcOpenConnection=yes
11153 else
11154 ac_cv_lib_SM_SmcOpenConnection=no
11155 fi
11156 rm -f core conftest.err conftest.$ac_objext \
11157 conftest$ac_exeext conftest.$ac_ext
11158 LIBS=$ac_check_lib_save_LIBS
11159 fi
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11161 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11162 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
11163 HAVE_X_SM=yes
11164 fi
11165
11166 fi
11167
11168
11169
11170 if test "${HAVE_X_SM}" = "yes"; then
11171
11172 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11173
11174 LIBXSM="-lSM -lICE"
11175 case "$LIBS" in
11176 *-lSM*) ;;
11177 *) LIBS="$LIBXSM $LIBS" ;;
11178 esac
11179 fi
11180 fi
11181
11182
11183 ### Use libxml (-lxml2) if available
11184 if test "${with_xml2}" != "no"; then
11185 ### I'm not sure what the version number should be, so I just guessed.
11186
11187 succeeded=no
11188
11189 # Extract the first word of "pkg-config", so it can be a program name with args.
11190 set dummy pkg-config; ac_word=$2
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192 $as_echo_n "checking for $ac_word... " >&6; }
11193 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11194 $as_echo_n "(cached) " >&6
11195 else
11196 case $PKG_CONFIG in
11197 [\\/]* | ?:[\\/]*)
11198 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11199 ;;
11200 *)
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11203 do
11204 IFS=$as_save_IFS
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11208 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11210 break 2
11211 fi
11212 done
11213 done
11214 IFS=$as_save_IFS
11215
11216 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11217 ;;
11218 esac
11219 fi
11220 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11221 if test -n "$PKG_CONFIG"; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11223 $as_echo "$PKG_CONFIG" >&6; }
11224 else
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226 $as_echo "no" >&6; }
11227 fi
11228
11229
11230
11231 if test "$PKG_CONFIG" = "no" ; then
11232 HAVE_LIBXML2=no
11233 else
11234 PKG_CONFIG_MIN_VERSION=0.9.0
11235 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11237 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11238
11239 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11241 $as_echo "yes" >&6; }
11242 succeeded=yes
11243
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11245 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11246 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11248 $as_echo "$LIBXML2_CFLAGS" >&6; }
11249
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11251 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11252 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11254 $as_echo "$LIBXML2_LIBS" >&6; }
11255 else
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11258 LIBXML2_CFLAGS=""
11259 LIBXML2_LIBS=""
11260 ## If we have a custom action on failure, don't print errors, but
11261 ## do set a variable so people can do so.
11262 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11263
11264 fi
11265
11266
11267
11268 else
11269 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11270 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11271 fi
11272 fi
11273
11274 if test $succeeded = yes; then
11275 HAVE_LIBXML2=yes
11276 else
11277 HAVE_LIBXML2=no
11278 fi
11279
11280 if test "${HAVE_LIBXML2}" = "yes"; then
11281 LIBS="$LIBXML2_LIBS $LIBS"
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11283 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11284 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 ac_check_lib_save_LIBS=$LIBS
11288 LIBS="-lxml2 $LIBS"
11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11291
11292 /* Override any GCC internal prototype to avoid an error.
11293 Use char because int might match the return type of a GCC
11294 builtin and then its argument prototype would still apply. */
11295 #ifdef __cplusplus
11296 extern "C"
11297 #endif
11298 char htmlReadMemory ();
11299 int
11300 main ()
11301 {
11302 return htmlReadMemory ();
11303 ;
11304 return 0;
11305 }
11306 _ACEOF
11307 if ac_fn_c_try_link "$LINENO"; then :
11308 ac_cv_lib_xml2_htmlReadMemory=yes
11309 else
11310 ac_cv_lib_xml2_htmlReadMemory=no
11311 fi
11312 rm -f core conftest.err conftest.$ac_objext \
11313 conftest$ac_exeext conftest.$ac_ext
11314 LIBS=$ac_check_lib_save_LIBS
11315 fi
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11317 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11318 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
11319 HAVE_LIBXML2=yes
11320 else
11321 HAVE_LIBXML2=no
11322 fi
11323
11324 if test "${HAVE_LIBXML2}" = "yes"; then
11325
11326 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11327
11328 else
11329 LIBXML2_LIBS=""
11330 LIBXML2_CFLAGS=""
11331 fi
11332 fi
11333 fi
11334
11335
11336
11337 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11339 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11340 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
11341 $as_echo_n "(cached) " >&6
11342 else
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11345 #include <netdb.h>
11346 int
11347 main ()
11348 {
11349 return h_errno;
11350 ;
11351 return 0;
11352 }
11353 _ACEOF
11354 if ac_fn_c_try_link "$LINENO"; then :
11355 emacs_cv_netdb_declares_h_errno=yes
11356 else
11357 emacs_cv_netdb_declares_h_errno=no
11358 fi
11359 rm -f core conftest.err conftest.$ac_objext \
11360 conftest$ac_exeext conftest.$ac_ext
11361 fi
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11363 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11364 if test $emacs_cv_netdb_declares_h_errno = yes; then
11365
11366 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11367
11368 fi
11369
11370 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11371 # for constant arguments. Useless!
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11373 $as_echo_n "checking for working alloca.h... " >&6; }
11374 if test "${ac_cv_working_alloca_h+set}" = set; then :
11375 $as_echo_n "(cached) " >&6
11376 else
11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h. */
11379 #include <alloca.h>
11380 int
11381 main ()
11382 {
11383 char *p = (char *) alloca (2 * sizeof (int));
11384 if (p) return 0;
11385 ;
11386 return 0;
11387 }
11388 _ACEOF
11389 if ac_fn_c_try_link "$LINENO"; then :
11390 ac_cv_working_alloca_h=yes
11391 else
11392 ac_cv_working_alloca_h=no
11393 fi
11394 rm -f core conftest.err conftest.$ac_objext \
11395 conftest$ac_exeext conftest.$ac_ext
11396 fi
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11398 $as_echo "$ac_cv_working_alloca_h" >&6; }
11399 if test $ac_cv_working_alloca_h = yes; then
11400
11401 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11402
11403 fi
11404
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11406 $as_echo_n "checking for alloca... " >&6; }
11407 if test "${ac_cv_func_alloca_works+set}" = set; then :
11408 $as_echo_n "(cached) " >&6
11409 else
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11412 #ifdef __GNUC__
11413 # define alloca __builtin_alloca
11414 #else
11415 # ifdef _MSC_VER
11416 # include <malloc.h>
11417 # define alloca _alloca
11418 # else
11419 # ifdef HAVE_ALLOCA_H
11420 # include <alloca.h>
11421 # else
11422 # ifdef _AIX
11423 #pragma alloca
11424 # else
11425 # ifndef alloca /* predefined by HP cc +Olibcalls */
11426 char *alloca ();
11427 # endif
11428 # endif
11429 # endif
11430 # endif
11431 #endif
11432
11433 int
11434 main ()
11435 {
11436 char *p = (char *) alloca (1);
11437 if (p) return 0;
11438 ;
11439 return 0;
11440 }
11441 _ACEOF
11442 if ac_fn_c_try_link "$LINENO"; then :
11443 ac_cv_func_alloca_works=yes
11444 else
11445 ac_cv_func_alloca_works=no
11446 fi
11447 rm -f core conftest.err conftest.$ac_objext \
11448 conftest$ac_exeext conftest.$ac_ext
11449 fi
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11451 $as_echo "$ac_cv_func_alloca_works" >&6; }
11452
11453 if test $ac_cv_func_alloca_works = yes; then
11454
11455 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11456
11457 else
11458 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11459 # that cause trouble. Some versions do not even contain alloca or
11460 # contain a buggy version. If you still want to use their alloca,
11461 # use ar to extract alloca.o from them instead of compiling alloca.c.
11462
11463 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11464
11465 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11466
11467
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11469 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11470 if test "${ac_cv_os_cray+set}" = set; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11474 /* end confdefs.h. */
11475 #if defined CRAY && ! defined CRAY2
11476 webecray
11477 #else
11478 wenotbecray
11479 #endif
11480
11481 _ACEOF
11482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11483 $EGREP "webecray" >/dev/null 2>&1; then :
11484 ac_cv_os_cray=yes
11485 else
11486 ac_cv_os_cray=no
11487 fi
11488 rm -f conftest*
11489
11490 fi
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11492 $as_echo "$ac_cv_os_cray" >&6; }
11493 if test $ac_cv_os_cray = yes; then
11494 for ac_func in _getb67 GETB67 getb67; do
11495 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11496 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11497 eval as_val=\$$as_ac_var
11498 if test "x$as_val" = x""yes; then :
11499
11500 cat >>confdefs.h <<_ACEOF
11501 #define CRAY_STACKSEG_END $ac_func
11502 _ACEOF
11503
11504 break
11505 fi
11506
11507 done
11508 fi
11509
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11511 $as_echo_n "checking stack direction for C alloca... " >&6; }
11512 if test "${ac_cv_c_stack_direction+set}" = set; then :
11513 $as_echo_n "(cached) " >&6
11514 else
11515 if test "$cross_compiling" = yes; then :
11516 ac_cv_c_stack_direction=0
11517 else
11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11520 $ac_includes_default
11521 int
11522 find_stack_direction ()
11523 {
11524 static char *addr = 0;
11525 auto char dummy;
11526 if (addr == 0)
11527 {
11528 addr = &dummy;
11529 return find_stack_direction ();
11530 }
11531 else
11532 return (&dummy > addr) ? 1 : -1;
11533 }
11534
11535 int
11536 main ()
11537 {
11538 return find_stack_direction () < 0;
11539 }
11540 _ACEOF
11541 if ac_fn_c_try_run "$LINENO"; then :
11542 ac_cv_c_stack_direction=1
11543 else
11544 ac_cv_c_stack_direction=-1
11545 fi
11546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11547 conftest.$ac_objext conftest.beam conftest.$ac_ext
11548 fi
11549
11550 fi
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11552 $as_echo "$ac_cv_c_stack_direction" >&6; }
11553 cat >>confdefs.h <<_ACEOF
11554 #define STACK_DIRECTION $ac_cv_c_stack_direction
11555 _ACEOF
11556
11557
11558 fi
11559
11560
11561 if test x"$ac_cv_func_alloca_works" != xyes; then
11562 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
11563 fi
11564
11565 # fmod, logb, and frexp are found in -lm on most systems.
11566 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11568 $as_echo_n "checking for sqrt in -lm... " >&6; }
11569 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 ac_check_lib_save_LIBS=$LIBS
11573 LIBS="-lm $LIBS"
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11576
11577 /* Override any GCC internal prototype to avoid an error.
11578 Use char because int might match the return type of a GCC
11579 builtin and then its argument prototype would still apply. */
11580 #ifdef __cplusplus
11581 extern "C"
11582 #endif
11583 char sqrt ();
11584 int
11585 main ()
11586 {
11587 return sqrt ();
11588 ;
11589 return 0;
11590 }
11591 _ACEOF
11592 if ac_fn_c_try_link "$LINENO"; then :
11593 ac_cv_lib_m_sqrt=yes
11594 else
11595 ac_cv_lib_m_sqrt=no
11596 fi
11597 rm -f core conftest.err conftest.$ac_objext \
11598 conftest$ac_exeext conftest.$ac_ext
11599 LIBS=$ac_check_lib_save_LIBS
11600 fi
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11602 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11603 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
11604 cat >>confdefs.h <<_ACEOF
11605 #define HAVE_LIBM 1
11606 _ACEOF
11607
11608 LIBS="-lm $LIBS"
11609
11610 fi
11611
11612
11613 # Check for mail-locking functions in a "mail" library. Probably this should
11614 # have the same check as for liblockfile below.
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11616 $as_echo_n "checking for maillock in -lmail... " >&6; }
11617 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11618 $as_echo_n "(cached) " >&6
11619 else
11620 ac_check_lib_save_LIBS=$LIBS
11621 LIBS="-lmail $LIBS"
11622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623 /* end confdefs.h. */
11624
11625 /* Override any GCC internal prototype to avoid an error.
11626 Use char because int might match the return type of a GCC
11627 builtin and then its argument prototype would still apply. */
11628 #ifdef __cplusplus
11629 extern "C"
11630 #endif
11631 char maillock ();
11632 int
11633 main ()
11634 {
11635 return maillock ();
11636 ;
11637 return 0;
11638 }
11639 _ACEOF
11640 if ac_fn_c_try_link "$LINENO"; then :
11641 ac_cv_lib_mail_maillock=yes
11642 else
11643 ac_cv_lib_mail_maillock=no
11644 fi
11645 rm -f core conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11647 LIBS=$ac_check_lib_save_LIBS
11648 fi
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11650 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11651 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
11652 have_mail=yes
11653 else
11654 have_mail=no
11655 fi
11656
11657 if test $have_mail = yes; then
11658 LIBS_MAIL=-lmail
11659 LIBS="$LIBS_MAIL $LIBS"
11660
11661 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11662
11663 else
11664 LIBS_MAIL=
11665 fi
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11667 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11668 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11669 $as_echo_n "(cached) " >&6
11670 else
11671 ac_check_lib_save_LIBS=$LIBS
11672 LIBS="-llockfile $LIBS"
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h. */
11675
11676 /* Override any GCC internal prototype to avoid an error.
11677 Use char because int might match the return type of a GCC
11678 builtin and then its argument prototype would still apply. */
11679 #ifdef __cplusplus
11680 extern "C"
11681 #endif
11682 char maillock ();
11683 int
11684 main ()
11685 {
11686 return maillock ();
11687 ;
11688 return 0;
11689 }
11690 _ACEOF
11691 if ac_fn_c_try_link "$LINENO"; then :
11692 ac_cv_lib_lockfile_maillock=yes
11693 else
11694 ac_cv_lib_lockfile_maillock=no
11695 fi
11696 rm -f core conftest.err conftest.$ac_objext \
11697 conftest$ac_exeext conftest.$ac_ext
11698 LIBS=$ac_check_lib_save_LIBS
11699 fi
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11701 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11702 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
11703 have_lockfile=yes
11704 else
11705 have_lockfile=no
11706 fi
11707
11708 if test $have_lockfile = yes; then
11709 LIBS_MAIL=-llockfile
11710 LIBS="$LIBS_MAIL $LIBS"
11711
11712 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11713
11714 else
11715 # If we have the shared liblockfile, assume we must use it for mail
11716 # locking (e.g. Debian). If we couldn't link against liblockfile
11717 # (no liblockfile.a installed), ensure that we don't need to.
11718 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11719 set dummy liblockfile.so; ac_word=$2
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11721 $as_echo_n "checking for $ac_word... " >&6; }
11722 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11723 $as_echo_n "(cached) " >&6
11724 else
11725 if test -n "$liblockfile"; then
11726 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11727 else
11728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11729 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11730 for as_dir in $as_dummy
11731 do
11732 IFS=$as_save_IFS
11733 test -z "$as_dir" && as_dir=.
11734 for ac_exec_ext in '' $ac_executable_extensions; do
11735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11736 ac_cv_prog_liblockfile="yes"
11737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11738 break 2
11739 fi
11740 done
11741 done
11742 IFS=$as_save_IFS
11743
11744 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11745 fi
11746 fi
11747 liblockfile=$ac_cv_prog_liblockfile
11748 if test -n "$liblockfile"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11750 $as_echo "$liblockfile" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11754 fi
11755
11756
11757 if test $ac_cv_prog_liblockfile = yes; then
11758 as_fn_error "Shared liblockfile found but can't link against it.
11759 This probably means that movemail could lose mail.
11760 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11761 fi
11762 fi
11763 for ac_func in touchlock
11764 do :
11765 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11766 if test "x$ac_cv_func_touchlock" = x""yes; then :
11767 cat >>confdefs.h <<_ACEOF
11768 #define HAVE_TOUCHLOCK 1
11769 _ACEOF
11770
11771 fi
11772 done
11773
11774 for ac_header in maillock.h
11775 do :
11776 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11777 if test "x$ac_cv_header_maillock_h" = x""yes; then :
11778 cat >>confdefs.h <<_ACEOF
11779 #define HAVE_MAILLOCK_H 1
11780 _ACEOF
11781
11782 fi
11783
11784 done
11785
11786
11787
11788 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11789 ## interlock access to the mail spool. The alternative is a lock file named
11790 ## /usr/spool/mail/$USER.lock.
11791 mail_lock=no
11792 case "$opsys" in
11793 aix4-2) mail_lock="lockf" ;;
11794
11795 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11796
11797 ## On GNU/Linux systems, both methods are used by various mail programs.
11798 ## I assume most people are using newer mailers that have heard of flock.
11799 ## Change this if you need to.
11800 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11801 ## configure gets the right answers, and that means *NOT* using flock.
11802 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11803 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11804 ## Debian maintainer hasn't provided a clean fix for Emacs.
11805 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11806 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11807 ## correct logic. -- fx
11808 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11809 ## liblockfile is a Free Software replacement for libmail, used on
11810 ## Debian systems and elsewhere. -rfr.
11811 gnu-*)
11812 mail_lock="flock"
11813 if test $have_mail = yes || test $have_lockfile = yes; then
11814 test $ac_cv_header_maillock_h = yes && mail_lock=no
11815 fi
11816 ;;
11817 esac
11818
11819 BLESSMAIL_TARGET=
11820 case "$mail_lock" in
11821 flock)
11822 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11823 ;;
11824
11825 lockf)
11826 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11827 ;;
11828
11829 *) BLESSMAIL_TARGET="need-blessmail" ;;
11830 esac
11831
11832
11833
11834 for ac_func in gethostname getdomainname dup2 \
11835 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11836 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11837 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11838 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11839 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11840 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11841 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11842 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11843 cfmakeraw cfsetspeed isnan copysign __executable_start
11844 do :
11845 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11846 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11847 eval as_val=\$$as_ac_var
11848 if test "x$as_val" = x""yes; then :
11849 cat >>confdefs.h <<_ACEOF
11850 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11851 _ACEOF
11852
11853 fi
11854 done
11855
11856
11857 for ac_header in sys/un.h
11858 do :
11859 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11860 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11861 cat >>confdefs.h <<_ACEOF
11862 #define HAVE_SYS_UN_H 1
11863 _ACEOF
11864
11865 fi
11866
11867 done
11868
11869
11870
11871
11872
11873
11874
11875 for ac_func in $ac_func_list
11876 do :
11877 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11878 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11879 eval as_val=\$$as_ac_var
11880 if test "x$as_val" = x""yes; then :
11881 cat >>confdefs.h <<_ACEOF
11882 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11883 _ACEOF
11884
11885 fi
11886 done
11887
11888
11889
11890
11891
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11893 $as_echo_n "checking for working mktime... " >&6; }
11894 if test "${ac_cv_func_working_mktime+set}" = set; then :
11895 $as_echo_n "(cached) " >&6
11896 else
11897 if test "$cross_compiling" = yes; then :
11898 ac_cv_func_working_mktime=no
11899 else
11900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h. */
11902 /* Test program from Paul Eggert and Tony Leneis. */
11903 #ifdef TIME_WITH_SYS_TIME
11904 # include <sys/time.h>
11905 # include <time.h>
11906 #else
11907 # ifdef HAVE_SYS_TIME_H
11908 # include <sys/time.h>
11909 # else
11910 # include <time.h>
11911 # endif
11912 #endif
11913
11914 #include <limits.h>
11915 #include <stdlib.h>
11916
11917 #ifdef HAVE_UNISTD_H
11918 # include <unistd.h>
11919 #endif
11920
11921 #ifndef HAVE_ALARM
11922 # define alarm(X) /* empty */
11923 #endif
11924
11925 /* Work around redefinition to rpl_putenv by other config tests. */
11926 #undef putenv
11927
11928 static time_t time_t_max;
11929 static time_t time_t_min;
11930
11931 /* Values we'll use to set the TZ environment variable. */
11932 static char *tz_strings[] = {
11933 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11934 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11935 };
11936 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11937
11938 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11939 Based on a problem report from Andreas Jaeger. */
11940 static int
11941 spring_forward_gap ()
11942 {
11943 /* glibc (up to about 1998-10-07) failed this test. */
11944 struct tm tm;
11945
11946 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11947 instead of "TZ=America/Vancouver" in order to detect the bug even
11948 on systems that don't support the Olson extension, or don't have the
11949 full zoneinfo tables installed. */
11950 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11951
11952 tm.tm_year = 98;
11953 tm.tm_mon = 3;
11954 tm.tm_mday = 5;
11955 tm.tm_hour = 2;
11956 tm.tm_min = 0;
11957 tm.tm_sec = 0;
11958 tm.tm_isdst = -1;
11959 return mktime (&tm) != (time_t) -1;
11960 }
11961
11962 static int
11963 mktime_test1 (now)
11964 time_t now;
11965 {
11966 struct tm *lt;
11967 return ! (lt = localtime (&now)) || mktime (lt) == now;
11968 }
11969
11970 static int
11971 mktime_test (now)
11972 time_t now;
11973 {
11974 return (mktime_test1 (now)
11975 && mktime_test1 ((time_t) (time_t_max - now))
11976 && mktime_test1 ((time_t) (time_t_min + now)));
11977 }
11978
11979 static int
11980 irix_6_4_bug ()
11981 {
11982 /* Based on code from Ariel Faigon. */
11983 struct tm tm;
11984 tm.tm_year = 96;
11985 tm.tm_mon = 3;
11986 tm.tm_mday = 0;
11987 tm.tm_hour = 0;
11988 tm.tm_min = 0;
11989 tm.tm_sec = 0;
11990 tm.tm_isdst = -1;
11991 mktime (&tm);
11992 return tm.tm_mon == 2 && tm.tm_mday == 31;
11993 }
11994
11995 static int
11996 bigtime_test (j)
11997 int j;
11998 {
11999 struct tm tm;
12000 time_t now;
12001 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12002 now = mktime (&tm);
12003 if (now != (time_t) -1)
12004 {
12005 struct tm *lt = localtime (&now);
12006 if (! (lt
12007 && lt->tm_year == tm.tm_year
12008 && lt->tm_mon == tm.tm_mon
12009 && lt->tm_mday == tm.tm_mday
12010 && lt->tm_hour == tm.tm_hour
12011 && lt->tm_min == tm.tm_min
12012 && lt->tm_sec == tm.tm_sec
12013 && lt->tm_yday == tm.tm_yday
12014 && lt->tm_wday == tm.tm_wday
12015 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12016 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12017 return 0;
12018 }
12019 return 1;
12020 }
12021
12022 static int
12023 year_2050_test ()
12024 {
12025 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12026 ignoring leap seconds. */
12027 unsigned long int answer = 2527315200UL;
12028
12029 struct tm tm;
12030 time_t t;
12031 tm.tm_year = 2050 - 1900;
12032 tm.tm_mon = 2 - 1;
12033 tm.tm_mday = 1;
12034 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12035 tm.tm_isdst = -1;
12036
12037 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12038 instead of "TZ=America/Vancouver" in order to detect the bug even
12039 on systems that don't support the Olson extension, or don't have the
12040 full zoneinfo tables installed. */
12041 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12042
12043 t = mktime (&tm);
12044
12045 /* Check that the result is either a failure, or close enough
12046 to the correct answer that we can assume the discrepancy is
12047 due to leap seconds. */
12048 return (t == (time_t) -1
12049 || (0 < t && answer - 120 <= t && t <= answer + 120));
12050 }
12051
12052 int
12053 main ()
12054 {
12055 time_t t, delta;
12056 int i, j;
12057
12058 /* This test makes some buggy mktime implementations loop.
12059 Give up after 60 seconds; a mktime slower than that
12060 isn't worth using anyway. */
12061 alarm (60);
12062
12063 for (;;)
12064 {
12065 t = (time_t_max << 1) + 1;
12066 if (t <= time_t_max)
12067 break;
12068 time_t_max = t;
12069 }
12070 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12071
12072 delta = time_t_max / 997; /* a suitable prime number */
12073 for (i = 0; i < N_STRINGS; i++)
12074 {
12075 if (tz_strings[i])
12076 putenv (tz_strings[i]);
12077
12078 for (t = 0; t <= time_t_max - delta; t += delta)
12079 if (! mktime_test (t))
12080 return 1;
12081 if (! (mktime_test ((time_t) 1)
12082 && mktime_test ((time_t) (60 * 60))
12083 && mktime_test ((time_t) (60 * 60 * 24))))
12084 return 1;
12085
12086 for (j = 1; ; j <<= 1)
12087 if (! bigtime_test (j))
12088 return 1;
12089 else if (INT_MAX / 2 < j)
12090 break;
12091 if (! bigtime_test (INT_MAX))
12092 return 1;
12093 }
12094 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12095 }
12096 _ACEOF
12097 if ac_fn_c_try_run "$LINENO"; then :
12098 ac_cv_func_working_mktime=yes
12099 else
12100 ac_cv_func_working_mktime=no
12101 fi
12102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12103 conftest.$ac_objext conftest.beam conftest.$ac_ext
12104 fi
12105
12106 fi
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12108 $as_echo "$ac_cv_func_working_mktime" >&6; }
12109 if test $ac_cv_func_working_mktime = no; then
12110 case " $LIBOBJS " in
12111 *" mktime.$ac_objext "* ) ;;
12112 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12113 ;;
12114 esac
12115
12116 fi
12117
12118 if test "$ac_cv_func_working_mktime" = no; then
12119
12120 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12121
12122 fi
12123
12124 ac_have_func=no # yes means we've found a way to get the load average.
12125
12126 # Make sure getloadavg.c is where it belongs, at configure-time.
12127 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12128 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12129
12130 ac_save_LIBS=$LIBS
12131
12132 # Check for getloadavg, but be sure not to touch the cache variable.
12133 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12134 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12135 exit 0
12136 else
12137 exit 1
12138 fi
12139 ) && ac_have_func=yes
12140
12141 # On HPUX9, an unprivileged user can get load averages through this function.
12142 for ac_func in pstat_getdynamic
12143 do :
12144 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12145 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
12146 cat >>confdefs.h <<_ACEOF
12147 #define HAVE_PSTAT_GETDYNAMIC 1
12148 _ACEOF
12149
12150 fi
12151 done
12152
12153
12154 # Solaris has libkstat which does not require root.
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12156 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12157 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12158 $as_echo_n "(cached) " >&6
12159 else
12160 ac_check_lib_save_LIBS=$LIBS
12161 LIBS="-lkstat $LIBS"
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12164
12165 /* Override any GCC internal prototype to avoid an error.
12166 Use char because int might match the return type of a GCC
12167 builtin and then its argument prototype would still apply. */
12168 #ifdef __cplusplus
12169 extern "C"
12170 #endif
12171 char kstat_open ();
12172 int
12173 main ()
12174 {
12175 return kstat_open ();
12176 ;
12177 return 0;
12178 }
12179 _ACEOF
12180 if ac_fn_c_try_link "$LINENO"; then :
12181 ac_cv_lib_kstat_kstat_open=yes
12182 else
12183 ac_cv_lib_kstat_kstat_open=no
12184 fi
12185 rm -f core conftest.err conftest.$ac_objext \
12186 conftest$ac_exeext conftest.$ac_ext
12187 LIBS=$ac_check_lib_save_LIBS
12188 fi
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12190 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12191 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12192 cat >>confdefs.h <<_ACEOF
12193 #define HAVE_LIBKSTAT 1
12194 _ACEOF
12195
12196 LIBS="-lkstat $LIBS"
12197
12198 fi
12199
12200 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12201
12202 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12203 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12204 # to get the right answer into the cache.
12205 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12206 if test $ac_have_func = no; then
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12208 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12209 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12210 $as_echo_n "(cached) " >&6
12211 else
12212 ac_check_lib_save_LIBS=$LIBS
12213 LIBS="-lelf $LIBS"
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12216
12217 /* Override any GCC internal prototype to avoid an error.
12218 Use char because int might match the return type of a GCC
12219 builtin and then its argument prototype would still apply. */
12220 #ifdef __cplusplus
12221 extern "C"
12222 #endif
12223 char elf_begin ();
12224 int
12225 main ()
12226 {
12227 return elf_begin ();
12228 ;
12229 return 0;
12230 }
12231 _ACEOF
12232 if ac_fn_c_try_link "$LINENO"; then :
12233 ac_cv_lib_elf_elf_begin=yes
12234 else
12235 ac_cv_lib_elf_elf_begin=no
12236 fi
12237 rm -f core conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12240 fi
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12242 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12243 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
12244 LIBS="-lelf $LIBS"
12245 fi
12246
12247 fi
12248 if test $ac_have_func = no; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12250 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12251 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 ac_check_lib_save_LIBS=$LIBS
12255 LIBS="-lkvm $LIBS"
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12258
12259 /* Override any GCC internal prototype to avoid an error.
12260 Use char because int might match the return type of a GCC
12261 builtin and then its argument prototype would still apply. */
12262 #ifdef __cplusplus
12263 extern "C"
12264 #endif
12265 char kvm_open ();
12266 int
12267 main ()
12268 {
12269 return kvm_open ();
12270 ;
12271 return 0;
12272 }
12273 _ACEOF
12274 if ac_fn_c_try_link "$LINENO"; then :
12275 ac_cv_lib_kvm_kvm_open=yes
12276 else
12277 ac_cv_lib_kvm_kvm_open=no
12278 fi
12279 rm -f core conftest.err conftest.$ac_objext \
12280 conftest$ac_exeext conftest.$ac_ext
12281 LIBS=$ac_check_lib_save_LIBS
12282 fi
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12284 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12285 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
12286 LIBS="-lkvm $LIBS"
12287 fi
12288
12289 # Check for the 4.4BSD definition of getloadavg.
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12291 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12292 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12293 $as_echo_n "(cached) " >&6
12294 else
12295 ac_check_lib_save_LIBS=$LIBS
12296 LIBS="-lutil $LIBS"
12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12299
12300 /* Override any GCC internal prototype to avoid an error.
12301 Use char because int might match the return type of a GCC
12302 builtin and then its argument prototype would still apply. */
12303 #ifdef __cplusplus
12304 extern "C"
12305 #endif
12306 char getloadavg ();
12307 int
12308 main ()
12309 {
12310 return getloadavg ();
12311 ;
12312 return 0;
12313 }
12314 _ACEOF
12315 if ac_fn_c_try_link "$LINENO"; then :
12316 ac_cv_lib_util_getloadavg=yes
12317 else
12318 ac_cv_lib_util_getloadavg=no
12319 fi
12320 rm -f core conftest.err conftest.$ac_objext \
12321 conftest$ac_exeext conftest.$ac_ext
12322 LIBS=$ac_check_lib_save_LIBS
12323 fi
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12325 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12326 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
12327 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12328 fi
12329
12330 fi
12331
12332 if test $ac_have_func = no; then
12333 # There is a commonly available library for RS/6000 AIX.
12334 # Since it is not a standard part of AIX, it might be installed locally.
12335 ac_getloadavg_LIBS=$LIBS
12336 LIBS="-L/usr/local/lib $LIBS"
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12338 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12339 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12340 $as_echo_n "(cached) " >&6
12341 else
12342 ac_check_lib_save_LIBS=$LIBS
12343 LIBS="-lgetloadavg $LIBS"
12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12346
12347 /* Override any GCC internal prototype to avoid an error.
12348 Use char because int might match the return type of a GCC
12349 builtin and then its argument prototype would still apply. */
12350 #ifdef __cplusplus
12351 extern "C"
12352 #endif
12353 char getloadavg ();
12354 int
12355 main ()
12356 {
12357 return getloadavg ();
12358 ;
12359 return 0;
12360 }
12361 _ACEOF
12362 if ac_fn_c_try_link "$LINENO"; then :
12363 ac_cv_lib_getloadavg_getloadavg=yes
12364 else
12365 ac_cv_lib_getloadavg_getloadavg=no
12366 fi
12367 rm -f core conftest.err conftest.$ac_objext \
12368 conftest$ac_exeext conftest.$ac_ext
12369 LIBS=$ac_check_lib_save_LIBS
12370 fi
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12372 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12373 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
12374 LIBS="-lgetloadavg $LIBS"
12375 else
12376 LIBS=$ac_getloadavg_LIBS
12377 fi
12378
12379 fi
12380
12381 # Make sure it is really in the library, if we think we found it,
12382 # otherwise set up the replacement function.
12383 for ac_func in getloadavg
12384 do :
12385 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12386 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12387 cat >>confdefs.h <<_ACEOF
12388 #define HAVE_GETLOADAVG 1
12389 _ACEOF
12390
12391 else
12392 case " $LIBOBJS " in
12393 *" getloadavg.$ac_objext "* ) ;;
12394 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12395 ;;
12396 esac
12397
12398
12399 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12400
12401 # Figure out what our getloadavg.c needs.
12402 ac_have_func=no
12403 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12404 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
12405 ac_have_func=yes
12406
12407 $as_echo "#define DGUX 1" >>confdefs.h
12408
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12410 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12411 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12412 $as_echo_n "(cached) " >&6
12413 else
12414 ac_check_lib_save_LIBS=$LIBS
12415 LIBS="-ldgc $LIBS"
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12418
12419 /* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply. */
12422 #ifdef __cplusplus
12423 extern "C"
12424 #endif
12425 char dg_sys_info ();
12426 int
12427 main ()
12428 {
12429 return dg_sys_info ();
12430 ;
12431 return 0;
12432 }
12433 _ACEOF
12434 if ac_fn_c_try_link "$LINENO"; then :
12435 ac_cv_lib_dgc_dg_sys_info=yes
12436 else
12437 ac_cv_lib_dgc_dg_sys_info=no
12438 fi
12439 rm -f core conftest.err conftest.$ac_objext \
12440 conftest$ac_exeext conftest.$ac_ext
12441 LIBS=$ac_check_lib_save_LIBS
12442 fi
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12444 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12445 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
12446 cat >>confdefs.h <<_ACEOF
12447 #define HAVE_LIBDGC 1
12448 _ACEOF
12449
12450 LIBS="-ldgc $LIBS"
12451
12452 fi
12453
12454 fi
12455
12456
12457
12458 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12459 if test "x$ac_cv_header_locale_h" = x""yes; then :
12460
12461 fi
12462
12463
12464 for ac_func in setlocale
12465 do :
12466 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12467 if test "x$ac_cv_func_setlocale" = x""yes; then :
12468 cat >>confdefs.h <<_ACEOF
12469 #define HAVE_SETLOCALE 1
12470 _ACEOF
12471
12472 fi
12473 done
12474
12475
12476 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12477 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12478 # Irix 4.0.5F has the header but not the library.
12479 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12480 ac_have_func=yes
12481
12482 $as_echo "#define SVR4 1" >>confdefs.h
12483
12484 fi
12485
12486 if test $ac_have_func = no; then
12487 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12488 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
12489 ac_have_func=yes
12490
12491 $as_echo "#define UMAX 1" >>confdefs.h
12492
12493
12494 $as_echo "#define UMAX4_3 1" >>confdefs.h
12495
12496 fi
12497
12498
12499 fi
12500
12501 if test $ac_have_func = no; then
12502 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12503 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
12504 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
12505
12506 fi
12507
12508
12509 fi
12510
12511 if test $ac_have_func = no; then
12512 for ac_header in mach/mach.h
12513 do :
12514 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12515 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
12516 cat >>confdefs.h <<_ACEOF
12517 #define HAVE_MACH_MACH_H 1
12518 _ACEOF
12519
12520 fi
12521
12522 done
12523
12524 fi
12525
12526 for ac_header in nlist.h
12527 do :
12528 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12529 if test "x$ac_cv_header_nlist_h" = x""yes; then :
12530 cat >>confdefs.h <<_ACEOF
12531 #define HAVE_NLIST_H 1
12532 _ACEOF
12533 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12534 "
12535 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
12536
12537 cat >>confdefs.h <<_ACEOF
12538 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12539 _ACEOF
12540
12541
12542 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12543
12544 fi
12545
12546
12547 fi
12548
12549 done
12550
12551 fi
12552 done
12553
12554
12555 # Some definitions of getloadavg require that the program be installed setgid.
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12557 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12558 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12559 $as_echo_n "(cached) " >&6
12560 else
12561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562 /* end confdefs.h. */
12563 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12564 #ifdef LDAV_PRIVILEGED
12565 Yowza Am I SETGID yet
12566 #endif
12567 _ACEOF
12568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12569 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
12570 ac_cv_func_getloadavg_setgid=yes
12571 else
12572 ac_cv_func_getloadavg_setgid=no
12573 fi
12574 rm -f conftest*
12575
12576 fi
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12578 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12579 if test $ac_cv_func_getloadavg_setgid = yes; then
12580 NEED_SETGID=true
12581
12582 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12583
12584 else
12585 NEED_SETGID=false
12586 fi
12587
12588 if test $ac_cv_func_getloadavg_setgid = yes; then
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12590 $as_echo_n "checking group of /dev/kmem... " >&6; }
12591 if test "${ac_cv_group_kmem+set}" = set; then :
12592 $as_echo_n "(cached) " >&6
12593 else
12594 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12595 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12596 # If we got an error (system does not support symlinks), try without -L.
12597 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12598 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
12599 | sed -ne 's/[ ][ ]*/ /g;
12600 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12601 / /s/.* //;p;'`
12602
12603 fi
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12605 $as_echo "$ac_cv_group_kmem" >&6; }
12606 KMEM_GROUP=$ac_cv_group_kmem
12607 fi
12608 if test "x$ac_save_LIBS" = x; then
12609 GETLOADAVG_LIBS=$LIBS
12610 else
12611 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12612 fi
12613 LIBS=$ac_save_LIBS
12614
12615
12616
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12618 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12619 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12620 $as_echo_n "(cached) " >&6
12621 else
12622 while :; do
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12625 #include <sys/types.h> /* for off_t */
12626 #include <stdio.h>
12627 int
12628 main ()
12629 {
12630 int (*fp) (FILE *, off_t, int) = fseeko;
12631 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12632 ;
12633 return 0;
12634 }
12635 _ACEOF
12636 if ac_fn_c_try_link "$LINENO"; then :
12637 ac_cv_sys_largefile_source=no; break
12638 fi
12639 rm -f core conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12643 #define _LARGEFILE_SOURCE 1
12644 #include <sys/types.h> /* for off_t */
12645 #include <stdio.h>
12646 int
12647 main ()
12648 {
12649 int (*fp) (FILE *, off_t, int) = fseeko;
12650 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12651 ;
12652 return 0;
12653 }
12654 _ACEOF
12655 if ac_fn_c_try_link "$LINENO"; then :
12656 ac_cv_sys_largefile_source=1; break
12657 fi
12658 rm -f core conftest.err conftest.$ac_objext \
12659 conftest$ac_exeext conftest.$ac_ext
12660 ac_cv_sys_largefile_source=unknown
12661 break
12662 done
12663 fi
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12665 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12666 case $ac_cv_sys_largefile_source in #(
12667 no | unknown) ;;
12668 *)
12669 cat >>confdefs.h <<_ACEOF
12670 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12671 _ACEOF
12672 ;;
12673 esac
12674 rm -rf conftest*
12675
12676 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12677 # in glibc 2.1.3, but that breaks too many other things.
12678 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12679 if test $ac_cv_sys_largefile_source != unknown; then
12680
12681 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12682
12683 fi
12684
12685
12686 # Configure getopt.
12687 # getopt.m4 serial 10
12688
12689 # The getopt module assume you want GNU getopt, with getopt_long etc,
12690 # rather than vanilla POSIX getopt. This means your your code should
12691 # always include <getopt.h> for the getopt prototypes.
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703 # Prerequisites of lib/getopt*.
12704
12705
12706
12707
12708 GETOPT_H=
12709 for ac_header in getopt.h
12710 do :
12711 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12712 if test "x$ac_cv_header_getopt_h" = x""yes; then :
12713 cat >>confdefs.h <<_ACEOF
12714 #define HAVE_GETOPT_H 1
12715 _ACEOF
12716
12717 else
12718 GETOPT_H=getopt.h
12719 fi
12720
12721 done
12722
12723 if test -z "$GETOPT_H"; then
12724 for ac_func in getopt_long_only
12725 do :
12726 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12727 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
12728 cat >>confdefs.h <<_ACEOF
12729 #define HAVE_GETOPT_LONG_ONLY 1
12730 _ACEOF
12731
12732 else
12733 GETOPT_H=getopt.h
12734 fi
12735 done
12736
12737 fi
12738
12739 if test -z "$GETOPT_H"; then
12740 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12741 "
12742 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
12743 GETOPT_H=getopt.h
12744 fi
12745
12746 fi
12747
12748 if test -z "$GETOPT_H"; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12750 $as_echo_n "checking for working GNU getopt function... " >&6; }
12751 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12754 if test "$cross_compiling" = yes; then :
12755 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12756 "
12757 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12758 gl_cv_func_gnu_getopt=no
12759 else
12760 gl_cv_func_gnu_getopt=yes
12761 fi
12762
12763 else
12764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h. */
12766 #include <getopt.h>
12767 int
12768 main ()
12769 {
12770
12771 char *myargv[3];
12772 myargv[0] = "conftest";
12773 myargv[1] = "-+";
12774 myargv[2] = 0;
12775 return getopt (2, myargv, "+a") != '?';
12776
12777 ;
12778 return 0;
12779 }
12780 _ACEOF
12781 if ac_fn_c_try_run "$LINENO"; then :
12782 gl_cv_func_gnu_getopt=yes
12783 else
12784 gl_cv_func_gnu_getopt=no
12785 fi
12786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12787 conftest.$ac_objext conftest.beam conftest.$ac_ext
12788 fi
12789
12790 fi
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12792 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12793 if test "$gl_cv_func_gnu_getopt" = "no"; then
12794 GETOPT_H=getopt.h
12795 fi
12796 fi
12797
12798
12799
12800 if test -n "$GETOPT_H"; then :
12801
12802
12803 GETOPT_H=getopt.h
12804
12805 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12806
12807
12808
12809 :
12810 GETOPTOBJS='getopt.o getopt1.o'
12811
12812 fi
12813
12814
12815
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12817 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12818 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12819 $as_echo_n "(cached) " >&6
12820 else
12821 # Use it with a single arg.
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12824 $ac_includes_default
12825 int
12826 main ()
12827 {
12828 getpgrp (0);
12829 ;
12830 return 0;
12831 }
12832 _ACEOF
12833 if ac_fn_c_try_compile "$LINENO"; then :
12834 ac_cv_func_getpgrp_void=no
12835 else
12836 ac_cv_func_getpgrp_void=yes
12837 fi
12838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12839
12840 fi
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12842 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12843 if test $ac_cv_func_getpgrp_void = yes; then
12844
12845 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12846
12847 fi
12848
12849
12850 for ac_func in strftime
12851 do :
12852 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12853 if test "x$ac_cv_func_strftime" = x""yes; then :
12854 cat >>confdefs.h <<_ACEOF
12855 #define HAVE_STRFTIME 1
12856 _ACEOF
12857
12858 else
12859 # strftime is in -lintl on SCO UNIX.
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12861 $as_echo_n "checking for strftime in -lintl... " >&6; }
12862 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12863 $as_echo_n "(cached) " >&6
12864 else
12865 ac_check_lib_save_LIBS=$LIBS
12866 LIBS="-lintl $LIBS"
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12869
12870 /* Override any GCC internal prototype to avoid an error.
12871 Use char because int might match the return type of a GCC
12872 builtin and then its argument prototype would still apply. */
12873 #ifdef __cplusplus
12874 extern "C"
12875 #endif
12876 char strftime ();
12877 int
12878 main ()
12879 {
12880 return strftime ();
12881 ;
12882 return 0;
12883 }
12884 _ACEOF
12885 if ac_fn_c_try_link "$LINENO"; then :
12886 ac_cv_lib_intl_strftime=yes
12887 else
12888 ac_cv_lib_intl_strftime=no
12889 fi
12890 rm -f core conftest.err conftest.$ac_objext \
12891 conftest$ac_exeext conftest.$ac_ext
12892 LIBS=$ac_check_lib_save_LIBS
12893 fi
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12895 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12896 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12897 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12898
12899 LIBS="-lintl $LIBS"
12900 fi
12901
12902 fi
12903 done
12904
12905
12906 # UNIX98 PTYs.
12907 for ac_func in grantpt
12908 do :
12909 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12910 if test "x$ac_cv_func_grantpt" = x""yes; then :
12911 cat >>confdefs.h <<_ACEOF
12912 #define HAVE_GRANTPT 1
12913 _ACEOF
12914
12915 fi
12916 done
12917
12918
12919 # PTY-related GNU extensions.
12920 for ac_func in getpt
12921 do :
12922 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12923 if test "x$ac_cv_func_getpt" = x""yes; then :
12924 cat >>confdefs.h <<_ACEOF
12925 #define HAVE_GETPT 1
12926 _ACEOF
12927
12928 fi
12929 done
12930
12931
12932 # Check this now, so that we will NOT find the above functions in ncurses.
12933 # That is because we have not set up to link ncurses in lib-src.
12934 # It's better to believe a function is not available
12935 # than to expect to find it in ncurses.
12936 # Also we need tputs and friends to be able to build at all.
12937 have_tputs_et_al=true
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12939 $as_echo_n "checking for library containing tputs... " >&6; }
12940 if test "${ac_cv_search_tputs+set}" = set; then :
12941 $as_echo_n "(cached) " >&6
12942 else
12943 ac_func_search_save_LIBS=$LIBS
12944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h. */
12946
12947 /* Override any GCC internal prototype to avoid an error.
12948 Use char because int might match the return type of a GCC
12949 builtin and then its argument prototype would still apply. */
12950 #ifdef __cplusplus
12951 extern "C"
12952 #endif
12953 char tputs ();
12954 int
12955 main ()
12956 {
12957 return tputs ();
12958 ;
12959 return 0;
12960 }
12961 _ACEOF
12962 for ac_lib in '' ncurses terminfo termcap; do
12963 if test -z "$ac_lib"; then
12964 ac_res="none required"
12965 else
12966 ac_res=-l$ac_lib
12967 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12968 fi
12969 if ac_fn_c_try_link "$LINENO"; then :
12970 ac_cv_search_tputs=$ac_res
12971 fi
12972 rm -f core conftest.err conftest.$ac_objext \
12973 conftest$ac_exeext
12974 if test "${ac_cv_search_tputs+set}" = set; then :
12975 break
12976 fi
12977 done
12978 if test "${ac_cv_search_tputs+set}" = set; then :
12979
12980 else
12981 ac_cv_search_tputs=no
12982 fi
12983 rm conftest.$ac_ext
12984 LIBS=$ac_func_search_save_LIBS
12985 fi
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12987 $as_echo "$ac_cv_search_tputs" >&6; }
12988 ac_res=$ac_cv_search_tputs
12989 if test "$ac_res" != no; then :
12990 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12991
12992 else
12993 have_tputs_et_al=false
12994 fi
12995
12996 if test "$have_tputs_et_al" != true; then
12997 as_fn_error "I couldn't find termcap functions (tputs and friends).
12998 Maybe some development libraries/packages are missing? Try installing
12999 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13000 fi
13001 # Must define this when any termcap library is found.
13002
13003 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13004
13005 ## FIXME This was the cpp logic, but I am not sure it is right.
13006 ## The above test has not necessarily found libncurses.
13007 HAVE_LIBNCURSES=yes
13008
13009 ## Use terminfo instead of termcap?
13010 ## Note only system files NOT using terminfo are:
13011 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13012 ## darwin|gnu without ncurses.
13013 TERMINFO=no
13014 LIBS_TERMCAP=
13015 case "$opsys" in
13016 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13017 ## hpux10-20: Use the system provided termcap(3) library.
13018 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13019 ## is necessary. Otherwise Emacs dumps core when run -nw.
13020 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
13021
13022 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13023 ## The ncurses library has been moved out of the System framework in
13024 ## Mac OS X 10.2. So if configure detects it, set the command-line
13025 ## option to use it.
13026 darwin|gnu*)
13027 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13028 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13029 TERMINFO=yes
13030 LIBS_TERMCAP="-lncurses"
13031 fi
13032 ;;
13033
13034 freebsd)
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13036 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13037 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13038 $as_echo_n "(cached) " >&6
13039 else
13040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041 /* end confdefs.h. */
13042 #include <osreldate.h>
13043 int
13044 main ()
13045 {
13046 #if __FreeBSD_version < 400000
13047 fail;
13048 #endif
13049
13050 ;
13051 return 0;
13052 }
13053 _ACEOF
13054 if ac_fn_c_try_link "$LINENO"; then :
13055 emacs_cv_freebsd_terminfo=yes
13056 else
13057 emacs_cv_freebsd_terminfo=no
13058 fi
13059 rm -f core conftest.err conftest.$ac_objext \
13060 conftest$ac_exeext conftest.$ac_ext
13061 fi
13062
13063
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13065 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13066
13067 if test $emacs_cv_freebsd_terminfo = yes; then
13068 TERMINFO=yes
13069 LIBS_TERMCAP="-lncurses"
13070 else
13071 LIBS_TERMCAP="-ltermcap"
13072 fi
13073 ;;
13074
13075 netbsd)
13076 if test $ac_cv_search_tputs = -lterminfo; then
13077 TERMINFO=yes
13078 LIBS_TERMCAP="-lterminfo"
13079 else
13080 LIBS_TERMCAP="-ltermcap"
13081 fi
13082 ;;
13083
13084 esac
13085
13086 case "$opsys" in
13087 ## hpux: Make sure we get select from libc rather than from libcurses
13088 ## because libcurses on HPUX 10.10 has a broken version of select.
13089 ## We used to use -lc -lcurses, but this may be cleaner.
13090 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13091
13092 openbsd) LIBS_TERMCAP="-lncurses" ;;
13093
13094 ## Must use system termcap, if we use any termcap. It does special things.
13095 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
13096 esac
13097
13098 TERMCAP_OBJ=tparam.o
13099 if test $TERMINFO = yes; then
13100
13101 $as_echo "#define TERMINFO 1" >>confdefs.h
13102
13103
13104 ## Default used to be -ltermcap. Add a case above if need something else.
13105 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
13106
13107 TERMCAP_OBJ=terminfo.o
13108 fi
13109
13110
13111
13112
13113 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13114 resolv=no
13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h. */
13117 #include <netinet/in.h>
13118 #include <arpa/nameser.h>
13119 #include <resolv.h>
13120 int
13121 main ()
13122 {
13123 return res_init();
13124 ;
13125 return 0;
13126 }
13127 _ACEOF
13128 if ac_fn_c_try_link "$LINENO"; then :
13129 have_res_init=yes
13130 else
13131 have_res_init=no
13132 fi
13133 rm -f core conftest.err conftest.$ac_objext \
13134 conftest$ac_exeext conftest.$ac_ext
13135 if test "$have_res_init" = no; then
13136 OLIBS="$LIBS"
13137 LIBS="$LIBS -lresolv"
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13139 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13141 /* end confdefs.h. */
13142 #include <netinet/in.h>
13143 #include <arpa/nameser.h>
13144 #include <resolv.h>
13145 int
13146 main ()
13147 {
13148 return res_init();
13149 ;
13150 return 0;
13151 }
13152 _ACEOF
13153 if ac_fn_c_try_link "$LINENO"; then :
13154 have_res_init=yes
13155 else
13156 have_res_init=no
13157 fi
13158 rm -f core conftest.err conftest.$ac_objext \
13159 conftest$ac_exeext conftest.$ac_ext
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13161 $as_echo "$have_res_init" >&6; }
13162 if test "$have_res_init" = yes ; then
13163 resolv=yes
13164 fi
13165 LIBS="$OLIBS"
13166 fi
13167
13168 if test "$have_res_init" = yes; then
13169
13170 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13171
13172 fi
13173
13174 # Do we need the Hesiod library to provide the support routines?
13175 LIBHESIOD=
13176 if test "$with_hesiod" != no ; then
13177 # Don't set $LIBS here -- see comments above. FIXME which comments?
13178 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13179 if test "x$ac_cv_func_res_send" = x""yes; then :
13180
13181 else
13182 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13183 if test "x$ac_cv_func___res_send" = x""yes; then :
13184
13185 else
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13187 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13188 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13189 $as_echo_n "(cached) " >&6
13190 else
13191 ac_check_lib_save_LIBS=$LIBS
13192 LIBS="-lresolv $LIBS"
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13195
13196 /* Override any GCC internal prototype to avoid an error.
13197 Use char because int might match the return type of a GCC
13198 builtin and then its argument prototype would still apply. */
13199 #ifdef __cplusplus
13200 extern "C"
13201 #endif
13202 char res_send ();
13203 int
13204 main ()
13205 {
13206 return res_send ();
13207 ;
13208 return 0;
13209 }
13210 _ACEOF
13211 if ac_fn_c_try_link "$LINENO"; then :
13212 ac_cv_lib_resolv_res_send=yes
13213 else
13214 ac_cv_lib_resolv_res_send=no
13215 fi
13216 rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13218 LIBS=$ac_check_lib_save_LIBS
13219 fi
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13221 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13222 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13223 resolv=yes
13224 else
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13226 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13227 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
13229 else
13230 ac_check_lib_save_LIBS=$LIBS
13231 LIBS="-lresolv $LIBS"
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234
13235 /* Override any GCC internal prototype to avoid an error.
13236 Use char because int might match the return type of a GCC
13237 builtin and then its argument prototype would still apply. */
13238 #ifdef __cplusplus
13239 extern "C"
13240 #endif
13241 char __res_send ();
13242 int
13243 main ()
13244 {
13245 return __res_send ();
13246 ;
13247 return 0;
13248 }
13249 _ACEOF
13250 if ac_fn_c_try_link "$LINENO"; then :
13251 ac_cv_lib_resolv___res_send=yes
13252 else
13253 ac_cv_lib_resolv___res_send=no
13254 fi
13255 rm -f core conftest.err conftest.$ac_objext \
13256 conftest$ac_exeext conftest.$ac_ext
13257 LIBS=$ac_check_lib_save_LIBS
13258 fi
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13260 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13261 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13262 resolv=yes
13263 fi
13264
13265 fi
13266
13267 fi
13268
13269 fi
13270
13271 if test "$resolv" = yes ; then
13272 RESOLVLIB=-lresolv
13273 else
13274 RESOLVLIB=
13275 fi
13276 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13277 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13278
13279 else
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13281 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13282 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13283 $as_echo_n "(cached) " >&6
13284 else
13285 ac_check_lib_save_LIBS=$LIBS
13286 LIBS="-lhesiod $RESOLVLIB $LIBS"
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h. */
13289
13290 /* Override any GCC internal prototype to avoid an error.
13291 Use char because int might match the return type of a GCC
13292 builtin and then its argument prototype would still apply. */
13293 #ifdef __cplusplus
13294 extern "C"
13295 #endif
13296 char hes_getmailhost ();
13297 int
13298 main ()
13299 {
13300 return hes_getmailhost ();
13301 ;
13302 return 0;
13303 }
13304 _ACEOF
13305 if ac_fn_c_try_link "$LINENO"; then :
13306 ac_cv_lib_hesiod_hes_getmailhost=yes
13307 else
13308 ac_cv_lib_hesiod_hes_getmailhost=no
13309 fi
13310 rm -f core conftest.err conftest.$ac_objext \
13311 conftest$ac_exeext conftest.$ac_ext
13312 LIBS=$ac_check_lib_save_LIBS
13313 fi
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13315 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13316 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13317 hesiod=yes
13318 else
13319 :
13320 fi
13321
13322 fi
13323
13324
13325 if test x"$hesiod" = xyes; then
13326
13327 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13328
13329 LIBHESIOD=-lhesiod
13330 fi
13331 fi
13332
13333
13334 # Do we need libresolv (due to res_init or Hesiod)?
13335 if test "$resolv" = yes ; then
13336
13337 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13338
13339 LIBRESOLV=-lresolv
13340 else
13341 LIBRESOLV=
13342 fi
13343
13344
13345 # These tell us which Kerberos-related libraries to use.
13346 COM_ERRLIB=
13347 CRYPTOLIB=
13348 KRB5LIB=
13349 DESLIB=
13350 KRB4LIB=
13351
13352 if test "${with_kerberos}" != no; then
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13354 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13355 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13356 $as_echo_n "(cached) " >&6
13357 else
13358 ac_check_lib_save_LIBS=$LIBS
13359 LIBS="-lcom_err $LIBS"
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13362
13363 /* Override any GCC internal prototype to avoid an error.
13364 Use char because int might match the return type of a GCC
13365 builtin and then its argument prototype would still apply. */
13366 #ifdef __cplusplus
13367 extern "C"
13368 #endif
13369 char com_err ();
13370 int
13371 main ()
13372 {
13373 return com_err ();
13374 ;
13375 return 0;
13376 }
13377 _ACEOF
13378 if ac_fn_c_try_link "$LINENO"; then :
13379 ac_cv_lib_com_err_com_err=yes
13380 else
13381 ac_cv_lib_com_err_com_err=no
13382 fi
13383 rm -f core conftest.err conftest.$ac_objext \
13384 conftest$ac_exeext conftest.$ac_ext
13385 LIBS=$ac_check_lib_save_LIBS
13386 fi
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13388 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13389 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13390 have_com_err=yes
13391 else
13392 have_com_err=no
13393 fi
13394
13395 if test $have_com_err = yes; then
13396 COM_ERRLIB=-lcom_err
13397 LIBS="$COM_ERRLIB $LIBS"
13398
13399 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13400
13401 fi
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13403 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13404 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13406 else
13407 ac_check_lib_save_LIBS=$LIBS
13408 LIBS="-lcrypto $LIBS"
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13411
13412 /* Override any GCC internal prototype to avoid an error.
13413 Use char because int might match the return type of a GCC
13414 builtin and then its argument prototype would still apply. */
13415 #ifdef __cplusplus
13416 extern "C"
13417 #endif
13418 char mit_des_cbc_encrypt ();
13419 int
13420 main ()
13421 {
13422 return mit_des_cbc_encrypt ();
13423 ;
13424 return 0;
13425 }
13426 _ACEOF
13427 if ac_fn_c_try_link "$LINENO"; then :
13428 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13429 else
13430 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13431 fi
13432 rm -f core conftest.err conftest.$ac_objext \
13433 conftest$ac_exeext conftest.$ac_ext
13434 LIBS=$ac_check_lib_save_LIBS
13435 fi
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13437 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13438 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13439 have_crypto=yes
13440 else
13441 have_crypto=no
13442 fi
13443
13444 if test $have_crypto = yes; then
13445 CRYPTOLIB=-lcrypto
13446 LIBS="$CRYPTOLIB $LIBS"
13447
13448 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13449
13450 fi
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13452 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13453 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13454 $as_echo_n "(cached) " >&6
13455 else
13456 ac_check_lib_save_LIBS=$LIBS
13457 LIBS="-lk5crypto $LIBS"
13458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459 /* end confdefs.h. */
13460
13461 /* Override any GCC internal prototype to avoid an error.
13462 Use char because int might match the return type of a GCC
13463 builtin and then its argument prototype would still apply. */
13464 #ifdef __cplusplus
13465 extern "C"
13466 #endif
13467 char mit_des_cbc_encrypt ();
13468 int
13469 main ()
13470 {
13471 return mit_des_cbc_encrypt ();
13472 ;
13473 return 0;
13474 }
13475 _ACEOF
13476 if ac_fn_c_try_link "$LINENO"; then :
13477 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13478 else
13479 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13480 fi
13481 rm -f core conftest.err conftest.$ac_objext \
13482 conftest$ac_exeext conftest.$ac_ext
13483 LIBS=$ac_check_lib_save_LIBS
13484 fi
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13486 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13487 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13488 have_k5crypto=yes
13489 else
13490 have_k5crypto=no
13491 fi
13492
13493 if test $have_k5crypto = yes; then
13494 CRYPTOLIB=-lk5crypto
13495 LIBS="$CRYPTOLIB $LIBS"
13496
13497 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13498
13499 fi
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13501 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13502 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13503 $as_echo_n "(cached) " >&6
13504 else
13505 ac_check_lib_save_LIBS=$LIBS
13506 LIBS="-lkrb5 $LIBS"
13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508 /* end confdefs.h. */
13509
13510 /* Override any GCC internal prototype to avoid an error.
13511 Use char because int might match the return type of a GCC
13512 builtin and then its argument prototype would still apply. */
13513 #ifdef __cplusplus
13514 extern "C"
13515 #endif
13516 char krb5_init_context ();
13517 int
13518 main ()
13519 {
13520 return krb5_init_context ();
13521 ;
13522 return 0;
13523 }
13524 _ACEOF
13525 if ac_fn_c_try_link "$LINENO"; then :
13526 ac_cv_lib_krb5_krb5_init_context=yes
13527 else
13528 ac_cv_lib_krb5_krb5_init_context=no
13529 fi
13530 rm -f core conftest.err conftest.$ac_objext \
13531 conftest$ac_exeext conftest.$ac_ext
13532 LIBS=$ac_check_lib_save_LIBS
13533 fi
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13535 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13536 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13537 have_krb5=yes
13538 else
13539 have_krb5=no
13540 fi
13541
13542 if test $have_krb5=yes; then
13543 KRB5LIB=-lkrb5
13544 LIBS="$KRB5LIB $LIBS"
13545
13546 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13547
13548 fi
13549 if test "${with_kerberos5}" = no; then
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13551 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13552 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13553 $as_echo_n "(cached) " >&6
13554 else
13555 ac_check_lib_save_LIBS=$LIBS
13556 LIBS="-ldes425 $LIBS"
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13559
13560 /* Override any GCC internal prototype to avoid an error.
13561 Use char because int might match the return type of a GCC
13562 builtin and then its argument prototype would still apply. */
13563 #ifdef __cplusplus
13564 extern "C"
13565 #endif
13566 char des_cbc_encrypt ();
13567 int
13568 main ()
13569 {
13570 return des_cbc_encrypt ();
13571 ;
13572 return 0;
13573 }
13574 _ACEOF
13575 if ac_fn_c_try_link "$LINENO"; then :
13576 ac_cv_lib_des425_des_cbc_encrypt=yes
13577 else
13578 ac_cv_lib_des425_des_cbc_encrypt=no
13579 fi
13580 rm -f core conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13582 LIBS=$ac_check_lib_save_LIBS
13583 fi
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13585 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13586 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13587 have_des425=yes
13588 else
13589 have_des425=no
13590 fi
13591
13592 if test $have_des425 = yes; then
13593 DESLIB=-ldes425
13594 LIBS="$DESLIB $LIBS"
13595
13596 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13597
13598 else
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13600 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13601 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13602 $as_echo_n "(cached) " >&6
13603 else
13604 ac_check_lib_save_LIBS=$LIBS
13605 LIBS="-ldes $LIBS"
13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h. */
13608
13609 /* Override any GCC internal prototype to avoid an error.
13610 Use char because int might match the return type of a GCC
13611 builtin and then its argument prototype would still apply. */
13612 #ifdef __cplusplus
13613 extern "C"
13614 #endif
13615 char des_cbc_encrypt ();
13616 int
13617 main ()
13618 {
13619 return des_cbc_encrypt ();
13620 ;
13621 return 0;
13622 }
13623 _ACEOF
13624 if ac_fn_c_try_link "$LINENO"; then :
13625 ac_cv_lib_des_des_cbc_encrypt=yes
13626 else
13627 ac_cv_lib_des_des_cbc_encrypt=no
13628 fi
13629 rm -f core conftest.err conftest.$ac_objext \
13630 conftest$ac_exeext conftest.$ac_ext
13631 LIBS=$ac_check_lib_save_LIBS
13632 fi
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13634 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13635 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13636 have_des=yes
13637 else
13638 have_des=no
13639 fi
13640
13641 if test $have_des = yes; then
13642 DESLIB=-ldes
13643 LIBS="$DESLIB $LIBS"
13644
13645 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13646
13647 fi
13648 fi
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13650 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13651 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13652 $as_echo_n "(cached) " >&6
13653 else
13654 ac_check_lib_save_LIBS=$LIBS
13655 LIBS="-lkrb4 $LIBS"
13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h. */
13658
13659 /* Override any GCC internal prototype to avoid an error.
13660 Use char because int might match the return type of a GCC
13661 builtin and then its argument prototype would still apply. */
13662 #ifdef __cplusplus
13663 extern "C"
13664 #endif
13665 char krb_get_cred ();
13666 int
13667 main ()
13668 {
13669 return krb_get_cred ();
13670 ;
13671 return 0;
13672 }
13673 _ACEOF
13674 if ac_fn_c_try_link "$LINENO"; then :
13675 ac_cv_lib_krb4_krb_get_cred=yes
13676 else
13677 ac_cv_lib_krb4_krb_get_cred=no
13678 fi
13679 rm -f core conftest.err conftest.$ac_objext \
13680 conftest$ac_exeext conftest.$ac_ext
13681 LIBS=$ac_check_lib_save_LIBS
13682 fi
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13684 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13685 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13686 have_krb4=yes
13687 else
13688 have_krb4=no
13689 fi
13690
13691 if test $have_krb4 = yes; then
13692 KRB4LIB=-lkrb4
13693 LIBS="$KRB4LIB $LIBS"
13694
13695 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13696
13697 else
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13699 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13700 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13701 $as_echo_n "(cached) " >&6
13702 else
13703 ac_check_lib_save_LIBS=$LIBS
13704 LIBS="-lkrb $LIBS"
13705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h. */
13707
13708 /* Override any GCC internal prototype to avoid an error.
13709 Use char because int might match the return type of a GCC
13710 builtin and then its argument prototype would still apply. */
13711 #ifdef __cplusplus
13712 extern "C"
13713 #endif
13714 char krb_get_cred ();
13715 int
13716 main ()
13717 {
13718 return krb_get_cred ();
13719 ;
13720 return 0;
13721 }
13722 _ACEOF
13723 if ac_fn_c_try_link "$LINENO"; then :
13724 ac_cv_lib_krb_krb_get_cred=yes
13725 else
13726 ac_cv_lib_krb_krb_get_cred=no
13727 fi
13728 rm -f core conftest.err conftest.$ac_objext \
13729 conftest$ac_exeext conftest.$ac_ext
13730 LIBS=$ac_check_lib_save_LIBS
13731 fi
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13733 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13734 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13735 have_krb=yes
13736 else
13737 have_krb=no
13738 fi
13739
13740 if test $have_krb = yes; then
13741 KRB4LIB=-lkrb
13742 LIBS="$KRB4LIB $LIBS"
13743
13744 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13745
13746 fi
13747 fi
13748 fi
13749
13750 if test "${with_kerberos5}" != no; then
13751 for ac_header in krb5.h
13752 do :
13753 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13754 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13755 cat >>confdefs.h <<_ACEOF
13756 #define HAVE_KRB5_H 1
13757 _ACEOF
13758 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13759 "
13760 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13761
13762 cat >>confdefs.h <<_ACEOF
13763 #define HAVE_KRB5_ERROR_TEXT 1
13764 _ACEOF
13765
13766
13767 fi
13768 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13769 "
13770 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13771
13772 cat >>confdefs.h <<_ACEOF
13773 #define HAVE_KRB5_ERROR_E_TEXT 1
13774 _ACEOF
13775
13776
13777 fi
13778
13779 fi
13780
13781 done
13782
13783 else
13784 for ac_header in des.h
13785 do :
13786 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13787 if test "x$ac_cv_header_des_h" = x""yes; then :
13788 cat >>confdefs.h <<_ACEOF
13789 #define HAVE_DES_H 1
13790 _ACEOF
13791
13792 else
13793 for ac_header in kerberosIV/des.h
13794 do :
13795 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13796 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
13797 cat >>confdefs.h <<_ACEOF
13798 #define HAVE_KERBEROSIV_DES_H 1
13799 _ACEOF
13800
13801 else
13802 for ac_header in kerberos/des.h
13803 do :
13804 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13805 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
13806 cat >>confdefs.h <<_ACEOF
13807 #define HAVE_KERBEROS_DES_H 1
13808 _ACEOF
13809
13810 fi
13811
13812 done
13813
13814 fi
13815
13816 done
13817
13818 fi
13819
13820 done
13821
13822 for ac_header in krb.h
13823 do :
13824 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13825 if test "x$ac_cv_header_krb_h" = x""yes; then :
13826 cat >>confdefs.h <<_ACEOF
13827 #define HAVE_KRB_H 1
13828 _ACEOF
13829
13830 else
13831 for ac_header in kerberosIV/krb.h
13832 do :
13833 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13834 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13835 cat >>confdefs.h <<_ACEOF
13836 #define HAVE_KERBEROSIV_KRB_H 1
13837 _ACEOF
13838
13839 else
13840 for ac_header in kerberos/krb.h
13841 do :
13842 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13843 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13844 cat >>confdefs.h <<_ACEOF
13845 #define HAVE_KERBEROS_KRB_H 1
13846 _ACEOF
13847
13848 fi
13849
13850 done
13851
13852 fi
13853
13854 done
13855
13856 fi
13857
13858 done
13859
13860 fi
13861 for ac_header in com_err.h
13862 do :
13863 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13864 if test "x$ac_cv_header_com_err_h" = x""yes; then :
13865 cat >>confdefs.h <<_ACEOF
13866 #define HAVE_COM_ERR_H 1
13867 _ACEOF
13868
13869 fi
13870
13871 done
13872
13873 fi
13874
13875
13876
13877
13878
13879
13880
13881 # Solaris requires -lintl if you want strerror (which calls dgettext)
13882 # to return localized messages.
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13884 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13885 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13886 $as_echo_n "(cached) " >&6
13887 else
13888 ac_check_lib_save_LIBS=$LIBS
13889 LIBS="-lintl $LIBS"
13890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h. */
13892
13893 /* Override any GCC internal prototype to avoid an error.
13894 Use char because int might match the return type of a GCC
13895 builtin and then its argument prototype would still apply. */
13896 #ifdef __cplusplus
13897 extern "C"
13898 #endif
13899 char dgettext ();
13900 int
13901 main ()
13902 {
13903 return dgettext ();
13904 ;
13905 return 0;
13906 }
13907 _ACEOF
13908 if ac_fn_c_try_link "$LINENO"; then :
13909 ac_cv_lib_intl_dgettext=yes
13910 else
13911 ac_cv_lib_intl_dgettext=no
13912 fi
13913 rm -f core conftest.err conftest.$ac_objext \
13914 conftest$ac_exeext conftest.$ac_ext
13915 LIBS=$ac_check_lib_save_LIBS
13916 fi
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13918 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13919 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13920 cat >>confdefs.h <<_ACEOF
13921 #define HAVE_LIBINTL 1
13922 _ACEOF
13923
13924 LIBS="-lintl $LIBS"
13925
13926 fi
13927
13928
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13930 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13931 if test "${emacs_cv_localtime_cache+set}" = set; then :
13932 $as_echo_n "(cached) " >&6
13933 else
13934 if test x$ac_cv_func_tzset = xyes; then
13935 if test "$cross_compiling" = yes; then :
13936 # If we have tzset, assume the worst when cross-compiling.
13937 emacs_cv_localtime_cache=yes
13938 else
13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13941 #include <time.h>
13942 char TZ_GMT0[] = "TZ=GMT0";
13943 char TZ_PST8[] = "TZ=PST8";
13944 main()
13945 {
13946 time_t now = time ((time_t *) 0);
13947 int hour_GMT0, hour_unset;
13948 if (putenv (TZ_GMT0) != 0)
13949 exit (1);
13950 hour_GMT0 = localtime (&now)->tm_hour;
13951 unsetenv("TZ");
13952 hour_unset = localtime (&now)->tm_hour;
13953 if (putenv (TZ_PST8) != 0)
13954 exit (1);
13955 if (localtime (&now)->tm_hour == hour_GMT0)
13956 exit (1);
13957 unsetenv("TZ");
13958 if (localtime (&now)->tm_hour != hour_unset)
13959 exit (1);
13960 exit (0);
13961 }
13962 _ACEOF
13963 if ac_fn_c_try_run "$LINENO"; then :
13964 emacs_cv_localtime_cache=no
13965 else
13966 emacs_cv_localtime_cache=yes
13967 fi
13968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13969 conftest.$ac_objext conftest.beam conftest.$ac_ext
13970 fi
13971
13972 else
13973 # If we lack tzset, report that localtime does not cache TZ,
13974 # since we can't invalidate the cache if we don't have tzset.
13975 emacs_cv_localtime_cache=no
13976 fi
13977 fi
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13979 $as_echo "$emacs_cv_localtime_cache" >&6; }
13980 if test $emacs_cv_localtime_cache = yes; then
13981
13982 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13983
13984 fi
13985
13986 if test "x$HAVE_TIMEVAL" = xyes; then
13987 for ac_func in gettimeofday
13988 do :
13989 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13990 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
13991 cat >>confdefs.h <<_ACEOF
13992 #define HAVE_GETTIMEOFDAY 1
13993 _ACEOF
13994
13995 fi
13996 done
13997
13998 if test $ac_cv_func_gettimeofday = yes; then
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14000 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14001 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14002 $as_echo_n "(cached) " >&6
14003 else
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14006
14007 #ifdef TIME_WITH_SYS_TIME
14008 #include <sys/time.h>
14009 #include <time.h>
14010 #else
14011 #ifdef HAVE_SYS_TIME_H
14012 #include <sys/time.h>
14013 #else
14014 #include <time.h>
14015 #endif
14016 #endif
14017 int
14018 main ()
14019 {
14020 struct timeval time;
14021 gettimeofday (&time, 0);
14022 ;
14023 return 0;
14024 }
14025 _ACEOF
14026 if ac_fn_c_try_compile "$LINENO"; then :
14027 emacs_cv_gettimeofday_two_arguments=yes
14028 else
14029 emacs_cv_gettimeofday_two_arguments=no
14030 fi
14031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14032 fi
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14034 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14035 if test $emacs_cv_gettimeofday_two_arguments = no; then
14036
14037 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14038
14039 fi
14040 fi
14041 fi
14042
14043 ok_so_far=yes
14044 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14045 if test "x$ac_cv_func_socket" = x""yes; then :
14046
14047 else
14048 ok_so_far=no
14049 fi
14050
14051 if test $ok_so_far = yes; then
14052 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14053 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14054
14055 else
14056 ok_so_far=no
14057 fi
14058
14059
14060 fi
14061 if test $ok_so_far = yes; then
14062 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14063 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14064
14065 else
14066 ok_so_far=no
14067 fi
14068
14069
14070 fi
14071 if test $ok_so_far = yes; then
14072
14073 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14074
14075 fi
14076
14077 if test -f /usr/lpp/X11/bin/smt.exp; then
14078
14079 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14080
14081 fi
14082
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14084 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14085 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14087 $as_echo "yes" >&6; }
14088
14089 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14090
14091 else
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14093 $as_echo "no" >&6; }
14094 fi
14095
14096 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14097 if test "x$ac_cv_type_pid_t" = x""yes; then :
14098
14099 else
14100
14101 cat >>confdefs.h <<_ACEOF
14102 #define pid_t int
14103 _ACEOF
14104
14105 fi
14106
14107 for ac_header in vfork.h
14108 do :
14109 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14110 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14111 cat >>confdefs.h <<_ACEOF
14112 #define HAVE_VFORK_H 1
14113 _ACEOF
14114
14115 fi
14116
14117 done
14118
14119 for ac_func in fork vfork
14120 do :
14121 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14122 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14123 eval as_val=\$$as_ac_var
14124 if test "x$as_val" = x""yes; then :
14125 cat >>confdefs.h <<_ACEOF
14126 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14127 _ACEOF
14128
14129 fi
14130 done
14131
14132 if test "x$ac_cv_func_fork" = xyes; then
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14134 $as_echo_n "checking for working fork... " >&6; }
14135 if test "${ac_cv_func_fork_works+set}" = set; then :
14136 $as_echo_n "(cached) " >&6
14137 else
14138 if test "$cross_compiling" = yes; then :
14139 ac_cv_func_fork_works=cross
14140 else
14141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142 /* end confdefs.h. */
14143 $ac_includes_default
14144 int
14145 main ()
14146 {
14147
14148 /* By Ruediger Kuhlmann. */
14149 return fork () < 0;
14150
14151 ;
14152 return 0;
14153 }
14154 _ACEOF
14155 if ac_fn_c_try_run "$LINENO"; then :
14156 ac_cv_func_fork_works=yes
14157 else
14158 ac_cv_func_fork_works=no
14159 fi
14160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14161 conftest.$ac_objext conftest.beam conftest.$ac_ext
14162 fi
14163
14164 fi
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14166 $as_echo "$ac_cv_func_fork_works" >&6; }
14167
14168 else
14169 ac_cv_func_fork_works=$ac_cv_func_fork
14170 fi
14171 if test "x$ac_cv_func_fork_works" = xcross; then
14172 case $host in
14173 *-*-amigaos* | *-*-msdosdjgpp*)
14174 # Override, as these systems have only a dummy fork() stub
14175 ac_cv_func_fork_works=no
14176 ;;
14177 *)
14178 ac_cv_func_fork_works=yes
14179 ;;
14180 esac
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14182 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14183 fi
14184 ac_cv_func_vfork_works=$ac_cv_func_vfork
14185 if test "x$ac_cv_func_vfork" = xyes; then
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14187 $as_echo_n "checking for working vfork... " >&6; }
14188 if test "${ac_cv_func_vfork_works+set}" = set; then :
14189 $as_echo_n "(cached) " >&6
14190 else
14191 if test "$cross_compiling" = yes; then :
14192 ac_cv_func_vfork_works=cross
14193 else
14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14196 /* Thanks to Paul Eggert for this test. */
14197 $ac_includes_default
14198 #include <sys/wait.h>
14199 #ifdef HAVE_VFORK_H
14200 # include <vfork.h>
14201 #endif
14202 /* On some sparc systems, changes by the child to local and incoming
14203 argument registers are propagated back to the parent. The compiler
14204 is told about this with #include <vfork.h>, but some compilers
14205 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14206 static variable whose address is put into a register that is
14207 clobbered by the vfork. */
14208 static void
14209 #ifdef __cplusplus
14210 sparc_address_test (int arg)
14211 # else
14212 sparc_address_test (arg) int arg;
14213 #endif
14214 {
14215 static pid_t child;
14216 if (!child) {
14217 child = vfork ();
14218 if (child < 0) {
14219 perror ("vfork");
14220 _exit(2);
14221 }
14222 if (!child) {
14223 arg = getpid();
14224 write(-1, "", 0);
14225 _exit (arg);
14226 }
14227 }
14228 }
14229
14230 int
14231 main ()
14232 {
14233 pid_t parent = getpid ();
14234 pid_t child;
14235
14236 sparc_address_test (0);
14237
14238 child = vfork ();
14239
14240 if (child == 0) {
14241 /* Here is another test for sparc vfork register problems. This
14242 test uses lots of local variables, at least as many local
14243 variables as main has allocated so far including compiler
14244 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14245 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14246 reuse the register of parent for one of the local variables,
14247 since it will think that parent can't possibly be used any more
14248 in this routine. Assigning to the local variable will thus
14249 munge parent in the parent process. */
14250 pid_t
14251 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14252 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14253 /* Convince the compiler that p..p7 are live; otherwise, it might
14254 use the same hardware register for all 8 local variables. */
14255 if (p != p1 || p != p2 || p != p3 || p != p4
14256 || p != p5 || p != p6 || p != p7)
14257 _exit(1);
14258
14259 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14260 from child file descriptors. If the child closes a descriptor
14261 before it execs or exits, this munges the parent's descriptor
14262 as well. Test for this by closing stdout in the child. */
14263 _exit(close(fileno(stdout)) != 0);
14264 } else {
14265 int status;
14266 struct stat st;
14267
14268 while (wait(&status) != child)
14269 ;
14270 return (
14271 /* Was there some problem with vforking? */
14272 child < 0
14273
14274 /* Did the child fail? (This shouldn't happen.) */
14275 || status
14276
14277 /* Did the vfork/compiler bug occur? */
14278 || parent != getpid()
14279
14280 /* Did the file descriptor bug occur? */
14281 || fstat(fileno(stdout), &st) != 0
14282 );
14283 }
14284 }
14285 _ACEOF
14286 if ac_fn_c_try_run "$LINENO"; then :
14287 ac_cv_func_vfork_works=yes
14288 else
14289 ac_cv_func_vfork_works=no
14290 fi
14291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14292 conftest.$ac_objext conftest.beam conftest.$ac_ext
14293 fi
14294
14295 fi
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14297 $as_echo "$ac_cv_func_vfork_works" >&6; }
14298
14299 fi;
14300 if test "x$ac_cv_func_fork_works" = xcross; then
14301 ac_cv_func_vfork_works=$ac_cv_func_vfork
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14303 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14304 fi
14305
14306 if test "x$ac_cv_func_vfork_works" = xyes; then
14307
14308 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14309
14310 else
14311
14312 $as_echo "#define vfork fork" >>confdefs.h
14313
14314 fi
14315 if test "x$ac_cv_func_fork_works" = xyes; then
14316
14317 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14318
14319 fi
14320
14321
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14323 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14324 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14325 $as_echo_n "(cached) " >&6
14326 else
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h. */
14329 #include <langinfo.h>
14330 int
14331 main ()
14332 {
14333 char* cs = nl_langinfo(CODESET);
14334 ;
14335 return 0;
14336 }
14337 _ACEOF
14338 if ac_fn_c_try_link "$LINENO"; then :
14339 emacs_cv_langinfo_codeset=yes
14340 else
14341 emacs_cv_langinfo_codeset=no
14342 fi
14343 rm -f core conftest.err conftest.$ac_objext \
14344 conftest$ac_exeext conftest.$ac_ext
14345
14346 fi
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14348 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14349 if test $emacs_cv_langinfo_codeset = yes; then
14350
14351 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14352
14353 fi
14354
14355 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14356 if test "x$ac_cv_type_size_t" = x""yes; then :
14357
14358 cat >>confdefs.h <<_ACEOF
14359 #define HAVE_SIZE_T 1
14360 _ACEOF
14361
14362
14363 fi
14364
14365
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14367 $as_echo_n "checking for mbstate_t... " >&6; }
14368 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14369 $as_echo_n "(cached) " >&6
14370 else
14371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h. */
14373 $ac_includes_default
14374 # include <wchar.h>
14375 int
14376 main ()
14377 {
14378 mbstate_t x; return sizeof x;
14379 ;
14380 return 0;
14381 }
14382 _ACEOF
14383 if ac_fn_c_try_compile "$LINENO"; then :
14384 ac_cv_type_mbstate_t=yes
14385 else
14386 ac_cv_type_mbstate_t=no
14387 fi
14388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14389 fi
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14391 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14392 if test $ac_cv_type_mbstate_t = yes; then
14393
14394 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14395
14396 else
14397
14398 $as_echo "#define mbstate_t int" >>confdefs.h
14399
14400 fi
14401
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14403 $as_echo_n "checking for C restrict keyword... " >&6; }
14404 if test "${emacs_cv_c_restrict+set}" = set; then :
14405 $as_echo_n "(cached) " >&6
14406 else
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14409 void fred (int *restrict x);
14410 int
14411 main ()
14412 {
14413
14414 ;
14415 return 0;
14416 }
14417 _ACEOF
14418 if ac_fn_c_try_compile "$LINENO"; then :
14419 emacs_cv_c_restrict=yes
14420 else
14421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422 /* end confdefs.h. */
14423 void fred (int *__restrict x);
14424 int
14425 main ()
14426 {
14427
14428 ;
14429 return 0;
14430 }
14431 _ACEOF
14432 if ac_fn_c_try_compile "$LINENO"; then :
14433 emacs_cv_c_restrict=__restrict
14434 else
14435 emacs_cv_c_restrict=no
14436 fi
14437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14438 fi
14439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14440 fi
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14442 $as_echo "$emacs_cv_c_restrict" >&6; }
14443 case "$emacs_cv_c_restrict" in
14444 yes) emacs_restrict=restrict;;
14445 no) emacs_restrict="";;
14446 *) emacs_restrict="$emacs_cv_c_restrict";;
14447 esac
14448 if test "$emacs_restrict" != __restrict; then
14449
14450 cat >>confdefs.h <<_ACEOF
14451 #define __restrict $emacs_restrict
14452 _ACEOF
14453
14454 fi
14455
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14457 $as_echo_n "checking for C restricted array declarations... " >&6; }
14458 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14459 $as_echo_n "(cached) " >&6
14460 else
14461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462 /* end confdefs.h. */
14463 void fred (int x[__restrict]);
14464 int
14465 main ()
14466 {
14467
14468 ;
14469 return 0;
14470 }
14471 _ACEOF
14472 if ac_fn_c_try_compile "$LINENO"; then :
14473 emacs_cv_c_restrict_arr=yes
14474 else
14475 emacs_cv_c_restrict_arr=no
14476 fi
14477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14478 fi
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14480 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14481 if test "$emacs_cv_c_restrict_arr" = yes; then
14482
14483 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14484
14485 fi
14486
14487
14488
14489 # Set up the CFLAGS for real compilation, so we can substitute it.
14490 CFLAGS="$REAL_CFLAGS"
14491 CPPFLAGS="$REAL_CPPFLAGS"
14492
14493 ## Hack to detect a buggy GCC version.
14494 if test "x$GCC" = xyes \
14495 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14496 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14497 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14498 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14499 fi
14500
14501 #### Find out which version of Emacs this is.
14502 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14503 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14504 if test x"${version}" = x; then
14505 as_fn_error "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14506 fi
14507 if test x"${version}" != x"$PACKAGE_VERSION"; then
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14509 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14510 fi
14511
14512 ### Specify what sort of things we'll be editing into Makefile and config.h.
14513 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14514
14515
14516 ## Unused?
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14538 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14539 ## end of LIBX_BASE, but nothing ever set it.
14540
14541
14542
14543
14544 ## Used in lwlib/Makefile.in.
14545
14546 if test -n "${machfile}"; then
14547 M_FILE="\$(srcdir)/${machfile}"
14548 else
14549 M_FILE=
14550 fi
14551 S_FILE="\$(srcdir)/${opsysfile}"
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563 cat >>confdefs.h <<_ACEOF
14564 #define EMACS_CONFIGURATION "${canonical}"
14565 _ACEOF
14566
14567
14568 cat >>confdefs.h <<_ACEOF
14569 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14570 _ACEOF
14571
14572 if test -n "$machfile"; then
14573
14574 cat >>confdefs.h <<_ACEOF
14575 #define config_machfile "${machfile}"
14576 _ACEOF
14577
14578 fi
14579
14580 cat >>confdefs.h <<_ACEOF
14581 #define config_opsysfile "${opsysfile}"
14582 _ACEOF
14583
14584
14585 XMENU_OBJ=
14586 XOBJ=
14587 FONT_OBJ=
14588 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14589
14590 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14591
14592 XMENU_OBJ=xmenu.o
14593 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14594 FONT_OBJ=xfont.o
14595 if test "$HAVE_XFT" = "yes"; then
14596 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14597 elif test "$HAVE_FREETYPE" = "yes"; then
14598 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14599 fi
14600
14601 fi
14602
14603
14604
14605
14606 WIDGET_OBJ=
14607 MOTIF_LIBW=
14608 if test "${USE_X_TOOLKIT}" != "none" ; then
14609 WIDGET_OBJ=widget.o
14610
14611 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14612
14613 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14614
14615 $as_echo "#define USE_LUCID 1" >>confdefs.h
14616
14617 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14618
14619 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14620
14621 MOTIF_LIBW=-lXm
14622 case "$opsys" in
14623 gnu-linux)
14624 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14625 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14626 ;;
14627
14628 unixware)
14629 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14630 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14631 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14632 ;;
14633
14634 aix4-2)
14635 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14636 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14637 ;;
14638 esac
14639 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14640 fi
14641 fi
14642
14643
14644 TOOLKIT_LIBW=
14645 case "$USE_X_TOOLKIT" in
14646 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14647 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14648 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14649 esac
14650
14651
14652 if test "$USE_X_TOOLKIT" = "none"; then
14653 LIBXT_OTHER="\$(LIBXSM)"
14654 OLDXMENU_TARGET="really-oldXMenu"
14655 else
14656 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14657 OLDXMENU_TARGET="really-lwlib"
14658 fi
14659
14660
14661 ## The X Menu stuff is present in the X10 distribution, but missing
14662 ## from X11. If we have X10, just use the installed library;
14663 ## otherwise, use our own copy.
14664 if test "${HAVE_X11}" = "yes" ; then
14665
14666 $as_echo "#define HAVE_X11 1" >>confdefs.h
14667
14668
14669 if test "$USE_X_TOOLKIT" = "none"; then
14670 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
14671 else
14672 OLDXMENU="\${lwlibdir}/liblw.a"
14673 fi
14674 LIBXMENU="\$(OLDXMENU)"
14675 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14676 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14677 else
14678 ## For a syntactically valid Makefile; not actually used for anything.
14679 ## See comments in src/Makefile.in.
14680 OLDXMENU=nothing
14681 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14682 if test "${HAVE_X_WINDOWS}" = "yes"; then
14683 LIBXMENU="-lXMenu"
14684 else
14685 LIBXMENU=
14686 fi
14687 LIBX_OTHER=
14688 OLDXMENU_DEPS=
14689 fi
14690
14691 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14692 OLDXMENU_TARGET=
14693 OLDXMENU=nothing
14694 LIBXMENU=
14695 OLDXMENU_DEPS=
14696 fi
14697
14698
14699
14700
14701
14702
14703
14704 if test "${HAVE_MENUS}" = "yes" ; then
14705
14706 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14707
14708 fi
14709
14710 if test "${GNU_MALLOC}" = "yes" ; then
14711
14712 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14713
14714 fi
14715
14716 RALLOC_OBJ=
14717 if test "${REL_ALLOC}" = "yes" ; then
14718
14719 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14720
14721
14722 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14723 fi
14724
14725
14726 if test "$opsys" = "cygwin"; then
14727 CYGWIN_OBJ="sheap.o"
14728 ## Cygwin differs because of its unexec().
14729 PRE_ALLOC_OBJ=
14730 POST_ALLOC_OBJ=lastfile.o
14731 else
14732 CYGWIN_OBJ=
14733 PRE_ALLOC_OBJ=lastfile.o
14734 POST_ALLOC_OBJ=
14735 fi
14736
14737
14738
14739
14740
14741 case "$opsys" in
14742 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14743
14744 darwin)
14745 ## The -headerpad option tells ld (see man page) to leave room at the
14746 ## end of the header for adding load commands. Needed for dumping.
14747 ## 0x690 is the total size of 30 segment load commands (at 56
14748 ## each); under Cocoa 31 commands are required.
14749 if test "$HAVE_NS" = "yes"; then
14750 libs_nsgui="-framework AppKit"
14751 headerpad_extra=6C8
14752 else
14753 libs_nsgui=
14754 headerpad_extra=690
14755 fi
14756 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14757
14758 ## This is here because src/Makefile.in did some extra fiddling around
14759 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14760 ## #ifndef LD_SWITCH_SYSTEM
14761 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14762 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14763 ## not using gcc, darwin system not on an alpha (ie darwin, since
14764 ## darwin + alpha does not occur).
14765 ## Because this was done in src/Makefile.in, the resulting part of
14766 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14767 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14768 ## rather than LD_SWITCH_SYSTEM.
14769 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14770 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14771 ;;
14772
14773 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14774 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14775 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14776 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14777 ## had different values in configure (in ac_link) and src/Makefile.in.
14778 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14779 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14780
14781 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14782 esac
14783
14784 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14785 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14786 fi
14787
14788
14789
14790
14791 LD_FIRSTFLAG=
14792 ORDINARY_LINK=
14793 case "$opsys" in
14794 ## gnu: GNU needs its own crt0.
14795 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14796
14797 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14798 ## library search parth, i.e. it won't search /usr/lib for libc and
14799 ## friends. Using -nostartfiles instead avoids this problem, and
14800 ## will also work on earlier NetBSD releases.
14801 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
14802
14803 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14804 ## MkLinux/LinuxPPC needs this.
14805 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14806 gnu-*)
14807 case "$machine" in
14808 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
14809 esac
14810 ;;
14811 esac
14812
14813
14814 if test "x$ORDINARY_LINK" = "xyes"; then
14815
14816 LD_FIRSTFLAG=""
14817
14818 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14819
14820
14821 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14822 ## freebsd, gnu-* not on macppc|ibms390x.
14823 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14824
14825 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14826 ## places that are difficult to figure out at make time. Fortunately,
14827 ## these same versions allow you to pass arbitrary flags on to the
14828 ## linker, so there is no reason not to use it as a linker.
14829 ##
14830 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14831 ## searching for libraries in its internal directories, so we have to
14832 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14833 LD_FIRSTFLAG="-nostdlib"
14834 fi
14835
14836 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14837 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
14838
14839
14840
14841
14842 ## FIXME? The logic here is not precisely the same as that above.
14843 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14844 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14845 LIB_GCC=
14846 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14847
14848 case "$opsys" in
14849 freebsd|netbsd|openbsd) LIB_GCC= ;;
14850
14851 gnu-*)
14852 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14853 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14854 case $host_cpu in
14855 arm*)
14856 LIB_GCC="-lgcc_s"
14857 ;;
14858 *)
14859 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14860 ## immediately undefine it again and redefine it to empty.
14861 ## Was the C_SWITCH_X_SITE part really necessary?
14862 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14863 LIB_GCC=
14864 ;;
14865 esac
14866 ;;
14867
14868 ## Ask GCC where to find libgcc.a.
14869 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14870 esac
14871 fi
14872
14873
14874 TOOLTIP_SUPPORT=
14875 WINDOW_SUPPORT=
14876 ## If we're using X11/GNUstep, define some consequences.
14877 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14878
14879 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14880
14881
14882 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14883
14884 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14885 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
14886
14887 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14888 test "$HAVE_X_WINDOWS" = "yes" && \
14889 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14890
14891 fi
14892
14893
14894
14895
14896
14897
14898
14899 #### Report on what we decided to do.
14900 #### Report GTK as a toolkit, even if it doesn't use Xt.
14901 #### It makes printing result more understandable as using GTK sets
14902 #### toolkit_scroll_bars to yes by default.
14903 if test "${HAVE_GTK}" = "yes"; then
14904 USE_X_TOOLKIT=GTK
14905 fi
14906
14907 and_machfile=
14908 if test -n "$machfile"; then
14909 and_machfile=" and \`${machfile}'"
14910 fi
14911
14912 echo "
14913 Configured for \`${canonical}'.
14914
14915 Where should the build process find the source code? ${srcdir}
14916 What operating system and machine description files should Emacs use?
14917 \`${opsysfile}'${and_machfile}
14918 What compiler should emacs be built with? ${CC} ${CFLAGS}
14919 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14920 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14921 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14922 What window system should Emacs use? ${window_system}
14923 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14924
14925 if test -n "${x_includes}"; then
14926 echo " Where do we find X Windows header files? ${x_includes}"
14927 else
14928 echo " Where do we find X Windows header files? Standard dirs"
14929 fi
14930 if test -n "${x_libraries}"; then
14931 echo " Where do we find X Windows libraries? ${x_libraries}"
14932 else
14933 echo " Where do we find X Windows libraries? Standard dirs"
14934 fi
14935
14936 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14937 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14938 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14939 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14940 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14941 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14942 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14943 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14944
14945 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14946 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14947 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14948 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14949 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
14950 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
14951
14952 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14953 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14954 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14955 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14956
14957 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14958 echo
14959
14960 if test $USE_XASSERTS = yes; then
14961 echo " Compiling with asserts turned on."
14962 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14963 fi
14964
14965 echo
14966
14967 if test "$HAVE_NS" = "yes"; then
14968 echo
14969 echo "You must run \"make install\" in order to test the built application.
14970 The installed application will go to nextstep/Emacs.app and can be
14971 run or moved from there."
14972 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14973 echo "The application will be fully self-contained."
14974 else
14975 echo "The lisp resources for the application will be installed under ${prefix}.
14976 You may need to run \"make install\" with sudo. The application will fail
14977 to run if these resources are not installed."
14978 fi
14979 echo
14980 fi
14981
14982
14983 # Remove any trailing slashes in these variables.
14984 test "${prefix}" != NONE &&
14985 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14986 test "${exec_prefix}" != NONE &&
14987 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14988
14989 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"
14990
14991 ac_config_commands="$ac_config_commands default"
14992
14993 cat >confcache <<\_ACEOF
14994 # This file is a shell script that caches the results of configure
14995 # tests run on this system so they can be shared between configure
14996 # scripts and configure runs, see configure's option --config-cache.
14997 # It is not useful on other systems. If it contains results you don't
14998 # want to keep, you may remove or edit it.
14999 #
15000 # config.status only pays attention to the cache file if you give it
15001 # the --recheck option to rerun configure.
15002 #
15003 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15004 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15005 # following values.
15006
15007 _ACEOF
15008
15009 # The following way of writing the cache mishandles newlines in values,
15010 # but we know of no workaround that is simple, portable, and efficient.
15011 # So, we kill variables containing newlines.
15012 # Ultrix sh set writes to stderr and can't be redirected directly,
15013 # and sets the high bit in the cache file unless we assign to the vars.
15014 (
15015 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15016 eval ac_val=\$$ac_var
15017 case $ac_val in #(
15018 *${as_nl}*)
15019 case $ac_var in #(
15020 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15021 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15022 esac
15023 case $ac_var in #(
15024 _ | IFS | as_nl) ;; #(
15025 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15026 *) { eval $ac_var=; unset $ac_var;} ;;
15027 esac ;;
15028 esac
15029 done
15030
15031 (set) 2>&1 |
15032 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15033 *${as_nl}ac_space=\ *)
15034 # `set' does not quote correctly, so add quotes: double-quote
15035 # substitution turns \\\\ into \\, and sed turns \\ into \.
15036 sed -n \
15037 "s/'/'\\\\''/g;
15038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15039 ;; #(
15040 *)
15041 # `set' quotes correctly as required by POSIX, so do not add quotes.
15042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15043 ;;
15044 esac |
15045 sort
15046 ) |
15047 sed '
15048 /^ac_cv_env_/b end
15049 t clear
15050 :clear
15051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15052 t end
15053 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15054 :end' >>confcache
15055 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15056 if test -w "$cache_file"; then
15057 test "x$cache_file" != "x/dev/null" &&
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15059 $as_echo "$as_me: updating cache $cache_file" >&6;}
15060 cat confcache >$cache_file
15061 else
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15063 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15064 fi
15065 fi
15066 rm -f confcache
15067
15068 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15069 # Let make expand exec_prefix.
15070 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15071
15072 DEFS=-DHAVE_CONFIG_H
15073
15074 ac_libobjs=
15075 ac_ltlibobjs=
15076 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15077 # 1. Remove the extension, and $U if already installed.
15078 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15079 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15080 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15081 # will be set to the directory where LIBOBJS objects are built.
15082 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15083 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15084 done
15085 LIBOBJS=$ac_libobjs
15086
15087 LTLIBOBJS=$ac_ltlibobjs
15088
15089
15090
15091
15092 : ${CONFIG_STATUS=./config.status}
15093 ac_write_fail=0
15094 ac_clean_files_save=$ac_clean_files
15095 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15097 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15098 as_write_fail=0
15099 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15100 #! $SHELL
15101 # Generated by $as_me.
15102 # Run this file to recreate the current configuration.
15103 # Compiler output produced by configure, useful for debugging
15104 # configure, is in config.log if it exists.
15105
15106 debug=false
15107 ac_cs_recheck=false
15108 ac_cs_silent=false
15109
15110 SHELL=\${CONFIG_SHELL-$SHELL}
15111 export SHELL
15112 _ASEOF
15113 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15114 ## -------------------- ##
15115 ## M4sh Initialization. ##
15116 ## -------------------- ##
15117
15118 # Be more Bourne compatible
15119 DUALCASE=1; export DUALCASE # for MKS sh
15120 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15121 emulate sh
15122 NULLCMD=:
15123 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15124 # is contrary to our usage. Disable this feature.
15125 alias -g '${1+"$@"}'='"$@"'
15126 setopt NO_GLOB_SUBST
15127 else
15128 case `(set -o) 2>/dev/null` in #(
15129 *posix*) :
15130 set -o posix ;; #(
15131 *) :
15132 ;;
15133 esac
15134 fi
15135
15136
15137 as_nl='
15138 '
15139 export as_nl
15140 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15141 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15142 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15143 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15144 # Prefer a ksh shell builtin over an external printf program on Solaris,
15145 # but without wasting forks for bash or zsh.
15146 if test -z "$BASH_VERSION$ZSH_VERSION" \
15147 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15148 as_echo='print -r --'
15149 as_echo_n='print -rn --'
15150 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15151 as_echo='printf %s\n'
15152 as_echo_n='printf %s'
15153 else
15154 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15155 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15156 as_echo_n='/usr/ucb/echo -n'
15157 else
15158 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15159 as_echo_n_body='eval
15160 arg=$1;
15161 case $arg in #(
15162 *"$as_nl"*)
15163 expr "X$arg" : "X\\(.*\\)$as_nl";
15164 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15165 esac;
15166 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15167 '
15168 export as_echo_n_body
15169 as_echo_n='sh -c $as_echo_n_body as_echo'
15170 fi
15171 export as_echo_body
15172 as_echo='sh -c $as_echo_body as_echo'
15173 fi
15174
15175 # The user is always right.
15176 if test "${PATH_SEPARATOR+set}" != set; then
15177 PATH_SEPARATOR=:
15178 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15179 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15180 PATH_SEPARATOR=';'
15181 }
15182 fi
15183
15184
15185 # IFS
15186 # We need space, tab and new line, in precisely that order. Quoting is
15187 # there to prevent editors from complaining about space-tab.
15188 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15189 # splitting by setting IFS to empty value.)
15190 IFS=" "" $as_nl"
15191
15192 # Find who we are. Look in the path if we contain no directory separator.
15193 case $0 in #((
15194 *[\\/]* ) as_myself=$0 ;;
15195 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15196 for as_dir in $PATH
15197 do
15198 IFS=$as_save_IFS
15199 test -z "$as_dir" && as_dir=.
15200 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15201 done
15202 IFS=$as_save_IFS
15203
15204 ;;
15205 esac
15206 # We did not find ourselves, most probably we were run as `sh COMMAND'
15207 # in which case we are not to be found in the path.
15208 if test "x$as_myself" = x; then
15209 as_myself=$0
15210 fi
15211 if test ! -f "$as_myself"; then
15212 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15213 exit 1
15214 fi
15215
15216 # Unset variables that we do not need and which cause bugs (e.g. in
15217 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15218 # suppresses any "Segmentation fault" message there. '((' could
15219 # trigger a bug in pdksh 5.2.14.
15220 for as_var in BASH_ENV ENV MAIL MAILPATH
15221 do eval test x\${$as_var+set} = xset \
15222 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15223 done
15224 PS1='$ '
15225 PS2='> '
15226 PS4='+ '
15227
15228 # NLS nuisances.
15229 LC_ALL=C
15230 export LC_ALL
15231 LANGUAGE=C
15232 export LANGUAGE
15233
15234 # CDPATH.
15235 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15236
15237
15238 # as_fn_error ERROR [LINENO LOG_FD]
15239 # ---------------------------------
15240 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15241 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15242 # script with status $?, using 1 if that was 0.
15243 as_fn_error ()
15244 {
15245 as_status=$?; test $as_status -eq 0 && as_status=1
15246 if test "$3"; then
15247 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15248 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15249 fi
15250 $as_echo "$as_me: error: $1" >&2
15251 as_fn_exit $as_status
15252 } # as_fn_error
15253
15254
15255 # as_fn_set_status STATUS
15256 # -----------------------
15257 # Set $? to STATUS, without forking.
15258 as_fn_set_status ()
15259 {
15260 return $1
15261 } # as_fn_set_status
15262
15263 # as_fn_exit STATUS
15264 # -----------------
15265 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15266 as_fn_exit ()
15267 {
15268 set +e
15269 as_fn_set_status $1
15270 exit $1
15271 } # as_fn_exit
15272
15273 # as_fn_unset VAR
15274 # ---------------
15275 # Portably unset VAR.
15276 as_fn_unset ()
15277 {
15278 { eval $1=; unset $1;}
15279 }
15280 as_unset=as_fn_unset
15281 # as_fn_append VAR VALUE
15282 # ----------------------
15283 # Append the text in VALUE to the end of the definition contained in VAR. Take
15284 # advantage of any shell optimizations that allow amortized linear growth over
15285 # repeated appends, instead of the typical quadratic growth present in naive
15286 # implementations.
15287 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15288 eval 'as_fn_append ()
15289 {
15290 eval $1+=\$2
15291 }'
15292 else
15293 as_fn_append ()
15294 {
15295 eval $1=\$$1\$2
15296 }
15297 fi # as_fn_append
15298
15299 # as_fn_arith ARG...
15300 # ------------------
15301 # Perform arithmetic evaluation on the ARGs, and store the result in the
15302 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15303 # must be portable across $(()) and expr.
15304 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15305 eval 'as_fn_arith ()
15306 {
15307 as_val=$(( $* ))
15308 }'
15309 else
15310 as_fn_arith ()
15311 {
15312 as_val=`expr "$@" || test $? -eq 1`
15313 }
15314 fi # as_fn_arith
15315
15316
15317 if expr a : '\(a\)' >/dev/null 2>&1 &&
15318 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15319 as_expr=expr
15320 else
15321 as_expr=false
15322 fi
15323
15324 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15325 as_basename=basename
15326 else
15327 as_basename=false
15328 fi
15329
15330 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15331 as_dirname=dirname
15332 else
15333 as_dirname=false
15334 fi
15335
15336 as_me=`$as_basename -- "$0" ||
15337 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15338 X"$0" : 'X\(//\)$' \| \
15339 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15340 $as_echo X/"$0" |
15341 sed '/^.*\/\([^/][^/]*\)\/*$/{
15342 s//\1/
15343 q
15344 }
15345 /^X\/\(\/\/\)$/{
15346 s//\1/
15347 q
15348 }
15349 /^X\/\(\/\).*/{
15350 s//\1/
15351 q
15352 }
15353 s/.*/./; q'`
15354
15355 # Avoid depending upon Character Ranges.
15356 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15357 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15358 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15359 as_cr_digits='0123456789'
15360 as_cr_alnum=$as_cr_Letters$as_cr_digits
15361
15362 ECHO_C= ECHO_N= ECHO_T=
15363 case `echo -n x` in #(((((
15364 -n*)
15365 case `echo 'xy\c'` in
15366 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15367 xy) ECHO_C='\c';;
15368 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15369 ECHO_T=' ';;
15370 esac;;
15371 *)
15372 ECHO_N='-n';;
15373 esac
15374
15375 rm -f conf$$ conf$$.exe conf$$.file
15376 if test -d conf$$.dir; then
15377 rm -f conf$$.dir/conf$$.file
15378 else
15379 rm -f conf$$.dir
15380 mkdir conf$$.dir 2>/dev/null
15381 fi
15382 if (echo >conf$$.file) 2>/dev/null; then
15383 if ln -s conf$$.file conf$$ 2>/dev/null; then
15384 as_ln_s='ln -s'
15385 # ... but there are two gotchas:
15386 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15387 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15388 # In both cases, we have to default to `cp -p'.
15389 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15390 as_ln_s='cp -p'
15391 elif ln conf$$.file conf$$ 2>/dev/null; then
15392 as_ln_s=ln
15393 else
15394 as_ln_s='cp -p'
15395 fi
15396 else
15397 as_ln_s='cp -p'
15398 fi
15399 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15400 rmdir conf$$.dir 2>/dev/null
15401
15402
15403 # as_fn_mkdir_p
15404 # -------------
15405 # Create "$as_dir" as a directory, including parents if necessary.
15406 as_fn_mkdir_p ()
15407 {
15408
15409 case $as_dir in #(
15410 -*) as_dir=./$as_dir;;
15411 esac
15412 test -d "$as_dir" || eval $as_mkdir_p || {
15413 as_dirs=
15414 while :; do
15415 case $as_dir in #(
15416 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15417 *) as_qdir=$as_dir;;
15418 esac
15419 as_dirs="'$as_qdir' $as_dirs"
15420 as_dir=`$as_dirname -- "$as_dir" ||
15421 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15422 X"$as_dir" : 'X\(//\)[^/]' \| \
15423 X"$as_dir" : 'X\(//\)$' \| \
15424 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15425 $as_echo X"$as_dir" |
15426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15427 s//\1/
15428 q
15429 }
15430 /^X\(\/\/\)[^/].*/{
15431 s//\1/
15432 q
15433 }
15434 /^X\(\/\/\)$/{
15435 s//\1/
15436 q
15437 }
15438 /^X\(\/\).*/{
15439 s//\1/
15440 q
15441 }
15442 s/.*/./; q'`
15443 test -d "$as_dir" && break
15444 done
15445 test -z "$as_dirs" || eval "mkdir $as_dirs"
15446 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15447
15448
15449 } # as_fn_mkdir_p
15450 if mkdir -p . 2>/dev/null; then
15451 as_mkdir_p='mkdir -p "$as_dir"'
15452 else
15453 test -d ./-p && rmdir ./-p
15454 as_mkdir_p=false
15455 fi
15456
15457 if test -x / >/dev/null 2>&1; then
15458 as_test_x='test -x'
15459 else
15460 if ls -dL / >/dev/null 2>&1; then
15461 as_ls_L_option=L
15462 else
15463 as_ls_L_option=
15464 fi
15465 as_test_x='
15466 eval sh -c '\''
15467 if test -d "$1"; then
15468 test -d "$1/.";
15469 else
15470 case $1 in #(
15471 -*)set "./$1";;
15472 esac;
15473 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15474 ???[sx]*):;;*)false;;esac;fi
15475 '\'' sh
15476 '
15477 fi
15478 as_executable_p=$as_test_x
15479
15480 # Sed expression to map a string onto a valid CPP name.
15481 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15482
15483 # Sed expression to map a string onto a valid variable name.
15484 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15485
15486
15487 exec 6>&1
15488 ## ----------------------------------- ##
15489 ## Main body of $CONFIG_STATUS script. ##
15490 ## ----------------------------------- ##
15491 _ASEOF
15492 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15493
15494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15495 # Save the log message, to keep $0 and so on meaningful, and to
15496 # report actual input values of CONFIG_FILES etc. instead of their
15497 # values after options handling.
15498 ac_log="
15499 This file was extended by emacs $as_me 24.0.50, which was
15500 generated by GNU Autoconf 2.65. Invocation command line was
15501
15502 CONFIG_FILES = $CONFIG_FILES
15503 CONFIG_HEADERS = $CONFIG_HEADERS
15504 CONFIG_LINKS = $CONFIG_LINKS
15505 CONFIG_COMMANDS = $CONFIG_COMMANDS
15506 $ $0 $@
15507
15508 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15509 "
15510
15511 _ACEOF
15512
15513 case $ac_config_files in *"
15514 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15515 esac
15516
15517 case $ac_config_headers in *"
15518 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15519 esac
15520
15521
15522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15523 # Files that config.status was made for.
15524 config_files="$ac_config_files"
15525 config_headers="$ac_config_headers"
15526 config_commands="$ac_config_commands"
15527
15528 _ACEOF
15529
15530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15531 ac_cs_usage="\
15532 \`$as_me' instantiates files and other configuration actions
15533 from templates according to the current configuration. Unless the files
15534 and actions are specified as TAGs, all are instantiated by default.
15535
15536 Usage: $0 [OPTION]... [TAG]...
15537
15538 -h, --help print this help, then exit
15539 -V, --version print version number and configuration settings, then exit
15540 --config print configuration, then exit
15541 -q, --quiet, --silent
15542 do not print progress messages
15543 -d, --debug don't remove temporary files
15544 --recheck update $as_me by reconfiguring in the same conditions
15545 --file=FILE[:TEMPLATE]
15546 instantiate the configuration file FILE
15547 --header=FILE[:TEMPLATE]
15548 instantiate the configuration header FILE
15549
15550 Configuration files:
15551 $config_files
15552
15553 Configuration headers:
15554 $config_headers
15555
15556 Configuration commands:
15557 $config_commands
15558
15559 Report bugs to the package provider."
15560
15561 _ACEOF
15562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15563 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15564 ac_cs_version="\\
15565 emacs config.status 24.0.50
15566 configured by $0, generated by GNU Autoconf 2.65,
15567 with options \\"\$ac_cs_config\\"
15568
15569 Copyright (C) 2009 Free Software Foundation, Inc.
15570 This config.status script is free software; the Free Software Foundation
15571 gives unlimited permission to copy, distribute and modify it."
15572
15573 ac_pwd='$ac_pwd'
15574 srcdir='$srcdir'
15575 INSTALL='$INSTALL'
15576 test -n "\$AWK" || AWK=awk
15577 _ACEOF
15578
15579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15580 # The default lists apply if the user does not specify any file.
15581 ac_need_defaults=:
15582 while test $# != 0
15583 do
15584 case $1 in
15585 --*=*)
15586 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15587 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15588 ac_shift=:
15589 ;;
15590 *)
15591 ac_option=$1
15592 ac_optarg=$2
15593 ac_shift=shift
15594 ;;
15595 esac
15596
15597 case $ac_option in
15598 # Handling of the options.
15599 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15600 ac_cs_recheck=: ;;
15601 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15602 $as_echo "$ac_cs_version"; exit ;;
15603 --config | --confi | --conf | --con | --co | --c )
15604 $as_echo "$ac_cs_config"; exit ;;
15605 --debug | --debu | --deb | --de | --d | -d )
15606 debug=: ;;
15607 --file | --fil | --fi | --f )
15608 $ac_shift
15609 case $ac_optarg in
15610 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15611 esac
15612 as_fn_append CONFIG_FILES " '$ac_optarg'"
15613 ac_need_defaults=false;;
15614 --header | --heade | --head | --hea )
15615 $ac_shift
15616 case $ac_optarg in
15617 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15618 esac
15619 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15620 ac_need_defaults=false;;
15621 --he | --h)
15622 # Conflict between --help and --header
15623 as_fn_error "ambiguous option: \`$1'
15624 Try \`$0 --help' for more information.";;
15625 --help | --hel | -h )
15626 $as_echo "$ac_cs_usage"; exit ;;
15627 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15628 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15629 ac_cs_silent=: ;;
15630
15631 # This is an error.
15632 -*) as_fn_error "unrecognized option: \`$1'
15633 Try \`$0 --help' for more information." ;;
15634
15635 *) as_fn_append ac_config_targets " $1"
15636 ac_need_defaults=false ;;
15637
15638 esac
15639 shift
15640 done
15641
15642 ac_configure_extra_args=
15643
15644 if $ac_cs_silent; then
15645 exec 6>/dev/null
15646 ac_configure_extra_args="$ac_configure_extra_args --silent"
15647 fi
15648
15649 _ACEOF
15650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15651 if \$ac_cs_recheck; then
15652 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15653 shift
15654 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15655 CONFIG_SHELL='$SHELL'
15656 export CONFIG_SHELL
15657 exec "\$@"
15658 fi
15659
15660 _ACEOF
15661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15662 exec 5>>config.log
15663 {
15664 echo
15665 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15666 ## Running $as_me. ##
15667 _ASBOX
15668 $as_echo "$ac_log"
15669 } >&5
15670
15671 _ACEOF
15672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15673 #
15674 # INIT-COMMANDS
15675 #
15676 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15677
15678 _ACEOF
15679
15680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15681
15682 # Handling of arguments.
15683 for ac_config_target in $ac_config_targets
15684 do
15685 case $ac_config_target in
15686 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15687 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15688 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15689 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15690 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15691 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15692 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15693 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15694 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15695 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15696 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15697 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15698 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15699
15700 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15701 esac
15702 done
15703
15704
15705 # If the user did not use the arguments to specify the items to instantiate,
15706 # then the envvar interface is used. Set only those that are not.
15707 # We use the long form for the default assignment because of an extremely
15708 # bizarre bug on SunOS 4.1.3.
15709 if $ac_need_defaults; then
15710 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15711 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15712 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15713 fi
15714
15715 # Have a temporary directory for convenience. Make it in the build tree
15716 # simply because there is no reason against having it here, and in addition,
15717 # creating and moving files from /tmp can sometimes cause problems.
15718 # Hook for its removal unless debugging.
15719 # Note that there is a small window in which the directory will not be cleaned:
15720 # after its creation but before its name has been assigned to `$tmp'.
15721 $debug ||
15722 {
15723 tmp=
15724 trap 'exit_status=$?
15725 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15726 ' 0
15727 trap 'as_fn_exit 1' 1 2 13 15
15728 }
15729 # Create a (secure) tmp directory for tmp files.
15730
15731 {
15732 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15733 test -n "$tmp" && test -d "$tmp"
15734 } ||
15735 {
15736 tmp=./conf$$-$RANDOM
15737 (umask 077 && mkdir "$tmp")
15738 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15739
15740 # Set up the scripts for CONFIG_FILES section.
15741 # No need to generate them if there are no CONFIG_FILES.
15742 # This happens for instance with `./config.status config.h'.
15743 if test -n "$CONFIG_FILES"; then
15744
15745 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15746 ac_cs_awk_getline=:
15747 ac_cs_awk_pipe_init=
15748 ac_cs_awk_read_file='
15749 while ((getline aline < (F[key])) > 0)
15750 print(aline)
15751 close(F[key])'
15752 ac_cs_awk_pipe_fini=
15753 else
15754 ac_cs_awk_getline=false
15755 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15756 ac_cs_awk_read_file='
15757 print "|#_!!_#|"
15758 print "cat " F[key] " &&"
15759 '$ac_cs_awk_pipe_init
15760 # The final `:' finishes the AND list.
15761 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15762 fi
15763 ac_cr=`echo X | tr X '\015'`
15764 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15765 # But we know of no other shell where ac_cr would be empty at this
15766 # point, so we can use a bashism as a fallback.
15767 if test "x$ac_cr" = x; then
15768 eval ac_cr=\$\'\\r\'
15769 fi
15770 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15771 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15772 ac_cs_awk_cr='\r'
15773 else
15774 ac_cs_awk_cr=$ac_cr
15775 fi
15776
15777 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15778 _ACEOF
15779
15780 # Create commands to substitute file output variables.
15781 {
15782 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15783 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15784 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15785 echo "_ACAWK" &&
15786 echo "_ACEOF"
15787 } >conf$$files.sh &&
15788 . ./conf$$files.sh ||
15789 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15790 rm -f conf$$files.sh
15791
15792 {
15793 echo "cat >conf$$subs.awk <<_ACEOF" &&
15794 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15795 echo "_ACEOF"
15796 } >conf$$subs.sh ||
15797 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15798 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15799 ac_delim='%!_!# '
15800 for ac_last_try in false false false false false :; do
15801 . ./conf$$subs.sh ||
15802 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15803
15804 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15805 if test $ac_delim_n = $ac_delim_num; then
15806 break
15807 elif $ac_last_try; then
15808 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15809 else
15810 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15811 fi
15812 done
15813 rm -f conf$$subs.sh
15814
15815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15816 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15817 _ACEOF
15818 sed -n '
15819 h
15820 s/^/S["/; s/!.*/"]=/
15821 p
15822 g
15823 s/^[^!]*!//
15824 :repl
15825 t repl
15826 s/'"$ac_delim"'$//
15827 t delim
15828 :nl
15829 h
15830 s/\(.\{148\}\)..*/\1/
15831 t more1
15832 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15833 p
15834 n
15835 b repl
15836 :more1
15837 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15838 p
15839 g
15840 s/.\{148\}//
15841 t nl
15842 :delim
15843 h
15844 s/\(.\{148\}\)..*/\1/
15845 t more2
15846 s/["\\]/\\&/g; s/^/"/; s/$/"/
15847 p
15848 b
15849 :more2
15850 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15851 p
15852 g
15853 s/.\{148\}//
15854 t delim
15855 ' <conf$$subs.awk | sed '
15856 /^[^""]/{
15857 N
15858 s/\n//
15859 }
15860 ' >>$CONFIG_STATUS || ac_write_fail=1
15861 rm -f conf$$subs.awk
15862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15863 _ACAWK
15864 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15865 for (key in S) S_is_set[key] = 1
15866 FS = "\a"
15867 \$ac_cs_awk_pipe_init
15868 }
15869 {
15870 line = $ 0
15871 nfields = split(line, field, "@")
15872 substed = 0
15873 len = length(field[1])
15874 for (i = 2; i < nfields; i++) {
15875 key = field[i]
15876 keylen = length(key)
15877 if (S_is_set[key]) {
15878 value = S[key]
15879 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15880 len += length(value) + length(field[++i])
15881 substed = 1
15882 } else
15883 len += 1 + keylen
15884 }
15885 if (nfields == 3 && !substed) {
15886 key = field[2]
15887 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15888 \$ac_cs_awk_read_file
15889 next
15890 }
15891 }
15892 print line
15893 }
15894 \$ac_cs_awk_pipe_fini
15895 _ACAWK
15896 _ACEOF
15897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15898 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15899 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15900 else
15901 cat
15902 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15903 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15904 _ACEOF
15905
15906 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15907 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15908 # trailing colons and then remove the whole line if VPATH becomes empty
15909 # (actually we leave an empty line to preserve line numbers).
15910 if test "x$srcdir" = x.; then
15911 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15912 s/:*\$(srcdir):*/:/
15913 s/:*\${srcdir}:*/:/
15914 s/:*@srcdir@:*/:/
15915 s/^\([^=]*=[ ]*\):*/\1/
15916 s/:*$//
15917 s/^[^=]*=[ ]*$//
15918 }'
15919 fi
15920
15921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15922 fi # test -n "$CONFIG_FILES"
15923
15924 # Set up the scripts for CONFIG_HEADERS section.
15925 # No need to generate them if there are no CONFIG_HEADERS.
15926 # This happens for instance with `./config.status Makefile'.
15927 if test -n "$CONFIG_HEADERS"; then
15928 cat >"$tmp/defines.awk" <<\_ACAWK ||
15929 BEGIN {
15930 _ACEOF
15931
15932 # Transform confdefs.h into an awk script `defines.awk', embedded as
15933 # here-document in config.status, that substitutes the proper values into
15934 # config.h.in to produce config.h.
15935
15936 # Create a delimiter string that does not exist in confdefs.h, to ease
15937 # handling of long lines.
15938 ac_delim='%!_!# '
15939 for ac_last_try in false false :; do
15940 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15941 if test -z "$ac_t"; then
15942 break
15943 elif $ac_last_try; then
15944 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15945 else
15946 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15947 fi
15948 done
15949
15950 # For the awk script, D is an array of macro values keyed by name,
15951 # likewise P contains macro parameters if any. Preserve backslash
15952 # newline sequences.
15953
15954 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15955 sed -n '
15956 s/.\{148\}/&'"$ac_delim"'/g
15957 t rset
15958 :rset
15959 s/^[ ]*#[ ]*define[ ][ ]*/ /
15960 t def
15961 d
15962 :def
15963 s/\\$//
15964 t bsnl
15965 s/["\\]/\\&/g
15966 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15967 D["\1"]=" \3"/p
15968 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15969 d
15970 :bsnl
15971 s/["\\]/\\&/g
15972 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15973 D["\1"]=" \3\\\\\\n"\\/p
15974 t cont
15975 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15976 t cont
15977 d
15978 :cont
15979 n
15980 s/.\{148\}/&'"$ac_delim"'/g
15981 t clear
15982 :clear
15983 s/\\$//
15984 t bsnlc
15985 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15986 d
15987 :bsnlc
15988 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15989 b cont
15990 ' <confdefs.h | sed '
15991 s/'"$ac_delim"'/"\\\
15992 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15993
15994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15995 for (key in D) D_is_set[key] = 1
15996 FS = "\a"
15997 }
15998 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15999 line = \$ 0
16000 split(line, arg, " ")
16001 if (arg[1] == "#") {
16002 defundef = arg[2]
16003 mac1 = arg[3]
16004 } else {
16005 defundef = substr(arg[1], 2)
16006 mac1 = arg[2]
16007 }
16008 split(mac1, mac2, "(") #)
16009 macro = mac2[1]
16010 prefix = substr(line, 1, index(line, defundef) - 1)
16011 if (D_is_set[macro]) {
16012 # Preserve the white space surrounding the "#".
16013 print prefix "define", macro P[macro] D[macro]
16014 next
16015 } else {
16016 # Replace #undef with comments. This is necessary, for example,
16017 # in the case of _POSIX_SOURCE, which is predefined and required
16018 # on some systems where configure will not decide to define it.
16019 if (defundef == "undef") {
16020 print "/*", prefix defundef, macro, "*/"
16021 next
16022 }
16023 }
16024 }
16025 { print }
16026 _ACAWK
16027 _ACEOF
16028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16029 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16030 fi # test -n "$CONFIG_HEADERS"
16031
16032
16033 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16034 shift
16035 for ac_tag
16036 do
16037 case $ac_tag in
16038 :[FHLC]) ac_mode=$ac_tag; continue;;
16039 esac
16040 case $ac_mode$ac_tag in
16041 :[FHL]*:*);;
16042 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16043 :[FH]-) ac_tag=-:-;;
16044 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16045 esac
16046 ac_save_IFS=$IFS
16047 IFS=:
16048 set x $ac_tag
16049 IFS=$ac_save_IFS
16050 shift
16051 ac_file=$1
16052 shift
16053
16054 case $ac_mode in
16055 :L) ac_source=$1;;
16056 :[FH])
16057 ac_file_inputs=
16058 for ac_f
16059 do
16060 case $ac_f in
16061 -) ac_f="$tmp/stdin";;
16062 *) # Look for the file first in the build tree, then in the source tree
16063 # (if the path is not absolute). The absolute path cannot be DOS-style,
16064 # because $ac_f cannot contain `:'.
16065 test -f "$ac_f" ||
16066 case $ac_f in
16067 [\\/$]*) false;;
16068 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16069 esac ||
16070 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16071 esac
16072 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16073 as_fn_append ac_file_inputs " '$ac_f'"
16074 done
16075
16076 # Let's still pretend it is `configure' which instantiates (i.e., don't
16077 # use $as_me), people would be surprised to read:
16078 # /* config.h. Generated by config.status. */
16079 configure_input='Generated from '`
16080 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16081 `' by configure.'
16082 if test x"$ac_file" != x-; then
16083 configure_input="$ac_file. $configure_input"
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16085 $as_echo "$as_me: creating $ac_file" >&6;}
16086 fi
16087 # Neutralize special characters interpreted by sed in replacement strings.
16088 case $configure_input in #(
16089 *\&* | *\|* | *\\* )
16090 ac_sed_conf_input=`$as_echo "$configure_input" |
16091 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16092 *) ac_sed_conf_input=$configure_input;;
16093 esac
16094
16095 case $ac_tag in
16096 *:-:* | *:-) cat >"$tmp/stdin" \
16097 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16098 esac
16099 ;;
16100 esac
16101
16102 ac_dir=`$as_dirname -- "$ac_file" ||
16103 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16104 X"$ac_file" : 'X\(//\)[^/]' \| \
16105 X"$ac_file" : 'X\(//\)$' \| \
16106 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16107 $as_echo X"$ac_file" |
16108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16109 s//\1/
16110 q
16111 }
16112 /^X\(\/\/\)[^/].*/{
16113 s//\1/
16114 q
16115 }
16116 /^X\(\/\/\)$/{
16117 s//\1/
16118 q
16119 }
16120 /^X\(\/\).*/{
16121 s//\1/
16122 q
16123 }
16124 s/.*/./; q'`
16125 as_dir="$ac_dir"; as_fn_mkdir_p
16126 ac_builddir=.
16127
16128 case "$ac_dir" in
16129 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16130 *)
16131 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16132 # A ".." for each directory in $ac_dir_suffix.
16133 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16134 case $ac_top_builddir_sub in
16135 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16136 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16137 esac ;;
16138 esac
16139 ac_abs_top_builddir=$ac_pwd
16140 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16141 # for backward compatibility:
16142 ac_top_builddir=$ac_top_build_prefix
16143
16144 case $srcdir in
16145 .) # We are building in place.
16146 ac_srcdir=.
16147 ac_top_srcdir=$ac_top_builddir_sub
16148 ac_abs_top_srcdir=$ac_pwd ;;
16149 [\\/]* | ?:[\\/]* ) # Absolute name.
16150 ac_srcdir=$srcdir$ac_dir_suffix;
16151 ac_top_srcdir=$srcdir
16152 ac_abs_top_srcdir=$srcdir ;;
16153 *) # Relative name.
16154 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16155 ac_top_srcdir=$ac_top_build_prefix$srcdir
16156 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16157 esac
16158 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16159
16160
16161 case $ac_mode in
16162 :F)
16163 #
16164 # CONFIG_FILE
16165 #
16166
16167 case $INSTALL in
16168 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16169 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16170 esac
16171 _ACEOF
16172
16173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16174 # If the template does not know about datarootdir, expand it.
16175 # FIXME: This hack should be removed a few years after 2.60.
16176 ac_datarootdir_hack=; ac_datarootdir_seen=
16177 ac_sed_dataroot='
16178 /datarootdir/ {
16179 p
16180 q
16181 }
16182 /@datadir@/p
16183 /@docdir@/p
16184 /@infodir@/p
16185 /@localedir@/p
16186 /@mandir@/p'
16187 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16188 *datarootdir*) ac_datarootdir_seen=yes;;
16189 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16191 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16192 _ACEOF
16193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16194 ac_datarootdir_hack='
16195 s&@datadir@&$datadir&g
16196 s&@docdir@&$docdir&g
16197 s&@infodir@&$infodir&g
16198 s&@localedir@&$localedir&g
16199 s&@mandir@&$mandir&g
16200 s&\\\${datarootdir}&$datarootdir&g' ;;
16201 esac
16202 _ACEOF
16203
16204 # Neutralize VPATH when `$srcdir' = `.'.
16205 # Shell code in configure.ac might set extrasub.
16206 # FIXME: do we really want to maintain this feature?
16207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16208 ac_sed_extra="$ac_vpsub
16209 $extrasub
16210 _ACEOF
16211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16212 :t
16213 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16214 s|@configure_input@|$ac_sed_conf_input|;t t
16215 s&@top_builddir@&$ac_top_builddir_sub&;t t
16216 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16217 s&@srcdir@&$ac_srcdir&;t t
16218 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16219 s&@top_srcdir@&$ac_top_srcdir&;t t
16220 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16221 s&@builddir@&$ac_builddir&;t t
16222 s&@abs_builddir@&$ac_abs_builddir&;t t
16223 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16224 s&@INSTALL@&$ac_INSTALL&;t t
16225 $ac_datarootdir_hack
16226 "
16227 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16228 if $ac_cs_awk_getline; then
16229 $AWK -f "$tmp/subs.awk"
16230 else
16231 $AWK -f "$tmp/subs.awk" | $SHELL
16232 fi >$tmp/out \
16233 || as_fn_error "could not create $ac_file" "$LINENO" 5
16234
16235 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16236 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16237 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16239 which seems to be undefined. Please make sure it is defined." >&5
16240 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16241 which seems to be undefined. Please make sure it is defined." >&2;}
16242
16243 rm -f "$tmp/stdin"
16244 case $ac_file in
16245 -) cat "$tmp/out" && rm -f "$tmp/out";;
16246 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16247 esac \
16248 || as_fn_error "could not create $ac_file" "$LINENO" 5
16249 ;;
16250 :H)
16251 #
16252 # CONFIG_HEADER
16253 #
16254 if test x"$ac_file" != x-; then
16255 {
16256 $as_echo "/* $configure_input */" \
16257 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16258 } >"$tmp/config.h" \
16259 || as_fn_error "could not create $ac_file" "$LINENO" 5
16260 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16262 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16263 else
16264 rm -f "$ac_file"
16265 mv "$tmp/config.h" "$ac_file" \
16266 || as_fn_error "could not create $ac_file" "$LINENO" 5
16267 fi
16268 else
16269 $as_echo "/* $configure_input */" \
16270 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16271 || as_fn_error "could not create -" "$LINENO" 5
16272 fi
16273 ;;
16274
16275 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16276 $as_echo "$as_me: executing $ac_file commands" >&6;}
16277 ;;
16278 esac
16279
16280
16281 case $ac_file$ac_mode in
16282 "default":C)
16283
16284 ### Make the necessary directories, if they don't exist.
16285 for dir in etc lisp ; do
16286 test -d ${dir} || mkdir ${dir}
16287 done
16288
16289 echo creating src/epaths.h
16290 ${MAKE-make} epaths-force
16291
16292 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
16293 echo creating src/.gdbinit
16294 echo source $srcdir/src/.gdbinit > src/.gdbinit
16295 fi
16296
16297 ;;
16298
16299 esac
16300 done # for ac_tag
16301
16302
16303 as_fn_exit 0
16304 _ACEOF
16305 ac_clean_files=$ac_clean_files_save
16306
16307 test $ac_write_fail = 0 ||
16308 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16309
16310
16311 # configure is writing to config.log, and then calls config.status.
16312 # config.status does its own redirection, appending to config.log.
16313 # Unfortunately, on DOS this fails, as config.log is still kept open
16314 # by configure, so config.status won't be able to write to it; its
16315 # output is simply discarded. So we exec the FD to /dev/null,
16316 # effectively closing config.log, so it can be properly (re)opened and
16317 # appended to by config.status. When coming back to configure, we
16318 # need to make the FD available again.
16319 if test "$no_create" != yes; then
16320 ac_cs_success=:
16321 ac_config_status_args=
16322 test "$silent" = yes &&
16323 ac_config_status_args="$ac_config_status_args --quiet"
16324 exec 5>/dev/null
16325 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16326 exec 5>>config.log
16327 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16328 # would make configure fail if this is the last instruction.
16329 $ac_cs_success || as_fn_exit $?
16330 fi
16331 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16333 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16334 fi
16335
16336