Merge changes from emacs-23 branch
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_config_libobj_dir=src
595 ac_header_list=
596 ac_func_list=
597 ac_subst_vars='LTLIBOBJS
598 WINDOW_SUPPORT
599 TOOLTIP_SUPPORT
600 MOUSE_SUPPORT
601 LIB_GCC
602 LD_FIRSTFLAG
603 LD_SWITCH_SYSTEM_TEMACS
604 POST_ALLOC_OBJ
605 PRE_ALLOC_OBJ
606 CYGWIN_OBJ
607 RALLOC_OBJ
608 OLDXMENU_DEPS
609 LIBX_OTHER
610 LIBXMENU
611 OLDXMENU
612 OLDXMENU_TARGET
613 LIBXT_OTHER
614 TOOLKIT_LIBW
615 WIDGET_OBJ
616 XOBJ
617 XMENU_OBJ
618 FONT_OBJ
619 OTHER_FILES
620 GNU_OBJC_CFLAGS
621 ns_appsrc
622 ns_appresdir
623 ns_appbindir
624 ns_appdir
625 opsysfile
626 machfile
627 X_TOOLKIT_TYPE
628 C_SWITCH_X_SYSTEM
629 C_SWITCH_X_SITE
630 LD_SWITCH_X_SITE
631 gameuser
632 gamedir
633 bitmapdir
634 archlibdir
635 etcdir
636 x_default_search_path
637 lisppath
638 locallisppath
639 lispdir
640 srcdir
641 canonical
642 configuration
643 version
644 KRB4LIB
645 DESLIB
646 KRB5LIB
647 CRYPTOLIB
648 COM_ERRLIB
649 LIBRESOLV
650 LIBHESIOD
651 TERMCAP_OBJ
652 LIBS_TERMCAP
653 GETOPTOBJS
654 GETOPT_H
655 GETLOADAVG_LIBS
656 KMEM_GROUP
657 NEED_SETGID
658 LIBOBJS
659 BLESSMAIL_TARGET
660 LIBS_MAIL
661 liblockfile
662 ALLOCA
663 LIBXML2_LIBS
664 LIBXML2_CFLAGS
665 LIBXSM
666 LIBGPM
667 LIBGIF
668 LIBTIFF
669 LIBPNG
670 LIBJPEG
671 LIBXPM
672 FREETYPE_LIBS
673 FREETYPE_CFLAGS
674 M17N_FLT_LIBS
675 M17N_FLT_CFLAGS
676 LIBOTF_LIBS
677 LIBOTF_CFLAGS
678 XFT_LIBS
679 XFT_CFLAGS
680 FONTCONFIG_LIBS
681 FONTCONFIG_CFLAGS
682 LIBXMU
683 LIBXTR6
684 LIBSELINUX_LIBS
685 GCONF_LIBS
686 GCONF_CFLAGS
687 DBUS_OBJ
688 DBUS_LIBS
689 DBUS_CFLAGS
690 GTK_OBJ
691 GTK_LIBS
692 GTK_CFLAGS
693 IMAGEMAGICK_LIBS
694 IMAGEMAGICK_CFLAGS
695 RSVG_LIBS
696 RSVG_CFLAGS
697 VMLIMIT_OBJ
698 GMALLOC_OBJ
699 HAVE_XSERVER
700 LIB_STANDARD
701 NS_SUPPORT
702 NS_OBJ
703 TEMACS_LDFLAGS2
704 LD_SWITCH_X_SITE_AUX_RPATH
705 LD_SWITCH_X_SITE_AUX
706 XMKMF
707 DEPFLAGS
708 MKDEPDIR
709 SET_MAKE
710 CFLAGS_SOUND
711 ALSA_LIBS
712 ALSA_CFLAGS
713 PKG_CONFIG
714 LIBSOUND
715 START_FILES
716 LIB_MATH
717 CRT_DIR
718 LIBS_SYSTEM
719 C_SWITCH_SYSTEM
720 UNEXEC_OBJ
721 C_SWITCH_MACHINE
722 LD_SWITCH_SYSTEM
723 CANNOT_DUMP
724 MAKEINFO
725 GZIP_PROG
726 INSTALL_INFO
727 RANLIB
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 C_WARNINGS_SWITCH
732 EGREP
733 GREP
734 CPP
735 OBJEXT
736 EXEEXT
737 ac_ct_CC
738 CPPFLAGS
739 LDFLAGS
740 CFLAGS
741 CC
742 host_os
743 host_vendor
744 host_cpu
745 host
746 build_os
747 build_vendor
748 build_cpu
749 build
750 PROFILING_LDFLAGS
751 PROFILING_CFLAGS
752 MAINT
753 GZIP_INFO
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files='deps_frag
793 ns_frag'
794 ac_user_opts='
795 enable_option_checking
796 with_pop
797 with_kerberos
798 with_kerberos5
799 with_hesiod
800 with_mmdf
801 with_mail_unlink
802 with_mailhost
803 with_sound
804 with_sync_input
805 with_x_toolkit
806 with_xpm
807 with_jpeg
808 with_tiff
809 with_gif
810 with_png
811 with_rsvg
812 with_xml2
813 with_imagemagick
814 with_xft
815 with_libotf
816 with_m17n_flt
817 with_toolkit_scroll_bars
818 with_xaw3d
819 with_xim
820 with_ns
821 with_gpm
822 with_dbus
823 with_gconf
824 with_selinux
825 with_makeinfo
826 with_compress_info
827 with_pkg_config_prog
828 with_crt_dir
829 with_gnustep_conf
830 enable_ns_self_contained
831 enable_asserts
832 enable_maintainer_mode
833 enable_locallisppath
834 enable_checking
835 enable_use_lisp_union_type
836 enable_profiling
837 enable_autodepend
838 enable_largefile
839 with_x
840 '
841 ac_precious_vars='build_alias
842 host_alias
843 target_alias
844 CC
845 CFLAGS
846 LDFLAGS
847 LIBS
848 CPPFLAGS
849 CPP
850 XMKMF'
851
852
853 # Initialize some variables set by options.
854 ac_init_help=
855 ac_init_version=false
856 ac_unrecognized_opts=
857 ac_unrecognized_sep=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
860 cache_file=/dev/null
861 exec_prefix=NONE
862 no_create=
863 no_recursion=
864 prefix=NONE
865 program_prefix=NONE
866 program_suffix=NONE
867 program_transform_name=s,x,x,
868 silent=
869 site=
870 srcdir=
871 verbose=
872 x_includes=NONE
873 x_libraries=NONE
874
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir='${datarootdir}/info'
893 htmldir='${docdir}'
894 dvidir='${docdir}'
895 pdfdir='${docdir}'
896 psdir='${docdir}'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
900
901 ac_prev=
902 ac_dashdash=
903 for ac_option
904 do
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
908 ac_prev=
909 continue
910 fi
911
912 case $ac_option in
913 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 *) ac_optarg=yes ;;
915 esac
916
917 # Accept the important Cygnus configure options, so we can diagnose typos.
918
919 case $ac_dashdash$ac_option in
920 --)
921 ac_dashdash=yes ;;
922
923 -bindir | --bindir | --bindi | --bind | --bin | --bi)
924 ac_prev=bindir ;;
925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
926 bindir=$ac_optarg ;;
927
928 -build | --build | --buil | --bui | --bu)
929 ac_prev=build_alias ;;
930 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931 build_alias=$ac_optarg ;;
932
933 -cache-file | --cache-file | --cache-fil | --cache-fi \
934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935 ac_prev=cache_file ;;
936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938 cache_file=$ac_optarg ;;
939
940 --config-cache | -C)
941 cache_file=config.cache ;;
942
943 -datadir | --datadir | --datadi | --datad)
944 ac_prev=datadir ;;
945 -datadir=* | --datadir=* | --datadi=* | --datad=*)
946 datadir=$ac_optarg ;;
947
948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949 | --dataroo | --dataro | --datar)
950 ac_prev=datarootdir ;;
951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953 datarootdir=$ac_optarg ;;
954
955 -disable-* | --disable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error $? "invalid feature name: $ac_useropt"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
963 *"
964 "enable_$ac_useropt"
965 "*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=no ;;
970
971 -docdir | --docdir | --docdi | --doc | --do)
972 ac_prev=docdir ;;
973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
974 docdir=$ac_optarg ;;
975
976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
977 ac_prev=dvidir ;;
978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
979 dvidir=$ac_optarg ;;
980
981 -enable-* | --enable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985 as_fn_error $? "invalid feature name: $ac_useropt"
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
989 *"
990 "enable_$ac_useropt"
991 "*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=\$ac_optarg ;;
996
997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
999 | --exec | --exe | --ex)
1000 ac_prev=exec_prefix ;;
1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1003 | --exec=* | --exe=* | --ex=*)
1004 exec_prefix=$ac_optarg ;;
1005
1006 -gas | --gas | --ga | --g)
1007 # Obsolete; use --with-gas.
1008 with_gas=yes ;;
1009
1010 -help | --help | --hel | --he | -h)
1011 ac_init_help=long ;;
1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1013 ac_init_help=recursive ;;
1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1015 ac_init_help=short ;;
1016
1017 -host | --host | --hos | --ho)
1018 ac_prev=host_alias ;;
1019 -host=* | --host=* | --hos=* | --ho=*)
1020 host_alias=$ac_optarg ;;
1021
1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1023 ac_prev=htmldir ;;
1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1025 | --ht=*)
1026 htmldir=$ac_optarg ;;
1027
1028 -includedir | --includedir | --includedi | --included | --include \
1029 | --includ | --inclu | --incl | --inc)
1030 ac_prev=includedir ;;
1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1032 | --includ=* | --inclu=* | --incl=* | --inc=*)
1033 includedir=$ac_optarg ;;
1034
1035 -infodir | --infodir | --infodi | --infod | --info | --inf)
1036 ac_prev=infodir ;;
1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1038 infodir=$ac_optarg ;;
1039
1040 -libdir | --libdir | --libdi | --libd)
1041 ac_prev=libdir ;;
1042 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1043 libdir=$ac_optarg ;;
1044
1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1046 | --libexe | --libex | --libe)
1047 ac_prev=libexecdir ;;
1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1049 | --libexe=* | --libex=* | --libe=*)
1050 libexecdir=$ac_optarg ;;
1051
1052 -localedir | --localedir | --localedi | --localed | --locale)
1053 ac_prev=localedir ;;
1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1055 localedir=$ac_optarg ;;
1056
1057 -localstatedir | --localstatedir | --localstatedi | --localstated \
1058 | --localstate | --localstat | --localsta | --localst | --locals)
1059 ac_prev=localstatedir ;;
1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1062 localstatedir=$ac_optarg ;;
1063
1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1065 ac_prev=mandir ;;
1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1067 mandir=$ac_optarg ;;
1068
1069 -nfp | --nfp | --nf)
1070 # Obsolete; use --without-fp.
1071 with_fp=no ;;
1072
1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1074 | --no-cr | --no-c | -n)
1075 no_create=yes ;;
1076
1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1079 no_recursion=yes ;;
1080
1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1083 | --oldin | --oldi | --old | --ol | --o)
1084 ac_prev=oldincludedir ;;
1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1088 oldincludedir=$ac_optarg ;;
1089
1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1091 ac_prev=prefix ;;
1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1093 prefix=$ac_optarg ;;
1094
1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1096 | --program-pre | --program-pr | --program-p)
1097 ac_prev=program_prefix ;;
1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1100 program_prefix=$ac_optarg ;;
1101
1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1103 | --program-suf | --program-su | --program-s)
1104 ac_prev=program_suffix ;;
1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1107 program_suffix=$ac_optarg ;;
1108
1109 -program-transform-name | --program-transform-name \
1110 | --program-transform-nam | --program-transform-na \
1111 | --program-transform-n | --program-transform- \
1112 | --program-transform | --program-transfor \
1113 | --program-transfo | --program-transf \
1114 | --program-trans | --program-tran \
1115 | --progr-tra | --program-tr | --program-t)
1116 ac_prev=program_transform_name ;;
1117 -program-transform-name=* | --program-transform-name=* \
1118 | --program-transform-nam=* | --program-transform-na=* \
1119 | --program-transform-n=* | --program-transform-=* \
1120 | --program-transform=* | --program-transfor=* \
1121 | --program-transfo=* | --program-transf=* \
1122 | --program-trans=* | --program-tran=* \
1123 | --progr-tra=* | --program-tr=* | --program-t=*)
1124 program_transform_name=$ac_optarg ;;
1125
1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1127 ac_prev=pdfdir ;;
1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1129 pdfdir=$ac_optarg ;;
1130
1131 -psdir | --psdir | --psdi | --psd | --ps)
1132 ac_prev=psdir ;;
1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1134 psdir=$ac_optarg ;;
1135
1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137 | -silent | --silent | --silen | --sile | --sil)
1138 silent=yes ;;
1139
1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141 ac_prev=sbindir ;;
1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143 | --sbi=* | --sb=*)
1144 sbindir=$ac_optarg ;;
1145
1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148 | --sharedst | --shareds | --shared | --share | --shar \
1149 | --sha | --sh)
1150 ac_prev=sharedstatedir ;;
1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154 | --sha=* | --sh=*)
1155 sharedstatedir=$ac_optarg ;;
1156
1157 -site | --site | --sit)
1158 ac_prev=site ;;
1159 -site=* | --site=* | --sit=*)
1160 site=$ac_optarg ;;
1161
1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163 ac_prev=srcdir ;;
1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165 srcdir=$ac_optarg ;;
1166
1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168 | --syscon | --sysco | --sysc | --sys | --sy)
1169 ac_prev=sysconfdir ;;
1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172 sysconfdir=$ac_optarg ;;
1173
1174 -target | --target | --targe | --targ | --tar | --ta | --t)
1175 ac_prev=target_alias ;;
1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177 target_alias=$ac_optarg ;;
1178
1179 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180 verbose=yes ;;
1181
1182 -version | --version | --versio | --versi | --vers | -V)
1183 ac_init_version=: ;;
1184
1185 -with-* | --with-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=\$ac_optarg ;;
1200
1201 -without-* | --without-*)
1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 as_fn_error $? "invalid package name: $ac_useropt"
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1209 *"
1210 "with_$ac_useropt"
1211 "*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval with_$ac_useropt=no ;;
1216
1217 --x)
1218 # Obsolete; use --with-x.
1219 with_x=yes ;;
1220
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1227
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1234
1235 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1236 Try \`$0 --help' for more information"
1237 ;;
1238
1239 *=*)
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 case $ac_envvar in #(
1243 '' | [0-9]* | *[!_$as_cr_alnum]* )
1244 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1245 esac
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1248
1249 *)
1250 # FIXME: should be removed in autoconf 3.0.
1251 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 ;;
1256
1257 esac
1258 done
1259
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 as_fn_error $? "missing argument to $ac_option"
1263 fi
1264
1265 if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1267 no) ;;
1268 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1269 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 esac
1271 fi
1272
1273 # Check all directory arguments for consistency.
1274 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir
1278 do
1279 eval ac_val=\$$ac_var
1280 # Remove trailing slashes.
1281 case $ac_val in
1282 */ )
1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\$ac_val;;
1285 esac
1286 # Be sure to have absolute directory names.
1287 case $ac_val in
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290 esac
1291 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1292 done
1293
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1300
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used" >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310 fi
1311
1312 ac_tool_prefix=
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315 test "$silent" = yes && exec 6>/dev/null
1316
1317
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 as_fn_error $? "working directory cannot be determined"
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 as_fn_error $? "pwd does not report name of working directory"
1324
1325
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 $as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)[^/].*/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\).*/{
1349 s//\1/
1350 q
1351 }
1352 s/.*/./; q'`
1353 srcdir=$ac_confdir
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 srcdir=..
1356 fi
1357 else
1358 ac_srcdir_defaulted=no
1359 fi
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1363 fi
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 ac_abs_confdir=`(
1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1367 pwd)`
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 srcdir=.
1371 fi
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1375 case $srcdir in
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 esac
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1384
1385 #
1386 # Report the --help message.
1387 #
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
1392 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1393
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1398
1399 Defaults for the options are specified in brackets.
1400
1401 Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking ...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 [PREFIX]
1417
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1422
1423 For better control, use the options below.
1424
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1445 _ACEOF
1446
1447 cat <<\_ACEOF
1448
1449 Program names:
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1453
1454 X features:
1455 --x-includes=DIR X include files are in DIR
1456 --x-libraries=DIR X library files are in DIR
1457
1458 System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 _ACEOF
1462 fi
1463
1464 if test -n "$ac_init_help"; then
1465 case $ac_init_help in
1466 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1467 esac
1468 cat <<\_ACEOF
1469
1470 Optional Features:
1471 --disable-option-checking ignore unrecognized --enable/--with options
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --disable-ns-self-contained
1475 disable self contained build under NeXTstep
1476 --enable-asserts compile code with asserts enabled
1477 --enable-maintainer-mode
1478 enable make rules and dependencies not useful (and
1479 sometimes confusing) to the casual installer
1480 --enable-locallisppath=PATH
1481 directories Emacs should search for lisp files
1482 specific to this site
1483 --enable-checking[=LIST]
1484 enable expensive run-time checks. With LIST, enable
1485 only specific categories of checks. Categories are:
1486 all,yes,no. Flags are: stringbytes, stringoverrun,
1487 stringfreelist, xmallocoverrun, conslist
1488 --enable-use-lisp-union-type
1489 use a union for the Lisp_Object data type. This is
1490 only useful for development for catching certain
1491 types of bugs.
1492 --enable-profiling build emacs with profiling support. This might not
1493 work on all platforms
1494 --enable-autodepend automatically generate dependencies to .h-files.
1495 Requires GNU Make and Gcc. Enabled if GNU Make and
1496 Gcc is found
1497 --disable-largefile omit support for large files
1498
1499 Optional Packages:
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 --without-pop don't support POP mail retrieval with movemail
1503 --with-kerberos support Kerberos-authenticated POP
1504 --with-kerberos5 support Kerberos version 5 authenticated POP
1505 --with-hesiod support Hesiod to get the POP server host
1506 --with-mmdf support MMDF mailboxes
1507 --with-mail-unlink unlink, rather than empty, mail spool after reading
1508 --with-mailhost=HOSTNAME
1509 string giving default POP mail host
1510 --without-sound don't compile with sound support
1511 --without-sync-input process async input synchronously
1512 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1513 lucid or athena, motif, no)
1514 --without-xpm don't compile with XPM image support
1515 --without-jpeg don't compile with JPEG image support
1516 --without-tiff don't compile with TIFF image support
1517 --without-gif don't compile with GIF image support
1518 --without-png don't compile with PNG image support
1519 --without-rsvg don't compile with SVG image support
1520 --without-xml2 don't compile with XML parsing support
1521 --with-imagemagick compile with ImageMagick image support
1522 --without-xft don't use XFT for anti aliased fonts
1523 --without-libotf don't use libotf for OpenType font support
1524 --without-m17n-flt don't use m17n-flt for text shaping
1525 --without-toolkit-scroll-bars
1526 don't use Motif or Xaw3d scroll bars
1527 --without-xaw3d don't use Xaw3d
1528 --without-xim don't use X11 XIM
1529 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1530 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1531 console
1532 --without-dbus don't compile with D-Bus support
1533 --without-gconf don't compile with GConf support
1534 --without-selinux don't compile with SELinux support
1535 --without-makeinfo don't require makeinfo for building manuals
1536 --without-compress-info don't compress the installed Info pages
1537 --with-pkg-config-prog=PATH
1538 path to pkg-config for finding GTK and librsvg
1539 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1540 /usr/lib, or /usr/lib64 on some platforms.
1541 --with-gnustep-conf=PATH
1542 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1543 or /etc/GNUstep/GNUstep.conf
1544 --with-x use the X Window System
1545
1546 Some influential environment variables:
1547 CC C compiler command
1548 CFLAGS C compiler flags
1549 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1550 nonstandard directory <lib dir>
1551 LIBS libraries to pass to the linker, e.g. -l<library>
1552 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1553 you have headers in a nonstandard directory <include dir>
1554 CPP C preprocessor
1555 XMKMF Path to xmkmf, Makefile generator for X Window System
1556
1557 Use these variables to override the choices made by `configure' or to help
1558 it to find libraries and programs with nonstandard names/locations.
1559
1560 Report bugs to the package provider.
1561 _ACEOF
1562 ac_status=$?
1563 fi
1564
1565 if test "$ac_init_help" = "recursive"; then
1566 # If there are subdirs, report their specific --help.
1567 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1568 test -d "$ac_dir" ||
1569 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1570 continue
1571 ac_builddir=.
1572
1573 case "$ac_dir" in
1574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *)
1576 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1577 # A ".." for each directory in $ac_dir_suffix.
1578 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1579 case $ac_top_builddir_sub in
1580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1582 esac ;;
1583 esac
1584 ac_abs_top_builddir=$ac_pwd
1585 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1586 # for backward compatibility:
1587 ac_top_builddir=$ac_top_build_prefix
1588
1589 case $srcdir in
1590 .) # We are building in place.
1591 ac_srcdir=.
1592 ac_top_srcdir=$ac_top_builddir_sub
1593 ac_abs_top_srcdir=$ac_pwd ;;
1594 [\\/]* | ?:[\\/]* ) # Absolute name.
1595 ac_srcdir=$srcdir$ac_dir_suffix;
1596 ac_top_srcdir=$srcdir
1597 ac_abs_top_srcdir=$srcdir ;;
1598 *) # Relative name.
1599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1600 ac_top_srcdir=$ac_top_build_prefix$srcdir
1601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1602 esac
1603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604
1605 cd "$ac_dir" || { ac_status=$?; continue; }
1606 # Check for guested configure.
1607 if test -f "$ac_srcdir/configure.gnu"; then
1608 echo &&
1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610 elif test -f "$ac_srcdir/configure"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure" --help=recursive
1613 else
1614 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615 fi || ac_status=$?
1616 cd "$ac_pwd" || { ac_status=$?; break; }
1617 done
1618 fi
1619
1620 test -n "$ac_init_help" && exit $ac_status
1621 if $ac_init_version; then
1622 cat <<\_ACEOF
1623 emacs configure 24.0.50
1624 generated by GNU Autoconf 2.66
1625
1626 Copyright (C) 2010 Free Software Foundation, Inc.
1627 This configure script is free software; the Free Software Foundation
1628 gives unlimited permission to copy, distribute and modify it.
1629 _ACEOF
1630 exit
1631 fi
1632
1633 ## ------------------------ ##
1634 ## Autoconf initialization. ##
1635 ## ------------------------ ##
1636
1637 # ac_fn_c_try_compile LINENO
1638 # --------------------------
1639 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_compile ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext
1644 if { { ac_try="$ac_compile"
1645 case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_compile") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest.$ac_objext; then :
1663 ac_retval=0
1664 else
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669 fi
1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671 as_fn_set_status $ac_retval
1672
1673 } # ac_fn_c_try_compile
1674
1675 # ac_fn_c_try_link LINENO
1676 # -----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_link ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext conftest$ac_exeext
1682 if { { ac_try="$ac_link"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest$ac_exeext && {
1701 test "$cross_compiling" = yes ||
1702 $as_test_x conftest$ac_exeext
1703 }; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710 fi
1711 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1712 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1713 # interfere with the next link command; also delete a directory that is
1714 # left behind by Apple's compiler. We do this before executing the actions.
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 as_fn_set_status $ac_retval
1718
1719 } # ac_fn_c_try_link
1720
1721 # ac_fn_c_try_cpp LINENO
1722 # ----------------------
1723 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1724 ac_fn_c_try_cpp ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_cpp conftest.$ac_ext"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } >/dev/null && {
1743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 }; then :
1746 ac_retval=0
1747 else
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752 fi
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_cpp
1757
1758 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1759 # -------------------------------------------------------
1760 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1761 # the include files in INCLUDES and setting the cache variable VAR
1762 # accordingly.
1763 ac_fn_c_check_header_mongrel ()
1764 {
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if eval "test \"\${$3+set}\"" = set; then :
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if eval "test \"\${$3+set}\"" = set; then :
1770 $as_echo_n "(cached) " >&6
1771 fi
1772 eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 else
1776 # Is the header compilable?
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1778 $as_echo_n "checking $2 usability... " >&6; }
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1781 $4
1782 #include <$2>
1783 _ACEOF
1784 if ac_fn_c_try_compile "$LINENO"; then :
1785 ac_header_compiler=yes
1786 else
1787 ac_header_compiler=no
1788 fi
1789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1791 $as_echo "$ac_header_compiler" >&6; }
1792
1793 # Is the header present?
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1795 $as_echo_n "checking $2 presence... " >&6; }
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 #include <$2>
1799 _ACEOF
1800 if ac_fn_c_try_cpp "$LINENO"; then :
1801 ac_header_preproc=yes
1802 else
1803 ac_header_preproc=no
1804 fi
1805 rm -f conftest.err conftest.$ac_ext
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1807 $as_echo "$ac_header_preproc" >&6; }
1808
1809 # So? What about this header?
1810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1811 yes:no: )
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1813 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1815 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1816 ;;
1817 no:yes:* )
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1819 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1821 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1823 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1825 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828 ;;
1829 esac
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval "test \"\${$3+set}\"" = set; then :
1833 $as_echo_n "(cached) " >&6
1834 else
1835 eval "$3=\$ac_header_compiler"
1836 fi
1837 eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840 fi
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842
1843 } # ac_fn_c_check_header_mongrel
1844
1845 # ac_fn_c_try_run LINENO
1846 # ----------------------
1847 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1848 # that executables *can* be run.
1849 ac_fn_c_try_run ()
1850 {
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if { { ac_try="$ac_link"
1853 case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856 esac
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>&5
1860 ac_status=$?
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1863 { { case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_try") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; }; }; then :
1873 ac_retval=0
1874 else
1875 $as_echo "$as_me: program exited with status $ac_status" >&5
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=$ac_status
1880 fi
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 as_fn_set_status $ac_retval
1884
1885 } # ac_fn_c_try_run
1886
1887 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists and can be compiled using the include files in
1890 # INCLUDES, setting the cache variable VAR accordingly.
1891 ac_fn_c_check_header_compile ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if eval "test \"\${$3+set}\"" = set; then :
1897 $as_echo_n "(cached) " >&6
1898 else
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1901 $4
1902 #include <$2>
1903 _ACEOF
1904 if ac_fn_c_try_compile "$LINENO"; then :
1905 eval "$3=yes"
1906 else
1907 eval "$3=no"
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 fi
1911 eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915
1916 } # ac_fn_c_check_header_compile
1917
1918 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1919 # ---------------------------------------------
1920 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1921 # accordingly.
1922 ac_fn_c_check_decl ()
1923 {
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 as_decl_name=`echo $2|sed 's/ *(.*//'`
1926 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1928 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1929 if eval "test \"\${$3+set}\"" = set; then :
1930 $as_echo_n "(cached) " >&6
1931 else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 $4
1935 int
1936 main ()
1937 {
1938 #ifndef $as_decl_name
1939 #ifdef __cplusplus
1940 (void) $as_decl_use;
1941 #else
1942 (void) $as_decl_name;
1943 #endif
1944 #endif
1945
1946 ;
1947 return 0;
1948 }
1949 _ACEOF
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951 eval "$3=yes"
1952 else
1953 eval "$3=no"
1954 fi
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 fi
1957 eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1961
1962 } # ac_fn_c_check_decl
1963
1964 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1965 # ----------------------------------------------
1966 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1967 ac_fn_c_check_header_preproc ()
1968 {
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971 $as_echo_n "checking for $2... " >&6; }
1972 if eval "test \"\${$3+set}\"" = set; then :
1973 $as_echo_n "(cached) " >&6
1974 else
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 #include <$2>
1978 _ACEOF
1979 if ac_fn_c_try_cpp "$LINENO"; then :
1980 eval "$3=yes"
1981 else
1982 eval "$3=no"
1983 fi
1984 rm -f conftest.err conftest.$ac_ext
1985 fi
1986 eval ac_res=\$$3
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990
1991 } # ac_fn_c_check_header_preproc
1992
1993 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1994 # ----------------------------------------------------
1995 # Tries to find if the field MEMBER exists in type AGGR, after including
1996 # INCLUDES, setting cache variable VAR accordingly.
1997 ac_fn_c_check_member ()
1998 {
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2001 $as_echo_n "checking for $2.$3... " >&6; }
2002 if eval "test \"\${$4+set}\"" = set; then :
2003 $as_echo_n "(cached) " >&6
2004 else
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2007 $5
2008 int
2009 main ()
2010 {
2011 static $2 ac_aggr;
2012 if (ac_aggr.$3)
2013 return 0;
2014 ;
2015 return 0;
2016 }
2017 _ACEOF
2018 if ac_fn_c_try_compile "$LINENO"; then :
2019 eval "$4=yes"
2020 else
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2023 $5
2024 int
2025 main ()
2026 {
2027 static $2 ac_aggr;
2028 if (sizeof ac_aggr.$3)
2029 return 0;
2030 ;
2031 return 0;
2032 }
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035 eval "$4=yes"
2036 else
2037 eval "$4=no"
2038 fi
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 fi
2043 eval ac_res=\$$4
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2047
2048 } # ac_fn_c_check_member
2049
2050 # ac_fn_c_check_func LINENO FUNC VAR
2051 # ----------------------------------
2052 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2053 ac_fn_c_check_func ()
2054 {
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057 $as_echo_n "checking for $2... " >&6; }
2058 if eval "test \"\${$3+set}\"" = set; then :
2059 $as_echo_n "(cached) " >&6
2060 else
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2063 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2065 #define $2 innocuous_$2
2066
2067 /* System header to define __stub macros and hopefully few prototypes,
2068 which can conflict with char $2 (); below.
2069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2070 <limits.h> exists even on freestanding compilers. */
2071
2072 #ifdef __STDC__
2073 # include <limits.h>
2074 #else
2075 # include <assert.h>
2076 #endif
2077
2078 #undef $2
2079
2080 /* Override any GCC internal prototype to avoid an error.
2081 Use char because int might match the return type of a GCC
2082 builtin and then its argument prototype would still apply. */
2083 #ifdef __cplusplus
2084 extern "C"
2085 #endif
2086 char $2 ();
2087 /* The GNU C library defines this for functions which it implements
2088 to always fail with ENOSYS. Some functions are actually named
2089 something starting with __ and the normal name is an alias. */
2090 #if defined __stub_$2 || defined __stub___$2
2091 choke me
2092 #endif
2093
2094 int
2095 main ()
2096 {
2097 return $2 ();
2098 ;
2099 return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_link "$LINENO"; then :
2103 eval "$3=yes"
2104 else
2105 eval "$3=no"
2106 fi
2107 rm -f core conftest.err conftest.$ac_objext \
2108 conftest$ac_exeext conftest.$ac_ext
2109 fi
2110 eval ac_res=\$$3
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114
2115 } # ac_fn_c_check_func
2116
2117 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2118 # -------------------------------------------
2119 # Tests whether TYPE exists after having included INCLUDES, setting cache
2120 # variable VAR accordingly.
2121 ac_fn_c_check_type ()
2122 {
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2125 $as_echo_n "checking for $2... " >&6; }
2126 if eval "test \"\${$3+set}\"" = set; then :
2127 $as_echo_n "(cached) " >&6
2128 else
2129 eval "$3=no"
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2132 $4
2133 int
2134 main ()
2135 {
2136 if (sizeof ($2))
2137 return 0;
2138 ;
2139 return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2145 $4
2146 int
2147 main ()
2148 {
2149 if (sizeof (($2)))
2150 return 0;
2151 ;
2152 return 0;
2153 }
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156
2157 else
2158 eval "$3=yes"
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 fi
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 fi
2164 eval ac_res=\$$3
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2168
2169 } # ac_fn_c_check_type
2170 cat >config.log <<_ACEOF
2171 This file contains any messages produced by compilers while
2172 running configure, to aid debugging if configure makes a mistake.
2173
2174 It was created by emacs $as_me 24.0.50, which was
2175 generated by GNU Autoconf 2.66. Invocation command line was
2176
2177 $ $0 $@
2178
2179 _ACEOF
2180 exec 5>>config.log
2181 {
2182 cat <<_ASUNAME
2183 ## --------- ##
2184 ## Platform. ##
2185 ## --------- ##
2186
2187 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2188 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2189 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2190 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2191 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2192
2193 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2194 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2195
2196 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2197 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2198 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2199 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2200 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2201 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2202 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2203
2204 _ASUNAME
2205
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 for as_dir in $PATH
2208 do
2209 IFS=$as_save_IFS
2210 test -z "$as_dir" && as_dir=.
2211 $as_echo "PATH: $as_dir"
2212 done
2213 IFS=$as_save_IFS
2214
2215 } >&5
2216
2217 cat >&5 <<_ACEOF
2218
2219
2220 ## ----------- ##
2221 ## Core tests. ##
2222 ## ----------- ##
2223
2224 _ACEOF
2225
2226
2227 # Keep a trace of the command line.
2228 # Strip out --no-create and --no-recursion so they do not pile up.
2229 # Strip out --silent because we don't want to record it for future runs.
2230 # Also quote any args containing shell meta-characters.
2231 # Make two passes to allow for proper duplicate-argument suppression.
2232 ac_configure_args=
2233 ac_configure_args0=
2234 ac_configure_args1=
2235 ac_must_keep_next=false
2236 for ac_pass in 1 2
2237 do
2238 for ac_arg
2239 do
2240 case $ac_arg in
2241 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2243 | -silent | --silent | --silen | --sile | --sil)
2244 continue ;;
2245 *\'*)
2246 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2247 esac
2248 case $ac_pass in
2249 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2250 2)
2251 as_fn_append ac_configure_args1 " '$ac_arg'"
2252 if test $ac_must_keep_next = true; then
2253 ac_must_keep_next=false # Got value, back to normal.
2254 else
2255 case $ac_arg in
2256 *=* | --config-cache | -C | -disable-* | --disable-* \
2257 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2258 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2259 | -with-* | --with-* | -without-* | --without-* | --x)
2260 case "$ac_configure_args0 " in
2261 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2262 esac
2263 ;;
2264 -* ) ac_must_keep_next=true ;;
2265 esac
2266 fi
2267 as_fn_append ac_configure_args " '$ac_arg'"
2268 ;;
2269 esac
2270 done
2271 done
2272 { ac_configure_args0=; unset ac_configure_args0;}
2273 { ac_configure_args1=; unset ac_configure_args1;}
2274
2275 # When interrupted or exit'd, cleanup temporary files, and complete
2276 # config.log. We remove comments because anyway the quotes in there
2277 # would cause problems or look ugly.
2278 # WARNING: Use '\'' to represent an apostrophe within the trap.
2279 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2280 trap 'exit_status=$?
2281 # Save into config.log some information that might help in debugging.
2282 {
2283 echo
2284
2285 $as_echo "## ---------------- ##
2286 ## Cache variables. ##
2287 ## ---------------- ##"
2288 echo
2289 # The following way of writing the cache mishandles newlines in values,
2290 (
2291 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2292 eval ac_val=\$$ac_var
2293 case $ac_val in #(
2294 *${as_nl}*)
2295 case $ac_var in #(
2296 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2297 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2298 esac
2299 case $ac_var in #(
2300 _ | IFS | as_nl) ;; #(
2301 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2302 *) { eval $ac_var=; unset $ac_var;} ;;
2303 esac ;;
2304 esac
2305 done
2306 (set) 2>&1 |
2307 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2308 *${as_nl}ac_space=\ *)
2309 sed -n \
2310 "s/'\''/'\''\\\\'\'''\''/g;
2311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2312 ;; #(
2313 *)
2314 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2315 ;;
2316 esac |
2317 sort
2318 )
2319 echo
2320
2321 $as_echo "## ----------------- ##
2322 ## Output variables. ##
2323 ## ----------------- ##"
2324 echo
2325 for ac_var in $ac_subst_vars
2326 do
2327 eval ac_val=\$$ac_var
2328 case $ac_val in
2329 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2330 esac
2331 $as_echo "$ac_var='\''$ac_val'\''"
2332 done | sort
2333 echo
2334
2335 if test -n "$ac_subst_files"; then
2336 $as_echo "## ------------------- ##
2337 ## File substitutions. ##
2338 ## ------------------- ##"
2339 echo
2340 for ac_var in $ac_subst_files
2341 do
2342 eval ac_val=\$$ac_var
2343 case $ac_val in
2344 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2345 esac
2346 $as_echo "$ac_var='\''$ac_val'\''"
2347 done | sort
2348 echo
2349 fi
2350
2351 if test -s confdefs.h; then
2352 $as_echo "## ----------- ##
2353 ## confdefs.h. ##
2354 ## ----------- ##"
2355 echo
2356 cat confdefs.h
2357 echo
2358 fi
2359 test "$ac_signal" != 0 &&
2360 $as_echo "$as_me: caught signal $ac_signal"
2361 $as_echo "$as_me: exit $exit_status"
2362 } >&5
2363 rm -f core *.core core.conftest.* &&
2364 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2365 exit $exit_status
2366 ' 0
2367 for ac_signal in 1 2 13 15; do
2368 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2369 done
2370 ac_signal=0
2371
2372 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2373 rm -f -r conftest* confdefs.h
2374
2375 $as_echo "/* confdefs.h */" > confdefs.h
2376
2377 # Predefined preprocessor variables.
2378
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_NAME "$PACKAGE_NAME"
2381 _ACEOF
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2385 _ACEOF
2386
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2389 _ACEOF
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_STRING "$PACKAGE_STRING"
2393 _ACEOF
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2397 _ACEOF
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_URL "$PACKAGE_URL"
2401 _ACEOF
2402
2403
2404 # Let the site file select an alternate cache file if it wants to.
2405 # Prefer an explicitly selected file to automatically selected ones.
2406 ac_site_file1=NONE
2407 ac_site_file2=NONE
2408 if test -n "$CONFIG_SITE"; then
2409 # We do not want a PATH search for config.site.
2410 case $CONFIG_SITE in #((
2411 -*) ac_site_file1=./$CONFIG_SITE;;
2412 */*) ac_site_file1=$CONFIG_SITE;;
2413 *) ac_site_file1=./$CONFIG_SITE;;
2414 esac
2415 elif test "x$prefix" != xNONE; then
2416 ac_site_file1=$prefix/share/config.site
2417 ac_site_file2=$prefix/etc/config.site
2418 else
2419 ac_site_file1=$ac_default_prefix/share/config.site
2420 ac_site_file2=$ac_default_prefix/etc/config.site
2421 fi
2422 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2423 do
2424 test "x$ac_site_file" = xNONE && continue
2425 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2427 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2428 sed 's/^/| /' "$ac_site_file" >&5
2429 . "$ac_site_file" \
2430 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2432 as_fn_error $? "failed to load site script $ac_site_file
2433 See \`config.log' for more details" "$LINENO" 5; }
2434 fi
2435 done
2436
2437 if test -r "$cache_file"; then
2438 # Some versions of bash will fail to source /dev/null (special files
2439 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2440 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2442 $as_echo "$as_me: loading cache $cache_file" >&6;}
2443 case $cache_file in
2444 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2445 *) . "./$cache_file";;
2446 esac
2447 fi
2448 else
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2450 $as_echo "$as_me: creating cache $cache_file" >&6;}
2451 >$cache_file
2452 fi
2453
2454 as_fn_append ac_header_list " stdlib.h"
2455 as_fn_append ac_header_list " unistd.h"
2456 as_fn_append ac_header_list " sys/param.h"
2457 as_fn_append ac_header_list " sys/time.h"
2458 as_fn_append ac_func_list " alarm"
2459 # Check that the precious variables saved in the cache have kept the same
2460 # value.
2461 ac_cache_corrupted=false
2462 for ac_var in $ac_precious_vars; do
2463 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2464 eval ac_new_set=\$ac_env_${ac_var}_set
2465 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2466 eval ac_new_val=\$ac_env_${ac_var}_value
2467 case $ac_old_set,$ac_new_set in
2468 set,)
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2470 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2472 ,set)
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2474 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2475 ac_cache_corrupted=: ;;
2476 ,);;
2477 *)
2478 if test "x$ac_old_val" != "x$ac_new_val"; then
2479 # differences in whitespace do not lead to failure.
2480 ac_old_val_w=`echo x $ac_old_val`
2481 ac_new_val_w=`echo x $ac_new_val`
2482 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2484 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2485 ac_cache_corrupted=:
2486 else
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2488 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2489 eval $ac_var=\$ac_old_val
2490 fi
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2492 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2494 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2495 fi;;
2496 esac
2497 # Pass precious variables to config.status.
2498 if test "$ac_new_set" = set; then
2499 case $ac_new_val in
2500 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2501 *) ac_arg=$ac_var=$ac_new_val ;;
2502 esac
2503 case " $ac_configure_args " in
2504 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2505 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2506 esac
2507 fi
2508 done
2509 if $ac_cache_corrupted; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2513 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2514 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2515 fi
2516 ## -------------------- ##
2517 ## Main body of script. ##
2518 ## -------------------- ##
2519
2520 ac_ext=c
2521 ac_cpp='$CPP $CPPFLAGS'
2522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2525
2526
2527 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2528
2529
2530
2531 test "$program_prefix" != NONE &&
2532 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2533 # Use a double $ so make ignores it.
2534 test "$program_suffix" != NONE &&
2535 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2536 # Double any \ or $.
2537 # By default was `s,x,x', remove it if useless.
2538 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2539 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2540
2541
2542 lispdir='${datadir}/emacs/${version}/lisp'
2543 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2544 '${datadir}/emacs/site-lisp'
2545 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2546 etcdir='${datadir}/emacs/${version}/etc'
2547 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2548 docdir='${datadir}/emacs/${version}/etc'
2549 gamedir='${localstatedir}/games/emacs'
2550
2551 gameuser=games
2552
2553
2554
2555
2556 # Check whether --with-pop was given.
2557 if test "${with_pop+set}" = set; then :
2558 withval=$with_pop;
2559 else
2560 with_pop=yes
2561 fi
2562
2563 if test "$with_pop" = yes; then
2564 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2565
2566 fi
2567
2568
2569 # Check whether --with-kerberos was given.
2570 if test "${with_kerberos+set}" = set; then :
2571 withval=$with_kerberos;
2572 else
2573 with_kerberos=no
2574 fi
2575
2576 if test "$with_kerberos" != no; then
2577 $as_echo "#define KERBEROS 1" >>confdefs.h
2578
2579 fi
2580
2581
2582 # Check whether --with-kerberos5 was given.
2583 if test "${with_kerberos5+set}" = set; then :
2584 withval=$with_kerberos5;
2585 else
2586 with_kerberos5=no
2587 fi
2588
2589 if test "${with_kerberos5}" != no; then
2590 if test "${with_kerberos}" = no; then
2591 with_kerberos=yes
2592 $as_echo "#define KERBEROS 1" >>confdefs.h
2593
2594 fi
2595
2596 $as_echo "#define KERBEROS5 1" >>confdefs.h
2597
2598 fi
2599
2600
2601 # Check whether --with-hesiod was given.
2602 if test "${with_hesiod+set}" = set; then :
2603 withval=$with_hesiod;
2604 else
2605 with_hesiod=no
2606 fi
2607
2608 if test "$with_hesiod" != no; then
2609
2610 $as_echo "#define HESIOD 1" >>confdefs.h
2611
2612 fi
2613
2614
2615 # Check whether --with-mmdf was given.
2616 if test "${with_mmdf+set}" = set; then :
2617 withval=$with_mmdf;
2618 else
2619 with_mmdf=no
2620 fi
2621
2622 if test "$with_mmdf" != no; then
2623
2624 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2625
2626 fi
2627
2628
2629 # Check whether --with-mail-unlink was given.
2630 if test "${with_mail_unlink+set}" = set; then :
2631 withval=$with_mail_unlink;
2632 else
2633 with_mail_unlink=no
2634 fi
2635
2636 if test "$with_mail_unlink" != no; then
2637
2638 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2639
2640 fi
2641
2642
2643 # Check whether --with-mailhost was given.
2644 if test "${with_mailhost+set}" = set; then :
2645 withval=$with_mailhost;
2646 cat >>confdefs.h <<_ACEOF
2647 #define MAILHOST "$withval"
2648 _ACEOF
2649
2650 fi
2651
2652
2653
2654 # Check whether --with-sound was given.
2655 if test "${with_sound+set}" = set; then :
2656 withval=$with_sound;
2657 else
2658 with_sound=yes
2659 fi
2660
2661
2662
2663 # Check whether --with-sync-input was given.
2664 if test "${with_sync_input+set}" = set; then :
2665 withval=$with_sync_input;
2666 else
2667 with_sync_input=yes
2668 fi
2669
2670 if test "$with_sync_input" = yes; then
2671
2672 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2673
2674 fi
2675
2676
2677 # Check whether --with-x-toolkit was given.
2678 if test "${with_x_toolkit+set}" = set; then :
2679 withval=$with_x_toolkit; case "${withval}" in
2680 y | ye | yes ) val=gtk ;;
2681 n | no ) val=no ;;
2682 l | lu | luc | luci | lucid ) val=lucid ;;
2683 a | at | ath | athe | athen | athena ) val=athena ;;
2684 m | mo | mot | moti | motif ) val=motif ;;
2685 g | gt | gtk ) val=gtk ;;
2686 gtk3 ) val=gtk3 ;;
2687 * )
2688 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
2689 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2690 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2691 ;;
2692 esac
2693 with_x_toolkit=$val
2694
2695 fi
2696
2697
2698
2699 # Check whether --with-xpm was given.
2700 if test "${with_xpm+set}" = set; then :
2701 withval=$with_xpm;
2702 else
2703 with_xpm=yes
2704 fi
2705
2706
2707 # Check whether --with-jpeg was given.
2708 if test "${with_jpeg+set}" = set; then :
2709 withval=$with_jpeg;
2710 else
2711 with_jpeg=yes
2712 fi
2713
2714
2715 # Check whether --with-tiff was given.
2716 if test "${with_tiff+set}" = set; then :
2717 withval=$with_tiff;
2718 else
2719 with_tiff=yes
2720 fi
2721
2722
2723 # Check whether --with-gif was given.
2724 if test "${with_gif+set}" = set; then :
2725 withval=$with_gif;
2726 else
2727 with_gif=yes
2728 fi
2729
2730
2731 # Check whether --with-png was given.
2732 if test "${with_png+set}" = set; then :
2733 withval=$with_png;
2734 else
2735 with_png=yes
2736 fi
2737
2738
2739 # Check whether --with-rsvg was given.
2740 if test "${with_rsvg+set}" = set; then :
2741 withval=$with_rsvg;
2742 else
2743 with_rsvg=yes
2744 fi
2745
2746
2747 # Check whether --with-xml2 was given.
2748 if test "${with_xml2+set}" = set; then :
2749 withval=$with_xml2;
2750 else
2751 with_xml2=yes
2752 fi
2753
2754
2755 # Check whether --with-imagemagick was given.
2756 if test "${with_imagemagick+set}" = set; then :
2757 withval=$with_imagemagick;
2758 else
2759 with_imagemagick=no
2760 fi
2761
2762
2763
2764 # Check whether --with-xft was given.
2765 if test "${with_xft+set}" = set; then :
2766 withval=$with_xft;
2767 else
2768 with_xft=yes
2769 fi
2770
2771
2772 # Check whether --with-libotf was given.
2773 if test "${with_libotf+set}" = set; then :
2774 withval=$with_libotf;
2775 else
2776 with_libotf=yes
2777 fi
2778
2779
2780 # Check whether --with-m17n-flt was given.
2781 if test "${with_m17n_flt+set}" = set; then :
2782 withval=$with_m17n_flt;
2783 else
2784 with_m17n_flt=yes
2785 fi
2786
2787
2788
2789 # Check whether --with-toolkit-scroll-bars was given.
2790 if test "${with_toolkit_scroll_bars+set}" = set; then :
2791 withval=$with_toolkit_scroll_bars;
2792 else
2793 with_toolkit_scroll_bars=yes
2794 fi
2795
2796
2797 # Check whether --with-xaw3d was given.
2798 if test "${with_xaw3d+set}" = set; then :
2799 withval=$with_xaw3d;
2800 else
2801 with_xaw3d=yes
2802 fi
2803
2804
2805 # Check whether --with-xim was given.
2806 if test "${with_xim+set}" = set; then :
2807 withval=$with_xim;
2808 else
2809 with_xim=yes
2810 fi
2811
2812
2813 # Check whether --with-ns was given.
2814 if test "${with_ns+set}" = set; then :
2815 withval=$with_ns;
2816 else
2817 with_ns=no
2818 fi
2819
2820
2821
2822 # Check whether --with-gpm was given.
2823 if test "${with_gpm+set}" = set; then :
2824 withval=$with_gpm;
2825 else
2826 with_gpm=yes
2827 fi
2828
2829
2830 # Check whether --with-dbus was given.
2831 if test "${with_dbus+set}" = set; then :
2832 withval=$with_dbus;
2833 else
2834 with_dbus=yes
2835 fi
2836
2837
2838 # Check whether --with-gconf was given.
2839 if test "${with_gconf+set}" = set; then :
2840 withval=$with_gconf;
2841 else
2842 with_gconf=yes
2843 fi
2844
2845
2846 # Check whether --with-selinux was given.
2847 if test "${with_selinux+set}" = set; then :
2848 withval=$with_selinux;
2849 else
2850 with_selinux=yes
2851 fi
2852
2853
2854 ## For the times when you want to build Emacs but don't have
2855 ## a suitable makeinfo, and can live without the manuals.
2856
2857 # Check whether --with-makeinfo was given.
2858 if test "${with_makeinfo+set}" = set; then :
2859 withval=$with_makeinfo;
2860 else
2861 with_makeinfo=yes
2862 fi
2863
2864
2865 ## This is an option because I do not know if all info/man support
2866 ## compressed files, nor how to test if they do so.
2867
2868 # Check whether --with-compress-info was given.
2869 if test "${with_compress_info+set}" = set; then :
2870 withval=$with_compress_info;
2871 else
2872 with_compress_info=yes
2873 fi
2874
2875 if test $with_compress_info = yes; then
2876 GZIP_INFO=yes
2877 else
2878 GZIP_INFO=
2879 fi
2880
2881
2882
2883 # Check whether --with-pkg-config-prog was given.
2884 if test "${with_pkg_config_prog+set}" = set; then :
2885 withval=$with_pkg_config_prog;
2886 fi
2887
2888 if test "X${with_pkg_config_prog}" != X; then
2889 if test "${with_pkg_config_prog}" != yes; then
2890 PKG_CONFIG="${with_pkg_config_prog}"
2891 fi
2892 fi
2893
2894 CRT_DIR=
2895
2896 # Check whether --with-crt-dir was given.
2897 if test "${with_crt_dir+set}" = set; then :
2898 withval=$with_crt_dir;
2899 fi
2900
2901 CRT_DIR="${with_crt_dir}"
2902
2903
2904 # Check whether --with-gnustep-conf was given.
2905 if test "${with_gnustep_conf+set}" = set; then :
2906 withval=$with_gnustep_conf;
2907 fi
2908
2909 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2910 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2911 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2912 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2913
2914 # Check whether --enable-ns-self-contained was given.
2915 if test "${enable_ns_self_contained+set}" = set; then :
2916 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2917 else
2918 EN_NS_SELF_CONTAINED=yes
2919 fi
2920
2921
2922 # Check whether --enable-asserts was given.
2923 if test "${enable_asserts+set}" = set; then :
2924 enableval=$enable_asserts; USE_XASSERTS=$enableval
2925 else
2926 USE_XASSERTS=no
2927 fi
2928
2929
2930 # Check whether --enable-maintainer-mode was given.
2931 if test "${enable_maintainer_mode+set}" = set; then :
2932 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2933 else
2934 USE_MAINTAINER_MODE=no
2935 fi
2936
2937 if test $USE_MAINTAINER_MODE = yes; then
2938 MAINT=
2939 else
2940 MAINT=#
2941 fi
2942
2943
2944 # Check whether --enable-locallisppath was given.
2945 if test "${enable_locallisppath+set}" = set; then :
2946 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2947 locallisppath=
2948 elif test "${enableval}" != "yes"; then
2949 locallisppath=${enableval}
2950 fi
2951 fi
2952
2953
2954 # Check whether --enable-checking was given.
2955 if test "${enable_checking+set}" = set; then :
2956 enableval=$enable_checking; ac_checking_flags="${enableval}"
2957 fi
2958
2959 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2960 for check in $ac_checking_flags
2961 do
2962 case $check in
2963 # these set all the flags to specific states
2964 yes) ac_enable_checking=1 ;;
2965 no) ac_enable_checking= ;
2966 ac_gc_check_stringbytes= ;
2967 ac_gc_check_string_overrun= ;
2968 ac_gc_check_string_free_list= ;
2969 ac_xmalloc_overrun= ;
2970 ac_gc_check_cons_list= ;;
2971 all) ac_enable_checking=1 ;
2972 ac_gc_check_stringbytes=1 ;
2973 ac_gc_check_string_overrun=1 ;
2974 ac_gc_check_string_free_list=1 ;
2975 ac_xmalloc_overrun=1 ;
2976 ac_gc_check_cons_list=1 ;;
2977 # these enable particular checks
2978 stringbytes) ac_gc_check_stringbytes=1 ;;
2979 stringoverrun) ac_gc_check_string_overrun=1 ;;
2980 stringfreelist) ac_gc_check_string_free_list=1 ;;
2981 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2982 conslist) ac_gc_check_cons_list=1 ;;
2983 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
2984 esac
2985 done
2986 IFS="$ac_save_IFS"
2987
2988 if test x$ac_enable_checking != x ; then
2989
2990 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2991
2992 fi
2993 if test x$ac_gc_check_stringbytes != x ; then
2994
2995 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2996
2997 fi
2998 if test x$ac_gc_check_stringoverrun != x ; then
2999
3000 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3001
3002 fi
3003 if test x$ac_gc_check_string_free_list != x ; then
3004
3005 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3006
3007 fi
3008 if test x$ac_xmalloc_overrun != x ; then
3009
3010 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3011
3012 fi
3013 if test x$ac_gc_check_cons_list != x ; then
3014
3015 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3016
3017 fi
3018
3019 # Check whether --enable-use-lisp-union-type was given.
3020 if test "${enable_use_lisp_union_type+set}" = set; then :
3021 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3022
3023 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3024
3025 fi
3026 fi
3027
3028
3029
3030 # Check whether --enable-profiling was given.
3031 if test "${enable_profiling+set}" = set; then :
3032 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3033 fi
3034
3035 if test x$ac_enable_profiling != x ; then
3036 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3037 PROFILING_LDFLAGS="-pg"
3038 else
3039 PROFILING_CFLAGS=
3040 PROFILING_LDFLAGS=
3041 fi
3042
3043
3044
3045 # Check whether --enable-autodepend was given.
3046 if test "${enable_autodepend+set}" = set; then :
3047 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3048 else
3049 ac_enable_autodepend=yes
3050 fi
3051
3052
3053 #### Make srcdir absolute, if it isn't already. It's important to
3054 #### avoid running the path through pwd unnecessarily, since pwd can
3055 #### give you automounter prefixes, which can go away. We do all this
3056 #### so Emacs can find its files when run uninstalled.
3057 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3058 unset CDPATH
3059 case "${srcdir}" in
3060 /* ) ;;
3061 . )
3062 ## We may be able to use the $PWD environment variable to make this
3063 ## absolute. But sometimes PWD is inaccurate.
3064 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3065 ## but that tested only for a well-formed and valid PWD,
3066 ## it did not object when PWD was well-formed and valid but just wrong.
3067 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3068 then
3069 srcdir="$PWD"
3070 else
3071 srcdir="`(cd ${srcdir}; pwd)`"
3072 fi
3073 ;;
3074 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3075 esac
3076
3077 #### Check if the source directory already has a configured system in it.
3078 if test `pwd` != `(cd ${srcdir} && pwd)` \
3079 && test -f "${srcdir}/src/config.h" ; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3081 as a build directory right now; it has been configured in its own
3082 right. To configure in another directory as well, you MUST
3083 use GNU make. If you do not have GNU make, then you must
3084 now do \`make distclean' in ${srcdir},
3085 and then run $0 again." >&5
3086 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3087 as a build directory right now; it has been configured in its own
3088 right. To configure in another directory as well, you MUST
3089 use GNU make. If you do not have GNU make, then you must
3090 now do \`make distclean' in ${srcdir},
3091 and then run $0 again." >&2;}
3092 fi
3093
3094 #### Given the configuration name, set machfile and opsysfile to the
3095 #### names of the m/*.h and s/*.h files we should use.
3096
3097 ### Canonicalize the configuration name.
3098
3099 ac_aux_dir=
3100 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3101 if test -f "$ac_dir/install-sh"; then
3102 ac_aux_dir=$ac_dir
3103 ac_install_sh="$ac_aux_dir/install-sh -c"
3104 break
3105 elif test -f "$ac_dir/install.sh"; then
3106 ac_aux_dir=$ac_dir
3107 ac_install_sh="$ac_aux_dir/install.sh -c"
3108 break
3109 elif test -f "$ac_dir/shtool"; then
3110 ac_aux_dir=$ac_dir
3111 ac_install_sh="$ac_aux_dir/shtool install -c"
3112 break
3113 fi
3114 done
3115 if test -z "$ac_aux_dir"; then
3116 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3117 fi
3118
3119 # These three variables are undocumented and unsupported,
3120 # and are intended to be withdrawn in a future Autoconf release.
3121 # They can cause serious problems if a builder's source tree is in a directory
3122 # whose full name contains unusual characters.
3123 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3124 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3125 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3126
3127
3128 # Make sure we can run config.sub.
3129 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3130 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3131
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3133 $as_echo_n "checking build system type... " >&6; }
3134 if test "${ac_cv_build+set}" = set; then :
3135 $as_echo_n "(cached) " >&6
3136 else
3137 ac_build_alias=$build_alias
3138 test "x$ac_build_alias" = x &&
3139 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3140 test "x$ac_build_alias" = x &&
3141 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3142 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3143 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3144
3145 fi
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3147 $as_echo "$ac_cv_build" >&6; }
3148 case $ac_cv_build in
3149 *-*-*) ;;
3150 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3151 esac
3152 build=$ac_cv_build
3153 ac_save_IFS=$IFS; IFS='-'
3154 set x $ac_cv_build
3155 shift
3156 build_cpu=$1
3157 build_vendor=$2
3158 shift; shift
3159 # Remember, the first character of IFS is used to create $*,
3160 # except with old shells:
3161 build_os=$*
3162 IFS=$ac_save_IFS
3163 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3164
3165
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3167 $as_echo_n "checking host system type... " >&6; }
3168 if test "${ac_cv_host+set}" = set; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 if test "x$host_alias" = x; then
3172 ac_cv_host=$ac_cv_build
3173 else
3174 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3175 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3176 fi
3177
3178 fi
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3180 $as_echo "$ac_cv_host" >&6; }
3181 case $ac_cv_host in
3182 *-*-*) ;;
3183 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3184 esac
3185 host=$ac_cv_host
3186 ac_save_IFS=$IFS; IFS='-'
3187 set x $ac_cv_host
3188 shift
3189 host_cpu=$1
3190 host_vendor=$2
3191 shift; shift
3192 # Remember, the first character of IFS is used to create $*,
3193 # except with old shells:
3194 host_os=$*
3195 IFS=$ac_save_IFS
3196 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3197
3198
3199 canonical=$host
3200 configuration=${host_alias-${build_alias-$host}}
3201
3202
3203
3204 ### If you add support for a new configuration, add code to this
3205 ### switch statement to recognize your configuration name and select
3206 ### the appropriate operating system and machine description files.
3207
3208 ### You would hope that you could choose an m/*.h file pretty much
3209 ### based on the machine portion of the configuration name, and an s/*.h
3210 ### file based on the operating system portion. However, it turns out
3211 ### that each m/*.h file is pretty manufacturer-specific - for
3212 ### example mips.h is MIPS
3213 ### So we basically have to have a special case for each
3214 ### configuration name.
3215 ###
3216 ### As far as handling version numbers on operating systems is
3217 ### concerned, make sure things will fail in a fixable way. If
3218 ### /etc/MACHINES doesn't say anything about version numbers, be
3219 ### prepared to handle anything reasonably. If version numbers
3220 ### matter, be sure /etc/MACHINES says something about it.
3221
3222 machine='' opsys='' unported=no
3223 case "${canonical}" in
3224
3225 ## FreeBSD ports
3226 *-*-freebsd* )
3227 opsys=freebsd
3228 case "${canonical}" in
3229 alpha*) machine=alpha ;;
3230 amd64-*|x86_64-*) machine=amdx86-64 ;;
3231 arm*) machine=arm ;;
3232 ia64-*) machine=ia64 ;;
3233 i[3456]86-*) machine=intel386 ;;
3234 powerpc-*) machine=macppc ;;
3235 sparc-*) machine=sparc ;;
3236 sparc64-*) machine=sparc ;;
3237 esac
3238 ;;
3239
3240 ## FreeBSD kernel + glibc based userland
3241 *-*-kfreebsd*gnu* )
3242 opsys=gnu-kfreebsd
3243 case "${canonical}" in
3244 alpha*) machine=alpha ;;
3245 amd64-*|x86_64-*) machine=amdx86-64 ;;
3246 ia64-*) machine=ia64 ;;
3247 i[3456]86-*) machine=intel386 ;;
3248 powerpc-*) machine=macppc ;;
3249 sparc-*) machine=sparc ;;
3250 sparc64-*) machine=sparc ;;
3251 esac
3252 ;;
3253
3254 ## NetBSD ports
3255 *-*-netbsd* )
3256 opsys=netbsd
3257 case "${canonical}" in
3258 alpha*) machine=alpha ;;
3259 x86_64-*) machine=amdx86-64 ;;
3260 arm-*) machine=arm ;;
3261 hppa-*) machine=hp800 ;;
3262 i[3456]86-*) machine=intel386 ;;
3263 m68k-*) machine=m68k ;;
3264 powerpc-*) machine=macppc ;;
3265 mips-*) machine=mips ;;
3266 mipse[bl]-*) machine=mips ;;
3267 sparc*-) machine=sparc ;;
3268 vax-*) machine=vax ;;
3269 esac
3270 ;;
3271
3272 ## OpenBSD ports
3273 *-*-openbsd* )
3274 opsys=openbsd
3275 case "${canonical}" in
3276 alpha*) machine=alpha ;;
3277 x86_64-*) machine=amdx86-64 ;;
3278 arm-*) machine=arm ;;
3279 hppa-*) machine=hp800 ;;
3280 i386-*) machine=intel386 ;;
3281 powerpc-*) machine=macppc ;;
3282 sparc*) machine=sparc ;;
3283 vax-*) machine=vax ;;
3284 esac
3285 ;;
3286
3287 alpha*-*-linux-gnu* )
3288 machine=alpha opsys=gnu-linux
3289 ;;
3290
3291 arm*-*-linux-gnu* )
3292 machine=arm opsys=gnu-linux
3293 ;;
3294
3295 ## Apple Darwin / Mac OS X
3296 *-apple-darwin* )
3297 case "${canonical}" in
3298 i[3456]86-* ) machine=intel386 ;;
3299 powerpc-* ) machine=macppc ;;
3300 x86_64-* ) machine=amdx86-64 ;;
3301 * ) unported=yes ;;
3302 esac
3303 opsys=darwin
3304 # Define CPP as follows to make autoconf work correctly.
3305 CPP="${CC-cc} -E -no-cpp-precomp"
3306 # Use fink packages if available.
3307 if test -d /sw/include && test -d /sw/lib; then
3308 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3309 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3310 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3311 fi
3312 ;;
3313
3314 ## HP 9000 series 700 and 800, running HP/UX
3315 hppa*-hp-hpux10.2* )
3316 machine=hp800 opsys=hpux10-20
3317 ;;
3318 hppa*-hp-hpux1[1-9]* )
3319 machine=hp800 opsys=hpux11
3320 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3321 ;;
3322
3323 hppa*-*-linux-gnu* )
3324 machine=hp800 opsys=gnu-linux
3325 ;;
3326
3327 ## IBM machines
3328 s390-*-linux-gnu* )
3329 machine=ibms390 opsys=gnu-linux
3330 ;;
3331 s390x-*-linux-gnu* )
3332 machine=ibms390x opsys=gnu-linux
3333 ;;
3334 rs6000-ibm-aix4.[23]* )
3335 machine=ibmrs6000 opsys=aix4-2
3336 ;;
3337 powerpc-ibm-aix4.[23]* )
3338 machine=ibmrs6000 opsys=aix4-2
3339 ;;
3340 rs6000-ibm-aix[56]* )
3341 machine=ibmrs6000 opsys=aix4-2
3342 ;;
3343 powerpc-ibm-aix[56]* )
3344 machine=ibmrs6000 opsys=aix4-2
3345 ;;
3346
3347 ## Macintosh PowerPC
3348 powerpc*-*-linux-gnu* )
3349 machine=macppc opsys=gnu-linux
3350 ;;
3351
3352 ## Silicon Graphics machines
3353 ## Iris 4D
3354 mips-sgi-irix6.5 )
3355 machine=iris4d opsys=irix6-5
3356 # Without defining _LANGUAGE_C, things get masked out in the headers
3357 # so that, for instance, grepping for `free' in stdlib.h fails and
3358 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3359 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3360 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3361 ;;
3362
3363 ## Suns
3364 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3365 machine=sparc opsys=gnu-linux
3366 ;;
3367
3368 *-sun-solaris* \
3369 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3370 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3371 case "${canonical}" in
3372 i[3456]86-*-* ) machine=intel386 ;;
3373 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3374 sparc* ) machine=sparc ;;
3375 * ) unported=yes ;;
3376 esac
3377 case "${canonical}" in
3378 *-sunos5.6* | *-solaris2.6* )
3379 opsys=sol2-6
3380 NON_GNU_CPP=/usr/ccs/lib/cpp
3381 RANLIB="ar -ts"
3382 ;;
3383 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3384 opsys=sol2-6
3385 emacs_check_sunpro_c=yes
3386 NON_GNU_CPP=/usr/ccs/lib/cpp
3387 ;;
3388 *-sunos5* | *-solaris* )
3389 opsys=sol2-10
3390 emacs_check_sunpro_c=yes
3391 NON_GNU_CPP=/usr/ccs/lib/cpp
3392 ;;
3393 esac
3394 ## Watch out for a compiler that we know will not work.
3395 case "${canonical}" in
3396 *-solaris* | *-sunos5* )
3397 if [ "x$CC" = x/usr/ucb/cc ]; then
3398 ## /usr/ucb/cc doesn't work;
3399 ## we should find some other compiler that does work.
3400 unset CC
3401 fi
3402 ;;
3403 *) ;;
3404 esac
3405 ;;
3406
3407 ## IA-64
3408 ia64*-*-linux* )
3409 machine=ia64 opsys=gnu-linux
3410 ;;
3411
3412 ## Intel 386 machines where we don't care about the manufacturer.
3413 i[3456]86-*-* )
3414 machine=intel386
3415 case "${canonical}" in
3416 *-cygwin ) opsys=cygwin ;;
3417 *-darwin* ) opsys=darwin
3418 CPP="${CC-cc} -E -no-cpp-precomp"
3419 ;;
3420 *-linux-gnu* ) opsys=gnu-linux ;;
3421 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3422 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3423 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3424 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3425 esac
3426 ;;
3427
3428 ## m68k Linux-based GNU system
3429 m68k-*-linux-gnu* )
3430 machine=m68k opsys=gnu-linux
3431 ;;
3432
3433 ## Mips Linux-based GNU system
3434 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3435 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3436 machine=mips opsys=gnu-linux
3437 ;;
3438
3439 ## AMD x86-64 Linux-based GNU system
3440 x86_64-*-linux-gnu* )
3441 machine=amdx86-64 opsys=gnu-linux
3442 ;;
3443
3444 ## Tensilica Xtensa Linux-based GNU system
3445 xtensa*-*-linux-gnu* )
3446 machine=xtensa opsys=gnu-linux
3447 ;;
3448
3449 ## SuperH Linux-based GNU system
3450 sh[34]*-*-linux-gnu* )
3451 machine=sh3 opsys=gnu-linux
3452 ;;
3453
3454 * )
3455 unported=yes
3456 ;;
3457 esac
3458
3459 ### If the code above didn't choose an operating system, just choose
3460 ### an operating system based on the configuration name. You really
3461 ### only want to use this when you have no idea what the right
3462 ### operating system is; if you know what operating systems a machine
3463 ### runs, it's cleaner to make it explicit in the case statement
3464 ### above.
3465 if test x"${opsys}" = x; then
3466 case "${canonical}" in
3467 *-gnu* ) opsys=gnu ;;
3468 * )
3469 unported=yes
3470 ;;
3471 esac
3472 fi
3473
3474
3475
3476 if test $unported = yes; then
3477 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
3478 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3479 fi
3480
3481 machfile="m/${machine}.h"
3482 opsysfile="s/${opsys}.h"
3483
3484
3485 #### Choose a compiler.
3486 test -n "$CC" && cc_specified=yes
3487
3488 # Save the value of CFLAGS that the user specified.
3489 SPECIFIED_CFLAGS="$CFLAGS"
3490
3491 ac_ext=c
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 if test -n "$ac_tool_prefix"; then
3497 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3498 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 $as_echo_n "checking for $ac_word... " >&6; }
3501 if test "${ac_cv_prog_CC+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 if test -n "$CC"; then
3505 ac_cv_prog_CC="$CC" # Let the user override the test.
3506 else
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH
3509 do
3510 IFS=$as_save_IFS
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3514 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 break 2
3517 fi
3518 done
3519 done
3520 IFS=$as_save_IFS
3521
3522 fi
3523 fi
3524 CC=$ac_cv_prog_CC
3525 if test -n "$CC"; then
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3527 $as_echo "$CC" >&6; }
3528 else
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 $as_echo "no" >&6; }
3531 fi
3532
3533
3534 fi
3535 if test -z "$ac_cv_prog_CC"; then
3536 ac_ct_CC=$CC
3537 # Extract the first word of "gcc", so it can be a program name with args.
3538 set dummy gcc; ac_word=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 if test -n "$ac_ct_CC"; then
3545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550 IFS=$as_save_IFS
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554 ac_cv_prog_ac_ct_CC="gcc"
3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 break 2
3557 fi
3558 done
3559 done
3560 IFS=$as_save_IFS
3561
3562 fi
3563 fi
3564 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3565 if test -n "$ac_ct_CC"; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3567 $as_echo "$ac_ct_CC" >&6; }
3568 else
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3571 fi
3572
3573 if test "x$ac_ct_CC" = x; then
3574 CC=""
3575 else
3576 case $cross_compiling:$ac_tool_warned in
3577 yes:)
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3580 ac_tool_warned=yes ;;
3581 esac
3582 CC=$ac_ct_CC
3583 fi
3584 else
3585 CC="$ac_cv_prog_CC"
3586 fi
3587
3588 if test -z "$CC"; then
3589 if test -n "$ac_tool_prefix"; then
3590 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3591 set dummy ${ac_tool_prefix}cc; ac_word=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if test "${ac_cv_prog_CC+set}" = set; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 if test -n "$CC"; then
3598 ac_cv_prog_CC="$CC" # Let the user override the test.
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3602 do
3603 IFS=$as_save_IFS
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3607 ac_cv_prog_CC="${ac_tool_prefix}cc"
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 break 2
3610 fi
3611 done
3612 done
3613 IFS=$as_save_IFS
3614
3615 fi
3616 fi
3617 CC=$ac_cv_prog_CC
3618 if test -n "$CC"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620 $as_echo "$CC" >&6; }
3621 else
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3624 fi
3625
3626
3627 fi
3628 fi
3629 if test -z "$CC"; then
3630 # Extract the first word of "cc", so it can be a program name with args.
3631 set dummy cc; ac_word=$2
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 $as_echo_n "checking for $ac_word... " >&6; }
3634 if test "${ac_cv_prog_CC+set}" = set; then :
3635 $as_echo_n "(cached) " >&6
3636 else
3637 if test -n "$CC"; then
3638 ac_cv_prog_CC="$CC" # Let the user override the test.
3639 else
3640 ac_prog_rejected=no
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3649 ac_prog_rejected=yes
3650 continue
3651 fi
3652 ac_cv_prog_CC="cc"
3653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 break 2
3655 fi
3656 done
3657 done
3658 IFS=$as_save_IFS
3659
3660 if test $ac_prog_rejected = yes; then
3661 # We found a bogon in the path, so make sure we never use it.
3662 set dummy $ac_cv_prog_CC
3663 shift
3664 if test $# != 0; then
3665 # We chose a different compiler from the bogus one.
3666 # However, it has the same basename, so the bogon will be chosen
3667 # first if we set CC to just the basename; use the full file name.
3668 shift
3669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3670 fi
3671 fi
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 fi
3685 if test -z "$CC"; then
3686 if test -n "$ac_tool_prefix"; then
3687 for ac_prog in cl.exe
3688 do
3689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if test "${ac_cv_prog_CC+set}" = set; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 if test -n "$CC"; then
3697 ac_cv_prog_CC="$CC" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3709 fi
3710 done
3711 done
3712 IFS=$as_save_IFS
3713
3714 fi
3715 fi
3716 CC=$ac_cv_prog_CC
3717 if test -n "$CC"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3719 $as_echo "$CC" >&6; }
3720 else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3723 fi
3724
3725
3726 test -n "$CC" && break
3727 done
3728 fi
3729 if test -z "$CC"; then
3730 ac_ct_CC=$CC
3731 for ac_prog in cl.exe
3732 do
3733 # Extract the first word of "$ac_prog", so it can be a program name with args.
3734 set dummy $ac_prog; ac_word=$2
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736 $as_echo_n "checking for $ac_word... " >&6; }
3737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3738 $as_echo_n "(cached) " >&6
3739 else
3740 if test -n "$ac_ct_CC"; then
3741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3745 do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3750 ac_cv_prog_ac_ct_CC="$ac_prog"
3751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3753 fi
3754 done
3755 done
3756 IFS=$as_save_IFS
3757
3758 fi
3759 fi
3760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3761 if test -n "$ac_ct_CC"; then
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3763 $as_echo "$ac_ct_CC" >&6; }
3764 else
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3767 fi
3768
3769
3770 test -n "$ac_ct_CC" && break
3771 done
3772
3773 if test "x$ac_ct_CC" = x; then
3774 CC=""
3775 else
3776 case $cross_compiling:$ac_tool_warned in
3777 yes:)
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3780 ac_tool_warned=yes ;;
3781 esac
3782 CC=$ac_ct_CC
3783 fi
3784 fi
3785
3786 fi
3787
3788
3789 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3791 as_fn_error $? "no acceptable C compiler found in \$PATH
3792 See \`config.log' for more details" "$LINENO" 5; }
3793
3794 # Provide some information about the compiler.
3795 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3796 set X $ac_compile
3797 ac_compiler=$2
3798 for ac_option in --version -v -V -qversion; do
3799 { { ac_try="$ac_compiler $ac_option >&5"
3800 case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3803 esac
3804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 $as_echo "$ac_try_echo"; } >&5
3806 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3807 ac_status=$?
3808 if test -s conftest.err; then
3809 sed '10a\
3810 ... rest of stderr output deleted ...
3811 10q' conftest.err >conftest.er1
3812 cat conftest.er1 >&5
3813 fi
3814 rm -f conftest.er1 conftest.err
3815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3816 test $ac_status = 0; }
3817 done
3818
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3821
3822 int
3823 main ()
3824 {
3825
3826 ;
3827 return 0;
3828 }
3829 _ACEOF
3830 ac_clean_files_save=$ac_clean_files
3831 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3832 # Try to create an executable without -o first, disregard a.out.
3833 # It will help us diagnose broken compilers, and finding out an intuition
3834 # of exeext.
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3836 $as_echo_n "checking whether the C compiler works... " >&6; }
3837 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3838
3839 # The possible output files:
3840 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3841
3842 ac_rmfiles=
3843 for ac_file in $ac_files
3844 do
3845 case $ac_file in
3846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3847 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3848 esac
3849 done
3850 rm -f $ac_rmfiles
3851
3852 if { { ac_try="$ac_link_default"
3853 case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856 esac
3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858 $as_echo "$ac_try_echo"; } >&5
3859 (eval "$ac_link_default") 2>&5
3860 ac_status=$?
3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862 test $ac_status = 0; }; then :
3863 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3864 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3865 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3866 # so that the user can short-circuit this test for compilers unknown to
3867 # Autoconf.
3868 for ac_file in $ac_files ''
3869 do
3870 test -f "$ac_file" || continue
3871 case $ac_file in
3872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3873 ;;
3874 [ab].out )
3875 # We found the default executable, but exeext='' is most
3876 # certainly right.
3877 break;;
3878 *.* )
3879 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3880 then :; else
3881 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3882 fi
3883 # We set ac_cv_exeext here because the later test for it is not
3884 # safe: cross compilers may not add the suffix if given an `-o'
3885 # argument, so we may need to know it at that point already.
3886 # Even if this section looks crufty: it has the advantage of
3887 # actually working.
3888 break;;
3889 * )
3890 break;;
3891 esac
3892 done
3893 test "$ac_cv_exeext" = no && ac_cv_exeext=
3894
3895 else
3896 ac_file=''
3897 fi
3898 if test -z "$ac_file"; then :
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3901 $as_echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3903
3904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3906 as_fn_error 77 "C compiler cannot create executables
3907 See \`config.log' for more details" "$LINENO" 5; }
3908 else
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3910 $as_echo "yes" >&6; }
3911 fi
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3913 $as_echo_n "checking for C compiler default output file name... " >&6; }
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3915 $as_echo "$ac_file" >&6; }
3916 ac_exeext=$ac_cv_exeext
3917
3918 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3919 ac_clean_files=$ac_clean_files_save
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3921 $as_echo_n "checking for suffix of executables... " >&6; }
3922 if { { ac_try="$ac_link"
3923 case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 $as_echo "$ac_try_echo"; } >&5
3929 (eval "$ac_link") 2>&5
3930 ac_status=$?
3931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932 test $ac_status = 0; }; then :
3933 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3934 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3935 # work properly (i.e., refer to `conftest.exe'), while it won't with
3936 # `rm'.
3937 for ac_file in conftest.exe conftest conftest.*; do
3938 test -f "$ac_file" || continue
3939 case $ac_file in
3940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3941 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3942 break;;
3943 * ) break;;
3944 esac
3945 done
3946 else
3947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3949 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3950 See \`config.log' for more details" "$LINENO" 5; }
3951 fi
3952 rm -f conftest conftest$ac_cv_exeext
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3954 $as_echo "$ac_cv_exeext" >&6; }
3955
3956 rm -f conftest.$ac_ext
3957 EXEEXT=$ac_cv_exeext
3958 ac_exeext=$EXEEXT
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3961 #include <stdio.h>
3962 int
3963 main ()
3964 {
3965 FILE *f = fopen ("conftest.out", "w");
3966 return ferror (f) || fclose (f) != 0;
3967
3968 ;
3969 return 0;
3970 }
3971 _ACEOF
3972 ac_clean_files="$ac_clean_files conftest.out"
3973 # Check that the compiler produces executables we can run. If not, either
3974 # the compiler is broken, or we cross compile.
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3976 $as_echo_n "checking whether we are cross compiling... " >&6; }
3977 if test "$cross_compiling" != yes; then
3978 { { ac_try="$ac_link"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3984 $as_echo "$ac_try_echo"; } >&5
3985 (eval "$ac_link") 2>&5
3986 ac_status=$?
3987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3988 test $ac_status = 0; }
3989 if { ac_try='./conftest$ac_cv_exeext'
3990 { { case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3993 esac
3994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3995 $as_echo "$ac_try_echo"; } >&5
3996 (eval "$ac_try") 2>&5
3997 ac_status=$?
3998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3999 test $ac_status = 0; }; }; then
4000 cross_compiling=no
4001 else
4002 if test "$cross_compiling" = maybe; then
4003 cross_compiling=yes
4004 else
4005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4007 as_fn_error $? "cannot run C compiled programs.
4008 If you meant to cross compile, use \`--host'.
4009 See \`config.log' for more details" "$LINENO" 5; }
4010 fi
4011 fi
4012 fi
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4014 $as_echo "$cross_compiling" >&6; }
4015
4016 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4017 ac_clean_files=$ac_clean_files_save
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4019 $as_echo_n "checking for suffix of object files... " >&6; }
4020 if test "${ac_cv_objext+set}" = set; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4025
4026 int
4027 main ()
4028 {
4029
4030 ;
4031 return 0;
4032 }
4033 _ACEOF
4034 rm -f conftest.o conftest.obj
4035 if { { ac_try="$ac_compile"
4036 case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039 esac
4040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4041 $as_echo "$ac_try_echo"; } >&5
4042 (eval "$ac_compile") 2>&5
4043 ac_status=$?
4044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4045 test $ac_status = 0; }; then :
4046 for ac_file in conftest.o conftest.obj conftest.*; do
4047 test -f "$ac_file" || continue;
4048 case $ac_file in
4049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4050 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4051 break;;
4052 esac
4053 done
4054 else
4055 $as_echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4057
4058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4060 as_fn_error $? "cannot compute suffix of object files: cannot compile
4061 See \`config.log' for more details" "$LINENO" 5; }
4062 fi
4063 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4066 $as_echo "$ac_cv_objext" >&6; }
4067 OBJEXT=$ac_cv_objext
4068 ac_objext=$OBJEXT
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4070 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4071 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076
4077 int
4078 main ()
4079 {
4080 #ifndef __GNUC__
4081 choke me
4082 #endif
4083
4084 ;
4085 return 0;
4086 }
4087 _ACEOF
4088 if ac_fn_c_try_compile "$LINENO"; then :
4089 ac_compiler_gnu=yes
4090 else
4091 ac_compiler_gnu=no
4092 fi
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4095
4096 fi
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4098 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4099 if test $ac_compiler_gnu = yes; then
4100 GCC=yes
4101 else
4102 GCC=
4103 fi
4104 ac_test_CFLAGS=${CFLAGS+set}
4105 ac_save_CFLAGS=$CFLAGS
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4107 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4108 if test "${ac_cv_prog_cc_g+set}" = set; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 ac_save_c_werror_flag=$ac_c_werror_flag
4112 ac_c_werror_flag=yes
4113 ac_cv_prog_cc_g=no
4114 CFLAGS="-g"
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117
4118 int
4119 main ()
4120 {
4121
4122 ;
4123 return 0;
4124 }
4125 _ACEOF
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_cv_prog_cc_g=yes
4128 else
4129 CFLAGS=""
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132
4133 int
4134 main ()
4135 {
4136
4137 ;
4138 return 0;
4139 }
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142
4143 else
4144 ac_c_werror_flag=$ac_save_c_werror_flag
4145 CFLAGS="-g"
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148
4149 int
4150 main ()
4151 {
4152
4153 ;
4154 return 0;
4155 }
4156 _ACEOF
4157 if ac_fn_c_try_compile "$LINENO"; then :
4158 ac_cv_prog_cc_g=yes
4159 fi
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 fi
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 fi
4164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 ac_c_werror_flag=$ac_save_c_werror_flag
4166 fi
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4168 $as_echo "$ac_cv_prog_cc_g" >&6; }
4169 if test "$ac_test_CFLAGS" = set; then
4170 CFLAGS=$ac_save_CFLAGS
4171 elif test $ac_cv_prog_cc_g = yes; then
4172 if test "$GCC" = yes; then
4173 CFLAGS="-g -O2"
4174 else
4175 CFLAGS="-g"
4176 fi
4177 else
4178 if test "$GCC" = yes; then
4179 CFLAGS="-O2"
4180 else
4181 CFLAGS=
4182 fi
4183 fi
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4185 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4186 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 ac_cv_prog_cc_c89=no
4190 ac_save_CC=$CC
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4193 #include <stdarg.h>
4194 #include <stdio.h>
4195 #include <sys/types.h>
4196 #include <sys/stat.h>
4197 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4198 struct buf { int x; };
4199 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4200 static char *e (p, i)
4201 char **p;
4202 int i;
4203 {
4204 return p[i];
4205 }
4206 static char *f (char * (*g) (char **, int), char **p, ...)
4207 {
4208 char *s;
4209 va_list v;
4210 va_start (v,p);
4211 s = g (p, va_arg (v,int));
4212 va_end (v);
4213 return s;
4214 }
4215
4216 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4217 function prototypes and stuff, but not '\xHH' hex character constants.
4218 These don't provoke an error unfortunately, instead are silently treated
4219 as 'x'. The following induces an error, until -std is added to get
4220 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4221 array size at least. It's necessary to write '\x00'==0 to get something
4222 that's true only with -std. */
4223 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4224
4225 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4226 inside strings and character constants. */
4227 #define FOO(x) 'x'
4228 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4229
4230 int test (int i, double x);
4231 struct s1 {int (*f) (int a);};
4232 struct s2 {int (*f) (double a);};
4233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4234 int argc;
4235 char **argv;
4236 int
4237 main ()
4238 {
4239 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4240 ;
4241 return 0;
4242 }
4243 _ACEOF
4244 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4245 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4246 do
4247 CC="$ac_save_CC $ac_arg"
4248 if ac_fn_c_try_compile "$LINENO"; then :
4249 ac_cv_prog_cc_c89=$ac_arg
4250 fi
4251 rm -f core conftest.err conftest.$ac_objext
4252 test "x$ac_cv_prog_cc_c89" != "xno" && break
4253 done
4254 rm -f conftest.$ac_ext
4255 CC=$ac_save_CC
4256
4257 fi
4258 # AC_CACHE_VAL
4259 case "x$ac_cv_prog_cc_c89" in
4260 x)
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4262 $as_echo "none needed" >&6; } ;;
4263 xno)
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4265 $as_echo "unsupported" >&6; } ;;
4266 *)
4267 CC="$CC $ac_cv_prog_cc_c89"
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4269 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4270 esac
4271 if test "x$ac_cv_prog_cc_c89" != xno; then :
4272
4273 fi
4274
4275 ac_ext=c
4276 ac_cpp='$CPP $CPPFLAGS'
4277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4280
4281
4282 # On Suns, sometimes $CPP names a directory.
4283 if test -n "$CPP" && test -d "$CPP"; then
4284 CPP=
4285 fi
4286
4287 ## If not using gcc, and on Solaris, and no CPP specified, see if
4288 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4289 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4290 test x"$CPP" = x; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4292 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4293
4294 if test "${emacs_cv_sunpro_c+set}" = set; then :
4295 $as_echo_n "(cached) " >&6
4296 else
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4299
4300 int
4301 main ()
4302 {
4303 #ifndef __SUNPRO_C
4304 fail;
4305 #endif
4306
4307 ;
4308 return 0;
4309 }
4310 _ACEOF
4311 if ac_fn_c_try_link "$LINENO"; then :
4312 emacs_cv_sunpro_c=yes
4313 else
4314 emacs_cv_sunpro_c=no
4315 fi
4316 rm -f core conftest.err conftest.$ac_objext \
4317 conftest$ac_exeext conftest.$ac_ext
4318 fi
4319
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4321 $as_echo "$emacs_cv_sunpro_c" >&6; }
4322
4323 if test x"$emacs_cv_sunpro_c" = xyes; then
4324 NON_GNU_CPP="$CC -E -Xs"
4325 fi
4326 fi
4327
4328 #### Some systems specify a CPP to use unless we are using GCC.
4329 #### Now that we know whether we are using GCC, we can decide whether
4330 #### to use that one.
4331 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4332 then
4333 CPP="$NON_GNU_CPP"
4334 fi
4335
4336 #### Some systems specify a CC to use unless we are using GCC.
4337 #### Now that we know whether we are using GCC, we can decide whether
4338 #### to use that one.
4339 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4340 test x$cc_specified != xyes
4341 then
4342 CC="$NON_GNU_CC"
4343 fi
4344
4345 if test x$GCC = xyes; then
4346 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4347 else
4348 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4349 fi
4350
4351 ac_ext=c
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4357 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4358 # On Suns, sometimes $CPP names a directory.
4359 if test -n "$CPP" && test -d "$CPP"; then
4360 CPP=
4361 fi
4362 if test -z "$CPP"; then
4363 if test "${ac_cv_prog_CPP+set}" = set; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 # Double quotes because CPP needs to be expanded
4367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4368 do
4369 ac_preproc_ok=false
4370 for ac_c_preproc_warn_flag in '' yes
4371 do
4372 # Use a header file that comes with gcc, so configuring glibc
4373 # with a fresh cross-compiler works.
4374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4375 # <limits.h> exists even on freestanding compilers.
4376 # On the NeXT, cc -E runs the code through the compiler's parser,
4377 # not just through cpp. "Syntax error" is here to catch this case.
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380 #ifdef __STDC__
4381 # include <limits.h>
4382 #else
4383 # include <assert.h>
4384 #endif
4385 Syntax error
4386 _ACEOF
4387 if ac_fn_c_try_cpp "$LINENO"; then :
4388
4389 else
4390 # Broken: fails on valid input.
4391 continue
4392 fi
4393 rm -f conftest.err conftest.$ac_ext
4394
4395 # OK, works on sane cases. Now check whether nonexistent headers
4396 # can be detected and how.
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4399 #include <ac_nonexistent.h>
4400 _ACEOF
4401 if ac_fn_c_try_cpp "$LINENO"; then :
4402 # Broken: success on invalid input.
4403 continue
4404 else
4405 # Passes both tests.
4406 ac_preproc_ok=:
4407 break
4408 fi
4409 rm -f conftest.err conftest.$ac_ext
4410
4411 done
4412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4413 rm -f conftest.err conftest.$ac_ext
4414 if $ac_preproc_ok; then :
4415 break
4416 fi
4417
4418 done
4419 ac_cv_prog_CPP=$CPP
4420
4421 fi
4422 CPP=$ac_cv_prog_CPP
4423 else
4424 ac_cv_prog_CPP=$CPP
4425 fi
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4427 $as_echo "$CPP" >&6; }
4428 ac_preproc_ok=false
4429 for ac_c_preproc_warn_flag in '' yes
4430 do
4431 # Use a header file that comes with gcc, so configuring glibc
4432 # with a fresh cross-compiler works.
4433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4434 # <limits.h> exists even on freestanding compilers.
4435 # On the NeXT, cc -E runs the code through the compiler's parser,
4436 # not just through cpp. "Syntax error" is here to catch this case.
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #ifdef __STDC__
4440 # include <limits.h>
4441 #else
4442 # include <assert.h>
4443 #endif
4444 Syntax error
4445 _ACEOF
4446 if ac_fn_c_try_cpp "$LINENO"; then :
4447
4448 else
4449 # Broken: fails on valid input.
4450 continue
4451 fi
4452 rm -f conftest.err conftest.$ac_ext
4453
4454 # OK, works on sane cases. Now check whether nonexistent headers
4455 # can be detected and how.
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4458 #include <ac_nonexistent.h>
4459 _ACEOF
4460 if ac_fn_c_try_cpp "$LINENO"; then :
4461 # Broken: success on invalid input.
4462 continue
4463 else
4464 # Passes both tests.
4465 ac_preproc_ok=:
4466 break
4467 fi
4468 rm -f conftest.err conftest.$ac_ext
4469
4470 done
4471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4472 rm -f conftest.err conftest.$ac_ext
4473 if $ac_preproc_ok; then :
4474
4475 else
4476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4478 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4479 See \`config.log' for more details" "$LINENO" 5; }
4480 fi
4481
4482 ac_ext=c
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487
4488
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4490 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4491 if test "${ac_cv_path_GREP+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 if test -z "$GREP"; then
4495 ac_path_GREP_found=false
4496 # Loop through the user's path and test for each of PROGNAME-LIST
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4499 do
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_prog in grep ggrep; do
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4505 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4506 # Check for GNU ac_path_GREP and select it if it is found.
4507 # Check for GNU $ac_path_GREP
4508 case `"$ac_path_GREP" --version 2>&1` in
4509 *GNU*)
4510 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4511 *)
4512 ac_count=0
4513 $as_echo_n 0123456789 >"conftest.in"
4514 while :
4515 do
4516 cat "conftest.in" "conftest.in" >"conftest.tmp"
4517 mv "conftest.tmp" "conftest.in"
4518 cp "conftest.in" "conftest.nl"
4519 $as_echo 'GREP' >> "conftest.nl"
4520 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4522 as_fn_arith $ac_count + 1 && ac_count=$as_val
4523 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4524 # Best one so far, save it but keep looking for a better one
4525 ac_cv_path_GREP="$ac_path_GREP"
4526 ac_path_GREP_max=$ac_count
4527 fi
4528 # 10*(2^10) chars as input seems more than enough
4529 test $ac_count -gt 10 && break
4530 done
4531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4532 esac
4533
4534 $ac_path_GREP_found && break 3
4535 done
4536 done
4537 done
4538 IFS=$as_save_IFS
4539 if test -z "$ac_cv_path_GREP"; then
4540 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4541 fi
4542 else
4543 ac_cv_path_GREP=$GREP
4544 fi
4545
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4548 $as_echo "$ac_cv_path_GREP" >&6; }
4549 GREP="$ac_cv_path_GREP"
4550
4551
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4553 $as_echo_n "checking for egrep... " >&6; }
4554 if test "${ac_cv_path_EGREP+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4558 then ac_cv_path_EGREP="$GREP -E"
4559 else
4560 if test -z "$EGREP"; then
4561 ac_path_EGREP_found=false
4562 # Loop through the user's path and test for each of PROGNAME-LIST
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4565 do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_prog in egrep; do
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4571 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4572 # Check for GNU ac_path_EGREP and select it if it is found.
4573 # Check for GNU $ac_path_EGREP
4574 case `"$ac_path_EGREP" --version 2>&1` in
4575 *GNU*)
4576 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4577 *)
4578 ac_count=0
4579 $as_echo_n 0123456789 >"conftest.in"
4580 while :
4581 do
4582 cat "conftest.in" "conftest.in" >"conftest.tmp"
4583 mv "conftest.tmp" "conftest.in"
4584 cp "conftest.in" "conftest.nl"
4585 $as_echo 'EGREP' >> "conftest.nl"
4586 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588 as_fn_arith $ac_count + 1 && ac_count=$as_val
4589 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4590 # Best one so far, save it but keep looking for a better one
4591 ac_cv_path_EGREP="$ac_path_EGREP"
4592 ac_path_EGREP_max=$ac_count
4593 fi
4594 # 10*(2^10) chars as input seems more than enough
4595 test $ac_count -gt 10 && break
4596 done
4597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598 esac
4599
4600 $ac_path_EGREP_found && break 3
4601 done
4602 done
4603 done
4604 IFS=$as_save_IFS
4605 if test -z "$ac_cv_path_EGREP"; then
4606 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4607 fi
4608 else
4609 ac_cv_path_EGREP=$EGREP
4610 fi
4611
4612 fi
4613 fi
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4615 $as_echo "$ac_cv_path_EGREP" >&6; }
4616 EGREP="$ac_cv_path_EGREP"
4617
4618
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4620 $as_echo_n "checking for ANSI C header files... " >&6; }
4621 if test "${ac_cv_header_stdc+set}" = set; then :
4622 $as_echo_n "(cached) " >&6
4623 else
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626 #include <stdlib.h>
4627 #include <stdarg.h>
4628 #include <string.h>
4629 #include <float.h>
4630
4631 int
4632 main ()
4633 {
4634
4635 ;
4636 return 0;
4637 }
4638 _ACEOF
4639 if ac_fn_c_try_compile "$LINENO"; then :
4640 ac_cv_header_stdc=yes
4641 else
4642 ac_cv_header_stdc=no
4643 fi
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645
4646 if test $ac_cv_header_stdc = yes; then
4647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4650 #include <string.h>
4651
4652 _ACEOF
4653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4654 $EGREP "memchr" >/dev/null 2>&1; then :
4655
4656 else
4657 ac_cv_header_stdc=no
4658 fi
4659 rm -f conftest*
4660
4661 fi
4662
4663 if test $ac_cv_header_stdc = yes; then
4664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4667 #include <stdlib.h>
4668
4669 _ACEOF
4670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4671 $EGREP "free" >/dev/null 2>&1; then :
4672
4673 else
4674 ac_cv_header_stdc=no
4675 fi
4676 rm -f conftest*
4677
4678 fi
4679
4680 if test $ac_cv_header_stdc = yes; then
4681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4682 if test "$cross_compiling" = yes; then :
4683 :
4684 else
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687 #include <ctype.h>
4688 #include <stdlib.h>
4689 #if ((' ' & 0x0FF) == 0x020)
4690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4692 #else
4693 # define ISLOWER(c) \
4694 (('a' <= (c) && (c) <= 'i') \
4695 || ('j' <= (c) && (c) <= 'r') \
4696 || ('s' <= (c) && (c) <= 'z'))
4697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4698 #endif
4699
4700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4701 int
4702 main ()
4703 {
4704 int i;
4705 for (i = 0; i < 256; i++)
4706 if (XOR (islower (i), ISLOWER (i))
4707 || toupper (i) != TOUPPER (i))
4708 return 2;
4709 return 0;
4710 }
4711 _ACEOF
4712 if ac_fn_c_try_run "$LINENO"; then :
4713
4714 else
4715 ac_cv_header_stdc=no
4716 fi
4717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4718 conftest.$ac_objext conftest.beam conftest.$ac_ext
4719 fi
4720
4721 fi
4722 fi
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4724 $as_echo "$ac_cv_header_stdc" >&6; }
4725 if test $ac_cv_header_stdc = yes; then
4726
4727 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4728
4729 fi
4730
4731 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4732 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4733 inttypes.h stdint.h unistd.h
4734 do :
4735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4736 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4737 "
4738 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4739 cat >>confdefs.h <<_ACEOF
4740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4741 _ACEOF
4742
4743 fi
4744
4745 done
4746
4747
4748
4749 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4750 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4751 MINIX=yes
4752 else
4753 MINIX=
4754 fi
4755
4756
4757 if test "$MINIX" = yes; then
4758
4759 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4760
4761
4762 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4763
4764
4765 $as_echo "#define _MINIX 1" >>confdefs.h
4766
4767 fi
4768
4769
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4771 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4772 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4777
4778 # define __EXTENSIONS__ 1
4779 $ac_includes_default
4780 int
4781 main ()
4782 {
4783
4784 ;
4785 return 0;
4786 }
4787 _ACEOF
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789 ac_cv_safe_to_define___extensions__=yes
4790 else
4791 ac_cv_safe_to_define___extensions__=no
4792 fi
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 fi
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4796 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4797 test $ac_cv_safe_to_define___extensions__ = yes &&
4798 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4799
4800 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4801
4802 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4803
4804 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4805
4806 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4807
4808
4809
4810 ### Use -Wno-pointer-sign if the compiler supports it
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4812 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4813 SAVE_CFLAGS="$CFLAGS"
4814 CFLAGS="$CFLAGS -Wno-pointer-sign"
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4817
4818 int
4819 main ()
4820 {
4821
4822 ;
4823 return 0;
4824 }
4825 _ACEOF
4826 if ac_fn_c_try_compile "$LINENO"; then :
4827 has_option=yes
4828 else
4829 has_option=no
4830 fi
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 if test $has_option = yes; then
4833 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4834 fi
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4836 $as_echo "$has_option" >&6; }
4837 CFLAGS="$SAVE_CFLAGS"
4838 unset has_option
4839 unset SAVE_CFLAGS
4840
4841 ### Use -Wdeclaration-after-statement if the compiler supports it
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4843 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4844 SAVE_CFLAGS="$CFLAGS"
4845 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4848
4849 int
4850 main ()
4851 {
4852
4853 ;
4854 return 0;
4855 }
4856 _ACEOF
4857 if ac_fn_c_try_compile "$LINENO"; then :
4858 has_option=yes
4859 else
4860 has_option=no
4861 fi
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 if test $has_option = yes; then
4864 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4865 fi
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4867 $as_echo "$has_option" >&6; }
4868 CFLAGS="$SAVE_CFLAGS"
4869 unset has_option
4870 unset SAVE_CFLAGS
4871
4872 ### Use -Wold-style-definition if the compiler supports it
4873 # This can be removed when conversion to standard C is finished.
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4875 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4876 SAVE_CFLAGS="$CFLAGS"
4877 CFLAGS="$CFLAGS -Wold-style-definition"
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880
4881 int
4882 main ()
4883 {
4884
4885 ;
4886 return 0;
4887 }
4888 _ACEOF
4889 if ac_fn_c_try_compile "$LINENO"; then :
4890 has_option=yes
4891 else
4892 has_option=no
4893 fi
4894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 if test $has_option = yes; then
4896 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4897 fi
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4899 $as_echo "$has_option" >&6; }
4900 CFLAGS="$SAVE_CFLAGS"
4901 unset has_option
4902 unset SAVE_CFLAGS
4903
4904 ### Use -Wimplicit-function-declaration if the compiler supports it
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4906 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4907 SAVE_CFLAGS="$CFLAGS"
4908 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4911
4912 int
4913 main ()
4914 {
4915
4916 ;
4917 return 0;
4918 }
4919 _ACEOF
4920 if ac_fn_c_try_compile "$LINENO"; then :
4921 has_option=yes
4922 else
4923 has_option=no
4924 fi
4925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926 if test $has_option = yes; then
4927 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4928 fi
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4930 $as_echo "$has_option" >&6; }
4931 CFLAGS="$SAVE_CFLAGS"
4932 unset has_option
4933 unset SAVE_CFLAGS
4934
4935
4936
4937
4938 #### Some other nice autoconf tests.
4939
4940 ac_ext=c
4941 ac_cpp='$CPP $CPPFLAGS'
4942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4946 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4947 # On Suns, sometimes $CPP names a directory.
4948 if test -n "$CPP" && test -d "$CPP"; then
4949 CPP=
4950 fi
4951 if test -z "$CPP"; then
4952 if test "${ac_cv_prog_CPP+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 # Double quotes because CPP needs to be expanded
4956 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4957 do
4958 ac_preproc_ok=false
4959 for ac_c_preproc_warn_flag in '' yes
4960 do
4961 # Use a header file that comes with gcc, so configuring glibc
4962 # with a fresh cross-compiler works.
4963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4964 # <limits.h> exists even on freestanding compilers.
4965 # On the NeXT, cc -E runs the code through the compiler's parser,
4966 # not just through cpp. "Syntax error" is here to catch this case.
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4969 #ifdef __STDC__
4970 # include <limits.h>
4971 #else
4972 # include <assert.h>
4973 #endif
4974 Syntax error
4975 _ACEOF
4976 if ac_fn_c_try_cpp "$LINENO"; then :
4977
4978 else
4979 # Broken: fails on valid input.
4980 continue
4981 fi
4982 rm -f conftest.err conftest.$ac_ext
4983
4984 # OK, works on sane cases. Now check whether nonexistent headers
4985 # can be detected and how.
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988 #include <ac_nonexistent.h>
4989 _ACEOF
4990 if ac_fn_c_try_cpp "$LINENO"; then :
4991 # Broken: success on invalid input.
4992 continue
4993 else
4994 # Passes both tests.
4995 ac_preproc_ok=:
4996 break
4997 fi
4998 rm -f conftest.err conftest.$ac_ext
4999
5000 done
5001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5002 rm -f conftest.err conftest.$ac_ext
5003 if $ac_preproc_ok; then :
5004 break
5005 fi
5006
5007 done
5008 ac_cv_prog_CPP=$CPP
5009
5010 fi
5011 CPP=$ac_cv_prog_CPP
5012 else
5013 ac_cv_prog_CPP=$CPP
5014 fi
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5016 $as_echo "$CPP" >&6; }
5017 ac_preproc_ok=false
5018 for ac_c_preproc_warn_flag in '' yes
5019 do
5020 # Use a header file that comes with gcc, so configuring glibc
5021 # with a fresh cross-compiler works.
5022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5023 # <limits.h> exists even on freestanding compilers.
5024 # On the NeXT, cc -E runs the code through the compiler's parser,
5025 # not just through cpp. "Syntax error" is here to catch this case.
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5028 #ifdef __STDC__
5029 # include <limits.h>
5030 #else
5031 # include <assert.h>
5032 #endif
5033 Syntax error
5034 _ACEOF
5035 if ac_fn_c_try_cpp "$LINENO"; then :
5036
5037 else
5038 # Broken: fails on valid input.
5039 continue
5040 fi
5041 rm -f conftest.err conftest.$ac_ext
5042
5043 # OK, works on sane cases. Now check whether nonexistent headers
5044 # can be detected and how.
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047 #include <ac_nonexistent.h>
5048 _ACEOF
5049 if ac_fn_c_try_cpp "$LINENO"; then :
5050 # Broken: success on invalid input.
5051 continue
5052 else
5053 # Passes both tests.
5054 ac_preproc_ok=:
5055 break
5056 fi
5057 rm -f conftest.err conftest.$ac_ext
5058
5059 done
5060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5061 rm -f conftest.err conftest.$ac_ext
5062 if $ac_preproc_ok; then :
5063
5064 else
5065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5067 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5068 See \`config.log' for more details" "$LINENO" 5; }
5069 fi
5070
5071 ac_ext=c
5072 ac_cpp='$CPP $CPPFLAGS'
5073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5076
5077 # Find a good install program. We prefer a C program (faster),
5078 # so one script is as good as another. But avoid the broken or
5079 # incompatible versions:
5080 # SysV /etc/install, /usr/sbin/install
5081 # SunOS /usr/etc/install
5082 # IRIX /sbin/install
5083 # AIX /bin/install
5084 # AmigaOS /C/install, which installs bootblocks on floppy discs
5085 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5086 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5087 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5088 # OS/2's system install, which has a completely different semantic
5089 # ./install, which can be erroneously created by make from ./install.sh.
5090 # Reject install programs that cannot install multiple files.
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5092 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5093 if test -z "$INSTALL"; then
5094 if test "${ac_cv_path_install+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 # Account for people who put trailing slashes in PATH elements.
5103 case $as_dir/ in #((
5104 ./ | .// | /[cC]/* | \
5105 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5106 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5107 /usr/ucb/* ) ;;
5108 *)
5109 # OSF1 and SCO ODT 3.0 have their own names for install.
5110 # Don't use installbsd from OSF since it installs stuff as root
5111 # by default.
5112 for ac_prog in ginstall scoinst install; do
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5115 if test $ac_prog = install &&
5116 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5117 # AIX install. It has an incompatible calling convention.
5118 :
5119 elif test $ac_prog = install &&
5120 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5121 # program-specific install script used by HP pwplus--don't use.
5122 :
5123 else
5124 rm -rf conftest.one conftest.two conftest.dir
5125 echo one > conftest.one
5126 echo two > conftest.two
5127 mkdir conftest.dir
5128 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5129 test -s conftest.one && test -s conftest.two &&
5130 test -s conftest.dir/conftest.one &&
5131 test -s conftest.dir/conftest.two
5132 then
5133 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5134 break 3
5135 fi
5136 fi
5137 fi
5138 done
5139 done
5140 ;;
5141 esac
5142
5143 done
5144 IFS=$as_save_IFS
5145
5146 rm -rf conftest.one conftest.two conftest.dir
5147
5148 fi
5149 if test "${ac_cv_path_install+set}" = set; then
5150 INSTALL=$ac_cv_path_install
5151 else
5152 # As a last resort, use the slow shell script. Don't cache a
5153 # value for INSTALL within a source directory, because that will
5154 # break other packages using the cache if that directory is
5155 # removed, or if the value is a relative name.
5156 INSTALL=$ac_install_sh
5157 fi
5158 fi
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5160 $as_echo "$INSTALL" >&6; }
5161
5162 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5163 # It thinks the first close brace ends the variable substitution.
5164 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5165
5166 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5167
5168 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5169
5170 if test "x$RANLIB" = x; then
5171 if test -n "$ac_tool_prefix"; then
5172 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5173 set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$RANLIB"; then
5180 ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}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 RANLIB=$ac_cv_prog_RANLIB
5200 if test -n "$RANLIB"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5202 $as_echo "$RANLIB" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5206 fi
5207
5208
5209 fi
5210 if test -z "$ac_cv_prog_RANLIB"; then
5211 ac_ct_RANLIB=$RANLIB
5212 # Extract the first word of "ranlib", so it can be a program name with args.
5213 set dummy ranlib; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 if test -n "$ac_ct_RANLIB"; then
5220 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5224 do
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_prog_ac_ct_RANLIB="ranlib"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5232 fi
5233 done
5234 done
5235 IFS=$as_save_IFS
5236
5237 fi
5238 fi
5239 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5240 if test -n "$ac_ct_RANLIB"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5242 $as_echo "$ac_ct_RANLIB" >&6; }
5243 else
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5246 fi
5247
5248 if test "x$ac_ct_RANLIB" = x; then
5249 RANLIB=":"
5250 else
5251 case $cross_compiling:$ac_tool_warned in
5252 yes:)
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255 ac_tool_warned=yes ;;
5256 esac
5257 RANLIB=$ac_ct_RANLIB
5258 fi
5259 else
5260 RANLIB="$ac_cv_prog_RANLIB"
5261 fi
5262
5263 fi
5264
5265 ## Although we're running on an amd64 kernel, we're actually compiling for
5266 ## the x86 architecture. The user should probably have provided an
5267 ## explicit --build to `configure', but if everything else than the kernel
5268 ## is running in i386 mode, we can help them out.
5269 if test "$machine" = "amdx86-64"; then
5270 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5271 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5272
5273 fi
5274
5275 if test "$ac_cv_have_decl_i386" = "yes"; then
5276 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5277 machine=intel386
5278 machfile="m/${machine}.h"
5279 fi
5280 fi
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 $PATH
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 /usr/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 ;;
5350 esac
5351 fi
5352 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5353 if test -n "$INSTALL_INFO"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5355 $as_echo "$INSTALL_INFO" >&6; }
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5359 fi
5360
5361
5362 # Extract the first word of "install-info", so it can be a program name with args.
5363 set dummy install-info; ac_word=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 case $INSTALL_INFO in
5370 [\\/]* | ?:[\\/]*)
5371 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5372 ;;
5373 *)
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in /sbin
5376 do
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5384 fi
5385 done
5386 done
5387 IFS=$as_save_IFS
5388
5389 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5390 ;;
5391 esac
5392 fi
5393 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5394 if test -n "$INSTALL_INFO"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5396 $as_echo "$INSTALL_INFO" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5400 fi
5401
5402
5403 # Extract the first word of "gzip", so it can be a program name with args.
5404 set dummy gzip; ac_word=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 case $GZIP_PROG in
5411 [\\/]* | ?:[\\/]*)
5412 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5413 ;;
5414 *)
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5417 do
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5425 fi
5426 done
5427 done
5428 IFS=$as_save_IFS
5429
5430 ;;
5431 esac
5432 fi
5433 GZIP_PROG=$ac_cv_path_GZIP_PROG
5434 if test -n "$GZIP_PROG"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5436 $as_echo "$GZIP_PROG" >&6; }
5437 else
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5440 fi
5441
5442
5443
5444
5445 ## Need makeinfo >= 4.6 (?) to build the manuals.
5446 # Extract the first word of "makeinfo", so it can be a program name with args.
5447 set dummy makeinfo; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 case $MAKEINFO in
5454 [\\/]* | ?:[\\/]*)
5455 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5456 ;;
5457 *)
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5460 do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5468 fi
5469 done
5470 done
5471 IFS=$as_save_IFS
5472
5473 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5474 ;;
5475 esac
5476 fi
5477 MAKEINFO=$ac_cv_path_MAKEINFO
5478 if test -n "$MAKEINFO"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5480 $as_echo "$MAKEINFO" >&6; }
5481 else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 fi
5485
5486
5487 if test "$MAKEINFO" != "no" && \
5488 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
5489 MAKEINFO=no
5490 fi
5491
5492 ## Makeinfo is unusual. For a released Emacs, the manuals are
5493 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5494 ## therefore in the category of "special tools" not normally required, which
5495 ## configure does not have to check for (eg autoconf itself).
5496 ## In a Bazaar checkout on the other hand, the manuals are not included.
5497 ## So makeinfo is a requirement to build from Bazaar, and configure
5498 ## should test for it as it does for any other build requirement.
5499 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5500 ## with pre-built manuals, from a Bazaar checkout.
5501 if test "$MAKEINFO" = "no"; then
5502 if test "x${with_makeinfo}" = "xno"; then
5503 MAKEINFO=off
5504 elif test ! -e $srcdir/info/emacs; then
5505 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
5506 source tree does not seem to have pre-built manuals in the \`info' directory.
5507 Either install a suitable version of makeinfo, or re-run configure
5508 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5509 fi
5510 fi
5511
5512
5513 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5514 then
5515 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5516 fi
5517
5518 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5519 then
5520 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5521 fi
5522
5523
5524 late_LDFLAGS=$LDFLAGS
5525 if test "$GCC" = yes; then
5526 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5527 else
5528 LDFLAGS="$LDFLAGS -znocombreloc"
5529 fi
5530
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5532 $as_echo_n "checking for -znocombreloc... " >&6; }
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 main(){return 0;}
5536 _ACEOF
5537 if ac_fn_c_try_link "$LINENO"; then :
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5539 $as_echo "yes" >&6; }
5540 else
5541 LDFLAGS=$late_LDFLAGS
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5544 fi
5545 rm -f core conftest.err conftest.$ac_objext \
5546 conftest$ac_exeext conftest.$ac_ext
5547
5548
5549 # The value of CPP is a quoted variable reference, so we need to do this
5550 # to get its actual value...
5551 CPP=`eval "echo $CPP"`
5552
5553
5554 CANNOT_DUMP=no
5555 case "$opsys" in
5556 your-opsys-here)
5557 CANNOT_DUMP=yes
5558
5559 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5560
5561 ;;
5562 esac
5563
5564
5565
5566 UNEXEC_OBJ=unexelf.o
5567 case "$opsys" in
5568 # MSDOS uses unexcoff.o
5569 # MSWindows uses unexw32.o
5570 aix4-2)
5571 UNEXEC_OBJ=unexaix.o
5572 ;;
5573 cygwin)
5574 UNEXEC_OBJ=unexcw.o
5575 ;;
5576 darwin)
5577 UNEXEC_OBJ=unexmacosx.o
5578 ;;
5579 hpux10-20 | hpux11)
5580 UNEXEC_OBJ=unexhp9k800.o
5581 ;;
5582 sol2-10)
5583 # Use the Solaris dldump() function, called from unexsol.c, to dump
5584 # emacs, instead of the generic ELF dump code found in unexelf.c.
5585 # The resulting binary has a complete symbol table, and is better
5586 # for debugging and other observability tools (debuggers, pstack, etc).
5587 #
5588 # If you encounter a problem using dldump(), please consider sending
5589 # a message to the OpenSolaris tools-linking mailing list:
5590 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5591 #
5592 # It is likely that dldump() works with older Solaris too, but this has
5593 # not been tested, so for now this change is for Solaris 10 or newer.
5594 UNEXEC_OBJ=unexsol.o
5595 ;;
5596 esac
5597
5598 LD_SWITCH_SYSTEM=
5599 case "$opsys" in
5600 freebsd)
5601 ## Let `ld' find image libs and similar things in /usr/local/lib.
5602 ## The system compiler, GCC, has apparently been modified to not
5603 ## look there, contrary to what a stock GCC would do.
5604 LD_SWITCH_SYSTEM=-L/usr/local/lib
5605 ;;
5606
5607 gnu-linux)
5608 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5609 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5610 ;;
5611
5612 netbsd)
5613 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5614 ;;
5615
5616 openbsd)
5617 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5618 ## otherwise Emacs dumps core on elf systems.
5619 LD_SWITCH_SYSTEM="-Z"
5620 ;;
5621 esac
5622
5623
5624 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5625
5626 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5627 ## which has not been defined yet. When this was handled with cpp,
5628 ## it was expanded to null when configure sourced the s/*.h file.
5629 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5630 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5631 ## (or somesuch), but because it is supposed to go at the _front_
5632 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5633 ## Compare with the gnu-linux case below, which added to the end
5634 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5635 ## LD_SWITCH_SYSTEM_TEMACS.
5636 case "$opsys" in
5637 netbsd|openbsd)
5638 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5639 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5640 esac
5641
5642
5643 C_SWITCH_MACHINE=
5644 if test "$machine" = "alpha"; then
5645 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5646 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5647
5648 fi
5649
5650 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5651 ## With ELF, make sure that all common symbols get allocated to in the
5652 ## data section. Otherwise, the dump of temacs may miss variables in
5653 ## the shared library that have been initialized. For example, with
5654 ## GNU libc, __malloc_initialized would normally be resolved to the
5655 ## shared library's .bss section, which is fatal.
5656 if test "x$GCC" = "xyes"; then
5657 C_SWITCH_MACHINE="-fno-common"
5658 else
5659 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5660 fi
5661 else
5662 UNEXEC_OBJ=unexalpha.o
5663 fi
5664 fi
5665
5666
5667
5668
5669 C_SWITCH_SYSTEM=
5670 ## Some programs in src produce warnings saying certain subprograms
5671 ## are too complex and need a MAXMEM value greater than 2000 for
5672 ## additional optimization. --nils@exp-math.uni-essen.de
5673 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5674 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5675 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5676 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5677
5678
5679
5680 LIBS_SYSTEM=
5681 case "$opsys" in
5682 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5683 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5684
5685 freebsd) LIBS_SYSTEM="-lutil" ;;
5686
5687 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5688
5689 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5690
5691 ## Motif needs -lgen.
5692 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5693 esac
5694
5695
5696
5697 ### Make sure subsequent tests use flags consistent with the build flags.
5698
5699 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5700 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5701 else
5702 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5703 fi
5704
5705
5706
5707 # Check whether --enable-largefile was given.
5708 if test "${enable_largefile+set}" = set; then :
5709 enableval=$enable_largefile;
5710 fi
5711
5712 if test "$enable_largefile" != no; then
5713
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5715 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5716 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 ac_cv_sys_largefile_CC=no
5720 if test "$GCC" != yes; then
5721 ac_save_CC=$CC
5722 while :; do
5723 # IRIX 6.2 and later do not support large files by default,
5724 # so use the C compiler's -n32 option if that helps.
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 #include <sys/types.h>
5728 /* Check that off_t can represent 2**63 - 1 correctly.
5729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5730 since some C++ compilers masquerading as C compilers
5731 incorrectly reject 9223372036854775807. */
5732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5734 && LARGE_OFF_T % 2147483647 == 1)
5735 ? 1 : -1];
5736 int
5737 main ()
5738 {
5739
5740 ;
5741 return 0;
5742 }
5743 _ACEOF
5744 if ac_fn_c_try_compile "$LINENO"; then :
5745 break
5746 fi
5747 rm -f core conftest.err conftest.$ac_objext
5748 CC="$CC -n32"
5749 if ac_fn_c_try_compile "$LINENO"; then :
5750 ac_cv_sys_largefile_CC=' -n32'; break
5751 fi
5752 rm -f core conftest.err conftest.$ac_objext
5753 break
5754 done
5755 CC=$ac_save_CC
5756 rm -f conftest.$ac_ext
5757 fi
5758 fi
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5760 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5761 if test "$ac_cv_sys_largefile_CC" != no; then
5762 CC=$CC$ac_cv_sys_largefile_CC
5763 fi
5764
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5766 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5767 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 while :; do
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #include <sys/types.h>
5774 /* Check that off_t can represent 2**63 - 1 correctly.
5775 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5776 since some C++ compilers masquerading as C compilers
5777 incorrectly reject 9223372036854775807. */
5778 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5779 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5780 && LARGE_OFF_T % 2147483647 == 1)
5781 ? 1 : -1];
5782 int
5783 main ()
5784 {
5785
5786 ;
5787 return 0;
5788 }
5789 _ACEOF
5790 if ac_fn_c_try_compile "$LINENO"; then :
5791 ac_cv_sys_file_offset_bits=no; break
5792 fi
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 #define _FILE_OFFSET_BITS 64
5797 #include <sys/types.h>
5798 /* Check that off_t can represent 2**63 - 1 correctly.
5799 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5800 since some C++ compilers masquerading as C compilers
5801 incorrectly reject 9223372036854775807. */
5802 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5803 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5804 && LARGE_OFF_T % 2147483647 == 1)
5805 ? 1 : -1];
5806 int
5807 main ()
5808 {
5809
5810 ;
5811 return 0;
5812 }
5813 _ACEOF
5814 if ac_fn_c_try_compile "$LINENO"; then :
5815 ac_cv_sys_file_offset_bits=64; break
5816 fi
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818 ac_cv_sys_file_offset_bits=unknown
5819 break
5820 done
5821 fi
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5823 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5824 case $ac_cv_sys_file_offset_bits in #(
5825 no | unknown) ;;
5826 *)
5827 cat >>confdefs.h <<_ACEOF
5828 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5829 _ACEOF
5830 ;;
5831 esac
5832 rm -rf conftest*
5833 if test $ac_cv_sys_file_offset_bits = unknown; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5835 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5836 if test "${ac_cv_sys_large_files+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 while :; do
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #include <sys/types.h>
5843 /* Check that off_t can represent 2**63 - 1 correctly.
5844 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5845 since some C++ compilers masquerading as C compilers
5846 incorrectly reject 9223372036854775807. */
5847 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5848 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5849 && LARGE_OFF_T % 2147483647 == 1)
5850 ? 1 : -1];
5851 int
5852 main ()
5853 {
5854
5855 ;
5856 return 0;
5857 }
5858 _ACEOF
5859 if ac_fn_c_try_compile "$LINENO"; then :
5860 ac_cv_sys_large_files=no; break
5861 fi
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 #define _LARGE_FILES 1
5866 #include <sys/types.h>
5867 /* Check that off_t can represent 2**63 - 1 correctly.
5868 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5869 since some C++ compilers masquerading as C compilers
5870 incorrectly reject 9223372036854775807. */
5871 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5872 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5873 && LARGE_OFF_T % 2147483647 == 1)
5874 ? 1 : -1];
5875 int
5876 main ()
5877 {
5878
5879 ;
5880 return 0;
5881 }
5882 _ACEOF
5883 if ac_fn_c_try_compile "$LINENO"; then :
5884 ac_cv_sys_large_files=1; break
5885 fi
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 ac_cv_sys_large_files=unknown
5888 break
5889 done
5890 fi
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5892 $as_echo "$ac_cv_sys_large_files" >&6; }
5893 case $ac_cv_sys_large_files in #(
5894 no | unknown) ;;
5895 *)
5896 cat >>confdefs.h <<_ACEOF
5897 #define _LARGE_FILES $ac_cv_sys_large_files
5898 _ACEOF
5899 ;;
5900 esac
5901 rm -rf conftest*
5902 fi
5903 fi
5904
5905
5906
5907 ## If user specified a crt-dir, use that unconditionally.
5908 if test "X$CRT_DIR" = "X"; then
5909
5910 case "$canonical" in
5911 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5912 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5913 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5914 ## For anything else (eg /usr/lib32), it is up the user to specify
5915 ## the location (bug#5655).
5916 ## Test for crtn.o, not just the directory, because sometimes the
5917 ## directory exists but does not have the relevant files (bug#1287).
5918 ## FIXME better to test for binary compatibility somehow.
5919 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5920 ;;
5921
5922 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5923 esac
5924
5925 case "$opsys" in
5926 hpux10-20) CRT_DIR=/lib ;;
5927 esac
5928
5929 ## Default is /usr/lib.
5930 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5931
5932 else
5933
5934 ## Some platforms don't use any of these files, so it is not
5935 ## appropriate to put this test outside the if block.
5936 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5937 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
5938
5939 fi
5940
5941
5942
5943 LIB_MATH=-lm
5944 LIB_STANDARD=
5945 START_FILES=
5946
5947 case $opsys in
5948 cygwin )
5949 LIB_MATH=
5950 START_FILES='pre-crt0.o'
5951 ;;
5952 darwin )
5953 ## Adding -lm confuses the dynamic linker, so omit it.
5954 LIB_MATH=
5955 START_FILES='pre-crt0.o'
5956 ;;
5957 freebsd )
5958 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5959 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5960 ;;
5961 gnu-linux | gnu-kfreebsd )
5962 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5963 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5964 ;;
5965 hpux10-20 | hpux11 )
5966 LIB_STANDARD=-lc
5967 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5968 ;;
5969 netbsd | openbsd )
5970 if test -f $CRT_DIR/crti.o; then
5971 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5972 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5973 else
5974 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5975 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5976 fi
5977 ;;
5978 esac
5979
5980
5981
5982
5983
5984
5985
5986 if test "${with_sound}" != "no"; then
5987 # Sound support for GNU/Linux and the free BSDs.
5988 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5989 do :
5990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5991 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5992 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5993 cat >>confdefs.h <<_ACEOF
5994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5995 _ACEOF
5996 have_sound_header=yes
5997 fi
5998
5999 done
6000
6001 # Emulation library used on NetBSD.
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6003 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6004 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 ac_check_lib_save_LIBS=$LIBS
6008 LIBS="-lossaudio $LIBS"
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011
6012 /* Override any GCC internal prototype to avoid an error.
6013 Use char because int might match the return type of a GCC
6014 builtin and then its argument prototype would still apply. */
6015 #ifdef __cplusplus
6016 extern "C"
6017 #endif
6018 char _oss_ioctl ();
6019 int
6020 main ()
6021 {
6022 return _oss_ioctl ();
6023 ;
6024 return 0;
6025 }
6026 _ACEOF
6027 if ac_fn_c_try_link "$LINENO"; then :
6028 ac_cv_lib_ossaudio__oss_ioctl=yes
6029 else
6030 ac_cv_lib_ossaudio__oss_ioctl=no
6031 fi
6032 rm -f core conftest.err conftest.$ac_objext \
6033 conftest$ac_exeext conftest.$ac_ext
6034 LIBS=$ac_check_lib_save_LIBS
6035 fi
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6037 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6038 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
6039 LIBSOUND=-lossaudio
6040 else
6041 LIBSOUND=
6042 fi
6043
6044
6045
6046 ALSA_REQUIRED=1.0.0
6047 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6048
6049 succeeded=no
6050
6051 # Extract the first word of "pkg-config", so it can be a program name with args.
6052 set dummy pkg-config; ac_word=$2
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 $as_echo_n "checking for $ac_word... " >&6; }
6055 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6056 $as_echo_n "(cached) " >&6
6057 else
6058 case $PKG_CONFIG in
6059 [\\/]* | ?:[\\/]*)
6060 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6061 ;;
6062 *)
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6065 do
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6073 fi
6074 done
6075 done
6076 IFS=$as_save_IFS
6077
6078 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6079 ;;
6080 esac
6081 fi
6082 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6083 if test -n "$PKG_CONFIG"; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6085 $as_echo "$PKG_CONFIG" >&6; }
6086 else
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 $as_echo "no" >&6; }
6089 fi
6090
6091
6092
6093 if test "$PKG_CONFIG" = "no" ; then
6094 HAVE_ALSA=no
6095 else
6096 PKG_CONFIG_MIN_VERSION=0.9.0
6097 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6099 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6100
6101 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6103 $as_echo "yes" >&6; }
6104 succeeded=yes
6105
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6107 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6108 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6110 $as_echo "$ALSA_CFLAGS" >&6; }
6111
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6113 $as_echo_n "checking ALSA_LIBS... " >&6; }
6114 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6116 $as_echo "$ALSA_LIBS" >&6; }
6117 else
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6120 ALSA_CFLAGS=""
6121 ALSA_LIBS=""
6122 ## If we have a custom action on failure, don't print errors, but
6123 ## do set a variable so people can do so.
6124 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6125
6126 fi
6127
6128
6129
6130 else
6131 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6132 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6133 fi
6134 fi
6135
6136 if test $succeeded = yes; then
6137 HAVE_ALSA=yes
6138 else
6139 HAVE_ALSA=no
6140 fi
6141
6142 if test $HAVE_ALSA = yes; then
6143 SAVE_CFLAGS="$CFLAGS"
6144 SAVE_LDFLAGS="$LDFLAGS"
6145 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6146 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6149 #include <asoundlib.h>
6150 int
6151 main ()
6152 {
6153 snd_lib_error_set_handler (0);
6154 ;
6155 return 0;
6156 }
6157 _ACEOF
6158 if ac_fn_c_try_compile "$LINENO"; then :
6159 emacs_alsa_normal=yes
6160 else
6161 emacs_alsa_normal=no
6162 fi
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164 if test "$emacs_alsa_normal" != yes; then
6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166 /* end confdefs.h. */
6167 #include <alsa/asoundlib.h>
6168 int
6169 main ()
6170 {
6171 snd_lib_error_set_handler (0);
6172 ;
6173 return 0;
6174 }
6175 _ACEOF
6176 if ac_fn_c_try_compile "$LINENO"; then :
6177 emacs_alsa_subdir=yes
6178 else
6179 emacs_alsa_subdir=no
6180 fi
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 if test "$emacs_alsa_subdir" != yes; then
6183 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6184 fi
6185 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6186 fi
6187
6188 CFLAGS="$SAVE_CFLAGS"
6189 LDFLAGS="$SAVE_LDFLAGS"
6190 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6191 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6192
6193 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6194
6195 fi
6196
6197 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6198 case "$opsys" in
6199 gnu-linux|freebsd|netbsd)
6200
6201 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6202
6203 ;;
6204 esac
6205 fi
6206
6207
6208 fi
6209
6210 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6211 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6212 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6213 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6214 sys/utsname.h pwd.h utmp.h dirent.h util.h
6215 do :
6216 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6217 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6218 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6219 cat >>confdefs.h <<_ACEOF
6220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6221 _ACEOF
6222
6223 fi
6224
6225 done
6226
6227
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6229 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 #include <sys/personality.h>
6233 int
6234 main ()
6235 {
6236 personality (PER_LINUX32)
6237 ;
6238 return 0;
6239 }
6240 _ACEOF
6241 if ac_fn_c_try_compile "$LINENO"; then :
6242 emacs_cv_personality_linux32=yes
6243 else
6244 emacs_cv_personality_linux32=no
6245 fi
6246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6248 $as_echo "$emacs_cv_personality_linux32" >&6; }
6249
6250 if test $emacs_cv_personality_linux32 = yes; then
6251
6252 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6253
6254 fi
6255
6256 for ac_header in term.h
6257 do :
6258 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6259 if test "x$ac_cv_header_term_h" = x""yes; then :
6260 cat >>confdefs.h <<_ACEOF
6261 #define HAVE_TERM_H 1
6262 _ACEOF
6263
6264 fi
6265
6266 done
6267
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6269 $as_echo_n "checking for ANSI C header files... " >&6; }
6270 if test "${ac_cv_header_stdc+set}" = set; then :
6271 $as_echo_n "(cached) " >&6
6272 else
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6275 #include <stdlib.h>
6276 #include <stdarg.h>
6277 #include <string.h>
6278 #include <float.h>
6279
6280 int
6281 main ()
6282 {
6283
6284 ;
6285 return 0;
6286 }
6287 _ACEOF
6288 if ac_fn_c_try_compile "$LINENO"; then :
6289 ac_cv_header_stdc=yes
6290 else
6291 ac_cv_header_stdc=no
6292 fi
6293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294
6295 if test $ac_cv_header_stdc = yes; then
6296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6299 #include <string.h>
6300
6301 _ACEOF
6302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6303 $EGREP "memchr" >/dev/null 2>&1; then :
6304
6305 else
6306 ac_cv_header_stdc=no
6307 fi
6308 rm -f conftest*
6309
6310 fi
6311
6312 if test $ac_cv_header_stdc = yes; then
6313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6316 #include <stdlib.h>
6317
6318 _ACEOF
6319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6320 $EGREP "free" >/dev/null 2>&1; then :
6321
6322 else
6323 ac_cv_header_stdc=no
6324 fi
6325 rm -f conftest*
6326
6327 fi
6328
6329 if test $ac_cv_header_stdc = yes; then
6330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6331 if test "$cross_compiling" = yes; then :
6332 :
6333 else
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335 /* end confdefs.h. */
6336 #include <ctype.h>
6337 #include <stdlib.h>
6338 #if ((' ' & 0x0FF) == 0x020)
6339 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6340 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6341 #else
6342 # define ISLOWER(c) \
6343 (('a' <= (c) && (c) <= 'i') \
6344 || ('j' <= (c) && (c) <= 'r') \
6345 || ('s' <= (c) && (c) <= 'z'))
6346 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6347 #endif
6348
6349 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6350 int
6351 main ()
6352 {
6353 int i;
6354 for (i = 0; i < 256; i++)
6355 if (XOR (islower (i), ISLOWER (i))
6356 || toupper (i) != TOUPPER (i))
6357 return 2;
6358 return 0;
6359 }
6360 _ACEOF
6361 if ac_fn_c_try_run "$LINENO"; then :
6362
6363 else
6364 ac_cv_header_stdc=no
6365 fi
6366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6367 conftest.$ac_objext conftest.beam conftest.$ac_ext
6368 fi
6369
6370 fi
6371 fi
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6373 $as_echo "$ac_cv_header_stdc" >&6; }
6374 if test $ac_cv_header_stdc = yes; then
6375
6376 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6377
6378 fi
6379
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6381 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6382 if test "${ac_cv_header_time+set}" = set; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387 #include <sys/types.h>
6388 #include <sys/time.h>
6389 #include <time.h>
6390
6391 int
6392 main ()
6393 {
6394 if ((struct tm *) 0)
6395 return 0;
6396 ;
6397 return 0;
6398 }
6399 _ACEOF
6400 if ac_fn_c_try_compile "$LINENO"; then :
6401 ac_cv_header_time=yes
6402 else
6403 ac_cv_header_time=no
6404 fi
6405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 fi
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6408 $as_echo "$ac_cv_header_time" >&6; }
6409 if test $ac_cv_header_time = yes; then
6410
6411 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6412
6413 fi
6414
6415 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6416 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6417 ac_have_decl=1
6418 else
6419 ac_have_decl=0
6420 fi
6421
6422 cat >>confdefs.h <<_ACEOF
6423 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6424 _ACEOF
6425
6426 if test $ac_cv_have_decl_sys_siglist != yes; then
6427 # For Tru64, at least:
6428 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6429 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6430 ac_have_decl=1
6431 else
6432 ac_have_decl=0
6433 fi
6434
6435 cat >>confdefs.h <<_ACEOF
6436 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6437 _ACEOF
6438
6439 if test $ac_cv_have_decl___sys_siglist = yes; then
6440
6441 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6442
6443 fi
6444 fi
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6446 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6447 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452 #include <sys/types.h>
6453 #include <sys/wait.h>
6454 #ifndef WEXITSTATUS
6455 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6456 #endif
6457 #ifndef WIFEXITED
6458 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6459 #endif
6460
6461 int
6462 main ()
6463 {
6464 int s;
6465 wait (&s);
6466 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6467 ;
6468 return 0;
6469 }
6470 _ACEOF
6471 if ac_fn_c_try_compile "$LINENO"; then :
6472 ac_cv_header_sys_wait_h=yes
6473 else
6474 ac_cv_header_sys_wait_h=no
6475 fi
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477 fi
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6479 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6480 if test $ac_cv_header_sys_wait_h = yes; then
6481
6482 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6483
6484 fi
6485
6486
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6488 $as_echo_n "checking for struct utimbuf... " >&6; }
6489 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493 /* end confdefs.h. */
6494 #ifdef TIME_WITH_SYS_TIME
6495 #include <sys/time.h>
6496 #include <time.h>
6497 #else
6498 #ifdef HAVE_SYS_TIME_H
6499 #include <sys/time.h>
6500 #else
6501 #include <time.h>
6502 #endif
6503 #endif
6504 #ifdef HAVE_UTIME_H
6505 #include <utime.h>
6506 #endif
6507 int
6508 main ()
6509 {
6510 static struct utimbuf x; x.actime = x.modtime;
6511 ;
6512 return 0;
6513 }
6514 _ACEOF
6515 if ac_fn_c_try_compile "$LINENO"; then :
6516 emacs_cv_struct_utimbuf=yes
6517 else
6518 emacs_cv_struct_utimbuf=no
6519 fi
6520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521 fi
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6523 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6524 if test $emacs_cv_struct_utimbuf = yes; then
6525
6526 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6527
6528 fi
6529
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6531 $as_echo_n "checking return type of signal handlers... " >&6; }
6532 if test "${ac_cv_type_signal+set}" = set; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6537 #include <sys/types.h>
6538 #include <signal.h>
6539
6540 int
6541 main ()
6542 {
6543 return *(signal (0, 0)) (0) == 1;
6544 ;
6545 return 0;
6546 }
6547 _ACEOF
6548 if ac_fn_c_try_compile "$LINENO"; then :
6549 ac_cv_type_signal=int
6550 else
6551 ac_cv_type_signal=void
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 fi
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6556 $as_echo "$ac_cv_type_signal" >&6; }
6557
6558 cat >>confdefs.h <<_ACEOF
6559 #define RETSIGTYPE $ac_cv_type_signal
6560 _ACEOF
6561
6562
6563
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6565 $as_echo_n "checking for speed_t... " >&6; }
6566 if test "${emacs_cv_speed_t+set}" = set; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6571 #include <termios.h>
6572 int
6573 main ()
6574 {
6575 speed_t x = 1;
6576 ;
6577 return 0;
6578 }
6579 _ACEOF
6580 if ac_fn_c_try_compile "$LINENO"; then :
6581 emacs_cv_speed_t=yes
6582 else
6583 emacs_cv_speed_t=no
6584 fi
6585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586 fi
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6588 $as_echo "$emacs_cv_speed_t" >&6; }
6589 if test $emacs_cv_speed_t = yes; then
6590
6591 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6592
6593 fi
6594
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6596 $as_echo_n "checking for struct timeval... " >&6; }
6597 if test "${emacs_cv_struct_timeval+set}" = set; then :
6598 $as_echo_n "(cached) " >&6
6599 else
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6602 #ifdef TIME_WITH_SYS_TIME
6603 #include <sys/time.h>
6604 #include <time.h>
6605 #else
6606 #ifdef HAVE_SYS_TIME_H
6607 #include <sys/time.h>
6608 #else
6609 #include <time.h>
6610 #endif
6611 #endif
6612 int
6613 main ()
6614 {
6615 static struct timeval x; x.tv_sec = x.tv_usec;
6616 ;
6617 return 0;
6618 }
6619 _ACEOF
6620 if ac_fn_c_try_compile "$LINENO"; then :
6621 emacs_cv_struct_timeval=yes
6622 else
6623 emacs_cv_struct_timeval=no
6624 fi
6625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626 fi
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6628 $as_echo "$emacs_cv_struct_timeval" >&6; }
6629 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6630 if test $emacs_cv_struct_timeval = yes; then
6631
6632 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6633
6634 fi
6635
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6637 $as_echo_n "checking for struct exception... " >&6; }
6638 if test "${emacs_cv_struct_exception+set}" = set; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6643 #include <math.h>
6644 int
6645 main ()
6646 {
6647 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6648 ;
6649 return 0;
6650 }
6651 _ACEOF
6652 if ac_fn_c_try_compile "$LINENO"; then :
6653 emacs_cv_struct_exception=yes
6654 else
6655 emacs_cv_struct_exception=no
6656 fi
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658 fi
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6660 $as_echo "$emacs_cv_struct_exception" >&6; }
6661 HAVE_EXCEPTION=$emacs_cv_struct_exception
6662 if test $emacs_cv_struct_exception != yes; then
6663
6664 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6665
6666 fi
6667
6668 for ac_header in sys/socket.h
6669 do :
6670 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6671 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6672 cat >>confdefs.h <<_ACEOF
6673 #define HAVE_SYS_SOCKET_H 1
6674 _ACEOF
6675
6676 fi
6677
6678 done
6679
6680 for ac_header in net/if.h
6681 do :
6682 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6683 #if HAVE_SYS_SOCKET_H
6684 #include <sys/socket.h>
6685 #endif
6686 "
6687 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6688 cat >>confdefs.h <<_ACEOF
6689 #define HAVE_NET_IF_H 1
6690 _ACEOF
6691
6692 fi
6693
6694 done
6695
6696
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6698 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6699 if test "${ac_cv_struct_tm+set}" = set; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 #include <sys/types.h>
6705 #include <time.h>
6706
6707 int
6708 main ()
6709 {
6710 struct tm tm;
6711 int *p = &tm.tm_sec;
6712 return !p;
6713 ;
6714 return 0;
6715 }
6716 _ACEOF
6717 if ac_fn_c_try_compile "$LINENO"; then :
6718 ac_cv_struct_tm=time.h
6719 else
6720 ac_cv_struct_tm=sys/time.h
6721 fi
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723 fi
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6725 $as_echo "$ac_cv_struct_tm" >&6; }
6726 if test $ac_cv_struct_tm = sys/time.h; then
6727
6728 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6729
6730 fi
6731
6732 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6733 #include <$ac_cv_struct_tm>
6734
6735 "
6736 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6737
6738 cat >>confdefs.h <<_ACEOF
6739 #define HAVE_STRUCT_TM_TM_ZONE 1
6740 _ACEOF
6741
6742
6743 fi
6744
6745 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6746
6747 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6748
6749 else
6750 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6751 "
6752 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6753 ac_have_decl=1
6754 else
6755 ac_have_decl=0
6756 fi
6757
6758 cat >>confdefs.h <<_ACEOF
6759 #define HAVE_DECL_TZNAME $ac_have_decl
6760 _ACEOF
6761
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6763 $as_echo_n "checking for tzname... " >&6; }
6764 if test "${ac_cv_var_tzname+set}" = set; then :
6765 $as_echo_n "(cached) " >&6
6766 else
6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h. */
6769 #include <time.h>
6770 #if !HAVE_DECL_TZNAME
6771 extern char *tzname[];
6772 #endif
6773
6774 int
6775 main ()
6776 {
6777 return tzname[0][0];
6778 ;
6779 return 0;
6780 }
6781 _ACEOF
6782 if ac_fn_c_try_link "$LINENO"; then :
6783 ac_cv_var_tzname=yes
6784 else
6785 ac_cv_var_tzname=no
6786 fi
6787 rm -f core conftest.err conftest.$ac_objext \
6788 conftest$ac_exeext conftest.$ac_ext
6789 fi
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6791 $as_echo "$ac_cv_var_tzname" >&6; }
6792 if test $ac_cv_var_tzname = yes; then
6793
6794 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6795
6796 fi
6797 fi
6798
6799 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6800 "
6801 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6802
6803 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6804
6805 fi
6806
6807 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6808 #if HAVE_SYS_SOCKET_H
6809 #include <sys/socket.h>
6810 #endif
6811 #if HAVE_NET_IF_H
6812 #include <net/if.h>
6813 #endif
6814 "
6815 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6816
6817 cat >>confdefs.h <<_ACEOF
6818 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6819 _ACEOF
6820
6821
6822 fi
6823 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6824 #if HAVE_SYS_SOCKET_H
6825 #include <sys/socket.h>
6826 #endif
6827 #if HAVE_NET_IF_H
6828 #include <net/if.h>
6829 #endif
6830 "
6831 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6832
6833 cat >>confdefs.h <<_ACEOF
6834 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6835 _ACEOF
6836
6837
6838 fi
6839 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6840 #if HAVE_SYS_SOCKET_H
6841 #include <sys/socket.h>
6842 #endif
6843 #if HAVE_NET_IF_H
6844 #include <net/if.h>
6845 #endif
6846 "
6847 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6848
6849 cat >>confdefs.h <<_ACEOF
6850 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6851 _ACEOF
6852
6853
6854 fi
6855 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6856 #if HAVE_SYS_SOCKET_H
6857 #include <sys/socket.h>
6858 #endif
6859 #if HAVE_NET_IF_H
6860 #include <net/if.h>
6861 #endif
6862 "
6863 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6864
6865 cat >>confdefs.h <<_ACEOF
6866 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6867 _ACEOF
6868
6869
6870 fi
6871 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6872 #if HAVE_SYS_SOCKET_H
6873 #include <sys/socket.h>
6874 #endif
6875 #if HAVE_NET_IF_H
6876 #include <net/if.h>
6877 #endif
6878 "
6879 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6880
6881 cat >>confdefs.h <<_ACEOF
6882 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6883 _ACEOF
6884
6885
6886 fi
6887
6888
6889
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6891 $as_echo_n "checking for function prototypes... " >&6; }
6892 if test "$ac_cv_prog_cc_c89" != no; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6894 $as_echo "yes" >&6; }
6895
6896 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6897
6898
6899 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6900
6901 else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6904 fi
6905
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6907 $as_echo_n "checking for working volatile... " >&6; }
6908 if test "${ac_cv_c_volatile+set}" = set; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6913
6914 int
6915 main ()
6916 {
6917
6918 volatile int x;
6919 int * volatile y = (int *) 0;
6920 return !x && !y;
6921 ;
6922 return 0;
6923 }
6924 _ACEOF
6925 if ac_fn_c_try_compile "$LINENO"; then :
6926 ac_cv_c_volatile=yes
6927 else
6928 ac_cv_c_volatile=no
6929 fi
6930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6931 fi
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6933 $as_echo "$ac_cv_c_volatile" >&6; }
6934 if test $ac_cv_c_volatile = no; then
6935
6936 $as_echo "#define volatile /**/" >>confdefs.h
6937
6938 fi
6939
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6941 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6942 if test "${ac_cv_c_const+set}" = set; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6947
6948 int
6949 main ()
6950 {
6951 /* FIXME: Include the comments suggested by Paul. */
6952 #ifndef __cplusplus
6953 /* Ultrix mips cc rejects this. */
6954 typedef int charset[2];
6955 const charset cs;
6956 /* SunOS 4.1.1 cc rejects this. */
6957 char const *const *pcpcc;
6958 char **ppc;
6959 /* NEC SVR4.0.2 mips cc rejects this. */
6960 struct point {int x, y;};
6961 static struct point const zero = {0,0};
6962 /* AIX XL C 1.02.0.0 rejects this.
6963 It does not let you subtract one const X* pointer from another in
6964 an arm of an if-expression whose if-part is not a constant
6965 expression */
6966 const char *g = "string";
6967 pcpcc = &g + (g ? g-g : 0);
6968 /* HPUX 7.0 cc rejects these. */
6969 ++pcpcc;
6970 ppc = (char**) pcpcc;
6971 pcpcc = (char const *const *) ppc;
6972 { /* SCO 3.2v4 cc rejects this. */
6973 char *t;
6974 char const *s = 0 ? (char *) 0 : (char const *) 0;
6975
6976 *t++ = 0;
6977 if (s) return 0;
6978 }
6979 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6980 int x[] = {25, 17};
6981 const int *foo = &x[0];
6982 ++foo;
6983 }
6984 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6985 typedef const int *iptr;
6986 iptr p = 0;
6987 ++p;
6988 }
6989 { /* AIX XL C 1.02.0.0 rejects this saying
6990 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6991 struct s { int j; const int *ap[3]; };
6992 struct s *b; b->j = 5;
6993 }
6994 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6995 const int foo = 10;
6996 if (!foo) return 0;
6997 }
6998 return !cs[0] && !zero.x;
6999 #endif
7000
7001 ;
7002 return 0;
7003 }
7004 _ACEOF
7005 if ac_fn_c_try_compile "$LINENO"; then :
7006 ac_cv_c_const=yes
7007 else
7008 ac_cv_c_const=no
7009 fi
7010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7011 fi
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7013 $as_echo "$ac_cv_c_const" >&6; }
7014 if test $ac_cv_c_const = no; then
7015
7016 $as_echo "#define const /**/" >>confdefs.h
7017
7018 fi
7019
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7021 $as_echo_n "checking for void * support... " >&6; }
7022 if test "${emacs_cv_void_star+set}" = set; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026 /* end confdefs.h. */
7027
7028 int
7029 main ()
7030 {
7031 void * foo;
7032 ;
7033 return 0;
7034 }
7035 _ACEOF
7036 if ac_fn_c_try_compile "$LINENO"; then :
7037 emacs_cv_void_star=yes
7038 else
7039 emacs_cv_void_star=no
7040 fi
7041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7042 fi
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7044 $as_echo "$emacs_cv_void_star" >&6; }
7045 if test $emacs_cv_void_star = yes; then
7046 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7047
7048 else
7049 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7050
7051 fi
7052
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7054 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7055 if test "${ac_cv_c_bigendian+set}" = set; then :
7056 $as_echo_n "(cached) " >&6
7057 else
7058 ac_cv_c_bigendian=unknown
7059 # See if we're dealing with a universal compiler.
7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7062 #ifndef __APPLE_CC__
7063 not a universal capable compiler
7064 #endif
7065 typedef int dummy;
7066
7067 _ACEOF
7068 if ac_fn_c_try_compile "$LINENO"; then :
7069
7070 # Check for potential -arch flags. It is not universal unless
7071 # there are at least two -arch flags with different values.
7072 ac_arch=
7073 ac_prev=
7074 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7075 if test -n "$ac_prev"; then
7076 case $ac_word in
7077 i?86 | x86_64 | ppc | ppc64)
7078 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7079 ac_arch=$ac_word
7080 else
7081 ac_cv_c_bigendian=universal
7082 break
7083 fi
7084 ;;
7085 esac
7086 ac_prev=
7087 elif test "x$ac_word" = "x-arch"; then
7088 ac_prev=arch
7089 fi
7090 done
7091 fi
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093 if test $ac_cv_c_bigendian = unknown; then
7094 # See if sys/param.h defines the BYTE_ORDER macro.
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097 #include <sys/types.h>
7098 #include <sys/param.h>
7099
7100 int
7101 main ()
7102 {
7103 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7104 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7105 && LITTLE_ENDIAN)
7106 bogus endian macros
7107 #endif
7108
7109 ;
7110 return 0;
7111 }
7112 _ACEOF
7113 if ac_fn_c_try_compile "$LINENO"; then :
7114 # It does; now see whether it defined to BIG_ENDIAN or not.
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117 #include <sys/types.h>
7118 #include <sys/param.h>
7119
7120 int
7121 main ()
7122 {
7123 #if BYTE_ORDER != BIG_ENDIAN
7124 not big endian
7125 #endif
7126
7127 ;
7128 return 0;
7129 }
7130 _ACEOF
7131 if ac_fn_c_try_compile "$LINENO"; then :
7132 ac_cv_c_bigendian=yes
7133 else
7134 ac_cv_c_bigendian=no
7135 fi
7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137 fi
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7139 fi
7140 if test $ac_cv_c_bigendian = unknown; then
7141 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h. */
7144 #include <limits.h>
7145
7146 int
7147 main ()
7148 {
7149 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7150 bogus endian macros
7151 #endif
7152
7153 ;
7154 return 0;
7155 }
7156 _ACEOF
7157 if ac_fn_c_try_compile "$LINENO"; then :
7158 # It does; now see whether it defined to _BIG_ENDIAN or not.
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7161 #include <limits.h>
7162
7163 int
7164 main ()
7165 {
7166 #ifndef _BIG_ENDIAN
7167 not big endian
7168 #endif
7169
7170 ;
7171 return 0;
7172 }
7173 _ACEOF
7174 if ac_fn_c_try_compile "$LINENO"; then :
7175 ac_cv_c_bigendian=yes
7176 else
7177 ac_cv_c_bigendian=no
7178 fi
7179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7180 fi
7181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7182 fi
7183 if test $ac_cv_c_bigendian = unknown; then
7184 # Compile a test program.
7185 if test "$cross_compiling" = yes; then :
7186 # Try to guess by grepping values from an object file.
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7189 short int ascii_mm[] =
7190 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7191 short int ascii_ii[] =
7192 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7193 int use_ascii (int i) {
7194 return ascii_mm[i] + ascii_ii[i];
7195 }
7196 short int ebcdic_ii[] =
7197 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7198 short int ebcdic_mm[] =
7199 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7200 int use_ebcdic (int i) {
7201 return ebcdic_mm[i] + ebcdic_ii[i];
7202 }
7203 extern int foo;
7204
7205 int
7206 main ()
7207 {
7208 return use_ascii (foo) == use_ebcdic (foo);
7209 ;
7210 return 0;
7211 }
7212 _ACEOF
7213 if ac_fn_c_try_compile "$LINENO"; then :
7214 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7215 ac_cv_c_bigendian=yes
7216 fi
7217 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7218 if test "$ac_cv_c_bigendian" = unknown; then
7219 ac_cv_c_bigendian=no
7220 else
7221 # finding both strings is unlikely to happen, but who knows?
7222 ac_cv_c_bigendian=unknown
7223 fi
7224 fi
7225 fi
7226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227 else
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 $ac_includes_default
7231 int
7232 main ()
7233 {
7234
7235 /* Are we little or big endian? From Harbison&Steele. */
7236 union
7237 {
7238 long int l;
7239 char c[sizeof (long int)];
7240 } u;
7241 u.l = 1;
7242 return u.c[sizeof (long int) - 1] == 1;
7243
7244 ;
7245 return 0;
7246 }
7247 _ACEOF
7248 if ac_fn_c_try_run "$LINENO"; then :
7249 ac_cv_c_bigendian=no
7250 else
7251 ac_cv_c_bigendian=yes
7252 fi
7253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7254 conftest.$ac_objext conftest.beam conftest.$ac_ext
7255 fi
7256
7257 fi
7258 fi
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7260 $as_echo "$ac_cv_c_bigendian" >&6; }
7261 case $ac_cv_c_bigendian in #(
7262 yes)
7263 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7264 ;; #(
7265 no)
7266 ;; #(
7267 universal)
7268
7269 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7270
7271 ;; #(
7272 *)
7273 as_fn_error $? "unknown endianness
7274 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7275 esac
7276
7277
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7279 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7280 set x ${MAKE-make}
7281 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7282 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 cat >conftest.make <<\_ACEOF
7286 SHELL = /bin/sh
7287 all:
7288 @echo '@@@%%%=$(MAKE)=@@@%%%'
7289 _ACEOF
7290 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7291 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7292 *@@@%%%=?*=@@@%%%*)
7293 eval ac_cv_prog_make_${ac_make}_set=yes;;
7294 *)
7295 eval ac_cv_prog_make_${ac_make}_set=no;;
7296 esac
7297 rm -f conftest.make
7298 fi
7299 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7301 $as_echo "yes" >&6; }
7302 SET_MAKE=
7303 else
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7306 SET_MAKE="MAKE=${MAKE-make}"
7307 fi
7308
7309
7310 DEPFLAGS=
7311 MKDEPDIR=":"
7312 deps_frag=deps.mk
7313 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7315 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7316 HAVE_GNU_MAKE=no
7317 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7318 if test "x$testval" != x; then
7319 HAVE_GNU_MAKE=yes
7320 else
7321 ac_enable_autodepend=no
7322 fi
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7324 $as_echo "$HAVE_GNU_MAKE" >&6; }
7325 if test $HAVE_GNU_MAKE = yes; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7327 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7328 SAVE_CFLAGS="$CFLAGS"
7329 CFLAGS="$CFLAGS -MMD -MF deps.d"
7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331 /* end confdefs.h. */
7332
7333 int
7334 main ()
7335 {
7336
7337 ;
7338 return 0;
7339 }
7340 _ACEOF
7341 if ac_fn_c_try_compile "$LINENO"; then :
7342
7343 else
7344 ac_enable_autodepend=no
7345 fi
7346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7347 CFLAGS="$SAVE_CFLAGS"
7348 test -f deps.d || ac_enable_autodepend=no
7349 rm -rf deps.d
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7351 $as_echo "$ac_enable_autodepend" >&6; }
7352 fi
7353 if test $ac_enable_autodepend = yes; then
7354 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7355 ## In parallel builds, another make might create depdir between
7356 ## the first test and mkdir, so stick another test on the end.
7357 ## Or use mkinstalldirs? mkdir -p is not portable.
7358 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7359 deps_frag=autodeps.mk
7360 fi
7361 fi
7362 deps_frag=$srcdir/src/$deps_frag
7363
7364
7365
7366
7367
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7369 $as_echo_n "checking for long file names... " >&6; }
7370 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7371 $as_echo_n "(cached) " >&6
7372 else
7373 ac_cv_sys_long_file_names=yes
7374 # Test for long file names in all the places we know might matter:
7375 # . the current directory, where building will happen
7376 # $prefix/lib where we will be installing things
7377 # $exec_prefix/lib likewise
7378 # $TMPDIR if set, where it might want to write temporary files
7379 # /tmp where it might want to write temporary files
7380 # /var/tmp likewise
7381 # /usr/tmp likewise
7382 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7383 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7384 # in the usual case where exec_prefix is '${prefix}'.
7385 case $ac_dir in #(
7386 . | /* | ?:[\\/]*) ;; #(
7387 *) continue;;
7388 esac
7389 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7390 ac_xdir=$ac_dir/cf$$
7391 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7392 ac_tf1=$ac_xdir/conftest9012345
7393 ac_tf2=$ac_xdir/conftest9012346
7394 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7395 ac_cv_sys_long_file_names=no
7396 rm -f -r "$ac_xdir" 2>/dev/null
7397 test $ac_cv_sys_long_file_names = no && break
7398 done
7399 fi
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7401 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7402 if test $ac_cv_sys_long_file_names = yes; then
7403
7404 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7405
7406 fi
7407
7408
7409 #### Choose a window system.
7410
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7412 $as_echo_n "checking for X... " >&6; }
7413
7414
7415 # Check whether --with-x was given.
7416 if test "${with_x+set}" = set; then :
7417 withval=$with_x;
7418 fi
7419
7420 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7421 if test "x$with_x" = xno; then
7422 # The user explicitly disabled X.
7423 have_x=disabled
7424 else
7425 case $x_includes,$x_libraries in #(
7426 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7427 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7428 $as_echo_n "(cached) " >&6
7429 else
7430 # One or both of the vars are not set, and there is no cached value.
7431 ac_x_includes=no ac_x_libraries=no
7432 rm -f -r conftest.dir
7433 if mkdir conftest.dir; then
7434 cd conftest.dir
7435 cat >Imakefile <<'_ACEOF'
7436 incroot:
7437 @echo incroot='${INCROOT}'
7438 usrlibdir:
7439 @echo usrlibdir='${USRLIBDIR}'
7440 libdir:
7441 @echo libdir='${LIBDIR}'
7442 _ACEOF
7443 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7444 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7445 for ac_var in incroot usrlibdir libdir; do
7446 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7447 done
7448 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7449 for ac_extension in a so sl dylib la dll; do
7450 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7451 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7452 ac_im_usrlibdir=$ac_im_libdir; break
7453 fi
7454 done
7455 # Screen out bogus values from the imake configuration. They are
7456 # bogus both because they are the default anyway, and because
7457 # using them would break gcc on systems where it needs fixed includes.
7458 case $ac_im_incroot in
7459 /usr/include) ac_x_includes= ;;
7460 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7461 esac
7462 case $ac_im_usrlibdir in
7463 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7464 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7465 esac
7466 fi
7467 cd ..
7468 rm -f -r conftest.dir
7469 fi
7470
7471 # Standard set of common directories for X headers.
7472 # Check X11 before X11Rn because it is often a symlink to the current release.
7473 ac_x_header_dirs='
7474 /usr/X11/include
7475 /usr/X11R7/include
7476 /usr/X11R6/include
7477 /usr/X11R5/include
7478 /usr/X11R4/include
7479
7480 /usr/include/X11
7481 /usr/include/X11R7
7482 /usr/include/X11R6
7483 /usr/include/X11R5
7484 /usr/include/X11R4
7485
7486 /usr/local/X11/include
7487 /usr/local/X11R7/include
7488 /usr/local/X11R6/include
7489 /usr/local/X11R5/include
7490 /usr/local/X11R4/include
7491
7492 /usr/local/include/X11
7493 /usr/local/include/X11R7
7494 /usr/local/include/X11R6
7495 /usr/local/include/X11R5
7496 /usr/local/include/X11R4
7497
7498 /usr/X386/include
7499 /usr/x386/include
7500 /usr/XFree86/include/X11
7501
7502 /usr/include
7503 /usr/local/include
7504 /usr/unsupported/include
7505 /usr/athena/include
7506 /usr/local/x11r5/include
7507 /usr/lpp/Xamples/include
7508
7509 /usr/openwin/include
7510 /usr/openwin/share/include'
7511
7512 if test "$ac_x_includes" = no; then
7513 # Guess where to find include files, by looking for Xlib.h.
7514 # First, try using that file with no special directory specified.
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7517 #include <X11/Xlib.h>
7518 _ACEOF
7519 if ac_fn_c_try_cpp "$LINENO"; then :
7520 # We can compile using X headers with no special include directory.
7521 ac_x_includes=
7522 else
7523 for ac_dir in $ac_x_header_dirs; do
7524 if test -r "$ac_dir/X11/Xlib.h"; then
7525 ac_x_includes=$ac_dir
7526 break
7527 fi
7528 done
7529 fi
7530 rm -f conftest.err conftest.$ac_ext
7531 fi # $ac_x_includes = no
7532
7533 if test "$ac_x_libraries" = no; then
7534 # Check for the libraries.
7535 # See if we find them without any special options.
7536 # Don't add to $LIBS permanently.
7537 ac_save_LIBS=$LIBS
7538 LIBS="-lX11 $LIBS"
7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7541 #include <X11/Xlib.h>
7542 int
7543 main ()
7544 {
7545 XrmInitialize ()
7546 ;
7547 return 0;
7548 }
7549 _ACEOF
7550 if ac_fn_c_try_link "$LINENO"; then :
7551 LIBS=$ac_save_LIBS
7552 # We can link X programs with no special library path.
7553 ac_x_libraries=
7554 else
7555 LIBS=$ac_save_LIBS
7556 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7557 do
7558 # Don't even attempt the hair of trying to link an X program!
7559 for ac_extension in a so sl dylib la dll; do
7560 if test -r "$ac_dir/libX11.$ac_extension"; then
7561 ac_x_libraries=$ac_dir
7562 break 2
7563 fi
7564 done
7565 done
7566 fi
7567 rm -f core conftest.err conftest.$ac_objext \
7568 conftest$ac_exeext conftest.$ac_ext
7569 fi # $ac_x_libraries = no
7570
7571 case $ac_x_includes,$ac_x_libraries in #(
7572 no,* | *,no | *\'*)
7573 # Didn't find X, or a directory has "'" in its name.
7574 ac_cv_have_x="have_x=no";; #(
7575 *)
7576 # Record where we found X for the cache.
7577 ac_cv_have_x="have_x=yes\
7578 ac_x_includes='$ac_x_includes'\
7579 ac_x_libraries='$ac_x_libraries'"
7580 esac
7581 fi
7582 ;; #(
7583 *) have_x=yes;;
7584 esac
7585 eval "$ac_cv_have_x"
7586 fi # $with_x != no
7587
7588 if test "$have_x" != yes; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7590 $as_echo "$have_x" >&6; }
7591 no_x=yes
7592 else
7593 # If each of the values was on the command line, it overrides each guess.
7594 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7595 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7596 # Update the cache value to reflect the command line values.
7597 ac_cv_have_x="have_x=yes\
7598 ac_x_includes='$x_includes'\
7599 ac_x_libraries='$x_libraries'"
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7601 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7602 fi
7603
7604 if test "$no_x" = yes; then
7605 window_system=none
7606 else
7607 window_system=x11
7608 fi
7609
7610 ## Workaround for bug in autoconf <= 2.62.
7611 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7612 ## No need to do anything special for these standard directories.
7613 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7614
7615 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7616
7617 fi
7618
7619 LD_SWITCH_X_SITE_AUX=
7620 LD_SWITCH_X_SITE_AUX_RPATH=
7621 if test "${x_libraries}" != NONE; then
7622 if test -n "${x_libraries}"; then
7623 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7624 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7625 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7626 fi
7627 x_default_search_path=""
7628 x_search_path=${x_libraries}
7629 if test -z "${x_search_path}"; then
7630 x_search_path=/usr/lib
7631 fi
7632 for x_library in `echo ${x_search_path}: | \
7633 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7634 x_search_path="\
7635 ${x_library}/X11/%L/%T/%N%C%S:\
7636 ${x_library}/X11/%l/%T/%N%C%S:\
7637 ${x_library}/X11/%T/%N%C%S:\
7638 ${x_library}/X11/%L/%T/%N%S:\
7639 ${x_library}/X11/%l/%T/%N%S:\
7640 ${x_library}/X11/%T/%N%S"
7641 if test x"${x_default_search_path}" = x; then
7642 x_default_search_path=${x_search_path}
7643 else
7644 x_default_search_path="${x_search_path}:${x_default_search_path}"
7645 fi
7646 done
7647 fi
7648
7649
7650
7651 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7652 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7653 fi
7654
7655 if test x"${x_includes}" = x; then
7656 bitmapdir=/usr/include/X11/bitmaps
7657 else
7658 # accumulate include directories that have X11 bitmap subdirectories
7659 bmd_acc="dummyval"
7660 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7661 if test -d "${bmd}/X11/bitmaps"; then
7662 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7663 fi
7664 if test -d "${bmd}/bitmaps"; then
7665 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7666 fi
7667 done
7668 if test ${bmd_acc} != "dummyval"; then
7669 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7670 fi
7671 fi
7672
7673 HAVE_NS=no
7674 NS_IMPL_COCOA=no
7675 NS_IMPL_GNUSTEP=no
7676 tmp_CPPFLAGS="$CPPFLAGS"
7677 tmp_CFLAGS="$CFLAGS"
7678 CPPFLAGS="$CPPFLAGS -x objective-c"
7679 CFLAGS="$CFLAGS -x objective-c"
7680 TEMACS_LDFLAGS2="\${LDFLAGS} \${PROFILING_LDFLAGS}"
7681 if test "${with_ns}" != no; then
7682 if test "${opsys}" = darwin; then
7683 NS_IMPL_COCOA=yes
7684 ns_appdir=`pwd`/nextstep/Emacs.app/
7685 ns_appbindir=${ns_appdir}Contents/MacOS/
7686 ns_appresdir=${ns_appdir}Contents/Resources
7687 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7688 elif test -f $GNUSTEP_CONFIG_FILE; then
7689 NS_IMPL_GNUSTEP=yes
7690 ns_appdir=`pwd`/nextstep/Emacs.app/
7691 ns_appbindir=${ns_appdir}
7692 ns_appresdir=${ns_appdir}Resources
7693 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7694 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7695 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7696 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7697 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7698 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7699 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7700 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7701 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7702 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7703 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7704 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7705 LIB_STANDARD=
7706 START_FILES=
7707 TEMACS_LDFLAGS2=
7708 fi
7709 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7710 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7711 HAVE_NS=yes
7712 else
7713 as_fn_error $? "\`--with-ns' was specified, but the include
7714 files are missing or cannot be compiled." "$LINENO" 5
7715 fi
7716
7717
7718 NS_HAVE_NSINTEGER=yes
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721 #include <Foundation/NSObjCRuntime.h>
7722 int
7723 main ()
7724 {
7725 NSInteger i;
7726 ;
7727 return 0;
7728 }
7729 _ACEOF
7730 if ac_fn_c_try_compile "$LINENO"; then :
7731 ns_have_nsinteger=yes
7732 else
7733 ns_have_nsinteger=no
7734 fi
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736 if test $ns_have_nsinteger = no; then
7737 NS_HAVE_NSINTEGER=no
7738 fi
7739 fi
7740
7741
7742 ns_frag=/dev/null
7743 NS_OBJ=
7744 NS_SUPPORT=
7745 if test "${HAVE_NS}" = yes; then
7746 window_system=nextstep
7747 with_xft=no
7748 # set up packaging dirs
7749 exec_prefix=${ns_appbindir}
7750 libexecdir=${ns_appbindir}/libexec
7751 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7752 prefix=${ns_appresdir}
7753 fi
7754 ns_frag=$srcdir/src/ns.mk
7755 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7756 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7757 fi
7758 CFLAGS="$tmp_CFLAGS"
7759 CPPFLAGS="$tmp_CPPFLAGS"
7760
7761
7762
7763
7764
7765 case "${window_system}" in
7766 x11 )
7767 HAVE_X_WINDOWS=yes
7768 HAVE_X11=yes
7769 case "${with_x_toolkit}" in
7770 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7771 motif ) USE_X_TOOLKIT=MOTIF ;;
7772 gtk ) with_gtk=yes
7773 USE_X_TOOLKIT=none ;;
7774 gtk3 ) with_gtk3=yes
7775 USE_X_TOOLKIT=none ;;
7776 no ) USE_X_TOOLKIT=none ;;
7777 * ) USE_X_TOOLKIT=maybe ;;
7778 esac
7779 ;;
7780 nextstep | none )
7781 HAVE_X_WINDOWS=no
7782 HAVE_X11=no
7783 USE_X_TOOLKIT=none
7784 ;;
7785 esac
7786
7787 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7788 # Extract the first word of "X", so it can be a program name with args.
7789 set dummy X; ac_word=$2
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791 $as_echo_n "checking for $ac_word... " >&6; }
7792 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7793 $as_echo_n "(cached) " >&6
7794 else
7795 if test -n "$HAVE_XSERVER"; then
7796 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7797 else
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7800 do
7801 IFS=$as_save_IFS
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7805 ac_cv_prog_HAVE_XSERVER="true"
7806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 break 2
7808 fi
7809 done
7810 done
7811 IFS=$as_save_IFS
7812
7813 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7814 fi
7815 fi
7816 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7817 if test -n "$HAVE_XSERVER"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7819 $as_echo "$HAVE_XSERVER" >&6; }
7820 else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7823 fi
7824
7825
7826 if test "$HAVE_XSERVER" = true ||
7827 test -n "$DISPLAY" ||
7828 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7829 as_fn_error $? "You seem to be running X, but no X development libraries
7830 were found. You should install the relevant development files for X
7831 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7832 sure you have development files for image handling, i.e.
7833 tiff, gif, jpeg, png and xpm.
7834 If you are sure you want Emacs compiled without X window support, pass
7835 --without-x
7836 to configure." "$LINENO" 5
7837 fi
7838 fi
7839
7840 ### If we're using X11, we should use the X menu package.
7841 HAVE_MENUS=no
7842 case ${HAVE_X11} in
7843 yes ) HAVE_MENUS=yes ;;
7844 esac
7845
7846 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7847 # Assume not, until told otherwise.
7848 GNU_MALLOC=yes
7849 doug_lea_malloc=yes
7850 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7851 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7852
7853 else
7854 doug_lea_malloc=no
7855 fi
7856
7857 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7858 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7859
7860 else
7861 doug_lea_malloc=no
7862 fi
7863
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7865 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7866 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7867 $as_echo_n "(cached) " >&6
7868 else
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7871 extern void (* __after_morecore_hook)();
7872 int
7873 main ()
7874 {
7875 __after_morecore_hook = 0
7876 ;
7877 return 0;
7878 }
7879 _ACEOF
7880 if ac_fn_c_try_link "$LINENO"; then :
7881 emacs_cv_var___after_morecore_hook=yes
7882 else
7883 emacs_cv_var___after_morecore_hook=no
7884 fi
7885 rm -f core conftest.err conftest.$ac_objext \
7886 conftest$ac_exeext conftest.$ac_ext
7887 fi
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7889 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7890 if test $emacs_cv_var___after_morecore_hook = no; then
7891 doug_lea_malloc=no
7892 fi
7893
7894
7895 system_malloc=no
7896 case "$opsys" in
7897 ## darwin ld insists on the use of malloc routines in the System framework.
7898 darwin|sol2-10) system_malloc=yes ;;
7899 esac
7900
7901 if test "${system_malloc}" = "yes"; then
7902
7903 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7904
7905 GNU_MALLOC=no
7906 GNU_MALLOC_reason="
7907 (The GNU allocators don't work with this system configuration.)"
7908 GMALLOC_OBJ=
7909 VMLIMIT_OBJ=
7910 else
7911 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7912 VMLIMIT_OBJ=vm-limit.o
7913 fi
7914
7915
7916
7917 if test "$doug_lea_malloc" = "yes" ; then
7918 if test "$GNU_MALLOC" = yes ; then
7919 GNU_MALLOC_reason="
7920 (Using Doug Lea's new malloc from the GNU C Library.)"
7921 fi
7922
7923 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7924
7925
7926 ## Use mmap directly for allocating larger buffers.
7927 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7928 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7929 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7930 case "$opsys" in
7931 gnu*) REL_ALLOC=no ;;
7932 esac
7933 fi
7934
7935 if test x"${REL_ALLOC}" = x; then
7936 REL_ALLOC=${GNU_MALLOC}
7937 fi
7938
7939 use_mmap_for_buffers=no
7940 case "$opsys" in
7941 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7942 esac
7943
7944
7945
7946
7947 for ac_header in $ac_header_list
7948 do :
7949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7950 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7951 "
7952 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7953 cat >>confdefs.h <<_ACEOF
7954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7955 _ACEOF
7956
7957 fi
7958
7959 done
7960
7961
7962
7963
7964
7965
7966
7967
7968 for ac_func in getpagesize
7969 do :
7970 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7971 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7972 cat >>confdefs.h <<_ACEOF
7973 #define HAVE_GETPAGESIZE 1
7974 _ACEOF
7975
7976 fi
7977 done
7978
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7980 $as_echo_n "checking for working mmap... " >&6; }
7981 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 if test "$cross_compiling" = yes; then :
7985 ac_cv_func_mmap_fixed_mapped=no
7986 else
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7989 $ac_includes_default
7990 /* malloc might have been renamed as rpl_malloc. */
7991 #undef malloc
7992
7993 /* Thanks to Mike Haertel and Jim Avera for this test.
7994 Here is a matrix of mmap possibilities:
7995 mmap private not fixed
7996 mmap private fixed at somewhere currently unmapped
7997 mmap private fixed at somewhere already mapped
7998 mmap shared not fixed
7999 mmap shared fixed at somewhere currently unmapped
8000 mmap shared fixed at somewhere already mapped
8001 For private mappings, we should verify that changes cannot be read()
8002 back from the file, nor mmap's back from the file at a different
8003 address. (There have been systems where private was not correctly
8004 implemented like the infamous i386 svr4.0, and systems where the
8005 VM page cache was not coherent with the file system buffer cache
8006 like early versions of FreeBSD and possibly contemporary NetBSD.)
8007 For shared mappings, we should conversely verify that changes get
8008 propagated back to all the places they're supposed to be.
8009
8010 Grep wants private fixed already mapped.
8011 The main things grep needs to know about mmap are:
8012 * does it exist and is it safe to write into the mmap'd area
8013 * how to use it (BSD variants) */
8014
8015 #include <fcntl.h>
8016 #include <sys/mman.h>
8017
8018 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8019 char *malloc ();
8020 #endif
8021
8022 /* This mess was copied from the GNU getpagesize.h. */
8023 #ifndef HAVE_GETPAGESIZE
8024 # ifdef _SC_PAGESIZE
8025 # define getpagesize() sysconf(_SC_PAGESIZE)
8026 # else /* no _SC_PAGESIZE */
8027 # ifdef HAVE_SYS_PARAM_H
8028 # include <sys/param.h>
8029 # ifdef EXEC_PAGESIZE
8030 # define getpagesize() EXEC_PAGESIZE
8031 # else /* no EXEC_PAGESIZE */
8032 # ifdef NBPG
8033 # define getpagesize() NBPG * CLSIZE
8034 # ifndef CLSIZE
8035 # define CLSIZE 1
8036 # endif /* no CLSIZE */
8037 # else /* no NBPG */
8038 # ifdef NBPC
8039 # define getpagesize() NBPC
8040 # else /* no NBPC */
8041 # ifdef PAGESIZE
8042 # define getpagesize() PAGESIZE
8043 # endif /* PAGESIZE */
8044 # endif /* no NBPC */
8045 # endif /* no NBPG */
8046 # endif /* no EXEC_PAGESIZE */
8047 # else /* no HAVE_SYS_PARAM_H */
8048 # define getpagesize() 8192 /* punt totally */
8049 # endif /* no HAVE_SYS_PARAM_H */
8050 # endif /* no _SC_PAGESIZE */
8051
8052 #endif /* no HAVE_GETPAGESIZE */
8053
8054 int
8055 main ()
8056 {
8057 char *data, *data2, *data3;
8058 const char *cdata2;
8059 int i, pagesize;
8060 int fd, fd2;
8061
8062 pagesize = getpagesize ();
8063
8064 /* First, make a file with some known garbage in it. */
8065 data = (char *) malloc (pagesize);
8066 if (!data)
8067 return 1;
8068 for (i = 0; i < pagesize; ++i)
8069 *(data + i) = rand ();
8070 umask (0);
8071 fd = creat ("conftest.mmap", 0600);
8072 if (fd < 0)
8073 return 2;
8074 if (write (fd, data, pagesize) != pagesize)
8075 return 3;
8076 close (fd);
8077
8078 /* Next, check that the tail of a page is zero-filled. File must have
8079 non-zero length, otherwise we risk SIGBUS for entire page. */
8080 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8081 if (fd2 < 0)
8082 return 4;
8083 cdata2 = "";
8084 if (write (fd2, cdata2, 1) != 1)
8085 return 5;
8086 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8087 if (data2 == MAP_FAILED)
8088 return 6;
8089 for (i = 0; i < pagesize; ++i)
8090 if (*(data2 + i))
8091 return 7;
8092 close (fd2);
8093 if (munmap (data2, pagesize))
8094 return 8;
8095
8096 /* Next, try to mmap the file at a fixed address which already has
8097 something else allocated at it. If we can, also make sure that
8098 we see the same garbage. */
8099 fd = open ("conftest.mmap", O_RDWR);
8100 if (fd < 0)
8101 return 9;
8102 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8103 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8104 return 10;
8105 for (i = 0; i < pagesize; ++i)
8106 if (*(data + i) != *(data2 + i))
8107 return 11;
8108
8109 /* Finally, make sure that changes to the mapped area do not
8110 percolate back to the file as seen by read(). (This is a bug on
8111 some variants of i386 svr4.0.) */
8112 for (i = 0; i < pagesize; ++i)
8113 *(data2 + i) = *(data2 + i) + 1;
8114 data3 = (char *) malloc (pagesize);
8115 if (!data3)
8116 return 12;
8117 if (read (fd, data3, pagesize) != pagesize)
8118 return 13;
8119 for (i = 0; i < pagesize; ++i)
8120 if (*(data + i) != *(data3 + i))
8121 return 14;
8122 close (fd);
8123 return 0;
8124 }
8125 _ACEOF
8126 if ac_fn_c_try_run "$LINENO"; then :
8127 ac_cv_func_mmap_fixed_mapped=yes
8128 else
8129 ac_cv_func_mmap_fixed_mapped=no
8130 fi
8131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8132 conftest.$ac_objext conftest.beam conftest.$ac_ext
8133 fi
8134
8135 fi
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8137 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8138 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8139
8140 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8141
8142 fi
8143 rm -f conftest.mmap conftest.txt
8144
8145 if test $use_mmap_for_buffers = yes; then
8146
8147 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8148
8149 REL_ALLOC=no
8150 fi
8151
8152 LIBS="$LIBS_SYSTEM $LIBS"
8153
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8155 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8156 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 ac_check_lib_save_LIBS=$LIBS
8160 LIBS="-ldnet $LIBS"
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163
8164 /* Override any GCC internal prototype to avoid an error.
8165 Use char because int might match the return type of a GCC
8166 builtin and then its argument prototype would still apply. */
8167 #ifdef __cplusplus
8168 extern "C"
8169 #endif
8170 char dnet_ntoa ();
8171 int
8172 main ()
8173 {
8174 return dnet_ntoa ();
8175 ;
8176 return 0;
8177 }
8178 _ACEOF
8179 if ac_fn_c_try_link "$LINENO"; then :
8180 ac_cv_lib_dnet_dnet_ntoa=yes
8181 else
8182 ac_cv_lib_dnet_dnet_ntoa=no
8183 fi
8184 rm -f core conftest.err conftest.$ac_objext \
8185 conftest$ac_exeext conftest.$ac_ext
8186 LIBS=$ac_check_lib_save_LIBS
8187 fi
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8189 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8190 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
8191 cat >>confdefs.h <<_ACEOF
8192 #define HAVE_LIBDNET 1
8193 _ACEOF
8194
8195 LIBS="-ldnet $LIBS"
8196
8197 fi
8198
8199
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8201 $as_echo_n "checking for main in -lXbsd... " >&6; }
8202 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 ac_check_lib_save_LIBS=$LIBS
8206 LIBS="-lXbsd $LIBS"
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209
8210
8211 int
8212 main ()
8213 {
8214 return main ();
8215 ;
8216 return 0;
8217 }
8218 _ACEOF
8219 if ac_fn_c_try_link "$LINENO"; then :
8220 ac_cv_lib_Xbsd_main=yes
8221 else
8222 ac_cv_lib_Xbsd_main=no
8223 fi
8224 rm -f core conftest.err conftest.$ac_objext \
8225 conftest$ac_exeext conftest.$ac_ext
8226 LIBS=$ac_check_lib_save_LIBS
8227 fi
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8229 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8230 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
8231 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8232 fi
8233
8234
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8236 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8237 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8240 ac_check_lib_save_LIBS=$LIBS
8241 LIBS="-lpthreads $LIBS"
8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h. */
8244
8245 /* Override any GCC internal prototype to avoid an error.
8246 Use char because int might match the return type of a GCC
8247 builtin and then its argument prototype would still apply. */
8248 #ifdef __cplusplus
8249 extern "C"
8250 #endif
8251 char cma_open ();
8252 int
8253 main ()
8254 {
8255 return cma_open ();
8256 ;
8257 return 0;
8258 }
8259 _ACEOF
8260 if ac_fn_c_try_link "$LINENO"; then :
8261 ac_cv_lib_pthreads_cma_open=yes
8262 else
8263 ac_cv_lib_pthreads_cma_open=no
8264 fi
8265 rm -f core conftest.err conftest.$ac_objext \
8266 conftest$ac_exeext conftest.$ac_ext
8267 LIBS=$ac_check_lib_save_LIBS
8268 fi
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8270 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8271 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
8272 cat >>confdefs.h <<_ACEOF
8273 #define HAVE_LIBPTHREADS 1
8274 _ACEOF
8275
8276 LIBS="-lpthreads $LIBS"
8277
8278 fi
8279
8280
8281 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8282 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8283 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8284 ## added to LIBS in configure would never contain the pthreads part,
8285 ## but the value used in Makefiles might. FIXME?
8286 ##
8287 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8288 ## be harmless on older versions of X where it happens to exist.
8289 test "$opsys" = "aix4-2" && \
8290 test $ac_cv_lib_pthreads_cma_open = yes && \
8291 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8292
8293
8294 case ${host_os} in
8295 aix*)
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8297 $as_echo_n "checking for -bbigtoc option... " >&6; }
8298 if test "${gdb_cv_bigtoc+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301
8302 case $GCC in
8303 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8304 *) gdb_cv_bigtoc=-bbigtoc ;;
8305 esac
8306
8307 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h. */
8310
8311 int
8312 main ()
8313 {
8314 int i;
8315 ;
8316 return 0;
8317 }
8318 _ACEOF
8319 if ac_fn_c_try_link "$LINENO"; then :
8320
8321 else
8322 gdb_cv_bigtoc=
8323 fi
8324 rm -f core conftest.err conftest.$ac_objext \
8325 conftest$ac_exeext conftest.$ac_ext
8326
8327 fi
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8329 $as_echo "$gdb_cv_bigtoc" >&6; }
8330 ;;
8331 esac
8332
8333 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8334 # used for the tests that follow. We set them back to REAL_CFLAGS and
8335 # REAL_CPPFLAGS later on.
8336
8337 REAL_CFLAGS="$CFLAGS"
8338 REAL_CPPFLAGS="$CPPFLAGS"
8339
8340 if test "${HAVE_X11}" = "yes"; then
8341 DEFS="$C_SWITCH_X_SITE $DEFS"
8342 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8343 LIBS="-lX11 $LIBS"
8344 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8345 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8346
8347 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8348 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8349 # but it's more convenient here to set LD_RUN_PATH
8350 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8351 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8352 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8353 export LD_RUN_PATH
8354 fi
8355
8356 if test "${opsys}" = "gnu-linux"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8358 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h. */
8361
8362 int
8363 main ()
8364 {
8365 XOpenDisplay ("foo");
8366 ;
8367 return 0;
8368 }
8369 _ACEOF
8370 if ac_fn_c_try_link "$LINENO"; then :
8371 xlinux_first_failure=no
8372 else
8373 xlinux_first_failure=yes
8374 fi
8375 rm -f core conftest.err conftest.$ac_objext \
8376 conftest$ac_exeext conftest.$ac_ext
8377 if test "${xlinux_first_failure}" = "yes"; then
8378 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8379 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8380 OLD_CPPFLAGS="$CPPFLAGS"
8381 OLD_LIBS="$LIBS"
8382 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8383 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8384 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8385 LIBS="$LIBS -b i486-linuxaout"
8386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387 /* end confdefs.h. */
8388
8389 int
8390 main ()
8391 {
8392 XOpenDisplay ("foo");
8393 ;
8394 return 0;
8395 }
8396 _ACEOF
8397 if ac_fn_c_try_link "$LINENO"; then :
8398 xlinux_second_failure=no
8399 else
8400 xlinux_second_failure=yes
8401 fi
8402 rm -f core conftest.err conftest.$ac_objext \
8403 conftest$ac_exeext conftest.$ac_ext
8404 if test "${xlinux_second_failure}" = "yes"; then
8405 # If we get the same failure with -b, there is no use adding -b.
8406 # So take it out. This plays safe.
8407 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8408 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8409 CPPFLAGS="$OLD_CPPFLAGS"
8410 LIBS="$OLD_LIBS"
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8413 else
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8415 $as_echo "yes" >&6; }
8416 fi
8417 else
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8420 fi
8421 fi
8422
8423 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8424 # header files included from there.
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8426 $as_echo_n "checking for Xkb... " >&6; }
8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h. */
8429 #include <X11/Xlib.h>
8430 #include <X11/XKBlib.h>
8431 int
8432 main ()
8433 {
8434 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8435 ;
8436 return 0;
8437 }
8438 _ACEOF
8439 if ac_fn_c_try_link "$LINENO"; then :
8440 emacs_xkb=yes
8441 else
8442 emacs_xkb=no
8443 fi
8444 rm -f core conftest.err conftest.$ac_objext \
8445 conftest$ac_exeext conftest.$ac_ext
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8447 $as_echo "$emacs_xkb" >&6; }
8448 if test $emacs_xkb = yes; then
8449
8450 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8451
8452 fi
8453
8454 for ac_func in XrmSetDatabase XScreenResourceString \
8455 XScreenNumberOfScreen XSetWMProtocols
8456 do :
8457 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8458 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8459 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8460 cat >>confdefs.h <<_ACEOF
8461 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8462 _ACEOF
8463
8464 fi
8465 done
8466
8467 fi
8468
8469 if test "${window_system}" = "x11"; then
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8471 $as_echo_n "checking X11 version 6... " >&6; }
8472 if test "${emacs_cv_x11_version_6+set}" = set; then :
8473 $as_echo_n "(cached) " >&6
8474 else
8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476 /* end confdefs.h. */
8477 #include <X11/Xlib.h>
8478 int
8479 main ()
8480 {
8481 #if XlibSpecificationRelease < 6
8482 fail;
8483 #endif
8484
8485 ;
8486 return 0;
8487 }
8488 _ACEOF
8489 if ac_fn_c_try_link "$LINENO"; then :
8490 emacs_cv_x11_version_6=yes
8491 else
8492 emacs_cv_x11_version_6=no
8493 fi
8494 rm -f core conftest.err conftest.$ac_objext \
8495 conftest$ac_exeext conftest.$ac_ext
8496 fi
8497
8498 if test $emacs_cv_x11_version_6 = yes; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8500 $as_echo "6 or newer" >&6; }
8501
8502 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8503
8504
8505 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8506
8507 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8508 ## XIM support.
8509 case "$opsys" in
8510 sol2-*) : ;;
8511 *)
8512 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8513
8514 ;;
8515 esac
8516 else
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8518 $as_echo "before 6" >&6; }
8519 fi
8520 fi
8521
8522
8523 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8524 HAVE_RSVG=no
8525 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8526 if test "${with_rsvg}" != "no"; then
8527 RSVG_REQUIRED=2.11.0
8528 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8529
8530
8531 succeeded=no
8532
8533 # Extract the first word of "pkg-config", so it can be a program name with args.
8534 set dummy pkg-config; ac_word=$2
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8536 $as_echo_n "checking for $ac_word... " >&6; }
8537 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 case $PKG_CONFIG in
8541 [\\/]* | ?:[\\/]*)
8542 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8543 ;;
8544 *)
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 for as_dir in $PATH
8547 do
8548 IFS=$as_save_IFS
8549 test -z "$as_dir" && as_dir=.
8550 for ac_exec_ext in '' $ac_executable_extensions; do
8551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8552 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8554 break 2
8555 fi
8556 done
8557 done
8558 IFS=$as_save_IFS
8559
8560 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8561 ;;
8562 esac
8563 fi
8564 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8565 if test -n "$PKG_CONFIG"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8567 $as_echo "$PKG_CONFIG" >&6; }
8568 else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8571 fi
8572
8573
8574
8575 if test "$PKG_CONFIG" = "no" ; then
8576 :
8577 else
8578 PKG_CONFIG_MIN_VERSION=0.9.0
8579 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8581 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8582
8583 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8585 $as_echo "yes" >&6; }
8586 succeeded=yes
8587
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8589 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8590 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8592 $as_echo "$RSVG_CFLAGS" >&6; }
8593
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8595 $as_echo_n "checking RSVG_LIBS... " >&6; }
8596 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8598 $as_echo "$RSVG_LIBS" >&6; }
8599 else
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601 $as_echo "no" >&6; }
8602 RSVG_CFLAGS=""
8603 RSVG_LIBS=""
8604 ## If we have a custom action on failure, don't print errors, but
8605 ## do set a variable so people can do so.
8606 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8607
8608 fi
8609
8610
8611
8612 else
8613 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8614 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8615 fi
8616 fi
8617
8618 if test $succeeded = yes; then
8619 HAVE_RSVG=yes
8620 else
8621 :
8622 fi
8623
8624
8625
8626
8627 if test $HAVE_RSVG = yes; then
8628
8629 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8630
8631 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8632 LIBS="$RSVG_LIBS $LIBS"
8633 fi
8634 fi
8635 fi
8636
8637 HAVE_IMAGEMAGICK=no
8638 if test "${with_imagemagick}" != "no"; then
8639 IMAGEMAGICK_MODULE="Wand"
8640
8641 succeeded=no
8642
8643 # Extract the first word of "pkg-config", so it can be a program name with args.
8644 set dummy pkg-config; ac_word=$2
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646 $as_echo_n "checking for $ac_word... " >&6; }
8647 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
8649 else
8650 case $PKG_CONFIG in
8651 [\\/]* | ?:[\\/]*)
8652 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8653 ;;
8654 *)
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 for as_dir in $PATH
8657 do
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8662 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 break 2
8665 fi
8666 done
8667 done
8668 IFS=$as_save_IFS
8669
8670 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8671 ;;
8672 esac
8673 fi
8674 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8675 if test -n "$PKG_CONFIG"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8677 $as_echo "$PKG_CONFIG" >&6; }
8678 else
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8681 fi
8682
8683
8684
8685 if test "$PKG_CONFIG" = "no" ; then
8686 :
8687 else
8688 PKG_CONFIG_MIN_VERSION=0.9.0
8689 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8691 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8692
8693 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8695 $as_echo "yes" >&6; }
8696 succeeded=yes
8697
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8699 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8700 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8702 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8703
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8705 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8706 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8708 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8709 else
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711 $as_echo "no" >&6; }
8712 IMAGEMAGICK_CFLAGS=""
8713 IMAGEMAGICK_LIBS=""
8714 ## If we have a custom action on failure, don't print errors, but
8715 ## do set a variable so people can do so.
8716 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8717
8718 fi
8719
8720
8721
8722 else
8723 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8724 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8725 fi
8726 fi
8727
8728 if test $succeeded = yes; then
8729 HAVE_IMAGEMAGICK=yes
8730 else
8731 :
8732 fi
8733
8734
8735
8736
8737 if test $HAVE_IMAGEMAGICK = yes; then
8738
8739 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8740
8741 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
8742 LIBS="$IMAGEMAGICK_LIBS $LIBS"
8743 for ac_func in MagickExportImagePixels
8744 do :
8745 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8746 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
8747 cat >>confdefs.h <<_ACEOF
8748 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8749 _ACEOF
8750
8751 fi
8752 done
8753
8754 fi
8755 fi
8756
8757
8758 HAVE_GTK=no
8759 if test "${with_gtk3}" = "yes"; then
8760 GLIB_REQUIRED=2.6
8761 GTK_REQUIRED=2.90
8762 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8763
8764
8765 succeeded=no
8766
8767 # Extract the first word of "pkg-config", so it can be a program name with args.
8768 set dummy pkg-config; ac_word=$2
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8770 $as_echo_n "checking for $ac_word... " >&6; }
8771 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8772 $as_echo_n "(cached) " >&6
8773 else
8774 case $PKG_CONFIG in
8775 [\\/]* | ?:[\\/]*)
8776 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8777 ;;
8778 *)
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780 for as_dir in $PATH
8781 do
8782 IFS=$as_save_IFS
8783 test -z "$as_dir" && as_dir=.
8784 for ac_exec_ext in '' $ac_executable_extensions; do
8785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8786 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8788 break 2
8789 fi
8790 done
8791 done
8792 IFS=$as_save_IFS
8793
8794 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8795 ;;
8796 esac
8797 fi
8798 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8799 if test -n "$PKG_CONFIG"; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8801 $as_echo "$PKG_CONFIG" >&6; }
8802 else
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804 $as_echo "no" >&6; }
8805 fi
8806
8807
8808
8809 if test "$PKG_CONFIG" = "no" ; then
8810 pkg_check_gtk=no
8811 else
8812 PKG_CONFIG_MIN_VERSION=0.9.0
8813 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8815 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8816
8817 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8819 $as_echo "yes" >&6; }
8820 succeeded=yes
8821
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8823 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8824 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8826 $as_echo "$GTK_CFLAGS" >&6; }
8827
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8829 $as_echo_n "checking GTK_LIBS... " >&6; }
8830 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8832 $as_echo "$GTK_LIBS" >&6; }
8833 else
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8836 GTK_CFLAGS=""
8837 GTK_LIBS=""
8838 ## If we have a custom action on failure, don't print errors, but
8839 ## do set a variable so people can do so.
8840 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8841
8842 fi
8843
8844
8845
8846 else
8847 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8848 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8849 fi
8850 fi
8851
8852 if test $succeeded = yes; then
8853 pkg_check_gtk=yes
8854 else
8855 pkg_check_gtk=no
8856 fi
8857
8858 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8859 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8860 fi
8861 fi
8862
8863 if test "$pkg_check_gtk" != "yes"; then
8864 HAVE_GTK=no
8865 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8866 GLIB_REQUIRED=2.6
8867 GTK_REQUIRED=2.6
8868 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8869
8870
8871 succeeded=no
8872
8873 # Extract the first word of "pkg-config", so it can be a program name with args.
8874 set dummy pkg-config; ac_word=$2
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8876 $as_echo_n "checking for $ac_word... " >&6; }
8877 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8878 $as_echo_n "(cached) " >&6
8879 else
8880 case $PKG_CONFIG in
8881 [\\/]* | ?:[\\/]*)
8882 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8883 ;;
8884 *)
8885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886 for as_dir in $PATH
8887 do
8888 IFS=$as_save_IFS
8889 test -z "$as_dir" && as_dir=.
8890 for ac_exec_ext in '' $ac_executable_extensions; do
8891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8892 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8894 break 2
8895 fi
8896 done
8897 done
8898 IFS=$as_save_IFS
8899
8900 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8901 ;;
8902 esac
8903 fi
8904 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8905 if test -n "$PKG_CONFIG"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8907 $as_echo "$PKG_CONFIG" >&6; }
8908 else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8911 fi
8912
8913
8914
8915 if test "$PKG_CONFIG" = "no" ; then
8916 pkg_check_gtk=no
8917 else
8918 PKG_CONFIG_MIN_VERSION=0.9.0
8919 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8921 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8922
8923 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8925 $as_echo "yes" >&6; }
8926 succeeded=yes
8927
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8929 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8930 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8932 $as_echo "$GTK_CFLAGS" >&6; }
8933
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8935 $as_echo_n "checking GTK_LIBS... " >&6; }
8936 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8938 $as_echo "$GTK_LIBS" >&6; }
8939 else
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8941 $as_echo "no" >&6; }
8942 GTK_CFLAGS=""
8943 GTK_LIBS=""
8944 ## If we have a custom action on failure, don't print errors, but
8945 ## do set a variable so people can do so.
8946 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8947
8948 fi
8949
8950
8951
8952 else
8953 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8954 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8955 fi
8956 fi
8957
8958 if test $succeeded = yes; then
8959 pkg_check_gtk=yes
8960 else
8961 pkg_check_gtk=no
8962 fi
8963
8964 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8965 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8966 fi
8967 fi
8968 fi
8969
8970 GTK_OBJ=
8971 if test x"$pkg_check_gtk" = xyes; then
8972
8973
8974
8975 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8976 CFLAGS="$CFLAGS $GTK_CFLAGS"
8977 LIBS="$GTK_LIBS $LIBS"
8978 GTK_COMPILES=no
8979 for ac_func in gtk_main
8980 do :
8981 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8982 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8983 cat >>confdefs.h <<_ACEOF
8984 #define HAVE_GTK_MAIN 1
8985 _ACEOF
8986 GTK_COMPILES=yes
8987 fi
8988 done
8989
8990 if test "${GTK_COMPILES}" != "yes"; then
8991 if test "$USE_X_TOOLKIT" != "maybe"; then
8992 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8993 fi
8994 else
8995 HAVE_GTK=yes
8996
8997 $as_echo "#define USE_GTK 1" >>confdefs.h
8998
8999 GTK_OBJ=gtkutil.o
9000 USE_X_TOOLKIT=none
9001 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
9002 :
9003 else
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
9005 closing open displays. This is no problem if you just use
9006 one display, but if you use more than one and close one of them
9007 Emacs may crash." >&5
9008 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
9009 closing open displays. This is no problem if you just use
9010 one display, but if you use more than one and close one of them
9011 Emacs may crash." >&2;}
9012 sleep 3
9013 fi
9014 fi
9015
9016 fi
9017
9018
9019
9020 if test "${HAVE_GTK}" = "yes"; then
9021
9022 if test "$with_toolkit_scroll_bars" != no; then
9023 with_toolkit_scroll_bars=yes
9024 fi
9025
9026 HAVE_GTK_FILE_SELECTION=no
9027 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9028 #include <gtk/gtk.h>
9029 "
9030 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
9031 HAVE_GTK_FILE_SELECTION=yes
9032 else
9033 HAVE_GTK_FILE_SELECTION=no
9034 fi
9035
9036 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9037 for ac_func in gtk_file_selection_new
9038 do :
9039 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9040 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
9041 cat >>confdefs.h <<_ACEOF
9042 #define HAVE_GTK_FILE_SELECTION_NEW 1
9043 _ACEOF
9044
9045 fi
9046 done
9047
9048 fi
9049
9050 HAVE_GTK_AND_PTHREAD=no
9051 for ac_header in pthread.h
9052 do :
9053 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9054 if test "x$ac_cv_header_pthread_h" = x""yes; then :
9055 cat >>confdefs.h <<_ACEOF
9056 #define HAVE_PTHREAD_H 1
9057 _ACEOF
9058
9059 fi
9060
9061 done
9062
9063 if test "$ac_cv_header_pthread_h"; then
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9065 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9066 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 ac_check_lib_save_LIBS=$LIBS
9070 LIBS="-lpthread $LIBS"
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9073
9074 /* Override any GCC internal prototype to avoid an error.
9075 Use char because int might match the return type of a GCC
9076 builtin and then its argument prototype would still apply. */
9077 #ifdef __cplusplus
9078 extern "C"
9079 #endif
9080 char pthread_self ();
9081 int
9082 main ()
9083 {
9084 return pthread_self ();
9085 ;
9086 return 0;
9087 }
9088 _ACEOF
9089 if ac_fn_c_try_link "$LINENO"; then :
9090 ac_cv_lib_pthread_pthread_self=yes
9091 else
9092 ac_cv_lib_pthread_pthread_self=no
9093 fi
9094 rm -f core conftest.err conftest.$ac_objext \
9095 conftest$ac_exeext conftest.$ac_ext
9096 LIBS=$ac_check_lib_save_LIBS
9097 fi
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9099 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9100 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
9101 HAVE_GTK_AND_PTHREAD=yes
9102 fi
9103
9104 fi
9105 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9106 case "${canonical}" in
9107 *-hpux*) ;;
9108 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
9109 esac
9110
9111 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9112
9113 fi
9114
9115 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
9116 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9117 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9118 gtk_orientable_set_orientation
9119 do :
9120 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9121 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9122 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9123 cat >>confdefs.h <<_ACEOF
9124 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9125 _ACEOF
9126
9127 fi
9128 done
9129
9130
9131 fi
9132
9133 HAVE_DBUS=no
9134 DBUS_OBJ=
9135 if test "${with_dbus}" = "yes"; then
9136
9137 succeeded=no
9138
9139 # Extract the first word of "pkg-config", so it can be a program name with args.
9140 set dummy pkg-config; ac_word=$2
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9142 $as_echo_n "checking for $ac_word... " >&6; }
9143 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9144 $as_echo_n "(cached) " >&6
9145 else
9146 case $PKG_CONFIG in
9147 [\\/]* | ?:[\\/]*)
9148 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9149 ;;
9150 *)
9151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152 for as_dir in $PATH
9153 do
9154 IFS=$as_save_IFS
9155 test -z "$as_dir" && as_dir=.
9156 for ac_exec_ext in '' $ac_executable_extensions; do
9157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9158 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9160 break 2
9161 fi
9162 done
9163 done
9164 IFS=$as_save_IFS
9165
9166 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9167 ;;
9168 esac
9169 fi
9170 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9171 if test -n "$PKG_CONFIG"; then
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9173 $as_echo "$PKG_CONFIG" >&6; }
9174 else
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9176 $as_echo "no" >&6; }
9177 fi
9178
9179
9180
9181 if test "$PKG_CONFIG" = "no" ; then
9182 HAVE_DBUS=no
9183 else
9184 PKG_CONFIG_MIN_VERSION=0.9.0
9185 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9187 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9188
9189 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9191 $as_echo "yes" >&6; }
9192 succeeded=yes
9193
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9195 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9196 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9198 $as_echo "$DBUS_CFLAGS" >&6; }
9199
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9201 $as_echo_n "checking DBUS_LIBS... " >&6; }
9202 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9204 $as_echo "$DBUS_LIBS" >&6; }
9205 else
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207 $as_echo "no" >&6; }
9208 DBUS_CFLAGS=""
9209 DBUS_LIBS=""
9210 ## If we have a custom action on failure, don't print errors, but
9211 ## do set a variable so people can do so.
9212 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9213
9214 fi
9215
9216
9217
9218 else
9219 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9220 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9221 fi
9222 fi
9223
9224 if test $succeeded = yes; then
9225 HAVE_DBUS=yes
9226 else
9227 HAVE_DBUS=no
9228 fi
9229
9230 if test "$HAVE_DBUS" = yes; then
9231 LIBS="$LIBS $DBUS_LIBS"
9232
9233 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9234
9235 for ac_func in dbus_watch_get_unix_fd
9236 do :
9237 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9238 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
9239 cat >>confdefs.h <<_ACEOF
9240 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9241 _ACEOF
9242
9243 fi
9244 done
9245
9246 DBUS_OBJ=dbusbind.o
9247 fi
9248 fi
9249
9250
9251 HAVE_GCONF=no
9252 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9253
9254 succeeded=no
9255
9256 # Extract the first word of "pkg-config", so it can be a program name with args.
9257 set dummy pkg-config; ac_word=$2
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9259 $as_echo_n "checking for $ac_word... " >&6; }
9260 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9261 $as_echo_n "(cached) " >&6
9262 else
9263 case $PKG_CONFIG in
9264 [\\/]* | ?:[\\/]*)
9265 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9266 ;;
9267 *)
9268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 for as_dir in $PATH
9270 do
9271 IFS=$as_save_IFS
9272 test -z "$as_dir" && as_dir=.
9273 for ac_exec_ext in '' $ac_executable_extensions; do
9274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9275 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9277 break 2
9278 fi
9279 done
9280 done
9281 IFS=$as_save_IFS
9282
9283 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9284 ;;
9285 esac
9286 fi
9287 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9288 if test -n "$PKG_CONFIG"; then
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9290 $as_echo "$PKG_CONFIG" >&6; }
9291 else
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9293 $as_echo "no" >&6; }
9294 fi
9295
9296
9297
9298 if test "$PKG_CONFIG" = "no" ; then
9299 HAVE_GCONF=no
9300 else
9301 PKG_CONFIG_MIN_VERSION=0.9.0
9302 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9304 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9305
9306 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9308 $as_echo "yes" >&6; }
9309 succeeded=yes
9310
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9312 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9313 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9315 $as_echo "$GCONF_CFLAGS" >&6; }
9316
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9318 $as_echo_n "checking GCONF_LIBS... " >&6; }
9319 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9321 $as_echo "$GCONF_LIBS" >&6; }
9322 else
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324 $as_echo "no" >&6; }
9325 GCONF_CFLAGS=""
9326 GCONF_LIBS=""
9327 ## If we have a custom action on failure, don't print errors, but
9328 ## do set a variable so people can do so.
9329 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9330
9331 fi
9332
9333
9334
9335 else
9336 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9337 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9338 fi
9339 fi
9340
9341 if test $succeeded = yes; then
9342 HAVE_GCONF=yes
9343 else
9344 HAVE_GCONF=no
9345 fi
9346
9347 if test "$HAVE_GCONF" = yes; then
9348
9349 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9350
9351 fi
9352 fi
9353
9354 HAVE_LIBSELINUX=no
9355 LIBSELINUX_LIBS=
9356 if test "${with_selinux}" = "yes"; then
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9358 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9359 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9360 $as_echo_n "(cached) " >&6
9361 else
9362 ac_check_lib_save_LIBS=$LIBS
9363 LIBS="-lselinux $LIBS"
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9366
9367 /* Override any GCC internal prototype to avoid an error.
9368 Use char because int might match the return type of a GCC
9369 builtin and then its argument prototype would still apply. */
9370 #ifdef __cplusplus
9371 extern "C"
9372 #endif
9373 char lgetfilecon ();
9374 int
9375 main ()
9376 {
9377 return lgetfilecon ();
9378 ;
9379 return 0;
9380 }
9381 _ACEOF
9382 if ac_fn_c_try_link "$LINENO"; then :
9383 ac_cv_lib_selinux_lgetfilecon=yes
9384 else
9385 ac_cv_lib_selinux_lgetfilecon=no
9386 fi
9387 rm -f core conftest.err conftest.$ac_objext \
9388 conftest$ac_exeext conftest.$ac_ext
9389 LIBS=$ac_check_lib_save_LIBS
9390 fi
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9392 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9393 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
9394 HAVE_LIBSELINUX=yes
9395 else
9396 HAVE_LIBSELINUX=no
9397 fi
9398
9399 if test "$HAVE_LIBSELINUX" = yes; then
9400
9401 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9402
9403 LIBSELINUX_LIBS=-lselinux
9404 fi
9405 fi
9406
9407
9408 HAVE_XAW3D=no
9409 LUCID_LIBW=
9410 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9411 if test "$with_xaw3d" != no; then
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9413 $as_echo_n "checking for xaw3d... " >&6; }
9414 if test "${emacs_cv_xaw3d+set}" = set; then :
9415 $as_echo_n "(cached) " >&6
9416 else
9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9419
9420 #include <X11/Intrinsic.h>
9421 #include <X11/Xaw3d/Simple.h>
9422 int
9423 main ()
9424 {
9425
9426 ;
9427 return 0;
9428 }
9429 _ACEOF
9430 if ac_fn_c_try_link "$LINENO"; then :
9431 emacs_cv_xaw3d=yes
9432 else
9433 emacs_cv_xaw3d=no
9434 fi
9435 rm -f core conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
9437 fi
9438
9439 else
9440 emacs_cv_xaw3d=no
9441 fi
9442 if test $emacs_cv_xaw3d = yes; then
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9444 $as_echo "yes; using Lucid toolkit" >&6; }
9445 USE_X_TOOLKIT=LUCID
9446 HAVE_XAW3D=yes
9447 LUCID_LIBW=-lXaw3d
9448
9449 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9450
9451 else
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 $as_echo "no" >&6; }
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9455 $as_echo_n "checking for libXaw... " >&6; }
9456 if test "${emacs_cv_xaw+set}" = set; then :
9457 $as_echo_n "(cached) " >&6
9458 else
9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h. */
9461
9462 #include <X11/Intrinsic.h>
9463 #include <X11/Xaw/Simple.h>
9464 int
9465 main ()
9466 {
9467
9468 ;
9469 return 0;
9470 }
9471 _ACEOF
9472 if ac_fn_c_try_link "$LINENO"; then :
9473 emacs_cv_xaw=yes
9474 else
9475 emacs_cv_xaw=no
9476 fi
9477 rm -f core conftest.err conftest.$ac_objext \
9478 conftest$ac_exeext conftest.$ac_ext
9479 fi
9480
9481 if test $emacs_cv_xaw = yes; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9483 $as_echo "yes; using Lucid toolkit" >&6; }
9484 USE_X_TOOLKIT=LUCID
9485 LUCID_LIBW=-lXaw
9486 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9487 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9488 else
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9490 $as_echo "no; do not use toolkit by default" >&6; }
9491 USE_X_TOOLKIT=none
9492 fi
9493 fi
9494 fi
9495
9496 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9497
9498 LIBXTR6=
9499 if test "${USE_X_TOOLKIT}" != "none"; then
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9501 $as_echo_n "checking X11 toolkit version... " >&6; }
9502 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9503 $as_echo_n "(cached) " >&6
9504 else
9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9507 #include <X11/Intrinsic.h>
9508 int
9509 main ()
9510 {
9511 #if XtSpecificationRelease < 6
9512 fail;
9513 #endif
9514
9515 ;
9516 return 0;
9517 }
9518 _ACEOF
9519 if ac_fn_c_try_link "$LINENO"; then :
9520 emacs_cv_x11_toolkit_version_6=yes
9521 else
9522 emacs_cv_x11_toolkit_version_6=no
9523 fi
9524 rm -f core conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
9526 fi
9527
9528 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9529 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9531 $as_echo "6 or newer" >&6; }
9532
9533 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9534
9535 LIBXTR6="-lSM -lICE"
9536 case "$opsys" in
9537 ## Use libw.a along with X11R6 Xt.
9538 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9539 esac
9540 else
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9542 $as_echo "before 6" >&6; }
9543 fi
9544
9545 OLDLIBS="$LIBS"
9546 if test x$HAVE_X11XTR6 = xyes; then
9547 LIBS="-lXt -lSM -lICE $LIBS"
9548 else
9549 LIBS="-lXt $LIBS"
9550 fi
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9552 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9553 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556 ac_check_lib_save_LIBS=$LIBS
9557 LIBS="-lXmu $LIBS"
9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h. */
9560
9561 /* Override any GCC internal prototype to avoid an error.
9562 Use char because int might match the return type of a GCC
9563 builtin and then its argument prototype would still apply. */
9564 #ifdef __cplusplus
9565 extern "C"
9566 #endif
9567 char XmuConvertStandardSelection ();
9568 int
9569 main ()
9570 {
9571 return XmuConvertStandardSelection ();
9572 ;
9573 return 0;
9574 }
9575 _ACEOF
9576 if ac_fn_c_try_link "$LINENO"; then :
9577 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9578 else
9579 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9580 fi
9581 rm -f core conftest.err conftest.$ac_objext \
9582 conftest$ac_exeext conftest.$ac_ext
9583 LIBS=$ac_check_lib_save_LIBS
9584 fi
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9586 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9587 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9588 cat >>confdefs.h <<_ACEOF
9589 #define HAVE_LIBXMU 1
9590 _ACEOF
9591
9592 LIBS="-lXmu $LIBS"
9593
9594 fi
9595
9596 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9597 fi
9598
9599
9600 LIBXMU=-lXmu
9601 case "$machine" in
9602 ## These machines don't supply Xmu.
9603 hpux* | aix4-2 )
9604 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9605 ;;
9606 esac
9607
9608
9609 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9610 if test "${HAVE_X11}" = "yes"; then
9611 if test "${USE_X_TOOLKIT}" != "none"; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9613 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9614 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9615 $as_echo_n "(cached) " >&6
9616 else
9617 ac_check_lib_save_LIBS=$LIBS
9618 LIBS="-lXext $LIBS"
9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9620 /* end confdefs.h. */
9621
9622 /* Override any GCC internal prototype to avoid an error.
9623 Use char because int might match the return type of a GCC
9624 builtin and then its argument prototype would still apply. */
9625 #ifdef __cplusplus
9626 extern "C"
9627 #endif
9628 char XShapeQueryExtension ();
9629 int
9630 main ()
9631 {
9632 return XShapeQueryExtension ();
9633 ;
9634 return 0;
9635 }
9636 _ACEOF
9637 if ac_fn_c_try_link "$LINENO"; then :
9638 ac_cv_lib_Xext_XShapeQueryExtension=yes
9639 else
9640 ac_cv_lib_Xext_XShapeQueryExtension=no
9641 fi
9642 rm -f core conftest.err conftest.$ac_objext \
9643 conftest$ac_exeext conftest.$ac_ext
9644 LIBS=$ac_check_lib_save_LIBS
9645 fi
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9647 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9648 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9649 cat >>confdefs.h <<_ACEOF
9650 #define HAVE_LIBXEXT 1
9651 _ACEOF
9652
9653 LIBS="-lXext $LIBS"
9654
9655 fi
9656
9657 fi
9658 fi
9659
9660 LIBXP=
9661 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9663 $as_echo_n "checking for Motif version 2.1... " >&6; }
9664 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
9666 else
9667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h. */
9669 #include <Xm/Xm.h>
9670 int
9671 main ()
9672 {
9673 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9674 int x = 5;
9675 #else
9676 Motif version prior to 2.1.
9677 #endif
9678 ;
9679 return 0;
9680 }
9681 _ACEOF
9682 if ac_fn_c_try_compile "$LINENO"; then :
9683 emacs_cv_motif_version_2_1=yes
9684 else
9685 emacs_cv_motif_version_2_1=no
9686 fi
9687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9688 fi
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9690 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9691 if test $emacs_cv_motif_version_2_1 = yes; then
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9693 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9694 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9695 $as_echo_n "(cached) " >&6
9696 else
9697 ac_check_lib_save_LIBS=$LIBS
9698 LIBS="-lXp $LIBS"
9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9701
9702 /* Override any GCC internal prototype to avoid an error.
9703 Use char because int might match the return type of a GCC
9704 builtin and then its argument prototype would still apply. */
9705 #ifdef __cplusplus
9706 extern "C"
9707 #endif
9708 char XpCreateContext ();
9709 int
9710 main ()
9711 {
9712 return XpCreateContext ();
9713 ;
9714 return 0;
9715 }
9716 _ACEOF
9717 if ac_fn_c_try_link "$LINENO"; then :
9718 ac_cv_lib_Xp_XpCreateContext=yes
9719 else
9720 ac_cv_lib_Xp_XpCreateContext=no
9721 fi
9722 rm -f core conftest.err conftest.$ac_objext \
9723 conftest$ac_exeext conftest.$ac_ext
9724 LIBS=$ac_check_lib_save_LIBS
9725 fi
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9727 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9728 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9729 LIBXP=-lXp
9730 fi
9731
9732 else
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9734 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9735 if test "${emacs_cv_lesstif+set}" = set; then :
9736 $as_echo_n "(cached) " >&6
9737 else
9738 # We put this in CFLAGS temporarily to precede other -I options
9739 # that might be in CFLAGS temporarily.
9740 # We put this in CPPFLAGS where it precedes the other -I options.
9741 OLD_CPPFLAGS=$CPPFLAGS
9742 OLD_CFLAGS=$CFLAGS
9743 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9744 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746 /* end confdefs.h. */
9747 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9748 int
9749 main ()
9750 {
9751 int x = 5;
9752 ;
9753 return 0;
9754 }
9755 _ACEOF
9756 if ac_fn_c_try_compile "$LINENO"; then :
9757 emacs_cv_lesstif=yes
9758 else
9759 emacs_cv_lesstif=no
9760 fi
9761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9762 fi
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9764 $as_echo "$emacs_cv_lesstif" >&6; }
9765 if test $emacs_cv_lesstif = yes; then
9766 # Make sure this -I option remains in CPPFLAGS after it is set
9767 # back to REAL_CPPFLAGS.
9768 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9769 # have those other -I options anyway. Ultimately, having this
9770 # directory ultimately in CPPFLAGS will be enough.
9771 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9772 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9773 else
9774 CFLAGS=$OLD_CFLAGS
9775 CPPFLAGS=$OLD_CPPFLAGS
9776 fi
9777 fi
9778 fi
9779
9780
9781 USE_TOOLKIT_SCROLL_BARS=no
9782 if test "${with_toolkit_scroll_bars}" != "no"; then
9783 if test "${USE_X_TOOLKIT}" != "none"; then
9784 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9785 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9786
9787 HAVE_XAW3D=no
9788 USE_TOOLKIT_SCROLL_BARS=yes
9789 elif test "${HAVE_XAW3D}" = "yes"; then
9790 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9791
9792 USE_TOOLKIT_SCROLL_BARS=yes
9793 fi
9794 elif test "${HAVE_GTK}" = "yes"; then
9795 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9796
9797 USE_TOOLKIT_SCROLL_BARS=yes
9798 elif test "${HAVE_NS}" = "yes"; then
9799 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9800
9801 USE_TOOLKIT_SCROLL_BARS=yes
9802 fi
9803 fi
9804
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9807
9808 #include <X11/Xlib.h>
9809 #include <X11/Xresource.h>
9810 int
9811 main ()
9812 {
9813 XIMProc callback;
9814 ;
9815 return 0;
9816 }
9817 _ACEOF
9818 if ac_fn_c_try_compile "$LINENO"; then :
9819 HAVE_XIM=yes
9820
9821 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9822
9823 else
9824 HAVE_XIM=no
9825 fi
9826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9827
9828
9829 if test "${with_xim}" != "no"; then
9830
9831 $as_echo "#define USE_XIM 1" >>confdefs.h
9832
9833 fi
9834
9835
9836 if test "${HAVE_XIM}" != "no"; then
9837 late_CFLAGS=$CFLAGS
9838 if test "$GCC" = yes; then
9839 CFLAGS="$CFLAGS --pedantic-errors"
9840 fi
9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h. */
9843
9844 #include <X11/Xlib.h>
9845 #include <X11/Xresource.h>
9846 int
9847 main ()
9848 {
9849 Display *display;
9850 XrmDatabase db;
9851 char *res_name;
9852 char *res_class;
9853 XIMProc callback;
9854 XPointer *client_data;
9855 #ifndef __GNUC__
9856 /* If we're not using GCC, it's probably not XFree86, and this is
9857 probably right, but we can't use something like --pedantic-errors. */
9858 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9859 char*, XIMProc, XPointer*);
9860 #endif
9861 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9862 client_data);
9863 ;
9864 return 0;
9865 }
9866 _ACEOF
9867 if ac_fn_c_try_compile "$LINENO"; then :
9868 emacs_cv_arg6_star=yes
9869 fi
9870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9871 if test "$emacs_cv_arg6_star" = yes; then
9872 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9873
9874 else
9875 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9876
9877 fi
9878 CFLAGS=$late_CFLAGS
9879 fi
9880
9881 ### Start of font-backend (under any platform) section.
9882 # (nothing here yet -- this is a placeholder)
9883 ### End of font-backend (under any platform) section.
9884
9885 ### Start of font-backend (under X11) section.
9886 if test "${HAVE_X11}" = "yes"; then
9887
9888 succeeded=no
9889
9890 # Extract the first word of "pkg-config", so it can be a program name with args.
9891 set dummy pkg-config; ac_word=$2
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9893 $as_echo_n "checking for $ac_word... " >&6; }
9894 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9895 $as_echo_n "(cached) " >&6
9896 else
9897 case $PKG_CONFIG in
9898 [\\/]* | ?:[\\/]*)
9899 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9900 ;;
9901 *)
9902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903 for as_dir in $PATH
9904 do
9905 IFS=$as_save_IFS
9906 test -z "$as_dir" && as_dir=.
9907 for ac_exec_ext in '' $ac_executable_extensions; do
9908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9909 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9911 break 2
9912 fi
9913 done
9914 done
9915 IFS=$as_save_IFS
9916
9917 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9918 ;;
9919 esac
9920 fi
9921 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9922 if test -n "$PKG_CONFIG"; then
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9924 $as_echo "$PKG_CONFIG" >&6; }
9925 else
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927 $as_echo "no" >&6; }
9928 fi
9929
9930
9931
9932 if test "$PKG_CONFIG" = "no" ; then
9933 HAVE_FC=no
9934 else
9935 PKG_CONFIG_MIN_VERSION=0.9.0
9936 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9938 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9939
9940 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9942 $as_echo "yes" >&6; }
9943 succeeded=yes
9944
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9946 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9947 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9949 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9950
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9952 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9953 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9955 $as_echo "$FONTCONFIG_LIBS" >&6; }
9956 else
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958 $as_echo "no" >&6; }
9959 FONTCONFIG_CFLAGS=""
9960 FONTCONFIG_LIBS=""
9961 ## If we have a custom action on failure, don't print errors, but
9962 ## do set a variable so people can do so.
9963 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9964
9965 fi
9966
9967
9968
9969 else
9970 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9971 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9972 fi
9973 fi
9974
9975 if test $succeeded = yes; then
9976 HAVE_FC=yes
9977 else
9978 HAVE_FC=no
9979 fi
9980
9981
9982 ## Use -lXft if available, unless `--with-xft=no'.
9983 HAVE_XFT=maybe
9984 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
9985 with_xft="no";
9986 fi
9987 if test "x${with_xft}" != "xno"; then
9988
9989
9990 succeeded=no
9991
9992 # Extract the first word of "pkg-config", so it can be a program name with args.
9993 set dummy pkg-config; ac_word=$2
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995 $as_echo_n "checking for $ac_word... " >&6; }
9996 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9997 $as_echo_n "(cached) " >&6
9998 else
9999 case $PKG_CONFIG in
10000 [\\/]* | ?:[\\/]*)
10001 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10002 ;;
10003 *)
10004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005 for as_dir in $PATH
10006 do
10007 IFS=$as_save_IFS
10008 test -z "$as_dir" && as_dir=.
10009 for ac_exec_ext in '' $ac_executable_extensions; do
10010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10011 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10013 break 2
10014 fi
10015 done
10016 done
10017 IFS=$as_save_IFS
10018
10019 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10020 ;;
10021 esac
10022 fi
10023 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10024 if test -n "$PKG_CONFIG"; then
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10026 $as_echo "$PKG_CONFIG" >&6; }
10027 else
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029 $as_echo "no" >&6; }
10030 fi
10031
10032
10033
10034 if test "$PKG_CONFIG" = "no" ; then
10035 HAVE_XFT=no
10036 else
10037 PKG_CONFIG_MIN_VERSION=0.9.0
10038 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10040 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10041
10042 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10044 $as_echo "yes" >&6; }
10045 succeeded=yes
10046
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10048 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10049 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10051 $as_echo "$XFT_CFLAGS" >&6; }
10052
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10054 $as_echo_n "checking XFT_LIBS... " >&6; }
10055 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10057 $as_echo "$XFT_LIBS" >&6; }
10058 else
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060 $as_echo "no" >&6; }
10061 XFT_CFLAGS=""
10062 XFT_LIBS=""
10063 ## If we have a custom action on failure, don't print errors, but
10064 ## do set a variable so people can do so.
10065 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10066
10067 fi
10068
10069
10070
10071 else
10072 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10073 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10074 fi
10075 fi
10076
10077 if test $succeeded = yes; then
10078 :
10079 else
10080 HAVE_XFT=no
10081 fi
10082
10083 ## Because xftfont.c uses XRenderQueryExtension, we also
10084 ## need to link to -lXrender.
10085 HAVE_XRENDER=no
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10087 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10088 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
10089 $as_echo_n "(cached) " >&6
10090 else
10091 ac_check_lib_save_LIBS=$LIBS
10092 LIBS="-lXrender $LIBS"
10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h. */
10095
10096 /* Override any GCC internal prototype to avoid an error.
10097 Use char because int might match the return type of a GCC
10098 builtin and then its argument prototype would still apply. */
10099 #ifdef __cplusplus
10100 extern "C"
10101 #endif
10102 char XRenderQueryExtension ();
10103 int
10104 main ()
10105 {
10106 return XRenderQueryExtension ();
10107 ;
10108 return 0;
10109 }
10110 _ACEOF
10111 if ac_fn_c_try_link "$LINENO"; then :
10112 ac_cv_lib_Xrender_XRenderQueryExtension=yes
10113 else
10114 ac_cv_lib_Xrender_XRenderQueryExtension=no
10115 fi
10116 rm -f core conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10118 LIBS=$ac_check_lib_save_LIBS
10119 fi
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10121 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10122 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
10123 HAVE_XRENDER=yes
10124 fi
10125
10126 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
10127 OLD_CPPFLAGS="$CPPFLAGS"
10128 OLD_CFLAGS="$CFLAGS"
10129 OLD_LIBS="$LIBS"
10130 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
10131 CFLAGS="$CFLAGS $XFT_CFLAGS"
10132 XFT_LIBS="-lXrender $XFT_LIBS"
10133 LIBS="$XFT_LIBS $LIBS"
10134 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10135 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10137 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10138 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
10139 $as_echo_n "(cached) " >&6
10140 else
10141 ac_check_lib_save_LIBS=$LIBS
10142 LIBS="-lXft $XFT_LIBS $LIBS"
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10145
10146 /* Override any GCC internal prototype to avoid an error.
10147 Use char because int might match the return type of a GCC
10148 builtin and then its argument prototype would still apply. */
10149 #ifdef __cplusplus
10150 extern "C"
10151 #endif
10152 char XftFontOpen ();
10153 int
10154 main ()
10155 {
10156 return XftFontOpen ();
10157 ;
10158 return 0;
10159 }
10160 _ACEOF
10161 if ac_fn_c_try_link "$LINENO"; then :
10162 ac_cv_lib_Xft_XftFontOpen=yes
10163 else
10164 ac_cv_lib_Xft_XftFontOpen=no
10165 fi
10166 rm -f core conftest.err conftest.$ac_objext \
10167 conftest$ac_exeext conftest.$ac_ext
10168 LIBS=$ac_check_lib_save_LIBS
10169 fi
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10171 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10172 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
10173 HAVE_XFT=yes
10174 fi
10175
10176 fi
10177
10178
10179
10180 if test "${HAVE_XFT}" = "yes"; then
10181
10182 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10183
10184
10185 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
10186 else
10187 CPPFLAGS="$OLD_CPPFLAGS"
10188 CFLAGS="$OLD_CFLAGS"
10189 LIBS="$OLD_LIBS"
10190 fi # "${HAVE_XFT}" = "yes"
10191 fi # "$HAVE_XFT" != no
10192 fi # "x${with_xft}" != "xno"
10193
10194 if test "$HAVE_XFT" != "yes"; then
10195 HAVE_XFT=no
10196 fi
10197
10198
10199 HAVE_FREETYPE=no
10200 ## We used to allow building with FreeType and without Xft.
10201 ## However, the ftx font backend driver is not in good shape.
10202 if test "${HAVE_XFT}" = "yes"; then
10203 HAVE_FREETYPE=yes
10204 FONTCONFIG_CFLAGS=
10205 FONTCONFIG_LIBS=
10206 fi
10207
10208 HAVE_LIBOTF=no
10209 if test "${HAVE_FREETYPE}" = "yes"; then
10210
10211 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10212
10213 if test "${with_libotf}" != "no"; then
10214
10215 succeeded=no
10216
10217 # Extract the first word of "pkg-config", so it can be a program name with args.
10218 set dummy pkg-config; ac_word=$2
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220 $as_echo_n "checking for $ac_word... " >&6; }
10221 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10222 $as_echo_n "(cached) " >&6
10223 else
10224 case $PKG_CONFIG in
10225 [\\/]* | ?:[\\/]*)
10226 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10227 ;;
10228 *)
10229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230 for as_dir in $PATH
10231 do
10232 IFS=$as_save_IFS
10233 test -z "$as_dir" && as_dir=.
10234 for ac_exec_ext in '' $ac_executable_extensions; do
10235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10236 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10238 break 2
10239 fi
10240 done
10241 done
10242 IFS=$as_save_IFS
10243
10244 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10245 ;;
10246 esac
10247 fi
10248 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10249 if test -n "$PKG_CONFIG"; then
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10251 $as_echo "$PKG_CONFIG" >&6; }
10252 else
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10254 $as_echo "no" >&6; }
10255 fi
10256
10257
10258
10259 if test "$PKG_CONFIG" = "no" ; then
10260 HAVE_LIBOTF=no
10261 else
10262 PKG_CONFIG_MIN_VERSION=0.9.0
10263 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10265 $as_echo_n "checking for libotf... " >&6; }
10266
10267 if $PKG_CONFIG --exists "libotf" 2>&5; then
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10269 $as_echo "yes" >&6; }
10270 succeeded=yes
10271
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10273 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10274 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10276 $as_echo "$LIBOTF_CFLAGS" >&6; }
10277
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10279 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10280 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10282 $as_echo "$LIBOTF_LIBS" >&6; }
10283 else
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10285 $as_echo "no" >&6; }
10286 LIBOTF_CFLAGS=""
10287 LIBOTF_LIBS=""
10288 ## If we have a custom action on failure, don't print errors, but
10289 ## do set a variable so people can do so.
10290 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10291
10292 fi
10293
10294
10295
10296 else
10297 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10298 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10299 fi
10300 fi
10301
10302 if test $succeeded = yes; then
10303 HAVE_LIBOTF=yes
10304 else
10305 HAVE_LIBOTF=no
10306 fi
10307
10308 if test "$HAVE_LIBOTF" = "yes"; then
10309
10310 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10311
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10313 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10314 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10315 $as_echo_n "(cached) " >&6
10316 else
10317 ac_check_lib_save_LIBS=$LIBS
10318 LIBS="-lotf $LIBS"
10319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320 /* end confdefs.h. */
10321
10322 /* Override any GCC internal prototype to avoid an error.
10323 Use char because int might match the return type of a GCC
10324 builtin and then its argument prototype would still apply. */
10325 #ifdef __cplusplus
10326 extern "C"
10327 #endif
10328 char OTF_get_variation_glyphs ();
10329 int
10330 main ()
10331 {
10332 return OTF_get_variation_glyphs ();
10333 ;
10334 return 0;
10335 }
10336 _ACEOF
10337 if ac_fn_c_try_link "$LINENO"; then :
10338 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
10339 else
10340 ac_cv_lib_otf_OTF_get_variation_glyphs=no
10341 fi
10342 rm -f core conftest.err conftest.$ac_objext \
10343 conftest$ac_exeext conftest.$ac_ext
10344 LIBS=$ac_check_lib_save_LIBS
10345 fi
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10347 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10348 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
10349 HAVE_OTF_GET_VARIATION_GLYPHS=yes
10350 else
10351 HAVE_OTF_GET_VARIATION_GLYPHS=no
10352 fi
10353
10354 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10355
10356 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10357
10358 fi
10359 fi
10360 fi
10361 fi
10362
10363 HAVE_M17N_FLT=no
10364 if test "${HAVE_LIBOTF}" = yes; then
10365 if test "${with_m17n_flt}" != "no"; then
10366
10367 succeeded=no
10368
10369 # Extract the first word of "pkg-config", so it can be a program name with args.
10370 set dummy pkg-config; ac_word=$2
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10372 $as_echo_n "checking for $ac_word... " >&6; }
10373 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10374 $as_echo_n "(cached) " >&6
10375 else
10376 case $PKG_CONFIG in
10377 [\\/]* | ?:[\\/]*)
10378 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10379 ;;
10380 *)
10381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382 for as_dir in $PATH
10383 do
10384 IFS=$as_save_IFS
10385 test -z "$as_dir" && as_dir=.
10386 for ac_exec_ext in '' $ac_executable_extensions; do
10387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10388 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10390 break 2
10391 fi
10392 done
10393 done
10394 IFS=$as_save_IFS
10395
10396 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10397 ;;
10398 esac
10399 fi
10400 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10401 if test -n "$PKG_CONFIG"; then
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10403 $as_echo "$PKG_CONFIG" >&6; }
10404 else
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10406 $as_echo "no" >&6; }
10407 fi
10408
10409
10410
10411 if test "$PKG_CONFIG" = "no" ; then
10412 HAVE_M17N_FLT=no
10413 else
10414 PKG_CONFIG_MIN_VERSION=0.9.0
10415 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10417 $as_echo_n "checking for m17n-flt... " >&6; }
10418
10419 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10421 $as_echo "yes" >&6; }
10422 succeeded=yes
10423
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10425 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10426 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10428 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10429
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10431 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10432 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10434 $as_echo "$M17N_FLT_LIBS" >&6; }
10435 else
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437 $as_echo "no" >&6; }
10438 M17N_FLT_CFLAGS=""
10439 M17N_FLT_LIBS=""
10440 ## If we have a custom action on failure, don't print errors, but
10441 ## do set a variable so people can do so.
10442 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10443
10444 fi
10445
10446
10447
10448 else
10449 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10450 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10451 fi
10452 fi
10453
10454 if test $succeeded = yes; then
10455 HAVE_M17N_FLT=yes
10456 else
10457 HAVE_M17N_FLT=no
10458 fi
10459
10460 if test "$HAVE_M17N_FLT" = "yes"; then
10461
10462 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10463
10464 fi
10465 fi
10466 fi
10467 else
10468 HAVE_XFT=no
10469 HAVE_FREETYPE=no
10470 HAVE_LIBOTF=no
10471 HAVE_M17N_FLT=no
10472 fi
10473
10474 ### End of font-backend (under X11) section.
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485 ### Use -lXpm if available, unless `--with-xpm=no'.
10486 HAVE_XPM=no
10487 LIBXPM=
10488 if test "${HAVE_X11}" = "yes"; then
10489 if test "${with_xpm}" != "no"; then
10490 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10491 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10493 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10494 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10495 $as_echo_n "(cached) " >&6
10496 else
10497 ac_check_lib_save_LIBS=$LIBS
10498 LIBS="-lXpm -lX11 $LIBS"
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10501
10502 /* Override any GCC internal prototype to avoid an error.
10503 Use char because int might match the return type of a GCC
10504 builtin and then its argument prototype would still apply. */
10505 #ifdef __cplusplus
10506 extern "C"
10507 #endif
10508 char XpmReadFileToPixmap ();
10509 int
10510 main ()
10511 {
10512 return XpmReadFileToPixmap ();
10513 ;
10514 return 0;
10515 }
10516 _ACEOF
10517 if ac_fn_c_try_link "$LINENO"; then :
10518 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10519 else
10520 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10521 fi
10522 rm -f core conftest.err conftest.$ac_objext \
10523 conftest$ac_exeext conftest.$ac_ext
10524 LIBS=$ac_check_lib_save_LIBS
10525 fi
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10527 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10528 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10529 HAVE_XPM=yes
10530 fi
10531
10532 fi
10533
10534
10535 if test "${HAVE_XPM}" = "yes"; then
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10537 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10540 #include "X11/xpm.h"
10541 #ifndef XpmReturnAllocPixels
10542 no_return_alloc_pixels
10543 #endif
10544
10545 _ACEOF
10546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10547 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10548 HAVE_XPM=no
10549 else
10550 HAVE_XPM=yes
10551 fi
10552 rm -f conftest*
10553
10554
10555 if test "${HAVE_XPM}" = "yes"; then
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10557 $as_echo "yes" >&6; }
10558 else
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10560 $as_echo "no" >&6; }
10561 fi
10562 fi
10563 fi
10564
10565 if test "${HAVE_XPM}" = "yes"; then
10566
10567 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10568
10569 LIBXPM=-lXpm
10570 fi
10571 fi
10572
10573
10574 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10575 HAVE_JPEG=no
10576 LIBJPEG=
10577 if test "${HAVE_X11}" = "yes"; then
10578 if test "${with_jpeg}" != "no"; then
10579 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10580 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10582 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10583 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10584 $as_echo_n "(cached) " >&6
10585 else
10586 ac_check_lib_save_LIBS=$LIBS
10587 LIBS="-ljpeg $LIBS"
10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h. */
10590
10591 /* Override any GCC internal prototype to avoid an error.
10592 Use char because int might match the return type of a GCC
10593 builtin and then its argument prototype would still apply. */
10594 #ifdef __cplusplus
10595 extern "C"
10596 #endif
10597 char jpeg_destroy_compress ();
10598 int
10599 main ()
10600 {
10601 return jpeg_destroy_compress ();
10602 ;
10603 return 0;
10604 }
10605 _ACEOF
10606 if ac_fn_c_try_link "$LINENO"; then :
10607 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10608 else
10609 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10610 fi
10611 rm -f core conftest.err conftest.$ac_objext \
10612 conftest$ac_exeext conftest.$ac_ext
10613 LIBS=$ac_check_lib_save_LIBS
10614 fi
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10616 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10617 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10618 HAVE_JPEG=yes
10619 fi
10620
10621 fi
10622
10623
10624 fi
10625
10626 if test "${HAVE_JPEG}" = "yes"; then
10627 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10628
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631 #include <jpeglib.h>
10632 version=JPEG_LIB_VERSION
10633
10634 _ACEOF
10635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10636 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10637 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10638
10639 else
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10641 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10642 HAVE_JPEG=no
10643 fi
10644 rm -f conftest*
10645
10646 fi
10647 if test "${HAVE_JPEG}" = "yes"; then
10648 LIBJPEG=-ljpeg
10649 fi
10650 fi
10651
10652
10653 ### Use -lpng if available, unless `--with-png=no'.
10654 HAVE_PNG=no
10655 LIBPNG=
10656 if test "${HAVE_X11}" = "yes"; then
10657 if test "${with_png}" != "no"; then
10658 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10659 # in /usr/include/libpng.
10660 for ac_header in png.h libpng/png.h
10661 do :
10662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10663 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10664 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10665 cat >>confdefs.h <<_ACEOF
10666 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10667 _ACEOF
10668
10669 fi
10670
10671 done
10672
10673 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10675 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10676 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 ac_check_lib_save_LIBS=$LIBS
10680 LIBS="-lpng -lz -lm $LIBS"
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10683
10684 /* Override any GCC internal prototype to avoid an error.
10685 Use char because int might match the return type of a GCC
10686 builtin and then its argument prototype would still apply. */
10687 #ifdef __cplusplus
10688 extern "C"
10689 #endif
10690 char png_get_channels ();
10691 int
10692 main ()
10693 {
10694 return png_get_channels ();
10695 ;
10696 return 0;
10697 }
10698 _ACEOF
10699 if ac_fn_c_try_link "$LINENO"; then :
10700 ac_cv_lib_png_png_get_channels=yes
10701 else
10702 ac_cv_lib_png_png_get_channels=no
10703 fi
10704 rm -f core conftest.err conftest.$ac_objext \
10705 conftest$ac_exeext conftest.$ac_ext
10706 LIBS=$ac_check_lib_save_LIBS
10707 fi
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10709 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10710 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10711 HAVE_PNG=yes
10712 fi
10713
10714 fi
10715 fi
10716
10717 if test "${HAVE_PNG}" = "yes"; then
10718
10719 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10720
10721 LIBPNG="-lpng -lz -lm"
10722 fi
10723 fi
10724
10725
10726 ### Use -ltiff if available, unless `--with-tiff=no'.
10727 HAVE_TIFF=no
10728 LIBTIFF=
10729 if test "${HAVE_X11}" = "yes"; then
10730 if test "${with_tiff}" != "no"; then
10731 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10732 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10733 tifflibs="-lz -lm"
10734 # At least one tiff package requires the jpeg library.
10735 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10737 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10738 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 ac_check_lib_save_LIBS=$LIBS
10742 LIBS="-ltiff $tifflibs $LIBS"
10743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10745
10746 /* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
10749 #ifdef __cplusplus
10750 extern "C"
10751 #endif
10752 char TIFFGetVersion ();
10753 int
10754 main ()
10755 {
10756 return TIFFGetVersion ();
10757 ;
10758 return 0;
10759 }
10760 _ACEOF
10761 if ac_fn_c_try_link "$LINENO"; then :
10762 ac_cv_lib_tiff_TIFFGetVersion=yes
10763 else
10764 ac_cv_lib_tiff_TIFFGetVersion=no
10765 fi
10766 rm -f core conftest.err conftest.$ac_objext \
10767 conftest$ac_exeext conftest.$ac_ext
10768 LIBS=$ac_check_lib_save_LIBS
10769 fi
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10771 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10772 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10773 HAVE_TIFF=yes
10774 fi
10775
10776 fi
10777
10778
10779 fi
10780
10781 if test "${HAVE_TIFF}" = "yes"; then
10782
10783 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10784
10785 LIBTIFF=-ltiff
10786 fi
10787 fi
10788
10789
10790 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10791 HAVE_GIF=no
10792 LIBGIF=
10793 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10794 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10795 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10796 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10797 # Earlier versions can crash Emacs.
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10799 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10800 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10801 $as_echo_n "(cached) " >&6
10802 else
10803 ac_check_lib_save_LIBS=$LIBS
10804 LIBS="-lgif $LIBS"
10805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h. */
10807
10808 /* Override any GCC internal prototype to avoid an error.
10809 Use char because int might match the return type of a GCC
10810 builtin and then its argument prototype would still apply. */
10811 #ifdef __cplusplus
10812 extern "C"
10813 #endif
10814 char EGifPutExtensionLast ();
10815 int
10816 main ()
10817 {
10818 return EGifPutExtensionLast ();
10819 ;
10820 return 0;
10821 }
10822 _ACEOF
10823 if ac_fn_c_try_link "$LINENO"; then :
10824 ac_cv_lib_gif_EGifPutExtensionLast=yes
10825 else
10826 ac_cv_lib_gif_EGifPutExtensionLast=no
10827 fi
10828 rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10830 LIBS=$ac_check_lib_save_LIBS
10831 fi
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10833 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10834 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10835 HAVE_GIF=yes
10836 else
10837 HAVE_GIF=maybe
10838 fi
10839
10840 fi
10841
10842
10843
10844 if test "$HAVE_GIF" = yes; then
10845 LIBGIF=-lgif
10846 elif test "$HAVE_GIF" = maybe; then
10847 # If gif_lib.h but no libgif, try libungif.
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10849 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10850 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 ac_check_lib_save_LIBS=$LIBS
10854 LIBS="-lungif $LIBS"
10855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10857
10858 /* Override any GCC internal prototype to avoid an error.
10859 Use char because int might match the return type of a GCC
10860 builtin and then its argument prototype would still apply. */
10861 #ifdef __cplusplus
10862 extern "C"
10863 #endif
10864 char EGifPutExtensionLast ();
10865 int
10866 main ()
10867 {
10868 return EGifPutExtensionLast ();
10869 ;
10870 return 0;
10871 }
10872 _ACEOF
10873 if ac_fn_c_try_link "$LINENO"; then :
10874 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10875 else
10876 ac_cv_lib_ungif_EGifPutExtensionLast=no
10877 fi
10878 rm -f core conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext conftest.$ac_ext
10880 LIBS=$ac_check_lib_save_LIBS
10881 fi
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10883 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10884 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10885 HAVE_GIF=yes
10886 else
10887 HAVE_GIF=no
10888 fi
10889
10890 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10891 fi
10892
10893 if test "${HAVE_GIF}" = "yes"; then
10894
10895 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10896
10897 fi
10898 fi
10899
10900
10901 if test "${HAVE_X11}" = "yes"; then
10902 MISSING=""
10903 WITH_NO=""
10904 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10905 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10906 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10907 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
10908 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10909 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
10910 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10911 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10912 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10913 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10914
10915 if test "X${MISSING}" != X; then
10916 as_fn_error $? "The following required libraries were not found:
10917 $MISSING
10918 Maybe some development libraries/packages are missing?
10919 If you don't want to link with them give
10920 $WITH_NO
10921 as options to configure" "$LINENO" 5
10922 fi
10923 fi
10924
10925 ### Use -lgpm if available, unless `--with-gpm=no'.
10926 HAVE_GPM=no
10927 LIBGPM=
10928 MOUSE_SUPPORT=
10929 if test "${with_gpm}" != "no"; then
10930 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10931 if test "x$ac_cv_header_gpm_h" = x""yes; then :
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10933 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10934 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10935 $as_echo_n "(cached) " >&6
10936 else
10937 ac_check_lib_save_LIBS=$LIBS
10938 LIBS="-lgpm $LIBS"
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10941
10942 /* Override any GCC internal prototype to avoid an error.
10943 Use char because int might match the return type of a GCC
10944 builtin and then its argument prototype would still apply. */
10945 #ifdef __cplusplus
10946 extern "C"
10947 #endif
10948 char Gpm_Open ();
10949 int
10950 main ()
10951 {
10952 return Gpm_Open ();
10953 ;
10954 return 0;
10955 }
10956 _ACEOF
10957 if ac_fn_c_try_link "$LINENO"; then :
10958 ac_cv_lib_gpm_Gpm_Open=yes
10959 else
10960 ac_cv_lib_gpm_Gpm_Open=no
10961 fi
10962 rm -f core conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10964 LIBS=$ac_check_lib_save_LIBS
10965 fi
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10967 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10968 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
10969 HAVE_GPM=yes
10970 fi
10971
10972 fi
10973
10974
10975
10976 if test "${HAVE_GPM}" = "yes"; then
10977
10978 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10979
10980 LIBGPM=-lgpm
10981 ## May be reset below.
10982 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
10983 fi
10984 fi
10985
10986
10987 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10988 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
10989
10990 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10991
10992 fi
10993
10994
10995
10996 C_SWITCH_X_SYSTEM=
10997 ### Use NeXTstep API to implement GUI.
10998 if test "${HAVE_NS}" = "yes"; then
10999
11000 $as_echo "#define HAVE_NS 1" >>confdefs.h
11001
11002 if test "${NS_IMPL_COCOA}" = "yes"; then
11003
11004 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11005
11006 GNU_OBJC_CFLAGS=
11007 fi
11008 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11009
11010 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11011
11012 # See also .m.o rule in Makefile.in */
11013 # FIXME: are all these flags really needed? Document here why. */
11014 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
11015 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11016 fi
11017 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11018
11019 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11020
11021 fi
11022 # We also have mouse menus.
11023 HAVE_MENUS=yes
11024 OTHER_FILES=ns-app
11025 fi
11026
11027
11028 ### Use session management (-lSM -lICE) if available
11029 HAVE_X_SM=no
11030 LIBXSM=
11031 if test "${HAVE_X11}" = "yes"; then
11032 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11033 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11035 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11036 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
11037 $as_echo_n "(cached) " >&6
11038 else
11039 ac_check_lib_save_LIBS=$LIBS
11040 LIBS="-lSM -lICE $LIBS"
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11043
11044 /* Override any GCC internal prototype to avoid an error.
11045 Use char because int might match the return type of a GCC
11046 builtin and then its argument prototype would still apply. */
11047 #ifdef __cplusplus
11048 extern "C"
11049 #endif
11050 char SmcOpenConnection ();
11051 int
11052 main ()
11053 {
11054 return SmcOpenConnection ();
11055 ;
11056 return 0;
11057 }
11058 _ACEOF
11059 if ac_fn_c_try_link "$LINENO"; then :
11060 ac_cv_lib_SM_SmcOpenConnection=yes
11061 else
11062 ac_cv_lib_SM_SmcOpenConnection=no
11063 fi
11064 rm -f core conftest.err conftest.$ac_objext \
11065 conftest$ac_exeext conftest.$ac_ext
11066 LIBS=$ac_check_lib_save_LIBS
11067 fi
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11069 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11070 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
11071 HAVE_X_SM=yes
11072 fi
11073
11074 fi
11075
11076
11077
11078 if test "${HAVE_X_SM}" = "yes"; then
11079
11080 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11081
11082 LIBXSM="-lSM -lICE"
11083 case "$LIBS" in
11084 *-lSM*) ;;
11085 *) LIBS="$LIBXSM $LIBS" ;;
11086 esac
11087 fi
11088 fi
11089
11090
11091 ### Use libxml (-lxml2) if available
11092 if test "${with_xml2}" != "no"; then
11093 ### I'm not sure what the version number should be, so I just guessed.
11094
11095 succeeded=no
11096
11097 # Extract the first word of "pkg-config", so it can be a program name with args.
11098 set dummy pkg-config; ac_word=$2
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11100 $as_echo_n "checking for $ac_word... " >&6; }
11101 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11102 $as_echo_n "(cached) " >&6
11103 else
11104 case $PKG_CONFIG in
11105 [\\/]* | ?:[\\/]*)
11106 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11107 ;;
11108 *)
11109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11110 for as_dir in $PATH
11111 do
11112 IFS=$as_save_IFS
11113 test -z "$as_dir" && as_dir=.
11114 for ac_exec_ext in '' $ac_executable_extensions; do
11115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11116 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11118 break 2
11119 fi
11120 done
11121 done
11122 IFS=$as_save_IFS
11123
11124 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11125 ;;
11126 esac
11127 fi
11128 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11129 if test -n "$PKG_CONFIG"; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11131 $as_echo "$PKG_CONFIG" >&6; }
11132 else
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134 $as_echo "no" >&6; }
11135 fi
11136
11137
11138
11139 if test "$PKG_CONFIG" = "no" ; then
11140 HAVE_LIBXML2=no
11141 else
11142 PKG_CONFIG_MIN_VERSION=0.9.0
11143 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11145 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11146
11147 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11149 $as_echo "yes" >&6; }
11150 succeeded=yes
11151
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11153 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11154 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11156 $as_echo "$LIBXML2_CFLAGS" >&6; }
11157
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11159 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11160 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11162 $as_echo "$LIBXML2_LIBS" >&6; }
11163 else
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165 $as_echo "no" >&6; }
11166 LIBXML2_CFLAGS=""
11167 LIBXML2_LIBS=""
11168 ## If we have a custom action on failure, don't print errors, but
11169 ## do set a variable so people can do so.
11170 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11171
11172 fi
11173
11174
11175
11176 else
11177 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11178 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11179 fi
11180 fi
11181
11182 if test $succeeded = yes; then
11183 HAVE_LIBXML2=yes
11184 else
11185 HAVE_LIBXML2=no
11186 fi
11187
11188 if test "${HAVE_LIBXML2}" = "yes"; then
11189 LIBS="$LIBXML2_LIBS $LIBS"
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11191 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11192 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
11193 $as_echo_n "(cached) " >&6
11194 else
11195 ac_check_lib_save_LIBS=$LIBS
11196 LIBS="-lxml2 $LIBS"
11197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11199
11200 /* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
11203 #ifdef __cplusplus
11204 extern "C"
11205 #endif
11206 char htmlReadMemory ();
11207 int
11208 main ()
11209 {
11210 return htmlReadMemory ();
11211 ;
11212 return 0;
11213 }
11214 _ACEOF
11215 if ac_fn_c_try_link "$LINENO"; then :
11216 ac_cv_lib_xml2_htmlReadMemory=yes
11217 else
11218 ac_cv_lib_xml2_htmlReadMemory=no
11219 fi
11220 rm -f core conftest.err conftest.$ac_objext \
11221 conftest$ac_exeext conftest.$ac_ext
11222 LIBS=$ac_check_lib_save_LIBS
11223 fi
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11225 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11226 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
11227 HAVE_LIBXML2=yes
11228 else
11229 HAVE_LIBXML2=no
11230 fi
11231
11232 if test "${HAVE_LIBXML2}" = "yes"; then
11233
11234 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11235
11236 else
11237 LIBXML2_LIBS=""
11238 LIBXML2_CFLAGS=""
11239 fi
11240 fi
11241 fi
11242
11243
11244
11245 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11247 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11248 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11253 #include <netdb.h>
11254 int
11255 main ()
11256 {
11257 return h_errno;
11258 ;
11259 return 0;
11260 }
11261 _ACEOF
11262 if ac_fn_c_try_link "$LINENO"; then :
11263 emacs_cv_netdb_declares_h_errno=yes
11264 else
11265 emacs_cv_netdb_declares_h_errno=no
11266 fi
11267 rm -f core conftest.err conftest.$ac_objext \
11268 conftest$ac_exeext conftest.$ac_ext
11269 fi
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11271 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11272 if test $emacs_cv_netdb_declares_h_errno = yes; then
11273
11274 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11275
11276 fi
11277
11278 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11279 # for constant arguments. Useless!
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11281 $as_echo_n "checking for working alloca.h... " >&6; }
11282 if test "${ac_cv_working_alloca_h+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11284 else
11285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286 /* end confdefs.h. */
11287 #include <alloca.h>
11288 int
11289 main ()
11290 {
11291 char *p = (char *) alloca (2 * sizeof (int));
11292 if (p) return 0;
11293 ;
11294 return 0;
11295 }
11296 _ACEOF
11297 if ac_fn_c_try_link "$LINENO"; then :
11298 ac_cv_working_alloca_h=yes
11299 else
11300 ac_cv_working_alloca_h=no
11301 fi
11302 rm -f core conftest.err conftest.$ac_objext \
11303 conftest$ac_exeext conftest.$ac_ext
11304 fi
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11306 $as_echo "$ac_cv_working_alloca_h" >&6; }
11307 if test $ac_cv_working_alloca_h = yes; then
11308
11309 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11310
11311 fi
11312
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11314 $as_echo_n "checking for alloca... " >&6; }
11315 if test "${ac_cv_func_alloca_works+set}" = set; then :
11316 $as_echo_n "(cached) " >&6
11317 else
11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h. */
11320 #ifdef __GNUC__
11321 # define alloca __builtin_alloca
11322 #else
11323 # ifdef _MSC_VER
11324 # include <malloc.h>
11325 # define alloca _alloca
11326 # else
11327 # ifdef HAVE_ALLOCA_H
11328 # include <alloca.h>
11329 # else
11330 # ifdef _AIX
11331 #pragma alloca
11332 # else
11333 # ifndef alloca /* predefined by HP cc +Olibcalls */
11334 char *alloca ();
11335 # endif
11336 # endif
11337 # endif
11338 # endif
11339 #endif
11340
11341 int
11342 main ()
11343 {
11344 char *p = (char *) alloca (1);
11345 if (p) return 0;
11346 ;
11347 return 0;
11348 }
11349 _ACEOF
11350 if ac_fn_c_try_link "$LINENO"; then :
11351 ac_cv_func_alloca_works=yes
11352 else
11353 ac_cv_func_alloca_works=no
11354 fi
11355 rm -f core conftest.err conftest.$ac_objext \
11356 conftest$ac_exeext conftest.$ac_ext
11357 fi
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11359 $as_echo "$ac_cv_func_alloca_works" >&6; }
11360
11361 if test $ac_cv_func_alloca_works = yes; then
11362
11363 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11364
11365 else
11366 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11367 # that cause trouble. Some versions do not even contain alloca or
11368 # contain a buggy version. If you still want to use their alloca,
11369 # use ar to extract alloca.o from them instead of compiling alloca.c.
11370
11371 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11372
11373 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11374
11375
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11377 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11378 if test "${ac_cv_os_cray+set}" = set; then :
11379 $as_echo_n "(cached) " >&6
11380 else
11381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382 /* end confdefs.h. */
11383 #if defined CRAY && ! defined CRAY2
11384 webecray
11385 #else
11386 wenotbecray
11387 #endif
11388
11389 _ACEOF
11390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11391 $EGREP "webecray" >/dev/null 2>&1; then :
11392 ac_cv_os_cray=yes
11393 else
11394 ac_cv_os_cray=no
11395 fi
11396 rm -f conftest*
11397
11398 fi
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11400 $as_echo "$ac_cv_os_cray" >&6; }
11401 if test $ac_cv_os_cray = yes; then
11402 for ac_func in _getb67 GETB67 getb67; do
11403 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11404 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11405 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11406
11407 cat >>confdefs.h <<_ACEOF
11408 #define CRAY_STACKSEG_END $ac_func
11409 _ACEOF
11410
11411 break
11412 fi
11413
11414 done
11415 fi
11416
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11418 $as_echo_n "checking stack direction for C alloca... " >&6; }
11419 if test "${ac_cv_c_stack_direction+set}" = set; then :
11420 $as_echo_n "(cached) " >&6
11421 else
11422 if test "$cross_compiling" = yes; then :
11423 ac_cv_c_stack_direction=0
11424 else
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11427 $ac_includes_default
11428 int
11429 find_stack_direction ()
11430 {
11431 static char *addr = 0;
11432 auto char dummy;
11433 if (addr == 0)
11434 {
11435 addr = &dummy;
11436 return find_stack_direction ();
11437 }
11438 else
11439 return (&dummy > addr) ? 1 : -1;
11440 }
11441
11442 int
11443 main ()
11444 {
11445 return find_stack_direction () < 0;
11446 }
11447 _ACEOF
11448 if ac_fn_c_try_run "$LINENO"; then :
11449 ac_cv_c_stack_direction=1
11450 else
11451 ac_cv_c_stack_direction=-1
11452 fi
11453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11454 conftest.$ac_objext conftest.beam conftest.$ac_ext
11455 fi
11456
11457 fi
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11459 $as_echo "$ac_cv_c_stack_direction" >&6; }
11460 cat >>confdefs.h <<_ACEOF
11461 #define STACK_DIRECTION $ac_cv_c_stack_direction
11462 _ACEOF
11463
11464
11465 fi
11466
11467
11468 if test x"$ac_cv_func_alloca_works" != xyes; then
11469 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
11470 fi
11471
11472 # fmod, logb, and frexp are found in -lm on most systems.
11473 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11475 $as_echo_n "checking for sqrt in -lm... " >&6; }
11476 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
11477 $as_echo_n "(cached) " >&6
11478 else
11479 ac_check_lib_save_LIBS=$LIBS
11480 LIBS="-lm $LIBS"
11481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11483
11484 /* Override any GCC internal prototype to avoid an error.
11485 Use char because int might match the return type of a GCC
11486 builtin and then its argument prototype would still apply. */
11487 #ifdef __cplusplus
11488 extern "C"
11489 #endif
11490 char sqrt ();
11491 int
11492 main ()
11493 {
11494 return sqrt ();
11495 ;
11496 return 0;
11497 }
11498 _ACEOF
11499 if ac_fn_c_try_link "$LINENO"; then :
11500 ac_cv_lib_m_sqrt=yes
11501 else
11502 ac_cv_lib_m_sqrt=no
11503 fi
11504 rm -f core conftest.err conftest.$ac_objext \
11505 conftest$ac_exeext conftest.$ac_ext
11506 LIBS=$ac_check_lib_save_LIBS
11507 fi
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11509 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11510 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
11511 cat >>confdefs.h <<_ACEOF
11512 #define HAVE_LIBM 1
11513 _ACEOF
11514
11515 LIBS="-lm $LIBS"
11516
11517 fi
11518
11519
11520 # Check for mail-locking functions in a "mail" library. Probably this should
11521 # have the same check as for liblockfile below.
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11523 $as_echo_n "checking for maillock in -lmail... " >&6; }
11524 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11525 $as_echo_n "(cached) " >&6
11526 else
11527 ac_check_lib_save_LIBS=$LIBS
11528 LIBS="-lmail $LIBS"
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h. */
11531
11532 /* Override any GCC internal prototype to avoid an error.
11533 Use char because int might match the return type of a GCC
11534 builtin and then its argument prototype would still apply. */
11535 #ifdef __cplusplus
11536 extern "C"
11537 #endif
11538 char maillock ();
11539 int
11540 main ()
11541 {
11542 return maillock ();
11543 ;
11544 return 0;
11545 }
11546 _ACEOF
11547 if ac_fn_c_try_link "$LINENO"; then :
11548 ac_cv_lib_mail_maillock=yes
11549 else
11550 ac_cv_lib_mail_maillock=no
11551 fi
11552 rm -f core conftest.err conftest.$ac_objext \
11553 conftest$ac_exeext conftest.$ac_ext
11554 LIBS=$ac_check_lib_save_LIBS
11555 fi
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11557 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11558 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
11559 have_mail=yes
11560 else
11561 have_mail=no
11562 fi
11563
11564 if test $have_mail = yes; then
11565 LIBS_MAIL=-lmail
11566 LIBS="$LIBS_MAIL $LIBS"
11567
11568 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11569
11570 else
11571 LIBS_MAIL=
11572 fi
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11574 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11575 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11576 $as_echo_n "(cached) " >&6
11577 else
11578 ac_check_lib_save_LIBS=$LIBS
11579 LIBS="-llockfile $LIBS"
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11582
11583 /* Override any GCC internal prototype to avoid an error.
11584 Use char because int might match the return type of a GCC
11585 builtin and then its argument prototype would still apply. */
11586 #ifdef __cplusplus
11587 extern "C"
11588 #endif
11589 char maillock ();
11590 int
11591 main ()
11592 {
11593 return maillock ();
11594 ;
11595 return 0;
11596 }
11597 _ACEOF
11598 if ac_fn_c_try_link "$LINENO"; then :
11599 ac_cv_lib_lockfile_maillock=yes
11600 else
11601 ac_cv_lib_lockfile_maillock=no
11602 fi
11603 rm -f core conftest.err conftest.$ac_objext \
11604 conftest$ac_exeext conftest.$ac_ext
11605 LIBS=$ac_check_lib_save_LIBS
11606 fi
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11608 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11609 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
11610 have_lockfile=yes
11611 else
11612 have_lockfile=no
11613 fi
11614
11615 if test $have_lockfile = yes; then
11616 LIBS_MAIL=-llockfile
11617 LIBS="$LIBS_MAIL $LIBS"
11618
11619 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11620
11621 else
11622 # If we have the shared liblockfile, assume we must use it for mail
11623 # locking (e.g. Debian). If we couldn't link against liblockfile
11624 # (no liblockfile.a installed), ensure that we don't need to.
11625 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11626 set dummy liblockfile.so; ac_word=$2
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628 $as_echo_n "checking for $ac_word... " >&6; }
11629 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11630 $as_echo_n "(cached) " >&6
11631 else
11632 if test -n "$liblockfile"; then
11633 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11634 else
11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11637 for as_dir in $as_dummy
11638 do
11639 IFS=$as_save_IFS
11640 test -z "$as_dir" && as_dir=.
11641 for ac_exec_ext in '' $ac_executable_extensions; do
11642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11643 ac_cv_prog_liblockfile="yes"
11644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11645 break 2
11646 fi
11647 done
11648 done
11649 IFS=$as_save_IFS
11650
11651 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11652 fi
11653 fi
11654 liblockfile=$ac_cv_prog_liblockfile
11655 if test -n "$liblockfile"; then
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11657 $as_echo "$liblockfile" >&6; }
11658 else
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660 $as_echo "no" >&6; }
11661 fi
11662
11663
11664 if test $ac_cv_prog_liblockfile = yes; then
11665 as_fn_error $? "Shared liblockfile found but can't link against it.
11666 This probably means that movemail could lose mail.
11667 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11668 fi
11669 fi
11670 for ac_func in touchlock
11671 do :
11672 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11673 if test "x$ac_cv_func_touchlock" = x""yes; then :
11674 cat >>confdefs.h <<_ACEOF
11675 #define HAVE_TOUCHLOCK 1
11676 _ACEOF
11677
11678 fi
11679 done
11680
11681 for ac_header in maillock.h
11682 do :
11683 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11684 if test "x$ac_cv_header_maillock_h" = x""yes; then :
11685 cat >>confdefs.h <<_ACEOF
11686 #define HAVE_MAILLOCK_H 1
11687 _ACEOF
11688
11689 fi
11690
11691 done
11692
11693
11694
11695 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11696 ## interlock access to the mail spool. The alternative is a lock file named
11697 ## /usr/spool/mail/$USER.lock.
11698 mail_lock=no
11699 case "$opsys" in
11700 aix4-2) mail_lock="lockf" ;;
11701
11702 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11703
11704 ## On GNU/Linux systems, both methods are used by various mail programs.
11705 ## I assume most people are using newer mailers that have heard of flock.
11706 ## Change this if you need to.
11707 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11708 ## configure gets the right answers, and that means *NOT* using flock.
11709 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11710 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11711 ## Debian maintainer hasn't provided a clean fix for Emacs.
11712 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11713 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11714 ## correct logic. -- fx
11715 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11716 ## liblockfile is a Free Software replacement for libmail, used on
11717 ## Debian systems and elsewhere. -rfr.
11718 gnu-*)
11719 mail_lock="flock"
11720 if test $have_mail = yes || test $have_lockfile = yes; then
11721 test $ac_cv_header_maillock_h = yes && mail_lock=no
11722 fi
11723 ;;
11724 esac
11725
11726 BLESSMAIL_TARGET=
11727 case "$mail_lock" in
11728 flock)
11729 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11730 ;;
11731
11732 lockf)
11733 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11734 ;;
11735
11736 *) BLESSMAIL_TARGET="need-blessmail" ;;
11737 esac
11738
11739
11740
11741 for ac_func in gethostname getdomainname dup2 \
11742 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11743 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11744 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11745 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11746 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11747 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11748 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11749 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11750 cfmakeraw cfsetspeed isnan copysign __executable_start
11751 do :
11752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11753 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11754 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11755 cat >>confdefs.h <<_ACEOF
11756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11757 _ACEOF
11758
11759 fi
11760 done
11761
11762
11763 for ac_header in sys/un.h
11764 do :
11765 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11766 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11767 cat >>confdefs.h <<_ACEOF
11768 #define HAVE_SYS_UN_H 1
11769 _ACEOF
11770
11771 fi
11772
11773 done
11774
11775
11776
11777
11778
11779
11780
11781 for ac_func in $ac_func_list
11782 do :
11783 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11784 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11785 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11786 cat >>confdefs.h <<_ACEOF
11787 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11788 _ACEOF
11789
11790 fi
11791 done
11792
11793
11794
11795
11796
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11798 $as_echo_n "checking for working mktime... " >&6; }
11799 if test "${ac_cv_func_working_mktime+set}" = set; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 if test "$cross_compiling" = yes; then :
11803 ac_cv_func_working_mktime=no
11804 else
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11807 /* Test program from Paul Eggert and Tony Leneis. */
11808 #ifdef TIME_WITH_SYS_TIME
11809 # include <sys/time.h>
11810 # include <time.h>
11811 #else
11812 # ifdef HAVE_SYS_TIME_H
11813 # include <sys/time.h>
11814 # else
11815 # include <time.h>
11816 # endif
11817 #endif
11818
11819 #include <limits.h>
11820 #include <stdlib.h>
11821
11822 #ifdef HAVE_UNISTD_H
11823 # include <unistd.h>
11824 #endif
11825
11826 #ifndef HAVE_ALARM
11827 # define alarm(X) /* empty */
11828 #endif
11829
11830 /* Work around redefinition to rpl_putenv by other config tests. */
11831 #undef putenv
11832
11833 static time_t time_t_max;
11834 static time_t time_t_min;
11835
11836 /* Values we'll use to set the TZ environment variable. */
11837 static const char *tz_strings[] = {
11838 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11839 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11840 };
11841 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11842
11843 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11844 Based on a problem report from Andreas Jaeger. */
11845 static int
11846 spring_forward_gap ()
11847 {
11848 /* glibc (up to about 1998-10-07) failed this test. */
11849 struct tm tm;
11850
11851 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11852 instead of "TZ=America/Vancouver" in order to detect the bug even
11853 on systems that don't support the Olson extension, or don't have the
11854 full zoneinfo tables installed. */
11855 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11856
11857 tm.tm_year = 98;
11858 tm.tm_mon = 3;
11859 tm.tm_mday = 5;
11860 tm.tm_hour = 2;
11861 tm.tm_min = 0;
11862 tm.tm_sec = 0;
11863 tm.tm_isdst = -1;
11864 return mktime (&tm) != (time_t) -1;
11865 }
11866
11867 static int
11868 mktime_test1 (time_t now)
11869 {
11870 struct tm *lt;
11871 return ! (lt = localtime (&now)) || mktime (lt) == now;
11872 }
11873
11874 static int
11875 mktime_test (time_t now)
11876 {
11877 return (mktime_test1 (now)
11878 && mktime_test1 ((time_t) (time_t_max - now))
11879 && mktime_test1 ((time_t) (time_t_min + now)));
11880 }
11881
11882 static int
11883 irix_6_4_bug ()
11884 {
11885 /* Based on code from Ariel Faigon. */
11886 struct tm tm;
11887 tm.tm_year = 96;
11888 tm.tm_mon = 3;
11889 tm.tm_mday = 0;
11890 tm.tm_hour = 0;
11891 tm.tm_min = 0;
11892 tm.tm_sec = 0;
11893 tm.tm_isdst = -1;
11894 mktime (&tm);
11895 return tm.tm_mon == 2 && tm.tm_mday == 31;
11896 }
11897
11898 static int
11899 bigtime_test (int j)
11900 {
11901 struct tm tm;
11902 time_t now;
11903 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11904 now = mktime (&tm);
11905 if (now != (time_t) -1)
11906 {
11907 struct tm *lt = localtime (&now);
11908 if (! (lt
11909 && lt->tm_year == tm.tm_year
11910 && lt->tm_mon == tm.tm_mon
11911 && lt->tm_mday == tm.tm_mday
11912 && lt->tm_hour == tm.tm_hour
11913 && lt->tm_min == tm.tm_min
11914 && lt->tm_sec == tm.tm_sec
11915 && lt->tm_yday == tm.tm_yday
11916 && lt->tm_wday == tm.tm_wday
11917 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11918 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11919 return 0;
11920 }
11921 return 1;
11922 }
11923
11924 static int
11925 year_2050_test ()
11926 {
11927 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11928 ignoring leap seconds. */
11929 unsigned long int answer = 2527315200UL;
11930
11931 struct tm tm;
11932 time_t t;
11933 tm.tm_year = 2050 - 1900;
11934 tm.tm_mon = 2 - 1;
11935 tm.tm_mday = 1;
11936 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11937 tm.tm_isdst = -1;
11938
11939 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11940 instead of "TZ=America/Vancouver" in order to detect the bug even
11941 on systems that don't support the Olson extension, or don't have the
11942 full zoneinfo tables installed. */
11943 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11944
11945 t = mktime (&tm);
11946
11947 /* Check that the result is either a failure, or close enough
11948 to the correct answer that we can assume the discrepancy is
11949 due to leap seconds. */
11950 return (t == (time_t) -1
11951 || (0 < t && answer - 120 <= t && t <= answer + 120));
11952 }
11953
11954 int
11955 main ()
11956 {
11957 time_t t, delta;
11958 int i, j;
11959
11960 /* This test makes some buggy mktime implementations loop.
11961 Give up after 60 seconds; a mktime slower than that
11962 isn't worth using anyway. */
11963 alarm (60);
11964
11965 for (;;)
11966 {
11967 t = (time_t_max << 1) + 1;
11968 if (t <= time_t_max)
11969 break;
11970 time_t_max = t;
11971 }
11972 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11973
11974 delta = time_t_max / 997; /* a suitable prime number */
11975 for (i = 0; i < N_STRINGS; i++)
11976 {
11977 if (tz_strings[i])
11978 putenv ((char*) tz_strings[i]);
11979
11980 for (t = 0; t <= time_t_max - delta; t += delta)
11981 if (! mktime_test (t))
11982 return 1;
11983 if (! (mktime_test ((time_t) 1)
11984 && mktime_test ((time_t) (60 * 60))
11985 && mktime_test ((time_t) (60 * 60 * 24))))
11986 return 1;
11987
11988 for (j = 1; ; j <<= 1)
11989 if (! bigtime_test (j))
11990 return 1;
11991 else if (INT_MAX / 2 < j)
11992 break;
11993 if (! bigtime_test (INT_MAX))
11994 return 1;
11995 }
11996 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11997 }
11998 _ACEOF
11999 if ac_fn_c_try_run "$LINENO"; then :
12000 ac_cv_func_working_mktime=yes
12001 else
12002 ac_cv_func_working_mktime=no
12003 fi
12004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12005 conftest.$ac_objext conftest.beam conftest.$ac_ext
12006 fi
12007
12008 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12010 $as_echo "$ac_cv_func_working_mktime" >&6; }
12011 if test $ac_cv_func_working_mktime = no; then
12012 case " $LIBOBJS " in
12013 *" mktime.$ac_objext "* ) ;;
12014 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12015 ;;
12016 esac
12017
12018 fi
12019
12020 if test "$ac_cv_func_working_mktime" = no; then
12021
12022 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12023
12024 fi
12025
12026 ac_have_func=no # yes means we've found a way to get the load average.
12027
12028 # Make sure getloadavg.c is where it belongs, at configure-time.
12029 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12030 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12031
12032 ac_save_LIBS=$LIBS
12033
12034 # Check for getloadavg, but be sure not to touch the cache variable.
12035 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12036 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12037 exit 0
12038 else
12039 exit 1
12040 fi
12041 ) && ac_have_func=yes
12042
12043 # On HPUX9, an unprivileged user can get load averages through this function.
12044 for ac_func in pstat_getdynamic
12045 do :
12046 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12047 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
12048 cat >>confdefs.h <<_ACEOF
12049 #define HAVE_PSTAT_GETDYNAMIC 1
12050 _ACEOF
12051
12052 fi
12053 done
12054
12055
12056 # Solaris has libkstat which does not require root.
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12058 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12059 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 ac_check_lib_save_LIBS=$LIBS
12063 LIBS="-lkstat $LIBS"
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12066
12067 /* Override any GCC internal prototype to avoid an error.
12068 Use char because int might match the return type of a GCC
12069 builtin and then its argument prototype would still apply. */
12070 #ifdef __cplusplus
12071 extern "C"
12072 #endif
12073 char kstat_open ();
12074 int
12075 main ()
12076 {
12077 return kstat_open ();
12078 ;
12079 return 0;
12080 }
12081 _ACEOF
12082 if ac_fn_c_try_link "$LINENO"; then :
12083 ac_cv_lib_kstat_kstat_open=yes
12084 else
12085 ac_cv_lib_kstat_kstat_open=no
12086 fi
12087 rm -f core conftest.err conftest.$ac_objext \
12088 conftest$ac_exeext conftest.$ac_ext
12089 LIBS=$ac_check_lib_save_LIBS
12090 fi
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12092 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12093 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12094 cat >>confdefs.h <<_ACEOF
12095 #define HAVE_LIBKSTAT 1
12096 _ACEOF
12097
12098 LIBS="-lkstat $LIBS"
12099
12100 fi
12101
12102 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12103
12104 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12105 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12106 # to get the right answer into the cache.
12107 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12108 if test $ac_have_func = no; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12110 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12111 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12112 $as_echo_n "(cached) " >&6
12113 else
12114 ac_check_lib_save_LIBS=$LIBS
12115 LIBS="-lelf $LIBS"
12116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117 /* end confdefs.h. */
12118
12119 /* Override any GCC internal prototype to avoid an error.
12120 Use char because int might match the return type of a GCC
12121 builtin and then its argument prototype would still apply. */
12122 #ifdef __cplusplus
12123 extern "C"
12124 #endif
12125 char elf_begin ();
12126 int
12127 main ()
12128 {
12129 return elf_begin ();
12130 ;
12131 return 0;
12132 }
12133 _ACEOF
12134 if ac_fn_c_try_link "$LINENO"; then :
12135 ac_cv_lib_elf_elf_begin=yes
12136 else
12137 ac_cv_lib_elf_elf_begin=no
12138 fi
12139 rm -f core conftest.err conftest.$ac_objext \
12140 conftest$ac_exeext conftest.$ac_ext
12141 LIBS=$ac_check_lib_save_LIBS
12142 fi
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12144 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12145 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
12146 LIBS="-lelf $LIBS"
12147 fi
12148
12149 fi
12150 if test $ac_have_func = no; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12152 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12153 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12154 $as_echo_n "(cached) " >&6
12155 else
12156 ac_check_lib_save_LIBS=$LIBS
12157 LIBS="-lkvm $LIBS"
12158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159 /* end confdefs.h. */
12160
12161 /* Override any GCC internal prototype to avoid an error.
12162 Use char because int might match the return type of a GCC
12163 builtin and then its argument prototype would still apply. */
12164 #ifdef __cplusplus
12165 extern "C"
12166 #endif
12167 char kvm_open ();
12168 int
12169 main ()
12170 {
12171 return kvm_open ();
12172 ;
12173 return 0;
12174 }
12175 _ACEOF
12176 if ac_fn_c_try_link "$LINENO"; then :
12177 ac_cv_lib_kvm_kvm_open=yes
12178 else
12179 ac_cv_lib_kvm_kvm_open=no
12180 fi
12181 rm -f core conftest.err conftest.$ac_objext \
12182 conftest$ac_exeext conftest.$ac_ext
12183 LIBS=$ac_check_lib_save_LIBS
12184 fi
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12186 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12187 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
12188 LIBS="-lkvm $LIBS"
12189 fi
12190
12191 # Check for the 4.4BSD definition of getloadavg.
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12193 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12194 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12195 $as_echo_n "(cached) " >&6
12196 else
12197 ac_check_lib_save_LIBS=$LIBS
12198 LIBS="-lutil $LIBS"
12199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200 /* end confdefs.h. */
12201
12202 /* Override any GCC internal prototype to avoid an error.
12203 Use char because int might match the return type of a GCC
12204 builtin and then its argument prototype would still apply. */
12205 #ifdef __cplusplus
12206 extern "C"
12207 #endif
12208 char getloadavg ();
12209 int
12210 main ()
12211 {
12212 return getloadavg ();
12213 ;
12214 return 0;
12215 }
12216 _ACEOF
12217 if ac_fn_c_try_link "$LINENO"; then :
12218 ac_cv_lib_util_getloadavg=yes
12219 else
12220 ac_cv_lib_util_getloadavg=no
12221 fi
12222 rm -f core conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext conftest.$ac_ext
12224 LIBS=$ac_check_lib_save_LIBS
12225 fi
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12227 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12228 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
12229 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12230 fi
12231
12232 fi
12233
12234 if test $ac_have_func = no; then
12235 # There is a commonly available library for RS/6000 AIX.
12236 # Since it is not a standard part of AIX, it might be installed locally.
12237 ac_getloadavg_LIBS=$LIBS
12238 LIBS="-L/usr/local/lib $LIBS"
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12240 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12241 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12242 $as_echo_n "(cached) " >&6
12243 else
12244 ac_check_lib_save_LIBS=$LIBS
12245 LIBS="-lgetloadavg $LIBS"
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h. */
12248
12249 /* Override any GCC internal prototype to avoid an error.
12250 Use char because int might match the return type of a GCC
12251 builtin and then its argument prototype would still apply. */
12252 #ifdef __cplusplus
12253 extern "C"
12254 #endif
12255 char getloadavg ();
12256 int
12257 main ()
12258 {
12259 return getloadavg ();
12260 ;
12261 return 0;
12262 }
12263 _ACEOF
12264 if ac_fn_c_try_link "$LINENO"; then :
12265 ac_cv_lib_getloadavg_getloadavg=yes
12266 else
12267 ac_cv_lib_getloadavg_getloadavg=no
12268 fi
12269 rm -f core conftest.err conftest.$ac_objext \
12270 conftest$ac_exeext conftest.$ac_ext
12271 LIBS=$ac_check_lib_save_LIBS
12272 fi
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12274 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12275 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
12276 LIBS="-lgetloadavg $LIBS"
12277 else
12278 LIBS=$ac_getloadavg_LIBS
12279 fi
12280
12281 fi
12282
12283 # Make sure it is really in the library, if we think we found it,
12284 # otherwise set up the replacement function.
12285 for ac_func in getloadavg
12286 do :
12287 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12288 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12289 cat >>confdefs.h <<_ACEOF
12290 #define HAVE_GETLOADAVG 1
12291 _ACEOF
12292
12293 else
12294 case " $LIBOBJS " in
12295 *" getloadavg.$ac_objext "* ) ;;
12296 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12297 ;;
12298 esac
12299
12300
12301 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12302
12303 # Figure out what our getloadavg.c needs.
12304 ac_have_func=no
12305 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12306 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
12307 ac_have_func=yes
12308
12309 $as_echo "#define DGUX 1" >>confdefs.h
12310
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12312 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12313 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12316 ac_check_lib_save_LIBS=$LIBS
12317 LIBS="-ldgc $LIBS"
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12320
12321 /* Override any GCC internal prototype to avoid an error.
12322 Use char because int might match the return type of a GCC
12323 builtin and then its argument prototype would still apply. */
12324 #ifdef __cplusplus
12325 extern "C"
12326 #endif
12327 char dg_sys_info ();
12328 int
12329 main ()
12330 {
12331 return dg_sys_info ();
12332 ;
12333 return 0;
12334 }
12335 _ACEOF
12336 if ac_fn_c_try_link "$LINENO"; then :
12337 ac_cv_lib_dgc_dg_sys_info=yes
12338 else
12339 ac_cv_lib_dgc_dg_sys_info=no
12340 fi
12341 rm -f core conftest.err conftest.$ac_objext \
12342 conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12344 fi
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12346 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12347 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
12348 cat >>confdefs.h <<_ACEOF
12349 #define HAVE_LIBDGC 1
12350 _ACEOF
12351
12352 LIBS="-ldgc $LIBS"
12353
12354 fi
12355
12356 fi
12357
12358
12359
12360 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12361 if test "x$ac_cv_header_locale_h" = x""yes; then :
12362
12363 fi
12364
12365
12366 for ac_func in setlocale
12367 do :
12368 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12369 if test "x$ac_cv_func_setlocale" = x""yes; then :
12370 cat >>confdefs.h <<_ACEOF
12371 #define HAVE_SETLOCALE 1
12372 _ACEOF
12373
12374 fi
12375 done
12376
12377
12378 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12379 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12380 # Irix 4.0.5F has the header but not the library.
12381 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12382 ac_have_func=yes
12383
12384 $as_echo "#define SVR4 1" >>confdefs.h
12385
12386 fi
12387
12388 if test $ac_have_func = no; then
12389 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12390 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
12391 ac_have_func=yes
12392
12393 $as_echo "#define UMAX 1" >>confdefs.h
12394
12395
12396 $as_echo "#define UMAX4_3 1" >>confdefs.h
12397
12398 fi
12399
12400
12401 fi
12402
12403 if test $ac_have_func = no; then
12404 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12405 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
12406 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
12407
12408 fi
12409
12410
12411 fi
12412
12413 if test $ac_have_func = no; then
12414 for ac_header in mach/mach.h
12415 do :
12416 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12417 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
12418 cat >>confdefs.h <<_ACEOF
12419 #define HAVE_MACH_MACH_H 1
12420 _ACEOF
12421
12422 fi
12423
12424 done
12425
12426 fi
12427
12428 for ac_header in nlist.h
12429 do :
12430 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12431 if test "x$ac_cv_header_nlist_h" = x""yes; then :
12432 cat >>confdefs.h <<_ACEOF
12433 #define HAVE_NLIST_H 1
12434 _ACEOF
12435 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12436 "
12437 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
12438
12439 cat >>confdefs.h <<_ACEOF
12440 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12441 _ACEOF
12442
12443
12444 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12445
12446 fi
12447
12448
12449 fi
12450
12451 done
12452
12453 fi
12454 done
12455
12456
12457 # Some definitions of getloadavg require that the program be installed setgid.
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12459 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12460 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12465 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12466 #ifdef LDAV_PRIVILEGED
12467 Yowza Am I SETGID yet
12468 #endif
12469 _ACEOF
12470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12471 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
12472 ac_cv_func_getloadavg_setgid=yes
12473 else
12474 ac_cv_func_getloadavg_setgid=no
12475 fi
12476 rm -f conftest*
12477
12478 fi
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12480 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12481 if test $ac_cv_func_getloadavg_setgid = yes; then
12482 NEED_SETGID=true
12483
12484 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12485
12486 else
12487 NEED_SETGID=false
12488 fi
12489
12490 if test $ac_cv_func_getloadavg_setgid = yes; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12492 $as_echo_n "checking group of /dev/kmem... " >&6; }
12493 if test "${ac_cv_group_kmem+set}" = set; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12497 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12498 # If we got an error (system does not support symlinks), try without -L.
12499 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12500 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
12501 | sed -ne 's/[ ][ ]*/ /g;
12502 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12503 / /s/.* //;p;'`
12504
12505 fi
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12507 $as_echo "$ac_cv_group_kmem" >&6; }
12508 KMEM_GROUP=$ac_cv_group_kmem
12509 fi
12510 if test "x$ac_save_LIBS" = x; then
12511 GETLOADAVG_LIBS=$LIBS
12512 else
12513 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12514 fi
12515 LIBS=$ac_save_LIBS
12516
12517
12518
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12520 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12521 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 while :; do
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12527 #include <sys/types.h> /* for off_t */
12528 #include <stdio.h>
12529 int
12530 main ()
12531 {
12532 int (*fp) (FILE *, off_t, int) = fseeko;
12533 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12534 ;
12535 return 0;
12536 }
12537 _ACEOF
12538 if ac_fn_c_try_link "$LINENO"; then :
12539 ac_cv_sys_largefile_source=no; break
12540 fi
12541 rm -f core conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12545 #define _LARGEFILE_SOURCE 1
12546 #include <sys/types.h> /* for off_t */
12547 #include <stdio.h>
12548 int
12549 main ()
12550 {
12551 int (*fp) (FILE *, off_t, int) = fseeko;
12552 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12553 ;
12554 return 0;
12555 }
12556 _ACEOF
12557 if ac_fn_c_try_link "$LINENO"; then :
12558 ac_cv_sys_largefile_source=1; break
12559 fi
12560 rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
12562 ac_cv_sys_largefile_source=unknown
12563 break
12564 done
12565 fi
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12567 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12568 case $ac_cv_sys_largefile_source in #(
12569 no | unknown) ;;
12570 *)
12571 cat >>confdefs.h <<_ACEOF
12572 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12573 _ACEOF
12574 ;;
12575 esac
12576 rm -rf conftest*
12577
12578 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12579 # in glibc 2.1.3, but that breaks too many other things.
12580 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12581 if test $ac_cv_sys_largefile_source != unknown; then
12582
12583 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12584
12585 fi
12586
12587
12588 # Configure getopt.
12589 # getopt.m4 serial 10
12590
12591 # The getopt module assume you want GNU getopt, with getopt_long etc,
12592 # rather than vanilla POSIX getopt. This means your your code should
12593 # always include <getopt.h> for the getopt prototypes.
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605 # Prerequisites of lib/getopt*.
12606
12607
12608
12609
12610 GETOPT_H=
12611 for ac_header in getopt.h
12612 do :
12613 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12614 if test "x$ac_cv_header_getopt_h" = x""yes; then :
12615 cat >>confdefs.h <<_ACEOF
12616 #define HAVE_GETOPT_H 1
12617 _ACEOF
12618
12619 else
12620 GETOPT_H=getopt.h
12621 fi
12622
12623 done
12624
12625 if test -z "$GETOPT_H"; then
12626 for ac_func in getopt_long_only
12627 do :
12628 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12629 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
12630 cat >>confdefs.h <<_ACEOF
12631 #define HAVE_GETOPT_LONG_ONLY 1
12632 _ACEOF
12633
12634 else
12635 GETOPT_H=getopt.h
12636 fi
12637 done
12638
12639 fi
12640
12641 if test -z "$GETOPT_H"; then
12642 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12643 "
12644 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
12645 GETOPT_H=getopt.h
12646 fi
12647
12648 fi
12649
12650 if test -z "$GETOPT_H"; then
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12652 $as_echo_n "checking for working GNU getopt function... " >&6; }
12653 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12654 $as_echo_n "(cached) " >&6
12655 else
12656 if test "$cross_compiling" = yes; then :
12657 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12658 "
12659 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12660 gl_cv_func_gnu_getopt=no
12661 else
12662 gl_cv_func_gnu_getopt=yes
12663 fi
12664
12665 else
12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667 /* end confdefs.h. */
12668 #include <getopt.h>
12669 int
12670 main ()
12671 {
12672
12673 char *myargv[3];
12674 myargv[0] = "conftest";
12675 myargv[1] = "-+";
12676 myargv[2] = 0;
12677 return getopt (2, myargv, "+a") != '?';
12678
12679 ;
12680 return 0;
12681 }
12682 _ACEOF
12683 if ac_fn_c_try_run "$LINENO"; then :
12684 gl_cv_func_gnu_getopt=yes
12685 else
12686 gl_cv_func_gnu_getopt=no
12687 fi
12688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12689 conftest.$ac_objext conftest.beam conftest.$ac_ext
12690 fi
12691
12692 fi
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12694 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12695 if test "$gl_cv_func_gnu_getopt" = "no"; then
12696 GETOPT_H=getopt.h
12697 fi
12698 fi
12699
12700
12701
12702 if test -n "$GETOPT_H"; then :
12703
12704
12705 GETOPT_H=getopt.h
12706
12707 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12708
12709
12710
12711 :
12712 GETOPTOBJS='getopt.o getopt1.o'
12713
12714 fi
12715
12716
12717
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12719 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12720 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 # Use it with a single arg.
12724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h. */
12726 $ac_includes_default
12727 int
12728 main ()
12729 {
12730 getpgrp (0);
12731 ;
12732 return 0;
12733 }
12734 _ACEOF
12735 if ac_fn_c_try_compile "$LINENO"; then :
12736 ac_cv_func_getpgrp_void=no
12737 else
12738 ac_cv_func_getpgrp_void=yes
12739 fi
12740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12741
12742 fi
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12744 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12745 if test $ac_cv_func_getpgrp_void = yes; then
12746
12747 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12748
12749 fi
12750
12751
12752 for ac_func in strftime
12753 do :
12754 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12755 if test "x$ac_cv_func_strftime" = x""yes; then :
12756 cat >>confdefs.h <<_ACEOF
12757 #define HAVE_STRFTIME 1
12758 _ACEOF
12759
12760 else
12761 # strftime is in -lintl on SCO UNIX.
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12763 $as_echo_n "checking for strftime in -lintl... " >&6; }
12764 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12765 $as_echo_n "(cached) " >&6
12766 else
12767 ac_check_lib_save_LIBS=$LIBS
12768 LIBS="-lintl $LIBS"
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12771
12772 /* Override any GCC internal prototype to avoid an error.
12773 Use char because int might match the return type of a GCC
12774 builtin and then its argument prototype would still apply. */
12775 #ifdef __cplusplus
12776 extern "C"
12777 #endif
12778 char strftime ();
12779 int
12780 main ()
12781 {
12782 return strftime ();
12783 ;
12784 return 0;
12785 }
12786 _ACEOF
12787 if ac_fn_c_try_link "$LINENO"; then :
12788 ac_cv_lib_intl_strftime=yes
12789 else
12790 ac_cv_lib_intl_strftime=no
12791 fi
12792 rm -f core conftest.err conftest.$ac_objext \
12793 conftest$ac_exeext conftest.$ac_ext
12794 LIBS=$ac_check_lib_save_LIBS
12795 fi
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12797 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12798 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12799 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12800
12801 LIBS="-lintl $LIBS"
12802 fi
12803
12804 fi
12805 done
12806
12807
12808 # UNIX98 PTYs.
12809 for ac_func in grantpt
12810 do :
12811 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12812 if test "x$ac_cv_func_grantpt" = x""yes; then :
12813 cat >>confdefs.h <<_ACEOF
12814 #define HAVE_GRANTPT 1
12815 _ACEOF
12816
12817 fi
12818 done
12819
12820
12821 # PTY-related GNU extensions.
12822 for ac_func in getpt
12823 do :
12824 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12825 if test "x$ac_cv_func_getpt" = x""yes; then :
12826 cat >>confdefs.h <<_ACEOF
12827 #define HAVE_GETPT 1
12828 _ACEOF
12829
12830 fi
12831 done
12832
12833
12834 # Check this now, so that we will NOT find the above functions in ncurses.
12835 # That is because we have not set up to link ncurses in lib-src.
12836 # It's better to believe a function is not available
12837 # than to expect to find it in ncurses.
12838 # Also we need tputs and friends to be able to build at all.
12839 have_tputs_et_al=true
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12841 $as_echo_n "checking for library containing tputs... " >&6; }
12842 if test "${ac_cv_search_tputs+set}" = set; then :
12843 $as_echo_n "(cached) " >&6
12844 else
12845 ac_func_search_save_LIBS=$LIBS
12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h. */
12848
12849 /* Override any GCC internal prototype to avoid an error.
12850 Use char because int might match the return type of a GCC
12851 builtin and then its argument prototype would still apply. */
12852 #ifdef __cplusplus
12853 extern "C"
12854 #endif
12855 char tputs ();
12856 int
12857 main ()
12858 {
12859 return tputs ();
12860 ;
12861 return 0;
12862 }
12863 _ACEOF
12864 for ac_lib in '' ncurses terminfo termcap; do
12865 if test -z "$ac_lib"; then
12866 ac_res="none required"
12867 else
12868 ac_res=-l$ac_lib
12869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12870 fi
12871 if ac_fn_c_try_link "$LINENO"; then :
12872 ac_cv_search_tputs=$ac_res
12873 fi
12874 rm -f core conftest.err conftest.$ac_objext \
12875 conftest$ac_exeext
12876 if test "${ac_cv_search_tputs+set}" = set; then :
12877 break
12878 fi
12879 done
12880 if test "${ac_cv_search_tputs+set}" = set; then :
12881
12882 else
12883 ac_cv_search_tputs=no
12884 fi
12885 rm conftest.$ac_ext
12886 LIBS=$ac_func_search_save_LIBS
12887 fi
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12889 $as_echo "$ac_cv_search_tputs" >&6; }
12890 ac_res=$ac_cv_search_tputs
12891 if test "$ac_res" != no; then :
12892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12893
12894 else
12895 have_tputs_et_al=false
12896 fi
12897
12898 if test "$have_tputs_et_al" != true; then
12899 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
12900 Maybe some development libraries/packages are missing? Try installing
12901 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12902 fi
12903 # Must define this when any termcap library is found.
12904
12905 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12906
12907 ## FIXME This was the cpp logic, but I am not sure it is right.
12908 ## The above test has not necessarily found libncurses.
12909 HAVE_LIBNCURSES=yes
12910
12911 ## Use terminfo instead of termcap?
12912 ## Note only system files NOT using terminfo are:
12913 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
12914 ## darwin|gnu without ncurses.
12915 TERMINFO=no
12916 LIBS_TERMCAP=
12917 case "$opsys" in
12918 ## cygwin: Fewer environment variables to go wrong, more terminal types.
12919 ## hpux10-20: Use the system provided termcap(3) library.
12920 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
12921 ## is necessary. Otherwise Emacs dumps core when run -nw.
12922 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
12923
12924 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
12925 ## The ncurses library has been moved out of the System framework in
12926 ## Mac OS X 10.2. So if configure detects it, set the command-line
12927 ## option to use it.
12928 darwin|gnu*)
12929 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
12930 if test "x$HAVE_LIBNCURSES" = "xyes"; then
12931 TERMINFO=yes
12932 LIBS_TERMCAP="-lncurses"
12933 fi
12934 ;;
12935
12936 freebsd)
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
12938 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
12939 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
12940 $as_echo_n "(cached) " >&6
12941 else
12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h. */
12944 #include <osreldate.h>
12945 int
12946 main ()
12947 {
12948 #if __FreeBSD_version < 400000
12949 fail;
12950 #endif
12951
12952 ;
12953 return 0;
12954 }
12955 _ACEOF
12956 if ac_fn_c_try_link "$LINENO"; then :
12957 emacs_cv_freebsd_terminfo=yes
12958 else
12959 emacs_cv_freebsd_terminfo=no
12960 fi
12961 rm -f core conftest.err conftest.$ac_objext \
12962 conftest$ac_exeext conftest.$ac_ext
12963 fi
12964
12965
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
12967 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
12968
12969 if test $emacs_cv_freebsd_terminfo = yes; then
12970 TERMINFO=yes
12971 LIBS_TERMCAP="-lncurses"
12972 else
12973 LIBS_TERMCAP="-ltermcap"
12974 fi
12975 ;;
12976
12977 netbsd)
12978 if test $ac_cv_search_tputs = -lterminfo; then
12979 TERMINFO=yes
12980 LIBS_TERMCAP="-lterminfo"
12981 else
12982 LIBS_TERMCAP="-ltermcap"
12983 fi
12984 ;;
12985
12986 esac
12987
12988 case "$opsys" in
12989 ## hpux: Make sure we get select from libc rather than from libcurses
12990 ## because libcurses on HPUX 10.10 has a broken version of select.
12991 ## We used to use -lc -lcurses, but this may be cleaner.
12992 hpux*) LIBS_TERMCAP="-ltermcap" ;;
12993
12994 openbsd) LIBS_TERMCAP="-lncurses" ;;
12995
12996 ## Must use system termcap, if we use any termcap. It does special things.
12997 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
12998 esac
12999
13000 TERMCAP_OBJ=tparam.o
13001 if test $TERMINFO = yes; then
13002
13003 $as_echo "#define TERMINFO 1" >>confdefs.h
13004
13005
13006 ## Default used to be -ltermcap. Add a case above if need something else.
13007 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
13008
13009 TERMCAP_OBJ=terminfo.o
13010 fi
13011
13012
13013
13014
13015 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13016 resolv=no
13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018 /* end confdefs.h. */
13019 #include <netinet/in.h>
13020 #include <arpa/nameser.h>
13021 #include <resolv.h>
13022 int
13023 main ()
13024 {
13025 return res_init();
13026 ;
13027 return 0;
13028 }
13029 _ACEOF
13030 if ac_fn_c_try_link "$LINENO"; then :
13031 have_res_init=yes
13032 else
13033 have_res_init=no
13034 fi
13035 rm -f core conftest.err conftest.$ac_objext \
13036 conftest$ac_exeext conftest.$ac_ext
13037 if test "$have_res_init" = no; then
13038 OLIBS="$LIBS"
13039 LIBS="$LIBS -lresolv"
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13041 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13044 #include <netinet/in.h>
13045 #include <arpa/nameser.h>
13046 #include <resolv.h>
13047 int
13048 main ()
13049 {
13050 return res_init();
13051 ;
13052 return 0;
13053 }
13054 _ACEOF
13055 if ac_fn_c_try_link "$LINENO"; then :
13056 have_res_init=yes
13057 else
13058 have_res_init=no
13059 fi
13060 rm -f core conftest.err conftest.$ac_objext \
13061 conftest$ac_exeext conftest.$ac_ext
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13063 $as_echo "$have_res_init" >&6; }
13064 if test "$have_res_init" = yes ; then
13065 resolv=yes
13066 fi
13067 LIBS="$OLIBS"
13068 fi
13069
13070 if test "$have_res_init" = yes; then
13071
13072 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13073
13074 fi
13075
13076 # Do we need the Hesiod library to provide the support routines?
13077 LIBHESIOD=
13078 if test "$with_hesiod" != no ; then
13079 # Don't set $LIBS here -- see comments above. FIXME which comments?
13080 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13081 if test "x$ac_cv_func_res_send" = x""yes; then :
13082
13083 else
13084 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13085 if test "x$ac_cv_func___res_send" = x""yes; then :
13086
13087 else
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13089 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13090 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13091 $as_echo_n "(cached) " >&6
13092 else
13093 ac_check_lib_save_LIBS=$LIBS
13094 LIBS="-lresolv $LIBS"
13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h. */
13097
13098 /* Override any GCC internal prototype to avoid an error.
13099 Use char because int might match the return type of a GCC
13100 builtin and then its argument prototype would still apply. */
13101 #ifdef __cplusplus
13102 extern "C"
13103 #endif
13104 char res_send ();
13105 int
13106 main ()
13107 {
13108 return res_send ();
13109 ;
13110 return 0;
13111 }
13112 _ACEOF
13113 if ac_fn_c_try_link "$LINENO"; then :
13114 ac_cv_lib_resolv_res_send=yes
13115 else
13116 ac_cv_lib_resolv_res_send=no
13117 fi
13118 rm -f core conftest.err conftest.$ac_objext \
13119 conftest$ac_exeext conftest.$ac_ext
13120 LIBS=$ac_check_lib_save_LIBS
13121 fi
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13123 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13124 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13125 resolv=yes
13126 else
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13128 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13129 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13130 $as_echo_n "(cached) " >&6
13131 else
13132 ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-lresolv $LIBS"
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13136
13137 /* Override any GCC internal prototype to avoid an error.
13138 Use char because int might match the return type of a GCC
13139 builtin and then its argument prototype would still apply. */
13140 #ifdef __cplusplus
13141 extern "C"
13142 #endif
13143 char __res_send ();
13144 int
13145 main ()
13146 {
13147 return __res_send ();
13148 ;
13149 return 0;
13150 }
13151 _ACEOF
13152 if ac_fn_c_try_link "$LINENO"; then :
13153 ac_cv_lib_resolv___res_send=yes
13154 else
13155 ac_cv_lib_resolv___res_send=no
13156 fi
13157 rm -f core conftest.err conftest.$ac_objext \
13158 conftest$ac_exeext conftest.$ac_ext
13159 LIBS=$ac_check_lib_save_LIBS
13160 fi
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13162 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13163 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13164 resolv=yes
13165 fi
13166
13167 fi
13168
13169 fi
13170
13171 fi
13172
13173 if test "$resolv" = yes ; then
13174 RESOLVLIB=-lresolv
13175 else
13176 RESOLVLIB=
13177 fi
13178 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13179 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13180
13181 else
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13183 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13184 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13185 $as_echo_n "(cached) " >&6
13186 else
13187 ac_check_lib_save_LIBS=$LIBS
13188 LIBS="-lhesiod $RESOLVLIB $LIBS"
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13191
13192 /* Override any GCC internal prototype to avoid an error.
13193 Use char because int might match the return type of a GCC
13194 builtin and then its argument prototype would still apply. */
13195 #ifdef __cplusplus
13196 extern "C"
13197 #endif
13198 char hes_getmailhost ();
13199 int
13200 main ()
13201 {
13202 return hes_getmailhost ();
13203 ;
13204 return 0;
13205 }
13206 _ACEOF
13207 if ac_fn_c_try_link "$LINENO"; then :
13208 ac_cv_lib_hesiod_hes_getmailhost=yes
13209 else
13210 ac_cv_lib_hesiod_hes_getmailhost=no
13211 fi
13212 rm -f core conftest.err conftest.$ac_objext \
13213 conftest$ac_exeext conftest.$ac_ext
13214 LIBS=$ac_check_lib_save_LIBS
13215 fi
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13217 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13218 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13219 hesiod=yes
13220 else
13221 :
13222 fi
13223
13224 fi
13225
13226
13227 if test x"$hesiod" = xyes; then
13228
13229 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13230
13231 LIBHESIOD=-lhesiod
13232 fi
13233 fi
13234
13235
13236 # Do we need libresolv (due to res_init or Hesiod)?
13237 if test "$resolv" = yes ; then
13238
13239 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13240
13241 LIBRESOLV=-lresolv
13242 else
13243 LIBRESOLV=
13244 fi
13245
13246
13247 # These tell us which Kerberos-related libraries to use.
13248 COM_ERRLIB=
13249 CRYPTOLIB=
13250 KRB5LIB=
13251 DESLIB=
13252 KRB4LIB=
13253
13254 if test "${with_kerberos}" != no; then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13256 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13257 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13258 $as_echo_n "(cached) " >&6
13259 else
13260 ac_check_lib_save_LIBS=$LIBS
13261 LIBS="-lcom_err $LIBS"
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13264
13265 /* Override any GCC internal prototype to avoid an error.
13266 Use char because int might match the return type of a GCC
13267 builtin and then its argument prototype would still apply. */
13268 #ifdef __cplusplus
13269 extern "C"
13270 #endif
13271 char com_err ();
13272 int
13273 main ()
13274 {
13275 return com_err ();
13276 ;
13277 return 0;
13278 }
13279 _ACEOF
13280 if ac_fn_c_try_link "$LINENO"; then :
13281 ac_cv_lib_com_err_com_err=yes
13282 else
13283 ac_cv_lib_com_err_com_err=no
13284 fi
13285 rm -f core conftest.err conftest.$ac_objext \
13286 conftest$ac_exeext conftest.$ac_ext
13287 LIBS=$ac_check_lib_save_LIBS
13288 fi
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13290 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13291 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13292 have_com_err=yes
13293 else
13294 have_com_err=no
13295 fi
13296
13297 if test $have_com_err = yes; then
13298 COM_ERRLIB=-lcom_err
13299 LIBS="$COM_ERRLIB $LIBS"
13300
13301 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13302
13303 fi
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13305 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13306 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13307 $as_echo_n "(cached) " >&6
13308 else
13309 ac_check_lib_save_LIBS=$LIBS
13310 LIBS="-lcrypto $LIBS"
13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h. */
13313
13314 /* Override any GCC internal prototype to avoid an error.
13315 Use char because int might match the return type of a GCC
13316 builtin and then its argument prototype would still apply. */
13317 #ifdef __cplusplus
13318 extern "C"
13319 #endif
13320 char mit_des_cbc_encrypt ();
13321 int
13322 main ()
13323 {
13324 return mit_des_cbc_encrypt ();
13325 ;
13326 return 0;
13327 }
13328 _ACEOF
13329 if ac_fn_c_try_link "$LINENO"; then :
13330 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13331 else
13332 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13333 fi
13334 rm -f core conftest.err conftest.$ac_objext \
13335 conftest$ac_exeext conftest.$ac_ext
13336 LIBS=$ac_check_lib_save_LIBS
13337 fi
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13339 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13340 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13341 have_crypto=yes
13342 else
13343 have_crypto=no
13344 fi
13345
13346 if test $have_crypto = yes; then
13347 CRYPTOLIB=-lcrypto
13348 LIBS="$CRYPTOLIB $LIBS"
13349
13350 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13351
13352 fi
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13354 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13355 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13356 $as_echo_n "(cached) " >&6
13357 else
13358 ac_check_lib_save_LIBS=$LIBS
13359 LIBS="-lk5crypto $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 mit_des_cbc_encrypt ();
13370 int
13371 main ()
13372 {
13373 return mit_des_cbc_encrypt ();
13374 ;
13375 return 0;
13376 }
13377 _ACEOF
13378 if ac_fn_c_try_link "$LINENO"; then :
13379 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13380 else
13381 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=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_k5crypto_mit_des_cbc_encrypt" >&5
13388 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13389 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13390 have_k5crypto=yes
13391 else
13392 have_k5crypto=no
13393 fi
13394
13395 if test $have_k5crypto = yes; then
13396 CRYPTOLIB=-lk5crypto
13397 LIBS="$CRYPTOLIB $LIBS"
13398
13399 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13400
13401 fi
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13403 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13404 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13406 else
13407 ac_check_lib_save_LIBS=$LIBS
13408 LIBS="-lkrb5 $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 krb5_init_context ();
13419 int
13420 main ()
13421 {
13422 return krb5_init_context ();
13423 ;
13424 return 0;
13425 }
13426 _ACEOF
13427 if ac_fn_c_try_link "$LINENO"; then :
13428 ac_cv_lib_krb5_krb5_init_context=yes
13429 else
13430 ac_cv_lib_krb5_krb5_init_context=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_krb5_krb5_init_context" >&5
13437 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13438 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13439 have_krb5=yes
13440 else
13441 have_krb5=no
13442 fi
13443
13444 if test $have_krb5=yes; then
13445 KRB5LIB=-lkrb5
13446 LIBS="$KRB5LIB $LIBS"
13447
13448 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13449
13450 fi
13451 if test "${with_kerberos5}" = no; then
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13453 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13454 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13455 $as_echo_n "(cached) " >&6
13456 else
13457 ac_check_lib_save_LIBS=$LIBS
13458 LIBS="-ldes425 $LIBS"
13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13461
13462 /* Override any GCC internal prototype to avoid an error.
13463 Use char because int might match the return type of a GCC
13464 builtin and then its argument prototype would still apply. */
13465 #ifdef __cplusplus
13466 extern "C"
13467 #endif
13468 char des_cbc_encrypt ();
13469 int
13470 main ()
13471 {
13472 return des_cbc_encrypt ();
13473 ;
13474 return 0;
13475 }
13476 _ACEOF
13477 if ac_fn_c_try_link "$LINENO"; then :
13478 ac_cv_lib_des425_des_cbc_encrypt=yes
13479 else
13480 ac_cv_lib_des425_des_cbc_encrypt=no
13481 fi
13482 rm -f core conftest.err conftest.$ac_objext \
13483 conftest$ac_exeext conftest.$ac_ext
13484 LIBS=$ac_check_lib_save_LIBS
13485 fi
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13487 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13488 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13489 have_des425=yes
13490 else
13491 have_des425=no
13492 fi
13493
13494 if test $have_des425 = yes; then
13495 DESLIB=-ldes425
13496 LIBS="$DESLIB $LIBS"
13497
13498 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13499
13500 else
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13502 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13503 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13504 $as_echo_n "(cached) " >&6
13505 else
13506 ac_check_lib_save_LIBS=$LIBS
13507 LIBS="-ldes $LIBS"
13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13510
13511 /* Override any GCC internal prototype to avoid an error.
13512 Use char because int might match the return type of a GCC
13513 builtin and then its argument prototype would still apply. */
13514 #ifdef __cplusplus
13515 extern "C"
13516 #endif
13517 char des_cbc_encrypt ();
13518 int
13519 main ()
13520 {
13521 return des_cbc_encrypt ();
13522 ;
13523 return 0;
13524 }
13525 _ACEOF
13526 if ac_fn_c_try_link "$LINENO"; then :
13527 ac_cv_lib_des_des_cbc_encrypt=yes
13528 else
13529 ac_cv_lib_des_des_cbc_encrypt=no
13530 fi
13531 rm -f core conftest.err conftest.$ac_objext \
13532 conftest$ac_exeext conftest.$ac_ext
13533 LIBS=$ac_check_lib_save_LIBS
13534 fi
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13536 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13537 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13538 have_des=yes
13539 else
13540 have_des=no
13541 fi
13542
13543 if test $have_des = yes; then
13544 DESLIB=-ldes
13545 LIBS="$DESLIB $LIBS"
13546
13547 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13548
13549 fi
13550 fi
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13552 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13553 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13554 $as_echo_n "(cached) " >&6
13555 else
13556 ac_check_lib_save_LIBS=$LIBS
13557 LIBS="-lkrb4 $LIBS"
13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h. */
13560
13561 /* Override any GCC internal prototype to avoid an error.
13562 Use char because int might match the return type of a GCC
13563 builtin and then its argument prototype would still apply. */
13564 #ifdef __cplusplus
13565 extern "C"
13566 #endif
13567 char krb_get_cred ();
13568 int
13569 main ()
13570 {
13571 return krb_get_cred ();
13572 ;
13573 return 0;
13574 }
13575 _ACEOF
13576 if ac_fn_c_try_link "$LINENO"; then :
13577 ac_cv_lib_krb4_krb_get_cred=yes
13578 else
13579 ac_cv_lib_krb4_krb_get_cred=no
13580 fi
13581 rm -f core conftest.err conftest.$ac_objext \
13582 conftest$ac_exeext conftest.$ac_ext
13583 LIBS=$ac_check_lib_save_LIBS
13584 fi
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13586 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13587 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13588 have_krb4=yes
13589 else
13590 have_krb4=no
13591 fi
13592
13593 if test $have_krb4 = yes; then
13594 KRB4LIB=-lkrb4
13595 LIBS="$KRB4LIB $LIBS"
13596
13597 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13598
13599 else
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13601 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13602 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13603 $as_echo_n "(cached) " >&6
13604 else
13605 ac_check_lib_save_LIBS=$LIBS
13606 LIBS="-lkrb $LIBS"
13607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13609
13610 /* Override any GCC internal prototype to avoid an error.
13611 Use char because int might match the return type of a GCC
13612 builtin and then its argument prototype would still apply. */
13613 #ifdef __cplusplus
13614 extern "C"
13615 #endif
13616 char krb_get_cred ();
13617 int
13618 main ()
13619 {
13620 return krb_get_cred ();
13621 ;
13622 return 0;
13623 }
13624 _ACEOF
13625 if ac_fn_c_try_link "$LINENO"; then :
13626 ac_cv_lib_krb_krb_get_cred=yes
13627 else
13628 ac_cv_lib_krb_krb_get_cred=no
13629 fi
13630 rm -f core conftest.err conftest.$ac_objext \
13631 conftest$ac_exeext conftest.$ac_ext
13632 LIBS=$ac_check_lib_save_LIBS
13633 fi
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13635 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13636 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13637 have_krb=yes
13638 else
13639 have_krb=no
13640 fi
13641
13642 if test $have_krb = yes; then
13643 KRB4LIB=-lkrb
13644 LIBS="$KRB4LIB $LIBS"
13645
13646 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13647
13648 fi
13649 fi
13650 fi
13651
13652 if test "${with_kerberos5}" != no; then
13653 for ac_header in krb5.h
13654 do :
13655 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13656 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13657 cat >>confdefs.h <<_ACEOF
13658 #define HAVE_KRB5_H 1
13659 _ACEOF
13660 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13661 "
13662 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13663
13664 cat >>confdefs.h <<_ACEOF
13665 #define HAVE_KRB5_ERROR_TEXT 1
13666 _ACEOF
13667
13668
13669 fi
13670 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13671 "
13672 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13673
13674 cat >>confdefs.h <<_ACEOF
13675 #define HAVE_KRB5_ERROR_E_TEXT 1
13676 _ACEOF
13677
13678
13679 fi
13680
13681 fi
13682
13683 done
13684
13685 else
13686 for ac_header in des.h
13687 do :
13688 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13689 if test "x$ac_cv_header_des_h" = x""yes; then :
13690 cat >>confdefs.h <<_ACEOF
13691 #define HAVE_DES_H 1
13692 _ACEOF
13693
13694 else
13695 for ac_header in kerberosIV/des.h
13696 do :
13697 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13698 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
13699 cat >>confdefs.h <<_ACEOF
13700 #define HAVE_KERBEROSIV_DES_H 1
13701 _ACEOF
13702
13703 else
13704 for ac_header in kerberos/des.h
13705 do :
13706 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13707 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
13708 cat >>confdefs.h <<_ACEOF
13709 #define HAVE_KERBEROS_DES_H 1
13710 _ACEOF
13711
13712 fi
13713
13714 done
13715
13716 fi
13717
13718 done
13719
13720 fi
13721
13722 done
13723
13724 for ac_header in krb.h
13725 do :
13726 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13727 if test "x$ac_cv_header_krb_h" = x""yes; then :
13728 cat >>confdefs.h <<_ACEOF
13729 #define HAVE_KRB_H 1
13730 _ACEOF
13731
13732 else
13733 for ac_header in kerberosIV/krb.h
13734 do :
13735 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13736 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13737 cat >>confdefs.h <<_ACEOF
13738 #define HAVE_KERBEROSIV_KRB_H 1
13739 _ACEOF
13740
13741 else
13742 for ac_header in kerberos/krb.h
13743 do :
13744 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13745 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13746 cat >>confdefs.h <<_ACEOF
13747 #define HAVE_KERBEROS_KRB_H 1
13748 _ACEOF
13749
13750 fi
13751
13752 done
13753
13754 fi
13755
13756 done
13757
13758 fi
13759
13760 done
13761
13762 fi
13763 for ac_header in com_err.h
13764 do :
13765 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13766 if test "x$ac_cv_header_com_err_h" = x""yes; then :
13767 cat >>confdefs.h <<_ACEOF
13768 #define HAVE_COM_ERR_H 1
13769 _ACEOF
13770
13771 fi
13772
13773 done
13774
13775 fi
13776
13777
13778
13779
13780
13781
13782
13783 # Solaris requires -lintl if you want strerror (which calls dgettext)
13784 # to return localized messages.
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13786 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13787 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13788 $as_echo_n "(cached) " >&6
13789 else
13790 ac_check_lib_save_LIBS=$LIBS
13791 LIBS="-lintl $LIBS"
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13794
13795 /* Override any GCC internal prototype to avoid an error.
13796 Use char because int might match the return type of a GCC
13797 builtin and then its argument prototype would still apply. */
13798 #ifdef __cplusplus
13799 extern "C"
13800 #endif
13801 char dgettext ();
13802 int
13803 main ()
13804 {
13805 return dgettext ();
13806 ;
13807 return 0;
13808 }
13809 _ACEOF
13810 if ac_fn_c_try_link "$LINENO"; then :
13811 ac_cv_lib_intl_dgettext=yes
13812 else
13813 ac_cv_lib_intl_dgettext=no
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext \
13816 conftest$ac_exeext conftest.$ac_ext
13817 LIBS=$ac_check_lib_save_LIBS
13818 fi
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13820 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13821 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13822 cat >>confdefs.h <<_ACEOF
13823 #define HAVE_LIBINTL 1
13824 _ACEOF
13825
13826 LIBS="-lintl $LIBS"
13827
13828 fi
13829
13830
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13832 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13833 if test "${emacs_cv_localtime_cache+set}" = set; then :
13834 $as_echo_n "(cached) " >&6
13835 else
13836 if test x$ac_cv_func_tzset = xyes; then
13837 if test "$cross_compiling" = yes; then :
13838 # If we have tzset, assume the worst when cross-compiling.
13839 emacs_cv_localtime_cache=yes
13840 else
13841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h. */
13843 #include <time.h>
13844 extern char **environ;
13845 unset_TZ ()
13846 {
13847 char **from, **to;
13848 for (to = from = environ; (*to = *from); from++)
13849 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13850 to++;
13851 }
13852 char TZ_GMT0[] = "TZ=GMT0";
13853 char TZ_PST8[] = "TZ=PST8";
13854 main()
13855 {
13856 time_t now = time ((time_t *) 0);
13857 int hour_GMT0, hour_unset;
13858 if (putenv (TZ_GMT0) != 0)
13859 exit (1);
13860 hour_GMT0 = localtime (&now)->tm_hour;
13861 unset_TZ ();
13862 hour_unset = localtime (&now)->tm_hour;
13863 if (putenv (TZ_PST8) != 0)
13864 exit (1);
13865 if (localtime (&now)->tm_hour == hour_GMT0)
13866 exit (1);
13867 unset_TZ ();
13868 if (localtime (&now)->tm_hour != hour_unset)
13869 exit (1);
13870 exit (0);
13871 }
13872 _ACEOF
13873 if ac_fn_c_try_run "$LINENO"; then :
13874 emacs_cv_localtime_cache=no
13875 else
13876 emacs_cv_localtime_cache=yes
13877 fi
13878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13879 conftest.$ac_objext conftest.beam conftest.$ac_ext
13880 fi
13881
13882 else
13883 # If we lack tzset, report that localtime does not cache TZ,
13884 # since we can't invalidate the cache if we don't have tzset.
13885 emacs_cv_localtime_cache=no
13886 fi
13887 fi
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13889 $as_echo "$emacs_cv_localtime_cache" >&6; }
13890 if test $emacs_cv_localtime_cache = yes; then
13891
13892 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13893
13894 fi
13895
13896 if test "x$HAVE_TIMEVAL" = xyes; then
13897 for ac_func in gettimeofday
13898 do :
13899 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13900 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
13901 cat >>confdefs.h <<_ACEOF
13902 #define HAVE_GETTIMEOFDAY 1
13903 _ACEOF
13904
13905 fi
13906 done
13907
13908 if test $ac_cv_func_gettimeofday = yes; then
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
13910 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13911 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
13912 $as_echo_n "(cached) " >&6
13913 else
13914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13916
13917 #ifdef TIME_WITH_SYS_TIME
13918 #include <sys/time.h>
13919 #include <time.h>
13920 #else
13921 #ifdef HAVE_SYS_TIME_H
13922 #include <sys/time.h>
13923 #else
13924 #include <time.h>
13925 #endif
13926 #endif
13927 int
13928 main ()
13929 {
13930 struct timeval time;
13931 gettimeofday (&time, 0);
13932 ;
13933 return 0;
13934 }
13935 _ACEOF
13936 if ac_fn_c_try_compile "$LINENO"; then :
13937 emacs_cv_gettimeofday_two_arguments=yes
13938 else
13939 emacs_cv_gettimeofday_two_arguments=no
13940 fi
13941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13942 fi
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
13944 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13945 if test $emacs_cv_gettimeofday_two_arguments = no; then
13946
13947 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
13948
13949 fi
13950 fi
13951 fi
13952
13953 ok_so_far=yes
13954 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13955 if test "x$ac_cv_func_socket" = x""yes; then :
13956
13957 else
13958 ok_so_far=no
13959 fi
13960
13961 if test $ok_so_far = yes; then
13962 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13963 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
13964
13965 else
13966 ok_so_far=no
13967 fi
13968
13969
13970 fi
13971 if test $ok_so_far = yes; then
13972 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13973 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
13974
13975 else
13976 ok_so_far=no
13977 fi
13978
13979
13980 fi
13981 if test $ok_so_far = yes; then
13982
13983 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
13984
13985 fi
13986
13987 for ac_header in sys/ioctl.h
13988 do :
13989 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13990 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
13991 cat >>confdefs.h <<_ACEOF
13992 #define HAVE_SYS_IOCTL_H 1
13993 _ACEOF
13994
13995 fi
13996
13997 done
13998
13999
14000 if test -f /usr/lpp/X11/bin/smt.exp; then
14001
14002 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14003
14004 fi
14005
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14007 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14008 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14010 $as_echo "yes" >&6; }
14011
14012 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14013
14014 else
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14016 $as_echo "no" >&6; }
14017 fi
14018
14019 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14020 if test "x$ac_cv_type_pid_t" = x""yes; then :
14021
14022 else
14023
14024 cat >>confdefs.h <<_ACEOF
14025 #define pid_t int
14026 _ACEOF
14027
14028 fi
14029
14030 for ac_header in vfork.h
14031 do :
14032 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14033 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14034 cat >>confdefs.h <<_ACEOF
14035 #define HAVE_VFORK_H 1
14036 _ACEOF
14037
14038 fi
14039
14040 done
14041
14042 for ac_func in fork vfork
14043 do :
14044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14045 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14046 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14047 cat >>confdefs.h <<_ACEOF
14048 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14049 _ACEOF
14050
14051 fi
14052 done
14053
14054 if test "x$ac_cv_func_fork" = xyes; then
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14056 $as_echo_n "checking for working fork... " >&6; }
14057 if test "${ac_cv_func_fork_works+set}" = set; then :
14058 $as_echo_n "(cached) " >&6
14059 else
14060 if test "$cross_compiling" = yes; then :
14061 ac_cv_func_fork_works=cross
14062 else
14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14064 /* end confdefs.h. */
14065 $ac_includes_default
14066 int
14067 main ()
14068 {
14069
14070 /* By Ruediger Kuhlmann. */
14071 return fork () < 0;
14072
14073 ;
14074 return 0;
14075 }
14076 _ACEOF
14077 if ac_fn_c_try_run "$LINENO"; then :
14078 ac_cv_func_fork_works=yes
14079 else
14080 ac_cv_func_fork_works=no
14081 fi
14082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14083 conftest.$ac_objext conftest.beam conftest.$ac_ext
14084 fi
14085
14086 fi
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14088 $as_echo "$ac_cv_func_fork_works" >&6; }
14089
14090 else
14091 ac_cv_func_fork_works=$ac_cv_func_fork
14092 fi
14093 if test "x$ac_cv_func_fork_works" = xcross; then
14094 case $host in
14095 *-*-amigaos* | *-*-msdosdjgpp*)
14096 # Override, as these systems have only a dummy fork() stub
14097 ac_cv_func_fork_works=no
14098 ;;
14099 *)
14100 ac_cv_func_fork_works=yes
14101 ;;
14102 esac
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14104 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14105 fi
14106 ac_cv_func_vfork_works=$ac_cv_func_vfork
14107 if test "x$ac_cv_func_vfork" = xyes; then
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14109 $as_echo_n "checking for working vfork... " >&6; }
14110 if test "${ac_cv_func_vfork_works+set}" = set; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14113 if test "$cross_compiling" = yes; then :
14114 ac_cv_func_vfork_works=cross
14115 else
14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117 /* end confdefs.h. */
14118 /* Thanks to Paul Eggert for this test. */
14119 $ac_includes_default
14120 #include <sys/wait.h>
14121 #ifdef HAVE_VFORK_H
14122 # include <vfork.h>
14123 #endif
14124 /* On some sparc systems, changes by the child to local and incoming
14125 argument registers are propagated back to the parent. The compiler
14126 is told about this with #include <vfork.h>, but some compilers
14127 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14128 static variable whose address is put into a register that is
14129 clobbered by the vfork. */
14130 static void
14131 #ifdef __cplusplus
14132 sparc_address_test (int arg)
14133 # else
14134 sparc_address_test (arg) int arg;
14135 #endif
14136 {
14137 static pid_t child;
14138 if (!child) {
14139 child = vfork ();
14140 if (child < 0) {
14141 perror ("vfork");
14142 _exit(2);
14143 }
14144 if (!child) {
14145 arg = getpid();
14146 write(-1, "", 0);
14147 _exit (arg);
14148 }
14149 }
14150 }
14151
14152 int
14153 main ()
14154 {
14155 pid_t parent = getpid ();
14156 pid_t child;
14157
14158 sparc_address_test (0);
14159
14160 child = vfork ();
14161
14162 if (child == 0) {
14163 /* Here is another test for sparc vfork register problems. This
14164 test uses lots of local variables, at least as many local
14165 variables as main has allocated so far including compiler
14166 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14167 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14168 reuse the register of parent for one of the local variables,
14169 since it will think that parent can't possibly be used any more
14170 in this routine. Assigning to the local variable will thus
14171 munge parent in the parent process. */
14172 pid_t
14173 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14174 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14175 /* Convince the compiler that p..p7 are live; otherwise, it might
14176 use the same hardware register for all 8 local variables. */
14177 if (p != p1 || p != p2 || p != p3 || p != p4
14178 || p != p5 || p != p6 || p != p7)
14179 _exit(1);
14180
14181 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14182 from child file descriptors. If the child closes a descriptor
14183 before it execs or exits, this munges the parent's descriptor
14184 as well. Test for this by closing stdout in the child. */
14185 _exit(close(fileno(stdout)) != 0);
14186 } else {
14187 int status;
14188 struct stat st;
14189
14190 while (wait(&status) != child)
14191 ;
14192 return (
14193 /* Was there some problem with vforking? */
14194 child < 0
14195
14196 /* Did the child fail? (This shouldn't happen.) */
14197 || status
14198
14199 /* Did the vfork/compiler bug occur? */
14200 || parent != getpid()
14201
14202 /* Did the file descriptor bug occur? */
14203 || fstat(fileno(stdout), &st) != 0
14204 );
14205 }
14206 }
14207 _ACEOF
14208 if ac_fn_c_try_run "$LINENO"; then :
14209 ac_cv_func_vfork_works=yes
14210 else
14211 ac_cv_func_vfork_works=no
14212 fi
14213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14214 conftest.$ac_objext conftest.beam conftest.$ac_ext
14215 fi
14216
14217 fi
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14219 $as_echo "$ac_cv_func_vfork_works" >&6; }
14220
14221 fi;
14222 if test "x$ac_cv_func_fork_works" = xcross; then
14223 ac_cv_func_vfork_works=$ac_cv_func_vfork
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14225 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14226 fi
14227
14228 if test "x$ac_cv_func_vfork_works" = xyes; then
14229
14230 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14231
14232 else
14233
14234 $as_echo "#define vfork fork" >>confdefs.h
14235
14236 fi
14237 if test "x$ac_cv_func_fork_works" = xyes; then
14238
14239 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14240
14241 fi
14242
14243
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14245 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14246 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14251 #include <langinfo.h>
14252 int
14253 main ()
14254 {
14255 char* cs = nl_langinfo(CODESET);
14256 ;
14257 return 0;
14258 }
14259 _ACEOF
14260 if ac_fn_c_try_link "$LINENO"; then :
14261 emacs_cv_langinfo_codeset=yes
14262 else
14263 emacs_cv_langinfo_codeset=no
14264 fi
14265 rm -f core conftest.err conftest.$ac_objext \
14266 conftest$ac_exeext conftest.$ac_ext
14267
14268 fi
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14270 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14271 if test $emacs_cv_langinfo_codeset = yes; then
14272
14273 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14274
14275 fi
14276
14277 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14278 if test "x$ac_cv_type_size_t" = x""yes; then :
14279
14280 cat >>confdefs.h <<_ACEOF
14281 #define HAVE_SIZE_T 1
14282 _ACEOF
14283
14284
14285 fi
14286
14287
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14289 $as_echo_n "checking for mbstate_t... " >&6; }
14290 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14291 $as_echo_n "(cached) " >&6
14292 else
14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14295 $ac_includes_default
14296 # include <wchar.h>
14297 int
14298 main ()
14299 {
14300 mbstate_t x; return sizeof x;
14301 ;
14302 return 0;
14303 }
14304 _ACEOF
14305 if ac_fn_c_try_compile "$LINENO"; then :
14306 ac_cv_type_mbstate_t=yes
14307 else
14308 ac_cv_type_mbstate_t=no
14309 fi
14310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14311 fi
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14313 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14314 if test $ac_cv_type_mbstate_t = yes; then
14315
14316 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14317
14318 else
14319
14320 $as_echo "#define mbstate_t int" >>confdefs.h
14321
14322 fi
14323
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14325 $as_echo_n "checking for C restrict keyword... " >&6; }
14326 if test "${emacs_cv_c_restrict+set}" = set; then :
14327 $as_echo_n "(cached) " >&6
14328 else
14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330 /* end confdefs.h. */
14331 void fred (int *restrict x);
14332 int
14333 main ()
14334 {
14335
14336 ;
14337 return 0;
14338 }
14339 _ACEOF
14340 if ac_fn_c_try_compile "$LINENO"; then :
14341 emacs_cv_c_restrict=yes
14342 else
14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h. */
14345 void fred (int *__restrict x);
14346 int
14347 main ()
14348 {
14349
14350 ;
14351 return 0;
14352 }
14353 _ACEOF
14354 if ac_fn_c_try_compile "$LINENO"; then :
14355 emacs_cv_c_restrict=__restrict
14356 else
14357 emacs_cv_c_restrict=no
14358 fi
14359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14360 fi
14361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14362 fi
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14364 $as_echo "$emacs_cv_c_restrict" >&6; }
14365 case "$emacs_cv_c_restrict" in
14366 yes) emacs_restrict=restrict;;
14367 no) emacs_restrict="";;
14368 *) emacs_restrict="$emacs_cv_c_restrict";;
14369 esac
14370 if test "$emacs_restrict" != __restrict; then
14371
14372 cat >>confdefs.h <<_ACEOF
14373 #define __restrict $emacs_restrict
14374 _ACEOF
14375
14376 fi
14377
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14379 $as_echo_n "checking for C restricted array declarations... " >&6; }
14380 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14381 $as_echo_n "(cached) " >&6
14382 else
14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14385 void fred (int x[__restrict]);
14386 int
14387 main ()
14388 {
14389
14390 ;
14391 return 0;
14392 }
14393 _ACEOF
14394 if ac_fn_c_try_compile "$LINENO"; then :
14395 emacs_cv_c_restrict_arr=yes
14396 else
14397 emacs_cv_c_restrict_arr=no
14398 fi
14399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14400 fi
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14402 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14403 if test "$emacs_cv_c_restrict_arr" = yes; then
14404
14405 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14406
14407 fi
14408
14409
14410
14411 # Set up the CFLAGS for real compilation, so we can substitute it.
14412 CFLAGS="$REAL_CFLAGS"
14413 CPPFLAGS="$REAL_CPPFLAGS"
14414
14415 ## Hack to detect a buggy GCC version.
14416 if test "x$GCC" = xyes \
14417 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14418 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14419 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14420 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14421 fi
14422
14423 #### Find out which version of Emacs this is.
14424 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14425 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14426 if test x"${version}" = x; then
14427 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14428 fi
14429 if test x"${version}" != x"$PACKAGE_VERSION"; then
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14431 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14432 fi
14433
14434 ### Specify what sort of things we'll be editing into Makefile and config.h.
14435 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14436
14437
14438 ## Unused?
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14460 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14461 ## end of LIBX_BASE, but nothing ever set it.
14462
14463
14464
14465
14466 ## Used in lwlib/Makefile.in.
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479 cat >>confdefs.h <<_ACEOF
14480 #define EMACS_CONFIGURATION "${canonical}"
14481 _ACEOF
14482
14483
14484 cat >>confdefs.h <<_ACEOF
14485 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14486 _ACEOF
14487
14488
14489 cat >>confdefs.h <<_ACEOF
14490 #define config_machfile "${machfile}"
14491 _ACEOF
14492
14493
14494 cat >>confdefs.h <<_ACEOF
14495 #define config_opsysfile "${opsysfile}"
14496 _ACEOF
14497
14498
14499 XMENU_OBJ=
14500 XOBJ=
14501 FONT_OBJ=
14502 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14503
14504 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14505
14506 XMENU_OBJ=xmenu.o
14507 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14508 FONT_OBJ=xfont.o
14509 if test "$HAVE_XFT" = "yes"; then
14510 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14511 elif test "$HAVE_FREETYPE" = "yes"; then
14512 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14513 fi
14514
14515 fi
14516
14517
14518
14519
14520 WIDGET_OBJ=
14521 MOTIF_LIBW=
14522 if test "${USE_X_TOOLKIT}" != "none" ; then
14523 WIDGET_OBJ=widget.o
14524
14525 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14526
14527 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14528
14529 $as_echo "#define USE_LUCID 1" >>confdefs.h
14530
14531 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14532
14533 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14534
14535 MOTIF_LIBW=-lXm
14536 case "$opsys" in
14537 gnu-linux)
14538 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14539 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14540 ;;
14541
14542 unixware)
14543 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14544 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14545 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14546 ;;
14547
14548 aix4-2)
14549 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14550 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14551 ;;
14552 esac
14553 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14554 fi
14555 fi
14556
14557
14558 TOOLKIT_LIBW=
14559 case "$USE_X_TOOLKIT" in
14560 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14561 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14562 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14563 esac
14564
14565
14566 if test "$USE_X_TOOLKIT" = "none"; then
14567 LIBXT_OTHER="\$(LIBXSM)"
14568 OLDXMENU_TARGET="really-oldXMenu"
14569 else
14570 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14571 OLDXMENU_TARGET="really-lwlib"
14572 fi
14573
14574
14575 ## The X Menu stuff is present in the X10 distribution, but missing
14576 ## from X11. If we have X10, just use the installed library;
14577 ## otherwise, use our own copy.
14578 if test "${HAVE_X11}" = "yes" ; then
14579
14580 $as_echo "#define HAVE_X11 1" >>confdefs.h
14581
14582
14583 if test "$USE_X_TOOLKIT" = "none"; then
14584 OLDXMENU="\${oldXMenudir}libXMenu11.a"
14585 else
14586 OLDXMENU="\${lwlibdir}liblw.a"
14587 fi
14588 LIBXMENU="\$(OLDXMENU)"
14589 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14590 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14591 else
14592 ## For a syntactically valid Makefile; not actually used for anything.
14593 ## See comments in src/Makefile.in.
14594 OLDXMENU=nothing
14595 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14596 if test "${HAVE_X_WINDOWS}" = "yes"; then
14597 LIBXMENU="-lXMenu"
14598 else
14599 LIBXMENU=
14600 fi
14601 LIBX_OTHER=
14602 OLDXMENU_DEPS=
14603 fi
14604
14605 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14606 OLDXMENU_TARGET=
14607 OLDXMENU=nothing
14608 LIBXMENU=
14609 OLDXMENU_DEPS=
14610 fi
14611
14612
14613
14614
14615
14616
14617
14618 if test "${HAVE_MENUS}" = "yes" ; then
14619
14620 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14621
14622 fi
14623
14624 if test "${GNU_MALLOC}" = "yes" ; then
14625
14626 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14627
14628 fi
14629
14630 RALLOC_OBJ=
14631 if test "${REL_ALLOC}" = "yes" ; then
14632
14633 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14634
14635
14636 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14637 fi
14638
14639
14640 if test "$opsys" = "cygwin"; then
14641 CYGWIN_OBJ="sheap.o"
14642 ## Cygwin differs because of its unexec().
14643 PRE_ALLOC_OBJ=
14644 POST_ALLOC_OBJ=lastfile.o
14645 else
14646 CYGWIN_OBJ=
14647 PRE_ALLOC_OBJ=lastfile.o
14648 POST_ALLOC_OBJ=
14649 fi
14650
14651
14652
14653
14654
14655 case "$opsys" in
14656 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14657
14658 darwin)
14659 ## The -headerpad option tells ld (see man page) to leave room at the
14660 ## end of the header for adding load commands. Needed for dumping.
14661 ## 0x690 is the total size of 30 segment load commands (at 56
14662 ## each); under Cocoa 31 commands are required.
14663 if test "$HAVE_NS" = "yes"; then
14664 libs_nsgui="-framework AppKit"
14665 headerpad_extra=6C8
14666 else
14667 libs_nsgui=
14668 headerpad_extra=690
14669 fi
14670 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14671
14672 ## This is here because src/Makefile.in did some extra fiddling around
14673 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14674 ## #ifndef LD_SWITCH_SYSTEM
14675 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14676 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14677 ## not using gcc, darwin system not on an alpha (ie darwin, since
14678 ## darwin + alpha does not occur).
14679 ## Because this was done in src/Makefile.in, the resulting part of
14680 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14681 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14682 ## rather than LD_SWITCH_SYSTEM.
14683 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14684 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14685 ;;
14686
14687 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14688 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14689 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14690 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14691 ## had different values in configure (in ac_link) and src/Makefile.in.
14692 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14693 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14694
14695 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14696 esac
14697
14698 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14699 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14700 fi
14701
14702
14703
14704
14705 LD_FIRSTFLAG=
14706 ORDINARY_LINK=
14707 case "$opsys" in
14708 ## gnu: GNU needs its own crt0.
14709 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14710
14711 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14712 ## library search parth, i.e. it won't search /usr/lib for libc and
14713 ## friends. Using -nostartfiles instead avoids this problem, and
14714 ## will also work on earlier NetBSD releases.
14715 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
14716
14717 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14718 ## MkLinux/LinuxPPC needs this.
14719 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14720 gnu-*)
14721 case "$machine" in
14722 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
14723 esac
14724 ;;
14725 esac
14726
14727
14728 if test "x$ORDINARY_LINK" = "xyes"; then
14729
14730 LD_FIRSTFLAG=""
14731
14732 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14733
14734
14735 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14736 ## freebsd, gnu-* not on macppc|ibms390x.
14737 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14738
14739 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14740 ## places that are difficult to figure out at make time. Fortunately,
14741 ## these same versions allow you to pass arbitrary flags on to the
14742 ## linker, so there is no reason not to use it as a linker.
14743 ##
14744 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14745 ## searching for libraries in its internal directories, so we have to
14746 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14747 LD_FIRSTFLAG="-nostdlib"
14748 fi
14749
14750 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14751 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
14752
14753
14754
14755
14756 ## FIXME? The logic here is not precisely the same as that above.
14757 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14758 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14759 LIB_GCC=
14760 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14761
14762 case "$opsys" in
14763 freebsd|netbsd|openbsd) LIB_GCC= ;;
14764
14765 gnu-*)
14766 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14767 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14768 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14769 if test "$machine" = "arm"; then
14770 LIB_GCC="-lgcc_s"
14771 else
14772 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14773 ## immediately undefine it again and redefine it to empty.
14774 ## Was the C_SWITCH_X_SITE part really necessary?
14775 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14776 LIB_GCC=
14777 fi
14778 ;;
14779
14780 ## Ask GCC where to find libgcc.a.
14781 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14782 esac
14783 fi
14784
14785
14786 TOOLTIP_SUPPORT=
14787 WINDOW_SUPPORT=
14788 ## If we're using X11/GNUstep, define some consequences.
14789 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14790
14791 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14792
14793
14794 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14795
14796 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14797 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
14798
14799 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14800 test "$HAVE_X_WINDOWS" = "yes" && \
14801 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14802
14803 fi
14804
14805
14806
14807
14808
14809
14810
14811 #### Report on what we decided to do.
14812 #### Report GTK as a toolkit, even if it doesn't use Xt.
14813 #### It makes printing result more understandable as using GTK sets
14814 #### toolkit_scroll_bars to yes by default.
14815 if test "${HAVE_GTK}" = "yes"; then
14816 USE_X_TOOLKIT=GTK
14817 fi
14818
14819 echo "
14820 Configured for \`${canonical}'.
14821
14822 Where should the build process find the source code? ${srcdir}
14823 What operating system and machine description files should Emacs use?
14824 \`${opsysfile}' and \`${machfile}'
14825 What compiler should emacs be built with? ${CC} ${CFLAGS}
14826 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14827 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14828 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14829 What window system should Emacs use? ${window_system}
14830 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14831
14832 if test -n "${x_includes}"; then
14833 echo " Where do we find X Windows header files? ${x_includes}"
14834 else
14835 echo " Where do we find X Windows header files? Standard dirs"
14836 fi
14837 if test -n "${x_libraries}"; then
14838 echo " Where do we find X Windows libraries? ${x_libraries}"
14839 else
14840 echo " Where do we find X Windows libraries? Standard dirs"
14841 fi
14842
14843 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14844 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14845 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14846 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14847 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14848 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14849 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14850 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14851
14852 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14853 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14854 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14855 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14856 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
14857
14858 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14859 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14860 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14861 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14862
14863 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14864 echo
14865
14866 if test $USE_XASSERTS = yes; then
14867 echo " Compiling with asserts turned on."
14868 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14869 fi
14870
14871 echo
14872
14873 if test "$HAVE_NS" = "yes"; then
14874 echo
14875 echo "You must run \"make install\" in order to test the built application.
14876 The installed application will go to nextstep/Emacs.app and can be
14877 run or moved from there."
14878 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14879 echo "The application will be fully self-contained."
14880 else
14881 echo "The lisp resources for the application will be installed under ${prefix}.
14882 You may need to run \"make install\" with sudo. The application will fail
14883 to run if these resources are not installed."
14884 fi
14885 echo
14886 fi
14887
14888 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
14889 echo "D-Bus integration has been tested for GNU/Linux only."
14890 echo
14891 fi
14892
14893
14894 # Remove any trailing slashes in these variables.
14895 test "${prefix}" != NONE &&
14896 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14897 test "${exec_prefix}" != NONE &&
14898 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14899
14900 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"
14901
14902 ac_config_commands="$ac_config_commands default"
14903
14904 cat >confcache <<\_ACEOF
14905 # This file is a shell script that caches the results of configure
14906 # tests run on this system so they can be shared between configure
14907 # scripts and configure runs, see configure's option --config-cache.
14908 # It is not useful on other systems. If it contains results you don't
14909 # want to keep, you may remove or edit it.
14910 #
14911 # config.status only pays attention to the cache file if you give it
14912 # the --recheck option to rerun configure.
14913 #
14914 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14915 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14916 # following values.
14917
14918 _ACEOF
14919
14920 # The following way of writing the cache mishandles newlines in values,
14921 # but we know of no workaround that is simple, portable, and efficient.
14922 # So, we kill variables containing newlines.
14923 # Ultrix sh set writes to stderr and can't be redirected directly,
14924 # and sets the high bit in the cache file unless we assign to the vars.
14925 (
14926 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14927 eval ac_val=\$$ac_var
14928 case $ac_val in #(
14929 *${as_nl}*)
14930 case $ac_var in #(
14931 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14932 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14933 esac
14934 case $ac_var in #(
14935 _ | IFS | as_nl) ;; #(
14936 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14937 *) { eval $ac_var=; unset $ac_var;} ;;
14938 esac ;;
14939 esac
14940 done
14941
14942 (set) 2>&1 |
14943 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14944 *${as_nl}ac_space=\ *)
14945 # `set' does not quote correctly, so add quotes: double-quote
14946 # substitution turns \\\\ into \\, and sed turns \\ into \.
14947 sed -n \
14948 "s/'/'\\\\''/g;
14949 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14950 ;; #(
14951 *)
14952 # `set' quotes correctly as required by POSIX, so do not add quotes.
14953 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14954 ;;
14955 esac |
14956 sort
14957 ) |
14958 sed '
14959 /^ac_cv_env_/b end
14960 t clear
14961 :clear
14962 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14963 t end
14964 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14965 :end' >>confcache
14966 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14967 if test -w "$cache_file"; then
14968 test "x$cache_file" != "x/dev/null" &&
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14970 $as_echo "$as_me: updating cache $cache_file" >&6;}
14971 cat confcache >$cache_file
14972 else
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14974 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14975 fi
14976 fi
14977 rm -f confcache
14978
14979 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14980 # Let make expand exec_prefix.
14981 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14982
14983 DEFS=-DHAVE_CONFIG_H
14984
14985 ac_libobjs=
14986 ac_ltlibobjs=
14987 U=
14988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14989 # 1. Remove the extension, and $U if already installed.
14990 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14991 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14992 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14993 # will be set to the directory where LIBOBJS objects are built.
14994 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14995 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14996 done
14997 LIBOBJS=$ac_libobjs
14998
14999 LTLIBOBJS=$ac_ltlibobjs
15000
15001
15002
15003
15004 : ${CONFIG_STATUS=./config.status}
15005 ac_write_fail=0
15006 ac_clean_files_save=$ac_clean_files
15007 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15009 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15010 as_write_fail=0
15011 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15012 #! $SHELL
15013 # Generated by $as_me.
15014 # Run this file to recreate the current configuration.
15015 # Compiler output produced by configure, useful for debugging
15016 # configure, is in config.log if it exists.
15017
15018 debug=false
15019 ac_cs_recheck=false
15020 ac_cs_silent=false
15021
15022 SHELL=\${CONFIG_SHELL-$SHELL}
15023 export SHELL
15024 _ASEOF
15025 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15026 ## -------------------- ##
15027 ## M4sh Initialization. ##
15028 ## -------------------- ##
15029
15030 # Be more Bourne compatible
15031 DUALCASE=1; export DUALCASE # for MKS sh
15032 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15033 emulate sh
15034 NULLCMD=:
15035 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15036 # is contrary to our usage. Disable this feature.
15037 alias -g '${1+"$@"}'='"$@"'
15038 setopt NO_GLOB_SUBST
15039 else
15040 case `(set -o) 2>/dev/null` in #(
15041 *posix*) :
15042 set -o posix ;; #(
15043 *) :
15044 ;;
15045 esac
15046 fi
15047
15048
15049 as_nl='
15050 '
15051 export as_nl
15052 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15053 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15054 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15055 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15056 # Prefer a ksh shell builtin over an external printf program on Solaris,
15057 # but without wasting forks for bash or zsh.
15058 if test -z "$BASH_VERSION$ZSH_VERSION" \
15059 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15060 as_echo='print -r --'
15061 as_echo_n='print -rn --'
15062 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15063 as_echo='printf %s\n'
15064 as_echo_n='printf %s'
15065 else
15066 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15067 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15068 as_echo_n='/usr/ucb/echo -n'
15069 else
15070 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15071 as_echo_n_body='eval
15072 arg=$1;
15073 case $arg in #(
15074 *"$as_nl"*)
15075 expr "X$arg" : "X\\(.*\\)$as_nl";
15076 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15077 esac;
15078 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15079 '
15080 export as_echo_n_body
15081 as_echo_n='sh -c $as_echo_n_body as_echo'
15082 fi
15083 export as_echo_body
15084 as_echo='sh -c $as_echo_body as_echo'
15085 fi
15086
15087 # The user is always right.
15088 if test "${PATH_SEPARATOR+set}" != set; then
15089 PATH_SEPARATOR=:
15090 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15091 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15092 PATH_SEPARATOR=';'
15093 }
15094 fi
15095
15096
15097 # IFS
15098 # We need space, tab and new line, in precisely that order. Quoting is
15099 # there to prevent editors from complaining about space-tab.
15100 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15101 # splitting by setting IFS to empty value.)
15102 IFS=" "" $as_nl"
15103
15104 # Find who we are. Look in the path if we contain no directory separator.
15105 case $0 in #((
15106 *[\\/]* ) as_myself=$0 ;;
15107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15108 for as_dir in $PATH
15109 do
15110 IFS=$as_save_IFS
15111 test -z "$as_dir" && as_dir=.
15112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15113 done
15114 IFS=$as_save_IFS
15115
15116 ;;
15117 esac
15118 # We did not find ourselves, most probably we were run as `sh COMMAND'
15119 # in which case we are not to be found in the path.
15120 if test "x$as_myself" = x; then
15121 as_myself=$0
15122 fi
15123 if test ! -f "$as_myself"; then
15124 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15125 exit 1
15126 fi
15127
15128 # Unset variables that we do not need and which cause bugs (e.g. in
15129 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15130 # suppresses any "Segmentation fault" message there. '((' could
15131 # trigger a bug in pdksh 5.2.14.
15132 for as_var in BASH_ENV ENV MAIL MAILPATH
15133 do eval test x\${$as_var+set} = xset \
15134 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15135 done
15136 PS1='$ '
15137 PS2='> '
15138 PS4='+ '
15139
15140 # NLS nuisances.
15141 LC_ALL=C
15142 export LC_ALL
15143 LANGUAGE=C
15144 export LANGUAGE
15145
15146 # CDPATH.
15147 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15148
15149
15150 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15151 # ----------------------------------------
15152 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15153 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15154 # script with STATUS, using 1 if that was 0.
15155 as_fn_error ()
15156 {
15157 as_status=$1; test $as_status -eq 0 && as_status=1
15158 if test "$4"; then
15159 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15160 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15161 fi
15162 $as_echo "$as_me: error: $2" >&2
15163 as_fn_exit $as_status
15164 } # as_fn_error
15165
15166
15167 # as_fn_set_status STATUS
15168 # -----------------------
15169 # Set $? to STATUS, without forking.
15170 as_fn_set_status ()
15171 {
15172 return $1
15173 } # as_fn_set_status
15174
15175 # as_fn_exit STATUS
15176 # -----------------
15177 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15178 as_fn_exit ()
15179 {
15180 set +e
15181 as_fn_set_status $1
15182 exit $1
15183 } # as_fn_exit
15184
15185 # as_fn_unset VAR
15186 # ---------------
15187 # Portably unset VAR.
15188 as_fn_unset ()
15189 {
15190 { eval $1=; unset $1;}
15191 }
15192 as_unset=as_fn_unset
15193 # as_fn_append VAR VALUE
15194 # ----------------------
15195 # Append the text in VALUE to the end of the definition contained in VAR. Take
15196 # advantage of any shell optimizations that allow amortized linear growth over
15197 # repeated appends, instead of the typical quadratic growth present in naive
15198 # implementations.
15199 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15200 eval 'as_fn_append ()
15201 {
15202 eval $1+=\$2
15203 }'
15204 else
15205 as_fn_append ()
15206 {
15207 eval $1=\$$1\$2
15208 }
15209 fi # as_fn_append
15210
15211 # as_fn_arith ARG...
15212 # ------------------
15213 # Perform arithmetic evaluation on the ARGs, and store the result in the
15214 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15215 # must be portable across $(()) and expr.
15216 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15217 eval 'as_fn_arith ()
15218 {
15219 as_val=$(( $* ))
15220 }'
15221 else
15222 as_fn_arith ()
15223 {
15224 as_val=`expr "$@" || test $? -eq 1`
15225 }
15226 fi # as_fn_arith
15227
15228
15229 if expr a : '\(a\)' >/dev/null 2>&1 &&
15230 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15231 as_expr=expr
15232 else
15233 as_expr=false
15234 fi
15235
15236 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15237 as_basename=basename
15238 else
15239 as_basename=false
15240 fi
15241
15242 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15243 as_dirname=dirname
15244 else
15245 as_dirname=false
15246 fi
15247
15248 as_me=`$as_basename -- "$0" ||
15249 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15250 X"$0" : 'X\(//\)$' \| \
15251 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15252 $as_echo X/"$0" |
15253 sed '/^.*\/\([^/][^/]*\)\/*$/{
15254 s//\1/
15255 q
15256 }
15257 /^X\/\(\/\/\)$/{
15258 s//\1/
15259 q
15260 }
15261 /^X\/\(\/\).*/{
15262 s//\1/
15263 q
15264 }
15265 s/.*/./; q'`
15266
15267 # Avoid depending upon Character Ranges.
15268 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15269 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15270 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15271 as_cr_digits='0123456789'
15272 as_cr_alnum=$as_cr_Letters$as_cr_digits
15273
15274 ECHO_C= ECHO_N= ECHO_T=
15275 case `echo -n x` in #(((((
15276 -n*)
15277 case `echo 'xy\c'` in
15278 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15279 xy) ECHO_C='\c';;
15280 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15281 ECHO_T=' ';;
15282 esac;;
15283 *)
15284 ECHO_N='-n';;
15285 esac
15286
15287 rm -f conf$$ conf$$.exe conf$$.file
15288 if test -d conf$$.dir; then
15289 rm -f conf$$.dir/conf$$.file
15290 else
15291 rm -f conf$$.dir
15292 mkdir conf$$.dir 2>/dev/null
15293 fi
15294 if (echo >conf$$.file) 2>/dev/null; then
15295 if ln -s conf$$.file conf$$ 2>/dev/null; then
15296 as_ln_s='ln -s'
15297 # ... but there are two gotchas:
15298 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15299 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15300 # In both cases, we have to default to `cp -p'.
15301 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15302 as_ln_s='cp -p'
15303 elif ln conf$$.file conf$$ 2>/dev/null; then
15304 as_ln_s=ln
15305 else
15306 as_ln_s='cp -p'
15307 fi
15308 else
15309 as_ln_s='cp -p'
15310 fi
15311 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15312 rmdir conf$$.dir 2>/dev/null
15313
15314
15315 # as_fn_mkdir_p
15316 # -------------
15317 # Create "$as_dir" as a directory, including parents if necessary.
15318 as_fn_mkdir_p ()
15319 {
15320
15321 case $as_dir in #(
15322 -*) as_dir=./$as_dir;;
15323 esac
15324 test -d "$as_dir" || eval $as_mkdir_p || {
15325 as_dirs=
15326 while :; do
15327 case $as_dir in #(
15328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15329 *) as_qdir=$as_dir;;
15330 esac
15331 as_dirs="'$as_qdir' $as_dirs"
15332 as_dir=`$as_dirname -- "$as_dir" ||
15333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15334 X"$as_dir" : 'X\(//\)[^/]' \| \
15335 X"$as_dir" : 'X\(//\)$' \| \
15336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15337 $as_echo X"$as_dir" |
15338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15339 s//\1/
15340 q
15341 }
15342 /^X\(\/\/\)[^/].*/{
15343 s//\1/
15344 q
15345 }
15346 /^X\(\/\/\)$/{
15347 s//\1/
15348 q
15349 }
15350 /^X\(\/\).*/{
15351 s//\1/
15352 q
15353 }
15354 s/.*/./; q'`
15355 test -d "$as_dir" && break
15356 done
15357 test -z "$as_dirs" || eval "mkdir $as_dirs"
15358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15359
15360
15361 } # as_fn_mkdir_p
15362 if mkdir -p . 2>/dev/null; then
15363 as_mkdir_p='mkdir -p "$as_dir"'
15364 else
15365 test -d ./-p && rmdir ./-p
15366 as_mkdir_p=false
15367 fi
15368
15369 if test -x / >/dev/null 2>&1; then
15370 as_test_x='test -x'
15371 else
15372 if ls -dL / >/dev/null 2>&1; then
15373 as_ls_L_option=L
15374 else
15375 as_ls_L_option=
15376 fi
15377 as_test_x='
15378 eval sh -c '\''
15379 if test -d "$1"; then
15380 test -d "$1/.";
15381 else
15382 case $1 in #(
15383 -*)set "./$1";;
15384 esac;
15385 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15386 ???[sx]*):;;*)false;;esac;fi
15387 '\'' sh
15388 '
15389 fi
15390 as_executable_p=$as_test_x
15391
15392 # Sed expression to map a string onto a valid CPP name.
15393 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15394
15395 # Sed expression to map a string onto a valid variable name.
15396 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15397
15398
15399 exec 6>&1
15400 ## ----------------------------------- ##
15401 ## Main body of $CONFIG_STATUS script. ##
15402 ## ----------------------------------- ##
15403 _ASEOF
15404 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15405
15406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15407 # Save the log message, to keep $0 and so on meaningful, and to
15408 # report actual input values of CONFIG_FILES etc. instead of their
15409 # values after options handling.
15410 ac_log="
15411 This file was extended by emacs $as_me 24.0.50, which was
15412 generated by GNU Autoconf 2.66. Invocation command line was
15413
15414 CONFIG_FILES = $CONFIG_FILES
15415 CONFIG_HEADERS = $CONFIG_HEADERS
15416 CONFIG_LINKS = $CONFIG_LINKS
15417 CONFIG_COMMANDS = $CONFIG_COMMANDS
15418 $ $0 $@
15419
15420 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15421 "
15422
15423 _ACEOF
15424
15425 case $ac_config_files in *"
15426 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15427 esac
15428
15429 case $ac_config_headers in *"
15430 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15431 esac
15432
15433
15434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15435 # Files that config.status was made for.
15436 config_files="$ac_config_files"
15437 config_headers="$ac_config_headers"
15438 config_commands="$ac_config_commands"
15439
15440 _ACEOF
15441
15442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15443 ac_cs_usage="\
15444 \`$as_me' instantiates files and other configuration actions
15445 from templates according to the current configuration. Unless the files
15446 and actions are specified as TAGs, all are instantiated by default.
15447
15448 Usage: $0 [OPTION]... [TAG]...
15449
15450 -h, --help print this help, then exit
15451 -V, --version print version number and configuration settings, then exit
15452 --config print configuration, then exit
15453 -q, --quiet, --silent
15454 do not print progress messages
15455 -d, --debug don't remove temporary files
15456 --recheck update $as_me by reconfiguring in the same conditions
15457 --file=FILE[:TEMPLATE]
15458 instantiate the configuration file FILE
15459 --header=FILE[:TEMPLATE]
15460 instantiate the configuration header FILE
15461
15462 Configuration files:
15463 $config_files
15464
15465 Configuration headers:
15466 $config_headers
15467
15468 Configuration commands:
15469 $config_commands
15470
15471 Report bugs to the package provider."
15472
15473 _ACEOF
15474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15475 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15476 ac_cs_version="\\
15477 emacs config.status 24.0.50
15478 configured by $0, generated by GNU Autoconf 2.66,
15479 with options \\"\$ac_cs_config\\"
15480
15481 Copyright (C) 2010 Free Software Foundation, Inc.
15482 This config.status script is free software; the Free Software Foundation
15483 gives unlimited permission to copy, distribute and modify it."
15484
15485 ac_pwd='$ac_pwd'
15486 srcdir='$srcdir'
15487 INSTALL='$INSTALL'
15488 test -n "\$AWK" || AWK=awk
15489 _ACEOF
15490
15491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15492 # The default lists apply if the user does not specify any file.
15493 ac_need_defaults=:
15494 while test $# != 0
15495 do
15496 case $1 in
15497 --*=*)
15498 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15499 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15500 ac_shift=:
15501 ;;
15502 *)
15503 ac_option=$1
15504 ac_optarg=$2
15505 ac_shift=shift
15506 ;;
15507 esac
15508
15509 case $ac_option in
15510 # Handling of the options.
15511 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15512 ac_cs_recheck=: ;;
15513 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15514 $as_echo "$ac_cs_version"; exit ;;
15515 --config | --confi | --conf | --con | --co | --c )
15516 $as_echo "$ac_cs_config"; exit ;;
15517 --debug | --debu | --deb | --de | --d | -d )
15518 debug=: ;;
15519 --file | --fil | --fi | --f )
15520 $ac_shift
15521 case $ac_optarg in
15522 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15523 esac
15524 as_fn_append CONFIG_FILES " '$ac_optarg'"
15525 ac_need_defaults=false;;
15526 --header | --heade | --head | --hea )
15527 $ac_shift
15528 case $ac_optarg in
15529 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15530 esac
15531 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15532 ac_need_defaults=false;;
15533 --he | --h)
15534 # Conflict between --help and --header
15535 as_fn_error $? "ambiguous option: \`$1'
15536 Try \`$0 --help' for more information.";;
15537 --help | --hel | -h )
15538 $as_echo "$ac_cs_usage"; exit ;;
15539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15540 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15541 ac_cs_silent=: ;;
15542
15543 # This is an error.
15544 -*) as_fn_error $? "unrecognized option: \`$1'
15545 Try \`$0 --help' for more information." ;;
15546
15547 *) as_fn_append ac_config_targets " $1"
15548 ac_need_defaults=false ;;
15549
15550 esac
15551 shift
15552 done
15553
15554 ac_configure_extra_args=
15555
15556 if $ac_cs_silent; then
15557 exec 6>/dev/null
15558 ac_configure_extra_args="$ac_configure_extra_args --silent"
15559 fi
15560
15561 _ACEOF
15562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15563 if \$ac_cs_recheck; then
15564 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15565 shift
15566 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15567 CONFIG_SHELL='$SHELL'
15568 export CONFIG_SHELL
15569 exec "\$@"
15570 fi
15571
15572 _ACEOF
15573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15574 exec 5>>config.log
15575 {
15576 echo
15577 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15578 ## Running $as_me. ##
15579 _ASBOX
15580 $as_echo "$ac_log"
15581 } >&5
15582
15583 _ACEOF
15584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15585 #
15586 # INIT-COMMANDS
15587 #
15588 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15589
15590 _ACEOF
15591
15592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15593
15594 # Handling of arguments.
15595 for ac_config_target in $ac_config_targets
15596 do
15597 case $ac_config_target in
15598 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15599 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15600 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15601 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15602 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15603 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15604 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15605 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15606 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15607 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15608 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15609 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15610 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15611
15612 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15613 esac
15614 done
15615
15616
15617 # If the user did not use the arguments to specify the items to instantiate,
15618 # then the envvar interface is used. Set only those that are not.
15619 # We use the long form for the default assignment because of an extremely
15620 # bizarre bug on SunOS 4.1.3.
15621 if $ac_need_defaults; then
15622 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15623 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15624 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15625 fi
15626
15627 # Have a temporary directory for convenience. Make it in the build tree
15628 # simply because there is no reason against having it here, and in addition,
15629 # creating and moving files from /tmp can sometimes cause problems.
15630 # Hook for its removal unless debugging.
15631 # Note that there is a small window in which the directory will not be cleaned:
15632 # after its creation but before its name has been assigned to `$tmp'.
15633 $debug ||
15634 {
15635 tmp=
15636 trap 'exit_status=$?
15637 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15638 ' 0
15639 trap 'as_fn_exit 1' 1 2 13 15
15640 }
15641 # Create a (secure) tmp directory for tmp files.
15642
15643 {
15644 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15645 test -n "$tmp" && test -d "$tmp"
15646 } ||
15647 {
15648 tmp=./conf$$-$RANDOM
15649 (umask 077 && mkdir "$tmp")
15650 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15651
15652 # Set up the scripts for CONFIG_FILES section.
15653 # No need to generate them if there are no CONFIG_FILES.
15654 # This happens for instance with `./config.status config.h'.
15655 if test -n "$CONFIG_FILES"; then
15656
15657 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15658 ac_cs_awk_getline=:
15659 ac_cs_awk_pipe_init=
15660 ac_cs_awk_read_file='
15661 while ((getline aline < (F[key])) > 0)
15662 print(aline)
15663 close(F[key])'
15664 ac_cs_awk_pipe_fini=
15665 else
15666 ac_cs_awk_getline=false
15667 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15668 ac_cs_awk_read_file='
15669 print "|#_!!_#|"
15670 print "cat " F[key] " &&"
15671 '$ac_cs_awk_pipe_init
15672 # The final `:' finishes the AND list.
15673 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15674 fi
15675 ac_cr=`echo X | tr X '\015'`
15676 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15677 # But we know of no other shell where ac_cr would be empty at this
15678 # point, so we can use a bashism as a fallback.
15679 if test "x$ac_cr" = x; then
15680 eval ac_cr=\$\'\\r\'
15681 fi
15682 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15683 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15684 ac_cs_awk_cr='\\r'
15685 else
15686 ac_cs_awk_cr=$ac_cr
15687 fi
15688
15689 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15690 _ACEOF
15691
15692 # Create commands to substitute file output variables.
15693 {
15694 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15695 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15696 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15697 echo "_ACAWK" &&
15698 echo "_ACEOF"
15699 } >conf$$files.sh &&
15700 . ./conf$$files.sh ||
15701 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15702 rm -f conf$$files.sh
15703
15704 {
15705 echo "cat >conf$$subs.awk <<_ACEOF" &&
15706 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15707 echo "_ACEOF"
15708 } >conf$$subs.sh ||
15709 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15710 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15711 ac_delim='%!_!# '
15712 for ac_last_try in false false false false false :; do
15713 . ./conf$$subs.sh ||
15714 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15715
15716 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15717 if test $ac_delim_n = $ac_delim_num; then
15718 break
15719 elif $ac_last_try; then
15720 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15721 else
15722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15723 fi
15724 done
15725 rm -f conf$$subs.sh
15726
15727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15728 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15729 _ACEOF
15730 sed -n '
15731 h
15732 s/^/S["/; s/!.*/"]=/
15733 p
15734 g
15735 s/^[^!]*!//
15736 :repl
15737 t repl
15738 s/'"$ac_delim"'$//
15739 t delim
15740 :nl
15741 h
15742 s/\(.\{148\}\)..*/\1/
15743 t more1
15744 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15745 p
15746 n
15747 b repl
15748 :more1
15749 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15750 p
15751 g
15752 s/.\{148\}//
15753 t nl
15754 :delim
15755 h
15756 s/\(.\{148\}\)..*/\1/
15757 t more2
15758 s/["\\]/\\&/g; s/^/"/; s/$/"/
15759 p
15760 b
15761 :more2
15762 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15763 p
15764 g
15765 s/.\{148\}//
15766 t delim
15767 ' <conf$$subs.awk | sed '
15768 /^[^""]/{
15769 N
15770 s/\n//
15771 }
15772 ' >>$CONFIG_STATUS || ac_write_fail=1
15773 rm -f conf$$subs.awk
15774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15775 _ACAWK
15776 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15777 for (key in S) S_is_set[key] = 1
15778 FS = "\a"
15779 \$ac_cs_awk_pipe_init
15780 }
15781 {
15782 line = $ 0
15783 nfields = split(line, field, "@")
15784 substed = 0
15785 len = length(field[1])
15786 for (i = 2; i < nfields; i++) {
15787 key = field[i]
15788 keylen = length(key)
15789 if (S_is_set[key]) {
15790 value = S[key]
15791 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15792 len += length(value) + length(field[++i])
15793 substed = 1
15794 } else
15795 len += 1 + keylen
15796 }
15797 if (nfields == 3 && !substed) {
15798 key = field[2]
15799 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15800 \$ac_cs_awk_read_file
15801 next
15802 }
15803 }
15804 print line
15805 }
15806 \$ac_cs_awk_pipe_fini
15807 _ACAWK
15808 _ACEOF
15809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15810 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15811 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15812 else
15813 cat
15814 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15815 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15816 _ACEOF
15817
15818 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15819 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15820 # trailing colons and then remove the whole line if VPATH becomes empty
15821 # (actually we leave an empty line to preserve line numbers).
15822 if test "x$srcdir" = x.; then
15823 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15824 h
15825 s///
15826 s/^/:/
15827 s/[ ]*$/:/
15828 s/:\$(srcdir):/:/g
15829 s/:\${srcdir}:/:/g
15830 s/:@srcdir@:/:/g
15831 s/^:*//
15832 s/:*$//
15833 x
15834 s/\(=[ ]*\).*/\1/
15835 G
15836 s/\n//
15837 s/^[^=]*=[ ]*$//
15838 }'
15839 fi
15840
15841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15842 fi # test -n "$CONFIG_FILES"
15843
15844 # Set up the scripts for CONFIG_HEADERS section.
15845 # No need to generate them if there are no CONFIG_HEADERS.
15846 # This happens for instance with `./config.status Makefile'.
15847 if test -n "$CONFIG_HEADERS"; then
15848 cat >"$tmp/defines.awk" <<\_ACAWK ||
15849 BEGIN {
15850 _ACEOF
15851
15852 # Transform confdefs.h into an awk script `defines.awk', embedded as
15853 # here-document in config.status, that substitutes the proper values into
15854 # config.h.in to produce config.h.
15855
15856 # Create a delimiter string that does not exist in confdefs.h, to ease
15857 # handling of long lines.
15858 ac_delim='%!_!# '
15859 for ac_last_try in false false :; do
15860 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15861 if test -z "$ac_t"; then
15862 break
15863 elif $ac_last_try; then
15864 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15865 else
15866 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15867 fi
15868 done
15869
15870 # For the awk script, D is an array of macro values keyed by name,
15871 # likewise P contains macro parameters if any. Preserve backslash
15872 # newline sequences.
15873
15874 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15875 sed -n '
15876 s/.\{148\}/&'"$ac_delim"'/g
15877 t rset
15878 :rset
15879 s/^[ ]*#[ ]*define[ ][ ]*/ /
15880 t def
15881 d
15882 :def
15883 s/\\$//
15884 t bsnl
15885 s/["\\]/\\&/g
15886 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15887 D["\1"]=" \3"/p
15888 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15889 d
15890 :bsnl
15891 s/["\\]/\\&/g
15892 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15893 D["\1"]=" \3\\\\\\n"\\/p
15894 t cont
15895 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15896 t cont
15897 d
15898 :cont
15899 n
15900 s/.\{148\}/&'"$ac_delim"'/g
15901 t clear
15902 :clear
15903 s/\\$//
15904 t bsnlc
15905 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15906 d
15907 :bsnlc
15908 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15909 b cont
15910 ' <confdefs.h | sed '
15911 s/'"$ac_delim"'/"\\\
15912 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15913
15914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15915 for (key in D) D_is_set[key] = 1
15916 FS = "\a"
15917 }
15918 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15919 line = \$ 0
15920 split(line, arg, " ")
15921 if (arg[1] == "#") {
15922 defundef = arg[2]
15923 mac1 = arg[3]
15924 } else {
15925 defundef = substr(arg[1], 2)
15926 mac1 = arg[2]
15927 }
15928 split(mac1, mac2, "(") #)
15929 macro = mac2[1]
15930 prefix = substr(line, 1, index(line, defundef) - 1)
15931 if (D_is_set[macro]) {
15932 # Preserve the white space surrounding the "#".
15933 print prefix "define", macro P[macro] D[macro]
15934 next
15935 } else {
15936 # Replace #undef with comments. This is necessary, for example,
15937 # in the case of _POSIX_SOURCE, which is predefined and required
15938 # on some systems where configure will not decide to define it.
15939 if (defundef == "undef") {
15940 print "/*", prefix defundef, macro, "*/"
15941 next
15942 }
15943 }
15944 }
15945 { print }
15946 _ACAWK
15947 _ACEOF
15948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15949 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15950 fi # test -n "$CONFIG_HEADERS"
15951
15952
15953 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15954 shift
15955 for ac_tag
15956 do
15957 case $ac_tag in
15958 :[FHLC]) ac_mode=$ac_tag; continue;;
15959 esac
15960 case $ac_mode$ac_tag in
15961 :[FHL]*:*);;
15962 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15963 :[FH]-) ac_tag=-:-;;
15964 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15965 esac
15966 ac_save_IFS=$IFS
15967 IFS=:
15968 set x $ac_tag
15969 IFS=$ac_save_IFS
15970 shift
15971 ac_file=$1
15972 shift
15973
15974 case $ac_mode in
15975 :L) ac_source=$1;;
15976 :[FH])
15977 ac_file_inputs=
15978 for ac_f
15979 do
15980 case $ac_f in
15981 -) ac_f="$tmp/stdin";;
15982 *) # Look for the file first in the build tree, then in the source tree
15983 # (if the path is not absolute). The absolute path cannot be DOS-style,
15984 # because $ac_f cannot contain `:'.
15985 test -f "$ac_f" ||
15986 case $ac_f in
15987 [\\/$]*) false;;
15988 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15989 esac ||
15990 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15991 esac
15992 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15993 as_fn_append ac_file_inputs " '$ac_f'"
15994 done
15995
15996 # Let's still pretend it is `configure' which instantiates (i.e., don't
15997 # use $as_me), people would be surprised to read:
15998 # /* config.h. Generated by config.status. */
15999 configure_input='Generated from '`
16000 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16001 `' by configure.'
16002 if test x"$ac_file" != x-; then
16003 configure_input="$ac_file. $configure_input"
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16005 $as_echo "$as_me: creating $ac_file" >&6;}
16006 fi
16007 # Neutralize special characters interpreted by sed in replacement strings.
16008 case $configure_input in #(
16009 *\&* | *\|* | *\\* )
16010 ac_sed_conf_input=`$as_echo "$configure_input" |
16011 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16012 *) ac_sed_conf_input=$configure_input;;
16013 esac
16014
16015 case $ac_tag in
16016 *:-:* | *:-) cat >"$tmp/stdin" \
16017 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16018 esac
16019 ;;
16020 esac
16021
16022 ac_dir=`$as_dirname -- "$ac_file" ||
16023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16024 X"$ac_file" : 'X\(//\)[^/]' \| \
16025 X"$ac_file" : 'X\(//\)$' \| \
16026 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16027 $as_echo X"$ac_file" |
16028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16029 s//\1/
16030 q
16031 }
16032 /^X\(\/\/\)[^/].*/{
16033 s//\1/
16034 q
16035 }
16036 /^X\(\/\/\)$/{
16037 s//\1/
16038 q
16039 }
16040 /^X\(\/\).*/{
16041 s//\1/
16042 q
16043 }
16044 s/.*/./; q'`
16045 as_dir="$ac_dir"; as_fn_mkdir_p
16046 ac_builddir=.
16047
16048 case "$ac_dir" in
16049 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16050 *)
16051 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16052 # A ".." for each directory in $ac_dir_suffix.
16053 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16054 case $ac_top_builddir_sub in
16055 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16056 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16057 esac ;;
16058 esac
16059 ac_abs_top_builddir=$ac_pwd
16060 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16061 # for backward compatibility:
16062 ac_top_builddir=$ac_top_build_prefix
16063
16064 case $srcdir in
16065 .) # We are building in place.
16066 ac_srcdir=.
16067 ac_top_srcdir=$ac_top_builddir_sub
16068 ac_abs_top_srcdir=$ac_pwd ;;
16069 [\\/]* | ?:[\\/]* ) # Absolute name.
16070 ac_srcdir=$srcdir$ac_dir_suffix;
16071 ac_top_srcdir=$srcdir
16072 ac_abs_top_srcdir=$srcdir ;;
16073 *) # Relative name.
16074 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16075 ac_top_srcdir=$ac_top_build_prefix$srcdir
16076 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16077 esac
16078 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16079
16080
16081 case $ac_mode in
16082 :F)
16083 #
16084 # CONFIG_FILE
16085 #
16086
16087 case $INSTALL in
16088 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16089 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16090 esac
16091 _ACEOF
16092
16093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16094 # If the template does not know about datarootdir, expand it.
16095 # FIXME: This hack should be removed a few years after 2.60.
16096 ac_datarootdir_hack=; ac_datarootdir_seen=
16097 ac_sed_dataroot='
16098 /datarootdir/ {
16099 p
16100 q
16101 }
16102 /@datadir@/p
16103 /@docdir@/p
16104 /@infodir@/p
16105 /@localedir@/p
16106 /@mandir@/p'
16107 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16108 *datarootdir*) ac_datarootdir_seen=yes;;
16109 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16111 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16112 _ACEOF
16113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16114 ac_datarootdir_hack='
16115 s&@datadir@&$datadir&g
16116 s&@docdir@&$docdir&g
16117 s&@infodir@&$infodir&g
16118 s&@localedir@&$localedir&g
16119 s&@mandir@&$mandir&g
16120 s&\\\${datarootdir}&$datarootdir&g' ;;
16121 esac
16122 _ACEOF
16123
16124 # Neutralize VPATH when `$srcdir' = `.'.
16125 # Shell code in configure.ac might set extrasub.
16126 # FIXME: do we really want to maintain this feature?
16127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16128 ac_sed_extra="$ac_vpsub
16129 $extrasub
16130 _ACEOF
16131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16132 :t
16133 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16134 s|@configure_input@|$ac_sed_conf_input|;t t
16135 s&@top_builddir@&$ac_top_builddir_sub&;t t
16136 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16137 s&@srcdir@&$ac_srcdir&;t t
16138 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16139 s&@top_srcdir@&$ac_top_srcdir&;t t
16140 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16141 s&@builddir@&$ac_builddir&;t t
16142 s&@abs_builddir@&$ac_abs_builddir&;t t
16143 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16144 s&@INSTALL@&$ac_INSTALL&;t t
16145 $ac_datarootdir_hack
16146 "
16147 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16148 if $ac_cs_awk_getline; then
16149 $AWK -f "$tmp/subs.awk"
16150 else
16151 $AWK -f "$tmp/subs.awk" | $SHELL
16152 fi >$tmp/out \
16153 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16154
16155 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16156 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16157 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16159 which seems to be undefined. Please make sure it is defined" >&5
16160 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16161 which seems to be undefined. Please make sure it is defined" >&2;}
16162
16163 rm -f "$tmp/stdin"
16164 case $ac_file in
16165 -) cat "$tmp/out" && rm -f "$tmp/out";;
16166 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16167 esac \
16168 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16169 ;;
16170 :H)
16171 #
16172 # CONFIG_HEADER
16173 #
16174 if test x"$ac_file" != x-; then
16175 {
16176 $as_echo "/* $configure_input */" \
16177 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16178 } >"$tmp/config.h" \
16179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16180 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16182 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16183 else
16184 rm -f "$ac_file"
16185 mv "$tmp/config.h" "$ac_file" \
16186 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16187 fi
16188 else
16189 $as_echo "/* $configure_input */" \
16190 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16191 || as_fn_error $? "could not create -" "$LINENO" 5
16192 fi
16193 ;;
16194
16195 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16196 $as_echo "$as_me: executing $ac_file commands" >&6;}
16197 ;;
16198 esac
16199
16200
16201 case $ac_file$ac_mode in
16202 "default":C)
16203
16204 ### Make the necessary directories, if they don't exist.
16205 for dir in etc lisp ; do
16206 test -d ${dir} || mkdir ${dir}
16207 done
16208
16209 echo creating src/epaths.h
16210 ${MAKE-make} epaths-force
16211
16212 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
16213 echo creating src/.gdbinit
16214 echo source $srcdir/src/.gdbinit > src/.gdbinit
16215 fi
16216
16217 ;;
16218
16219 esac
16220 done # for ac_tag
16221
16222
16223 as_fn_exit 0
16224 _ACEOF
16225 ac_clean_files=$ac_clean_files_save
16226
16227 test $ac_write_fail = 0 ||
16228 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16229
16230
16231 # configure is writing to config.log, and then calls config.status.
16232 # config.status does its own redirection, appending to config.log.
16233 # Unfortunately, on DOS this fails, as config.log is still kept open
16234 # by configure, so config.status won't be able to write to it; its
16235 # output is simply discarded. So we exec the FD to /dev/null,
16236 # effectively closing config.log, so it can be properly (re)opened and
16237 # appended to by config.status. When coming back to configure, we
16238 # need to make the FD available again.
16239 if test "$no_create" != yes; then
16240 ac_cs_success=:
16241 ac_config_status_args=
16242 test "$silent" = yes &&
16243 ac_config_status_args="$ac_config_status_args --quiet"
16244 exec 5>/dev/null
16245 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16246 exec 5>>config.log
16247 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16248 # would make configure fail if this is the last instruction.
16249 $ac_cs_success || as_fn_exit 1
16250 fi
16251 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16253 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16254 fi
16255
16256