Link temacs using $(CC) not $(LD).
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_config_libobj_dir=src
595 ac_header_list=
596 ac_func_list=
597 ac_subst_vars='LTLIBOBJS
598 WINDOW_SUPPORT
599 TOOLTIP_SUPPORT
600 MOUSE_SUPPORT
601 LIB_GCC
602 LD_FIRSTFLAG
603 LD_SWITCH_SYSTEM_TEMACS
604 POST_ALLOC_OBJ
605 PRE_ALLOC_OBJ
606 CYGWIN_OBJ
607 RALLOC_OBJ
608 OLDXMENU_DEPS
609 LIBX_OTHER
610 LIBXMENU
611 OLDXMENU
612 OLDXMENU_TARGET
613 LIBXT_OTHER
614 TOOLKIT_LIBW
615 WIDGET_OBJ
616 XOBJ
617 XMENU_OBJ
618 FONT_OBJ
619 OTHER_FILES
620 GNU_OBJC_CFLAGS
621 ns_appsrc
622 ns_appresdir
623 ns_appbindir
624 ns_appdir
625 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.65
1625
1626 Copyright (C) 2009 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 { as_var=$3; eval "test \"\${$as_var+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 { as_var=$3; eval "test \"\${$as_var+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 { as_var=$3; eval "test \"\${$as_var+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 { as_var=$3; eval "test \"\${$as_var+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
1919 # ------------------------------------
1920 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1921 ac_fn_c_check_decl ()
1922 {
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1925 $as_echo_n "checking whether $2 is declared... " >&6; }
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1928 else
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1931 $4
1932 int
1933 main ()
1934 {
1935 #ifndef $2
1936 (void) $2;
1937 #endif
1938
1939 ;
1940 return 0;
1941 }
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 eval "$3=yes"
1945 else
1946 eval "$3=no"
1947 fi
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 fi
1950 eval ac_res=\$$3
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1953 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1954
1955 } # ac_fn_c_check_decl
1956
1957 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1958 # ----------------------------------------------
1959 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1960 ac_fn_c_check_header_preproc ()
1961 {
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 $as_echo_n "checking for $2... " >&6; }
1965 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1966 $as_echo_n "(cached) " >&6
1967 else
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 #include <$2>
1971 _ACEOF
1972 if ac_fn_c_try_cpp "$LINENO"; then :
1973 eval "$3=yes"
1974 else
1975 eval "$3=no"
1976 fi
1977 rm -f conftest.err conftest.$ac_ext
1978 fi
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1983
1984 } # ac_fn_c_check_header_preproc
1985
1986 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1987 # ----------------------------------------------------
1988 # Tries to find if the field MEMBER exists in type AGGR, after including
1989 # INCLUDES, setting cache variable VAR accordingly.
1990 ac_fn_c_check_member ()
1991 {
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1994 $as_echo_n "checking for $2.$3... " >&6; }
1995 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1996 $as_echo_n "(cached) " >&6
1997 else
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 $5
2001 int
2002 main ()
2003 {
2004 static $2 ac_aggr;
2005 if (ac_aggr.$3)
2006 return 0;
2007 ;
2008 return 0;
2009 }
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012 eval "$4=yes"
2013 else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 $5
2017 int
2018 main ()
2019 {
2020 static $2 ac_aggr;
2021 if (sizeof ac_aggr.$3)
2022 return 0;
2023 ;
2024 return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 eval "$4=yes"
2029 else
2030 eval "$4=no"
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 fi
2036 eval ac_res=\$$4
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2040
2041 } # ac_fn_c_check_member
2042
2043 # ac_fn_c_check_func LINENO FUNC VAR
2044 # ----------------------------------
2045 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2046 ac_fn_c_check_func ()
2047 {
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050 $as_echo_n "checking for $2... " >&6; }
2051 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2052 $as_echo_n "(cached) " >&6
2053 else
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2056 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2058 #define $2 innocuous_$2
2059
2060 /* System header to define __stub macros and hopefully few prototypes,
2061 which can conflict with char $2 (); below.
2062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2063 <limits.h> exists even on freestanding compilers. */
2064
2065 #ifdef __STDC__
2066 # include <limits.h>
2067 #else
2068 # include <assert.h>
2069 #endif
2070
2071 #undef $2
2072
2073 /* Override any GCC internal prototype to avoid an error.
2074 Use char because int might match the return type of a GCC
2075 builtin and then its argument prototype would still apply. */
2076 #ifdef __cplusplus
2077 extern "C"
2078 #endif
2079 char $2 ();
2080 /* The GNU C library defines this for functions which it implements
2081 to always fail with ENOSYS. Some functions are actually named
2082 something starting with __ and the normal name is an alias. */
2083 #if defined __stub_$2 || defined __stub___$2
2084 choke me
2085 #endif
2086
2087 int
2088 main ()
2089 {
2090 return $2 ();
2091 ;
2092 return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_link "$LINENO"; then :
2096 eval "$3=yes"
2097 else
2098 eval "$3=no"
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext \
2101 conftest$ac_exeext conftest.$ac_ext
2102 fi
2103 eval ac_res=\$$3
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 $as_echo "$ac_res" >&6; }
2106 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2107
2108 } # ac_fn_c_check_func
2109
2110 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2111 # -------------------------------------------
2112 # Tests whether TYPE exists after having included INCLUDES, setting cache
2113 # variable VAR accordingly.
2114 ac_fn_c_check_type ()
2115 {
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118 $as_echo_n "checking for $2... " >&6; }
2119 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2120 $as_echo_n "(cached) " >&6
2121 else
2122 eval "$3=no"
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2125 $4
2126 int
2127 main ()
2128 {
2129 if (sizeof ($2))
2130 return 0;
2131 ;
2132 return 0;
2133 }
2134 _ACEOF
2135 if ac_fn_c_try_compile "$LINENO"; then :
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2138 $4
2139 int
2140 main ()
2141 {
2142 if (sizeof (($2)))
2143 return 0;
2144 ;
2145 return 0;
2146 }
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149
2150 else
2151 eval "$3=yes"
2152 fi
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 fi
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 fi
2157 eval ac_res=\$$3
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159 $as_echo "$ac_res" >&6; }
2160 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2161
2162 } # ac_fn_c_check_type
2163 cat >config.log <<_ACEOF
2164 This file contains any messages produced by compilers while
2165 running configure, to aid debugging if configure makes a mistake.
2166
2167 It was created by emacs $as_me 24.0.50, which was
2168 generated by GNU Autoconf 2.65. Invocation command line was
2169
2170 $ $0 $@
2171
2172 _ACEOF
2173 exec 5>>config.log
2174 {
2175 cat <<_ASUNAME
2176 ## --------- ##
2177 ## Platform. ##
2178 ## --------- ##
2179
2180 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2181 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2182 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2183 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2184 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2185
2186 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2187 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2188
2189 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2190 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2191 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2192 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2193 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2194 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2195 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2196
2197 _ASUNAME
2198
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2201 do
2202 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=.
2204 $as_echo "PATH: $as_dir"
2205 done
2206 IFS=$as_save_IFS
2207
2208 } >&5
2209
2210 cat >&5 <<_ACEOF
2211
2212
2213 ## ----------- ##
2214 ## Core tests. ##
2215 ## ----------- ##
2216
2217 _ACEOF
2218
2219
2220 # Keep a trace of the command line.
2221 # Strip out --no-create and --no-recursion so they do not pile up.
2222 # Strip out --silent because we don't want to record it for future runs.
2223 # Also quote any args containing shell meta-characters.
2224 # Make two passes to allow for proper duplicate-argument suppression.
2225 ac_configure_args=
2226 ac_configure_args0=
2227 ac_configure_args1=
2228 ac_must_keep_next=false
2229 for ac_pass in 1 2
2230 do
2231 for ac_arg
2232 do
2233 case $ac_arg in
2234 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2236 | -silent | --silent | --silen | --sile | --sil)
2237 continue ;;
2238 *\'*)
2239 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2240 esac
2241 case $ac_pass in
2242 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2243 2)
2244 as_fn_append ac_configure_args1 " '$ac_arg'"
2245 if test $ac_must_keep_next = true; then
2246 ac_must_keep_next=false # Got value, back to normal.
2247 else
2248 case $ac_arg in
2249 *=* | --config-cache | -C | -disable-* | --disable-* \
2250 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2251 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2252 | -with-* | --with-* | -without-* | --without-* | --x)
2253 case "$ac_configure_args0 " in
2254 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2255 esac
2256 ;;
2257 -* ) ac_must_keep_next=true ;;
2258 esac
2259 fi
2260 as_fn_append ac_configure_args " '$ac_arg'"
2261 ;;
2262 esac
2263 done
2264 done
2265 { ac_configure_args0=; unset ac_configure_args0;}
2266 { ac_configure_args1=; unset ac_configure_args1;}
2267
2268 # When interrupted or exit'd, cleanup temporary files, and complete
2269 # config.log. We remove comments because anyway the quotes in there
2270 # would cause problems or look ugly.
2271 # WARNING: Use '\'' to represent an apostrophe within the trap.
2272 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2273 trap 'exit_status=$?
2274 # Save into config.log some information that might help in debugging.
2275 {
2276 echo
2277
2278 cat <<\_ASBOX
2279 ## ---------------- ##
2280 ## Cache variables. ##
2281 ## ---------------- ##
2282 _ASBOX
2283 echo
2284 # The following way of writing the cache mishandles newlines in values,
2285 (
2286 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2287 eval ac_val=\$$ac_var
2288 case $ac_val in #(
2289 *${as_nl}*)
2290 case $ac_var in #(
2291 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2292 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2293 esac
2294 case $ac_var in #(
2295 _ | IFS | as_nl) ;; #(
2296 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2297 *) { eval $ac_var=; unset $ac_var;} ;;
2298 esac ;;
2299 esac
2300 done
2301 (set) 2>&1 |
2302 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2303 *${as_nl}ac_space=\ *)
2304 sed -n \
2305 "s/'\''/'\''\\\\'\'''\''/g;
2306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2307 ;; #(
2308 *)
2309 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2310 ;;
2311 esac |
2312 sort
2313 )
2314 echo
2315
2316 cat <<\_ASBOX
2317 ## ----------------- ##
2318 ## Output variables. ##
2319 ## ----------------- ##
2320 _ASBOX
2321 echo
2322 for ac_var in $ac_subst_vars
2323 do
2324 eval ac_val=\$$ac_var
2325 case $ac_val in
2326 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2327 esac
2328 $as_echo "$ac_var='\''$ac_val'\''"
2329 done | sort
2330 echo
2331
2332 if test -n "$ac_subst_files"; then
2333 cat <<\_ASBOX
2334 ## ------------------- ##
2335 ## File substitutions. ##
2336 ## ------------------- ##
2337 _ASBOX
2338 echo
2339 for ac_var in $ac_subst_files
2340 do
2341 eval ac_val=\$$ac_var
2342 case $ac_val in
2343 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2344 esac
2345 $as_echo "$ac_var='\''$ac_val'\''"
2346 done | sort
2347 echo
2348 fi
2349
2350 if test -s confdefs.h; then
2351 cat <<\_ASBOX
2352 ## ----------- ##
2353 ## confdefs.h. ##
2354 ## ----------- ##
2355 _ASBOX
2356 echo
2357 cat confdefs.h
2358 echo
2359 fi
2360 test "$ac_signal" != 0 &&
2361 $as_echo "$as_me: caught signal $ac_signal"
2362 $as_echo "$as_me: exit $exit_status"
2363 } >&5
2364 rm -f core *.core core.conftest.* &&
2365 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2366 exit $exit_status
2367 ' 0
2368 for ac_signal in 1 2 13 15; do
2369 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2370 done
2371 ac_signal=0
2372
2373 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2374 rm -f -r conftest* confdefs.h
2375
2376 $as_echo "/* confdefs.h */" > confdefs.h
2377
2378 # Predefined preprocessor variables.
2379
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_NAME "$PACKAGE_NAME"
2382 _ACEOF
2383
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2386 _ACEOF
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2390 _ACEOF
2391
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_STRING "$PACKAGE_STRING"
2394 _ACEOF
2395
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2398 _ACEOF
2399
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_URL "$PACKAGE_URL"
2402 _ACEOF
2403
2404
2405 # Let the site file select an alternate cache file if it wants to.
2406 # Prefer an explicitly selected file to automatically selected ones.
2407 ac_site_file1=NONE
2408 ac_site_file2=NONE
2409 if test -n "$CONFIG_SITE"; then
2410 ac_site_file1=$CONFIG_SITE
2411 elif test "x$prefix" != xNONE; then
2412 ac_site_file1=$prefix/share/config.site
2413 ac_site_file2=$prefix/etc/config.site
2414 else
2415 ac_site_file1=$ac_default_prefix/share/config.site
2416 ac_site_file2=$ac_default_prefix/etc/config.site
2417 fi
2418 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2419 do
2420 test "x$ac_site_file" = xNONE && continue
2421 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2423 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2424 sed 's/^/| /' "$ac_site_file" >&5
2425 . "$ac_site_file"
2426 fi
2427 done
2428
2429 if test -r "$cache_file"; then
2430 # Some versions of bash will fail to source /dev/null (special files
2431 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2432 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2434 $as_echo "$as_me: loading cache $cache_file" >&6;}
2435 case $cache_file in
2436 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2437 *) . "./$cache_file";;
2438 esac
2439 fi
2440 else
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2442 $as_echo "$as_me: creating cache $cache_file" >&6;}
2443 >$cache_file
2444 fi
2445
2446 as_fn_append ac_header_list " stdlib.h"
2447 as_fn_append ac_header_list " unistd.h"
2448 as_fn_append ac_header_list " sys/param.h"
2449 as_fn_append ac_header_list " sys/time.h"
2450 as_fn_append ac_func_list " alarm"
2451 # Check that the precious variables saved in the cache have kept the same
2452 # value.
2453 ac_cache_corrupted=false
2454 for ac_var in $ac_precious_vars; do
2455 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2456 eval ac_new_set=\$ac_env_${ac_var}_set
2457 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2458 eval ac_new_val=\$ac_env_${ac_var}_value
2459 case $ac_old_set,$ac_new_set in
2460 set,)
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2462 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2463 ac_cache_corrupted=: ;;
2464 ,set)
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2466 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2467 ac_cache_corrupted=: ;;
2468 ,);;
2469 *)
2470 if test "x$ac_old_val" != "x$ac_new_val"; then
2471 # differences in whitespace do not lead to failure.
2472 ac_old_val_w=`echo x $ac_old_val`
2473 ac_new_val_w=`echo x $ac_new_val`
2474 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2476 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2477 ac_cache_corrupted=:
2478 else
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2480 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2481 eval $ac_var=\$ac_old_val
2482 fi
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2484 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2486 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2487 fi;;
2488 esac
2489 # Pass precious variables to config.status.
2490 if test "$ac_new_set" = set; then
2491 case $ac_new_val in
2492 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2493 *) ac_arg=$ac_var=$ac_new_val ;;
2494 esac
2495 case " $ac_configure_args " in
2496 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2497 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2498 esac
2499 fi
2500 done
2501 if $ac_cache_corrupted; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2505 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2506 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2507 fi
2508 ## -------------------- ##
2509 ## Main body of script. ##
2510 ## -------------------- ##
2511
2512 ac_ext=c
2513 ac_cpp='$CPP $CPPFLAGS'
2514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2517
2518
2519 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2520
2521
2522
2523 test "$program_prefix" != NONE &&
2524 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2525 # Use a double $ so make ignores it.
2526 test "$program_suffix" != NONE &&
2527 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2528 # Double any \ or $.
2529 # By default was `s,x,x', remove it if useless.
2530 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2531 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2532
2533
2534 lispdir='${datadir}/emacs/${version}/lisp'
2535 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2536 '${datadir}/emacs/site-lisp'
2537 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2538 etcdir='${datadir}/emacs/${version}/etc'
2539 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2540 docdir='${datadir}/emacs/${version}/etc'
2541 gamedir='${localstatedir}/games/emacs'
2542
2543 gameuser=games
2544
2545
2546
2547
2548 # Check whether --with-pop was given.
2549 if test "${with_pop+set}" = set; then :
2550 withval=$with_pop;
2551 else
2552 with_pop=yes
2553 fi
2554
2555 if test "$with_pop" = yes; then
2556 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2557
2558 fi
2559
2560
2561 # Check whether --with-kerberos was given.
2562 if test "${with_kerberos+set}" = set; then :
2563 withval=$with_kerberos;
2564 else
2565 with_kerberos=no
2566 fi
2567
2568 if test "$with_kerberos" != no; then
2569 $as_echo "#define KERBEROS 1" >>confdefs.h
2570
2571 fi
2572
2573
2574 # Check whether --with-kerberos5 was given.
2575 if test "${with_kerberos5+set}" = set; then :
2576 withval=$with_kerberos5;
2577 else
2578 with_kerberos5=no
2579 fi
2580
2581 if test "${with_kerberos5}" != no; then
2582 if test "${with_kerberos}" = no; then
2583 with_kerberos=yes
2584 $as_echo "#define KERBEROS 1" >>confdefs.h
2585
2586 fi
2587
2588 $as_echo "#define KERBEROS5 1" >>confdefs.h
2589
2590 fi
2591
2592
2593 # Check whether --with-hesiod was given.
2594 if test "${with_hesiod+set}" = set; then :
2595 withval=$with_hesiod;
2596 else
2597 with_hesiod=no
2598 fi
2599
2600 if test "$with_hesiod" != no; then
2601
2602 $as_echo "#define HESIOD 1" >>confdefs.h
2603
2604 fi
2605
2606
2607 # Check whether --with-mmdf was given.
2608 if test "${with_mmdf+set}" = set; then :
2609 withval=$with_mmdf;
2610 else
2611 with_mmdf=no
2612 fi
2613
2614 if test "$with_mmdf" != no; then
2615
2616 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2617
2618 fi
2619
2620
2621 # Check whether --with-mail-unlink was given.
2622 if test "${with_mail_unlink+set}" = set; then :
2623 withval=$with_mail_unlink;
2624 else
2625 with_mail_unlink=no
2626 fi
2627
2628 if test "$with_mail_unlink" != no; then
2629
2630 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2631
2632 fi
2633
2634
2635 # Check whether --with-mailhost was given.
2636 if test "${with_mailhost+set}" = set; then :
2637 withval=$with_mailhost;
2638 cat >>confdefs.h <<_ACEOF
2639 #define MAILHOST "$withval"
2640 _ACEOF
2641
2642 fi
2643
2644
2645
2646 # Check whether --with-sound was given.
2647 if test "${with_sound+set}" = set; then :
2648 withval=$with_sound;
2649 else
2650 with_sound=yes
2651 fi
2652
2653
2654
2655 # Check whether --with-sync-input was given.
2656 if test "${with_sync_input+set}" = set; then :
2657 withval=$with_sync_input;
2658 else
2659 with_sync_input=yes
2660 fi
2661
2662 if test "$with_sync_input" = yes; then
2663
2664 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2665
2666 fi
2667
2668
2669 # Check whether --with-x-toolkit was given.
2670 if test "${with_x_toolkit+set}" = set; then :
2671 withval=$with_x_toolkit; case "${withval}" in
2672 y | ye | yes ) val=gtk ;;
2673 n | no ) val=no ;;
2674 l | lu | luc | luci | lucid ) val=lucid ;;
2675 a | at | ath | athe | athen | athena ) val=athena ;;
2676 m | mo | mot | moti | motif ) val=motif ;;
2677 g | gt | gtk ) val=gtk ;;
2678 gtk3 ) val=gtk3 ;;
2679 * )
2680 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2681 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2682 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2683 ;;
2684 esac
2685 with_x_toolkit=$val
2686
2687 fi
2688
2689
2690
2691 # Check whether --with-xpm was given.
2692 if test "${with_xpm+set}" = set; then :
2693 withval=$with_xpm;
2694 else
2695 with_xpm=yes
2696 fi
2697
2698
2699 # Check whether --with-jpeg was given.
2700 if test "${with_jpeg+set}" = set; then :
2701 withval=$with_jpeg;
2702 else
2703 with_jpeg=yes
2704 fi
2705
2706
2707 # Check whether --with-tiff was given.
2708 if test "${with_tiff+set}" = set; then :
2709 withval=$with_tiff;
2710 else
2711 with_tiff=yes
2712 fi
2713
2714
2715 # Check whether --with-gif was given.
2716 if test "${with_gif+set}" = set; then :
2717 withval=$with_gif;
2718 else
2719 with_gif=yes
2720 fi
2721
2722
2723 # Check whether --with-png was given.
2724 if test "${with_png+set}" = set; then :
2725 withval=$with_png;
2726 else
2727 with_png=yes
2728 fi
2729
2730
2731 # Check whether --with-rsvg was given.
2732 if test "${with_rsvg+set}" = set; then :
2733 withval=$with_rsvg;
2734 else
2735 with_rsvg=yes
2736 fi
2737
2738
2739 # Check whether --with-xml2 was given.
2740 if test "${with_xml2+set}" = set; then :
2741 withval=$with_xml2;
2742 else
2743 with_xml2=yes
2744 fi
2745
2746
2747 # Check whether --with-imagemagick was given.
2748 if test "${with_imagemagick+set}" = set; then :
2749 withval=$with_imagemagick;
2750 else
2751 with_imagemagick=no
2752 fi
2753
2754
2755
2756 # Check whether --with-xft was given.
2757 if test "${with_xft+set}" = set; then :
2758 withval=$with_xft;
2759 else
2760 with_xft=yes
2761 fi
2762
2763
2764 # Check whether --with-libotf was given.
2765 if test "${with_libotf+set}" = set; then :
2766 withval=$with_libotf;
2767 else
2768 with_libotf=yes
2769 fi
2770
2771
2772 # Check whether --with-m17n-flt was given.
2773 if test "${with_m17n_flt+set}" = set; then :
2774 withval=$with_m17n_flt;
2775 else
2776 with_m17n_flt=yes
2777 fi
2778
2779
2780
2781 # Check whether --with-toolkit-scroll-bars was given.
2782 if test "${with_toolkit_scroll_bars+set}" = set; then :
2783 withval=$with_toolkit_scroll_bars;
2784 else
2785 with_toolkit_scroll_bars=yes
2786 fi
2787
2788
2789 # Check whether --with-xaw3d was given.
2790 if test "${with_xaw3d+set}" = set; then :
2791 withval=$with_xaw3d;
2792 else
2793 with_xaw3d=yes
2794 fi
2795
2796
2797 # Check whether --with-xim was given.
2798 if test "${with_xim+set}" = set; then :
2799 withval=$with_xim;
2800 else
2801 with_xim=yes
2802 fi
2803
2804
2805 # Check whether --with-ns was given.
2806 if test "${with_ns+set}" = set; then :
2807 withval=$with_ns;
2808 else
2809 with_ns=no
2810 fi
2811
2812
2813
2814 # Check whether --with-gpm was given.
2815 if test "${with_gpm+set}" = set; then :
2816 withval=$with_gpm;
2817 else
2818 with_gpm=yes
2819 fi
2820
2821
2822 # Check whether --with-dbus was given.
2823 if test "${with_dbus+set}" = set; then :
2824 withval=$with_dbus;
2825 else
2826 with_dbus=yes
2827 fi
2828
2829
2830 # Check whether --with-gconf was given.
2831 if test "${with_gconf+set}" = set; then :
2832 withval=$with_gconf;
2833 else
2834 with_gconf=yes
2835 fi
2836
2837
2838 # Check whether --with-selinux was given.
2839 if test "${with_selinux+set}" = set; then :
2840 withval=$with_selinux;
2841 else
2842 with_selinux=yes
2843 fi
2844
2845
2846 ## For the times when you want to build Emacs but don't have
2847 ## a suitable makeinfo, and can live without the manuals.
2848
2849 # Check whether --with-makeinfo was given.
2850 if test "${with_makeinfo+set}" = set; then :
2851 withval=$with_makeinfo;
2852 else
2853 with_makeinfo=yes
2854 fi
2855
2856
2857 ## This is an option because I do not know if all info/man support
2858 ## compressed files, nor how to test if they do so.
2859
2860 # Check whether --with-compress-info was given.
2861 if test "${with_compress_info+set}" = set; then :
2862 withval=$with_compress_info;
2863 else
2864 with_compress_info=yes
2865 fi
2866
2867 if test $with_compress_info = yes; then
2868 GZIP_INFO=yes
2869 else
2870 GZIP_INFO=
2871 fi
2872
2873
2874
2875 # Check whether --with-pkg-config-prog was given.
2876 if test "${with_pkg_config_prog+set}" = set; then :
2877 withval=$with_pkg_config_prog;
2878 fi
2879
2880 if test "X${with_pkg_config_prog}" != X; then
2881 if test "${with_pkg_config_prog}" != yes; then
2882 PKG_CONFIG="${with_pkg_config_prog}"
2883 fi
2884 fi
2885
2886 CRT_DIR=
2887
2888 # Check whether --with-crt-dir was given.
2889 if test "${with_crt_dir+set}" = set; then :
2890 withval=$with_crt_dir;
2891 fi
2892
2893 CRT_DIR="${with_crt_dir}"
2894
2895
2896 # Check whether --with-gnustep-conf was given.
2897 if test "${with_gnustep_conf+set}" = set; then :
2898 withval=$with_gnustep_conf;
2899 fi
2900
2901 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2902 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2903 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2904 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2905
2906 # Check whether --enable-ns-self-contained was given.
2907 if test "${enable_ns_self_contained+set}" = set; then :
2908 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2909 else
2910 EN_NS_SELF_CONTAINED=yes
2911 fi
2912
2913
2914 # Check whether --enable-asserts was given.
2915 if test "${enable_asserts+set}" = set; then :
2916 enableval=$enable_asserts; USE_XASSERTS=$enableval
2917 else
2918 USE_XASSERTS=no
2919 fi
2920
2921
2922 # Check whether --enable-maintainer-mode was given.
2923 if test "${enable_maintainer_mode+set}" = set; then :
2924 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2925 else
2926 USE_MAINTAINER_MODE=no
2927 fi
2928
2929 if test $USE_MAINTAINER_MODE = yes; then
2930 MAINT=
2931 else
2932 MAINT=#
2933 fi
2934
2935
2936 # Check whether --enable-locallisppath was given.
2937 if test "${enable_locallisppath+set}" = set; then :
2938 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2939 locallisppath=
2940 elif test "${enableval}" != "yes"; then
2941 locallisppath=${enableval}
2942 fi
2943 fi
2944
2945
2946 # Check whether --enable-checking was given.
2947 if test "${enable_checking+set}" = set; then :
2948 enableval=$enable_checking; ac_checking_flags="${enableval}"
2949 fi
2950
2951 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2952 for check in $ac_checking_flags
2953 do
2954 case $check in
2955 # these set all the flags to specific states
2956 yes) ac_enable_checking=1 ;;
2957 no) ac_enable_checking= ;
2958 ac_gc_check_stringbytes= ;
2959 ac_gc_check_string_overrun= ;
2960 ac_gc_check_string_free_list= ;
2961 ac_xmalloc_overrun= ;
2962 ac_gc_check_cons_list= ;;
2963 all) ac_enable_checking=1 ;
2964 ac_gc_check_stringbytes=1 ;
2965 ac_gc_check_string_overrun=1 ;
2966 ac_gc_check_string_free_list=1 ;
2967 ac_xmalloc_overrun=1 ;
2968 ac_gc_check_cons_list=1 ;;
2969 # these enable particular checks
2970 stringbytes) ac_gc_check_stringbytes=1 ;;
2971 stringoverrun) ac_gc_check_string_overrun=1 ;;
2972 stringfreelist) ac_gc_check_string_free_list=1 ;;
2973 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2974 conslist) ac_gc_check_cons_list=1 ;;
2975 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2976 esac
2977 done
2978 IFS="$ac_save_IFS"
2979
2980 if test x$ac_enable_checking != x ; then
2981
2982 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2983
2984 fi
2985 if test x$ac_gc_check_stringbytes != x ; then
2986
2987 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2988
2989 fi
2990 if test x$ac_gc_check_stringoverrun != x ; then
2991
2992 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2993
2994 fi
2995 if test x$ac_gc_check_string_free_list != x ; then
2996
2997 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2998
2999 fi
3000 if test x$ac_xmalloc_overrun != x ; then
3001
3002 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3003
3004 fi
3005 if test x$ac_gc_check_cons_list != x ; then
3006
3007 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3008
3009 fi
3010
3011 # Check whether --enable-use-lisp-union-type was given.
3012 if test "${enable_use_lisp_union_type+set}" = set; then :
3013 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3014
3015 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3016
3017 fi
3018 fi
3019
3020
3021
3022 # Check whether --enable-profiling was given.
3023 if test "${enable_profiling+set}" = set; then :
3024 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3025 fi
3026
3027 if test x$ac_enable_profiling != x ; then
3028 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3029 PROFILING_LDFLAGS="-pg"
3030 else
3031 PROFILING_CFLAGS=
3032 PROFILING_LDFLAGS=
3033 fi
3034
3035
3036
3037 # Check whether --enable-autodepend was given.
3038 if test "${enable_autodepend+set}" = set; then :
3039 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3040 else
3041 ac_enable_autodepend=yes
3042 fi
3043
3044
3045 #### Make srcdir absolute, if it isn't already. It's important to
3046 #### avoid running the path through pwd unnecessarily, since pwd can
3047 #### give you automounter prefixes, which can go away. We do all this
3048 #### so Emacs can find its files when run uninstalled.
3049 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3050 unset CDPATH
3051 case "${srcdir}" in
3052 /* ) ;;
3053 . )
3054 ## We may be able to use the $PWD environment variable to make this
3055 ## absolute. But sometimes PWD is inaccurate.
3056 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3057 ## but that tested only for a well-formed and valid PWD,
3058 ## it did not object when PWD was well-formed and valid but just wrong.
3059 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3060 then
3061 srcdir="$PWD"
3062 else
3063 srcdir="`(cd ${srcdir}; pwd)`"
3064 fi
3065 ;;
3066 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3067 esac
3068
3069 #### Check if the source directory already has a configured system in it.
3070 if test `pwd` != `(cd ${srcdir} && pwd)` \
3071 && test -f "${srcdir}/src/config.h" ; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3073 as a build directory right now; it has been configured in its own
3074 right. To configure in another directory as well, you MUST
3075 use GNU make. If you do not have GNU make, then you must
3076 now do \`make distclean' in ${srcdir},
3077 and then run $0 again." >&5
3078 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3079 as a build directory right now; it has been configured in its own
3080 right. To configure in another directory as well, you MUST
3081 use GNU make. If you do not have GNU make, then you must
3082 now do \`make distclean' in ${srcdir},
3083 and then run $0 again." >&2;}
3084 fi
3085
3086 #### Given the configuration name, set machfile and opsysfile to the
3087 #### names of the m/*.h and s/*.h files we should use.
3088
3089 ### Canonicalize the configuration name.
3090
3091 ac_aux_dir=
3092 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3093 for ac_t in install-sh install.sh shtool; do
3094 if test -f "$ac_dir/$ac_t"; then
3095 ac_aux_dir=$ac_dir
3096 ac_install_sh="$ac_aux_dir/$ac_t -c"
3097 break 2
3098 fi
3099 done
3100 done
3101 if test -z "$ac_aux_dir"; then
3102 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3103 fi
3104
3105 # These three variables are undocumented and unsupported,
3106 # and are intended to be withdrawn in a future Autoconf release.
3107 # They can cause serious problems if a builder's source tree is in a directory
3108 # whose full name contains unusual characters.
3109 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3110 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3111 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3112
3113
3114 # Make sure we can run config.sub.
3115 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3116 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3117
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3119 $as_echo_n "checking build system type... " >&6; }
3120 if test "${ac_cv_build+set}" = set; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 ac_build_alias=$build_alias
3124 test "x$ac_build_alias" = x &&
3125 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3126 test "x$ac_build_alias" = x &&
3127 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3128 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3129 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3130
3131 fi
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3133 $as_echo "$ac_cv_build" >&6; }
3134 case $ac_cv_build in
3135 *-*-*) ;;
3136 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3137 esac
3138 build=$ac_cv_build
3139 ac_save_IFS=$IFS; IFS='-'
3140 set x $ac_cv_build
3141 shift
3142 build_cpu=$1
3143 build_vendor=$2
3144 shift; shift
3145 # Remember, the first character of IFS is used to create $*,
3146 # except with old shells:
3147 build_os=$*
3148 IFS=$ac_save_IFS
3149 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3150
3151
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3153 $as_echo_n "checking host system type... " >&6; }
3154 if test "${ac_cv_host+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 if test "x$host_alias" = x; then
3158 ac_cv_host=$ac_cv_build
3159 else
3160 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3161 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3162 fi
3163
3164 fi
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3166 $as_echo "$ac_cv_host" >&6; }
3167 case $ac_cv_host in
3168 *-*-*) ;;
3169 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3170 esac
3171 host=$ac_cv_host
3172 ac_save_IFS=$IFS; IFS='-'
3173 set x $ac_cv_host
3174 shift
3175 host_cpu=$1
3176 host_vendor=$2
3177 shift; shift
3178 # Remember, the first character of IFS is used to create $*,
3179 # except with old shells:
3180 host_os=$*
3181 IFS=$ac_save_IFS
3182 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3183
3184
3185 canonical=$host
3186 configuration=${host_alias-${build_alias-$host}}
3187
3188
3189
3190 ### If you add support for a new configuration, add code to this
3191 ### switch statement to recognize your configuration name and select
3192 ### the appropriate operating system and machine description files.
3193
3194 ### You would hope that you could choose an m/*.h file pretty much
3195 ### based on the machine portion of the configuration name, and an s/*.h
3196 ### file based on the operating system portion. However, it turns out
3197 ### that each m/*.h file is pretty manufacturer-specific - for
3198 ### example mips.h is MIPS
3199 ### So we basically have to have a special case for each
3200 ### configuration name.
3201 ###
3202 ### As far as handling version numbers on operating systems is
3203 ### concerned, make sure things will fail in a fixable way. If
3204 ### /etc/MACHINES doesn't say anything about version numbers, be
3205 ### prepared to handle anything reasonably. If version numbers
3206 ### matter, be sure /etc/MACHINES says something about it.
3207
3208 machine='' opsys='' unported=no
3209 case "${canonical}" in
3210
3211 ## FreeBSD ports
3212 *-*-freebsd* )
3213 opsys=freebsd
3214 case "${canonical}" in
3215 alpha*) machine=alpha ;;
3216 amd64-*|x86_64-*) machine=amdx86-64 ;;
3217 arm*) machine=arm ;;
3218 ia64-*) machine=ia64 ;;
3219 i[3456]86-*) machine=intel386 ;;
3220 powerpc-*) machine=macppc ;;
3221 sparc-*) machine=sparc ;;
3222 sparc64-*) machine=sparc ;;
3223 esac
3224 ;;
3225
3226 ## FreeBSD kernel + glibc based userland
3227 *-*-kfreebsd*gnu* )
3228 opsys=gnu-kfreebsd
3229 case "${canonical}" in
3230 alpha*) machine=alpha ;;
3231 amd64-*|x86_64-*) machine=amdx86-64 ;;
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 ## NetBSD ports
3241 *-*-netbsd* )
3242 opsys=netbsd
3243 case "${canonical}" in
3244 alpha*) machine=alpha ;;
3245 x86_64-*) machine=amdx86-64 ;;
3246 arm-*) machine=arm ;;
3247 hppa-*) machine=hp800 ;;
3248 i[3456]86-*) machine=intel386 ;;
3249 m68k-*) machine=m68k ;;
3250 powerpc-*) machine=macppc ;;
3251 mips-*) machine=mips ;;
3252 mipse[bl]-*) machine=mips ;;
3253 sparc*-) machine=sparc ;;
3254 vax-*) machine=vax ;;
3255 esac
3256 ;;
3257
3258 ## OpenBSD ports
3259 *-*-openbsd* )
3260 opsys=openbsd
3261 case "${canonical}" in
3262 alpha*) machine=alpha ;;
3263 x86_64-*) machine=amdx86-64 ;;
3264 arm-*) machine=arm ;;
3265 hppa-*) machine=hp800 ;;
3266 i386-*) machine=intel386 ;;
3267 powerpc-*) machine=macppc ;;
3268 sparc*) machine=sparc ;;
3269 vax-*) machine=vax ;;
3270 esac
3271 ;;
3272
3273 alpha*-*-linux-gnu* )
3274 machine=alpha opsys=gnu-linux
3275 ;;
3276
3277 arm*-*-linux-gnu* )
3278 machine=arm opsys=gnu-linux
3279 ;;
3280
3281 ## Apple Darwin / Mac OS X
3282 *-apple-darwin* )
3283 case "${canonical}" in
3284 i[3456]86-* ) machine=intel386 ;;
3285 powerpc-* ) machine=macppc ;;
3286 x86_64-* ) machine=amdx86-64 ;;
3287 * ) unported=yes ;;
3288 esac
3289 opsys=darwin
3290 # Define CPP as follows to make autoconf work correctly.
3291 CPP="${CC-cc} -E -no-cpp-precomp"
3292 # Use fink packages if available.
3293 if test -d /sw/include && test -d /sw/lib; then
3294 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3295 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3296 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3297 fi
3298 ;;
3299
3300 ## HP 9000 series 700 and 800, running HP/UX
3301 hppa*-hp-hpux10.2* )
3302 machine=hp800 opsys=hpux10-20
3303 ;;
3304 hppa*-hp-hpux1[1-9]* )
3305 machine=hp800 opsys=hpux11
3306 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3307 ;;
3308
3309 hppa*-*-linux-gnu* )
3310 machine=hp800 opsys=gnu-linux
3311 ;;
3312
3313 ## IBM machines
3314 s390-*-linux-gnu* )
3315 machine=ibms390 opsys=gnu-linux
3316 ;;
3317 s390x-*-linux-gnu* )
3318 machine=ibms390x opsys=gnu-linux
3319 ;;
3320 rs6000-ibm-aix4.[23]* )
3321 machine=ibmrs6000 opsys=aix4-2
3322 ;;
3323 powerpc-ibm-aix4.[23]* )
3324 machine=ibmrs6000 opsys=aix4-2
3325 ;;
3326 rs6000-ibm-aix[56]* )
3327 machine=ibmrs6000 opsys=aix4-2
3328 ;;
3329 powerpc-ibm-aix[56]* )
3330 machine=ibmrs6000 opsys=aix4-2
3331 ;;
3332
3333 ## Macintosh PowerPC
3334 powerpc*-*-linux-gnu* )
3335 machine=macppc opsys=gnu-linux
3336 ;;
3337
3338 ## Silicon Graphics machines
3339 ## Iris 4D
3340 mips-sgi-irix6.5 )
3341 machine=iris4d opsys=irix6-5
3342 # Without defining _LANGUAGE_C, things get masked out in the headers
3343 # so that, for instance, grepping for `free' in stdlib.h fails and
3344 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3345 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3346 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3347 ;;
3348
3349 ## Suns
3350 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3351 machine=sparc opsys=gnu-linux
3352 ;;
3353
3354 *-sun-solaris* \
3355 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3356 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3357 case "${canonical}" in
3358 i[3456]86-*-* ) machine=intel386 ;;
3359 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3360 sparc* ) machine=sparc ;;
3361 * ) unported=yes ;;
3362 esac
3363 case "${canonical}" in
3364 *-sunos5.6* | *-solaris2.6* )
3365 opsys=sol2-6
3366 NON_GNU_CPP=/usr/ccs/lib/cpp
3367 RANLIB="ar -ts"
3368 ;;
3369 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3370 opsys=sol2-6
3371 emacs_check_sunpro_c=yes
3372 NON_GNU_CPP=/usr/ccs/lib/cpp
3373 ;;
3374 *-sunos5* | *-solaris* )
3375 opsys=sol2-10
3376 emacs_check_sunpro_c=yes
3377 NON_GNU_CPP=/usr/ccs/lib/cpp
3378 ;;
3379 esac
3380 ## Watch out for a compiler that we know will not work.
3381 case "${canonical}" in
3382 *-solaris* | *-sunos5* )
3383 if [ "x$CC" = x/usr/ucb/cc ]; then
3384 ## /usr/ucb/cc doesn't work;
3385 ## we should find some other compiler that does work.
3386 unset CC
3387 fi
3388 ;;
3389 *) ;;
3390 esac
3391 ;;
3392
3393 ## IA-64
3394 ia64*-*-linux* )
3395 machine=ia64 opsys=gnu-linux
3396 ;;
3397
3398 ## Intel 386 machines where we don't care about the manufacturer.
3399 i[3456]86-*-* )
3400 machine=intel386
3401 case "${canonical}" in
3402 *-cygwin ) opsys=cygwin ;;
3403 *-darwin* ) opsys=darwin
3404 CPP="${CC-cc} -E -no-cpp-precomp"
3405 ;;
3406 *-linux-gnu* ) opsys=gnu-linux ;;
3407 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3408 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3409 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3410 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3411 esac
3412 ;;
3413
3414 ## m68k Linux-based GNU system
3415 m68k-*-linux-gnu* )
3416 machine=m68k opsys=gnu-linux
3417 ;;
3418
3419 ## Mips Linux-based GNU system
3420 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3421 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3422 machine=mips opsys=gnu-linux
3423 ;;
3424
3425 ## AMD x86-64 Linux-based GNU system
3426 x86_64-*-linux-gnu* )
3427 machine=amdx86-64 opsys=gnu-linux
3428 ;;
3429
3430 ## Tensilica Xtensa Linux-based GNU system
3431 xtensa*-*-linux-gnu* )
3432 machine=xtensa opsys=gnu-linux
3433 ;;
3434
3435 ## SuperH Linux-based GNU system
3436 sh[34]*-*-linux-gnu* )
3437 machine=sh3 opsys=gnu-linux
3438 ;;
3439
3440 * )
3441 unported=yes
3442 ;;
3443 esac
3444
3445 ### If the code above didn't choose an operating system, just choose
3446 ### an operating system based on the configuration name. You really
3447 ### only want to use this when you have no idea what the right
3448 ### operating system is; if you know what operating systems a machine
3449 ### runs, it's cleaner to make it explicit in the case statement
3450 ### above.
3451 if test x"${opsys}" = x; then
3452 case "${canonical}" in
3453 *-gnu* ) opsys=gnu ;;
3454 * )
3455 unported=yes
3456 ;;
3457 esac
3458 fi
3459
3460
3461
3462 if test $unported = yes; then
3463 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
3464 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3465 fi
3466
3467 machfile="m/${machine}.h"
3468 opsysfile="s/${opsys}.h"
3469
3470
3471 #### Choose a compiler.
3472 test -n "$CC" && cc_specified=yes
3473
3474 # Save the value of CFLAGS that the user specified.
3475 SPECIFIED_CFLAGS="$CFLAGS"
3476
3477 ac_ext=c
3478 ac_cpp='$CPP $CPPFLAGS'
3479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482 if test -n "$ac_tool_prefix"; then
3483 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3484 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 $as_echo_n "checking for $ac_word... " >&6; }
3487 if test "${ac_cv_prog_CC+set}" = set; then :
3488 $as_echo_n "(cached) " >&6
3489 else
3490 if test -n "$CC"; then
3491 ac_cv_prog_CC="$CC" # Let the user override the test.
3492 else
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3495 do
3496 IFS=$as_save_IFS
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3502 break 2
3503 fi
3504 done
3505 done
3506 IFS=$as_save_IFS
3507
3508 fi
3509 fi
3510 CC=$ac_cv_prog_CC
3511 if test -n "$CC"; then
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3513 $as_echo "$CC" >&6; }
3514 else
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 $as_echo "no" >&6; }
3517 fi
3518
3519
3520 fi
3521 if test -z "$ac_cv_prog_CC"; then
3522 ac_ct_CC=$CC
3523 # Extract the first word of "gcc", so it can be a program name with args.
3524 set dummy gcc; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3528 $as_echo_n "(cached) " >&6
3529 else
3530 if test -n "$ac_ct_CC"; then
3531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3532 else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536 IFS=$as_save_IFS
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540 ac_cv_prog_ac_ct_CC="gcc"
3541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 break 2
3543 fi
3544 done
3545 done
3546 IFS=$as_save_IFS
3547
3548 fi
3549 fi
3550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3551 if test -n "$ac_ct_CC"; then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3553 $as_echo "$ac_ct_CC" >&6; }
3554 else
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 $as_echo "no" >&6; }
3557 fi
3558
3559 if test "x$ac_ct_CC" = x; then
3560 CC=""
3561 else
3562 case $cross_compiling:$ac_tool_warned in
3563 yes:)
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3566 ac_tool_warned=yes ;;
3567 esac
3568 CC=$ac_ct_CC
3569 fi
3570 else
3571 CC="$ac_cv_prog_CC"
3572 fi
3573
3574 if test -z "$CC"; then
3575 if test -n "$ac_tool_prefix"; then
3576 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3577 set dummy ${ac_tool_prefix}cc; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if test "${ac_cv_prog_CC+set}" = set; then :
3581 $as_echo_n "(cached) " >&6
3582 else
3583 if test -n "$CC"; then
3584 ac_cv_prog_CC="$CC" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589 IFS=$as_save_IFS
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593 ac_cv_prog_CC="${ac_tool_prefix}cc"
3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 break 2
3596 fi
3597 done
3598 done
3599 IFS=$as_save_IFS
3600
3601 fi
3602 fi
3603 CC=$ac_cv_prog_CC
3604 if test -n "$CC"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3606 $as_echo "$CC" >&6; }
3607 else
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3610 fi
3611
3612
3613 fi
3614 fi
3615 if test -z "$CC"; then
3616 # Extract the first word of "cc", so it can be a program name with args.
3617 set dummy cc; ac_word=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if test "${ac_cv_prog_CC+set}" = set; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 if test -n "$CC"; then
3624 ac_cv_prog_CC="$CC" # Let the user override the test.
3625 else
3626 ac_prog_rejected=no
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3629 do
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3634 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3635 ac_prog_rejected=yes
3636 continue
3637 fi
3638 ac_cv_prog_CC="cc"
3639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 break 2
3641 fi
3642 done
3643 done
3644 IFS=$as_save_IFS
3645
3646 if test $ac_prog_rejected = yes; then
3647 # We found a bogon in the path, so make sure we never use it.
3648 set dummy $ac_cv_prog_CC
3649 shift
3650 if test $# != 0; then
3651 # We chose a different compiler from the bogus one.
3652 # However, it has the same basename, so the bogon will be chosen
3653 # first if we set CC to just the basename; use the full file name.
3654 shift
3655 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3656 fi
3657 fi
3658 fi
3659 fi
3660 CC=$ac_cv_prog_CC
3661 if test -n "$CC"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663 $as_echo "$CC" >&6; }
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3667 fi
3668
3669
3670 fi
3671 if test -z "$CC"; then
3672 if test -n "$ac_tool_prefix"; then
3673 for ac_prog in cl.exe
3674 do
3675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if test "${ac_cv_prog_CC+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 if test -n "$CC"; then
3683 ac_cv_prog_CC="$CC" # Let the user override the test.
3684 else
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 break 2
3695 fi
3696 done
3697 done
3698 IFS=$as_save_IFS
3699
3700 fi
3701 fi
3702 CC=$ac_cv_prog_CC
3703 if test -n "$CC"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3705 $as_echo "$CC" >&6; }
3706 else
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3709 fi
3710
3711
3712 test -n "$CC" && break
3713 done
3714 fi
3715 if test -z "$CC"; then
3716 ac_ct_CC=$CC
3717 for ac_prog in cl.exe
3718 do
3719 # Extract the first word of "$ac_prog", so it can be a program name with args.
3720 set dummy $ac_prog; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 if test -n "$ac_ct_CC"; then
3727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_ac_ct_CC="$ac_prog"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3739 fi
3740 done
3741 done
3742 IFS=$as_save_IFS
3743
3744 fi
3745 fi
3746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3747 if test -n "$ac_ct_CC"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3749 $as_echo "$ac_ct_CC" >&6; }
3750 else
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3753 fi
3754
3755
3756 test -n "$ac_ct_CC" && break
3757 done
3758
3759 if test "x$ac_ct_CC" = x; then
3760 CC=""
3761 else
3762 case $cross_compiling:$ac_tool_warned in
3763 yes:)
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3766 ac_tool_warned=yes ;;
3767 esac
3768 CC=$ac_ct_CC
3769 fi
3770 fi
3771
3772 fi
3773
3774
3775 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3777 as_fn_error "no acceptable C compiler found in \$PATH
3778 See \`config.log' for more details." "$LINENO" 5; }
3779
3780 # Provide some information about the compiler.
3781 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3782 set X $ac_compile
3783 ac_compiler=$2
3784 for ac_option in --version -v -V -qversion; do
3785 { { ac_try="$ac_compiler $ac_option >&5"
3786 case "(($ac_try" in
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3789 esac
3790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791 $as_echo "$ac_try_echo"; } >&5
3792 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3793 ac_status=$?
3794 if test -s conftest.err; then
3795 sed '10a\
3796 ... rest of stderr output deleted ...
3797 10q' conftest.err >conftest.er1
3798 cat conftest.er1 >&5
3799 fi
3800 rm -f conftest.er1 conftest.err
3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802 test $ac_status = 0; }
3803 done
3804
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3807
3808 int
3809 main ()
3810 {
3811
3812 ;
3813 return 0;
3814 }
3815 _ACEOF
3816 ac_clean_files_save=$ac_clean_files
3817 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3818 # Try to create an executable without -o first, disregard a.out.
3819 # It will help us diagnose broken compilers, and finding out an intuition
3820 # of exeext.
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3822 $as_echo_n "checking whether the C compiler works... " >&6; }
3823 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3824
3825 # The possible output files:
3826 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3827
3828 ac_rmfiles=
3829 for ac_file in $ac_files
3830 do
3831 case $ac_file in
3832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3833 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3834 esac
3835 done
3836 rm -f $ac_rmfiles
3837
3838 if { { ac_try="$ac_link_default"
3839 case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842 esac
3843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844 $as_echo "$ac_try_echo"; } >&5
3845 (eval "$ac_link_default") 2>&5
3846 ac_status=$?
3847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3848 test $ac_status = 0; }; then :
3849 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3850 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3851 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3852 # so that the user can short-circuit this test for compilers unknown to
3853 # Autoconf.
3854 for ac_file in $ac_files ''
3855 do
3856 test -f "$ac_file" || continue
3857 case $ac_file in
3858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3859 ;;
3860 [ab].out )
3861 # We found the default executable, but exeext='' is most
3862 # certainly right.
3863 break;;
3864 *.* )
3865 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3866 then :; else
3867 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3868 fi
3869 # We set ac_cv_exeext here because the later test for it is not
3870 # safe: cross compilers may not add the suffix if given an `-o'
3871 # argument, so we may need to know it at that point already.
3872 # Even if this section looks crufty: it has the advantage of
3873 # actually working.
3874 break;;
3875 * )
3876 break;;
3877 esac
3878 done
3879 test "$ac_cv_exeext" = no && ac_cv_exeext=
3880
3881 else
3882 ac_file=''
3883 fi
3884 if test -z "$ac_file"; then :
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3887 $as_echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3892 { as_fn_set_status 77
3893 as_fn_error "C compiler cannot create executables
3894 See \`config.log' for more details." "$LINENO" 5; }; }
3895 else
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3897 $as_echo "yes" >&6; }
3898 fi
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3900 $as_echo_n "checking for C compiler default output file name... " >&6; }
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3902 $as_echo "$ac_file" >&6; }
3903 ac_exeext=$ac_cv_exeext
3904
3905 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3906 ac_clean_files=$ac_clean_files_save
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3908 $as_echo_n "checking for suffix of executables... " >&6; }
3909 if { { ac_try="$ac_link"
3910 case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 $as_echo "$ac_try_echo"; } >&5
3916 (eval "$ac_link") 2>&5
3917 ac_status=$?
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }; then :
3920 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3921 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3922 # work properly (i.e., refer to `conftest.exe'), while it won't with
3923 # `rm'.
3924 for ac_file in conftest.exe conftest conftest.*; do
3925 test -f "$ac_file" || continue
3926 case $ac_file in
3927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3928 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3929 break;;
3930 * ) break;;
3931 esac
3932 done
3933 else
3934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936 as_fn_error "cannot compute suffix of executables: cannot compile and link
3937 See \`config.log' for more details." "$LINENO" 5; }
3938 fi
3939 rm -f conftest conftest$ac_cv_exeext
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3941 $as_echo "$ac_cv_exeext" >&6; }
3942
3943 rm -f conftest.$ac_ext
3944 EXEEXT=$ac_cv_exeext
3945 ac_exeext=$EXEEXT
3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h. */
3948 #include <stdio.h>
3949 int
3950 main ()
3951 {
3952 FILE *f = fopen ("conftest.out", "w");
3953 return ferror (f) || fclose (f) != 0;
3954
3955 ;
3956 return 0;
3957 }
3958 _ACEOF
3959 ac_clean_files="$ac_clean_files conftest.out"
3960 # Check that the compiler produces executables we can run. If not, either
3961 # the compiler is broken, or we cross compile.
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3963 $as_echo_n "checking whether we are cross compiling... " >&6; }
3964 if test "$cross_compiling" != yes; then
3965 { { ac_try="$ac_link"
3966 case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_link") 2>&5
3973 ac_status=$?
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }
3976 if { ac_try='./conftest$ac_cv_exeext'
3977 { { case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980 esac
3981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982 $as_echo "$ac_try_echo"; } >&5
3983 (eval "$ac_try") 2>&5
3984 ac_status=$?
3985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3986 test $ac_status = 0; }; }; then
3987 cross_compiling=no
3988 else
3989 if test "$cross_compiling" = maybe; then
3990 cross_compiling=yes
3991 else
3992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 as_fn_error "cannot run C compiled programs.
3995 If you meant to cross compile, use \`--host'.
3996 See \`config.log' for more details." "$LINENO" 5; }
3997 fi
3998 fi
3999 fi
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4001 $as_echo "$cross_compiling" >&6; }
4002
4003 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4004 ac_clean_files=$ac_clean_files_save
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4006 $as_echo_n "checking for suffix of object files... " >&6; }
4007 if test "${ac_cv_objext+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012
4013 int
4014 main ()
4015 {
4016
4017 ;
4018 return 0;
4019 }
4020 _ACEOF
4021 rm -f conftest.o conftest.obj
4022 if { { ac_try="$ac_compile"
4023 case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028 $as_echo "$ac_try_echo"; } >&5
4029 (eval "$ac_compile") 2>&5
4030 ac_status=$?
4031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032 test $ac_status = 0; }; then :
4033 for ac_file in conftest.o conftest.obj conftest.*; do
4034 test -f "$ac_file" || continue;
4035 case $ac_file in
4036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4037 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4038 break;;
4039 esac
4040 done
4041 else
4042 $as_echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4044
4045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047 as_fn_error "cannot compute suffix of object files: cannot compile
4048 See \`config.log' for more details." "$LINENO" 5; }
4049 fi
4050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4051 fi
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4053 $as_echo "$ac_cv_objext" >&6; }
4054 OBJEXT=$ac_cv_objext
4055 ac_objext=$OBJEXT
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4057 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4058 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063
4064 int
4065 main ()
4066 {
4067 #ifndef __GNUC__
4068 choke me
4069 #endif
4070
4071 ;
4072 return 0;
4073 }
4074 _ACEOF
4075 if ac_fn_c_try_compile "$LINENO"; then :
4076 ac_compiler_gnu=yes
4077 else
4078 ac_compiler_gnu=no
4079 fi
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4082
4083 fi
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4085 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4086 if test $ac_compiler_gnu = yes; then
4087 GCC=yes
4088 else
4089 GCC=
4090 fi
4091 ac_test_CFLAGS=${CFLAGS+set}
4092 ac_save_CFLAGS=$CFLAGS
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4094 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4095 if test "${ac_cv_prog_cc_g+set}" = set; then :
4096 $as_echo_n "(cached) " >&6
4097 else
4098 ac_save_c_werror_flag=$ac_c_werror_flag
4099 ac_c_werror_flag=yes
4100 ac_cv_prog_cc_g=no
4101 CFLAGS="-g"
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104
4105 int
4106 main ()
4107 {
4108
4109 ;
4110 return 0;
4111 }
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"; then :
4114 ac_cv_prog_cc_g=yes
4115 else
4116 CFLAGS=""
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119
4120 int
4121 main ()
4122 {
4123
4124 ;
4125 return 0;
4126 }
4127 _ACEOF
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129
4130 else
4131 ac_c_werror_flag=$ac_save_c_werror_flag
4132 CFLAGS="-g"
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4135
4136 int
4137 main ()
4138 {
4139
4140 ;
4141 return 0;
4142 }
4143 _ACEOF
4144 if ac_fn_c_try_compile "$LINENO"; then :
4145 ac_cv_prog_cc_g=yes
4146 fi
4147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 fi
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 fi
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 ac_c_werror_flag=$ac_save_c_werror_flag
4153 fi
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4155 $as_echo "$ac_cv_prog_cc_g" >&6; }
4156 if test "$ac_test_CFLAGS" = set; then
4157 CFLAGS=$ac_save_CFLAGS
4158 elif test $ac_cv_prog_cc_g = yes; then
4159 if test "$GCC" = yes; then
4160 CFLAGS="-g -O2"
4161 else
4162 CFLAGS="-g"
4163 fi
4164 else
4165 if test "$GCC" = yes; then
4166 CFLAGS="-O2"
4167 else
4168 CFLAGS=
4169 fi
4170 fi
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4172 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4173 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 ac_cv_prog_cc_c89=no
4177 ac_save_CC=$CC
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180 #include <stdarg.h>
4181 #include <stdio.h>
4182 #include <sys/types.h>
4183 #include <sys/stat.h>
4184 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4185 struct buf { int x; };
4186 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4187 static char *e (p, i)
4188 char **p;
4189 int i;
4190 {
4191 return p[i];
4192 }
4193 static char *f (char * (*g) (char **, int), char **p, ...)
4194 {
4195 char *s;
4196 va_list v;
4197 va_start (v,p);
4198 s = g (p, va_arg (v,int));
4199 va_end (v);
4200 return s;
4201 }
4202
4203 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4204 function prototypes and stuff, but not '\xHH' hex character constants.
4205 These don't provoke an error unfortunately, instead are silently treated
4206 as 'x'. The following induces an error, until -std is added to get
4207 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4208 array size at least. It's necessary to write '\x00'==0 to get something
4209 that's true only with -std. */
4210 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4211
4212 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4213 inside strings and character constants. */
4214 #define FOO(x) 'x'
4215 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4216
4217 int test (int i, double x);
4218 struct s1 {int (*f) (int a);};
4219 struct s2 {int (*f) (double a);};
4220 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4221 int argc;
4222 char **argv;
4223 int
4224 main ()
4225 {
4226 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4227 ;
4228 return 0;
4229 }
4230 _ACEOF
4231 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4232 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4233 do
4234 CC="$ac_save_CC $ac_arg"
4235 if ac_fn_c_try_compile "$LINENO"; then :
4236 ac_cv_prog_cc_c89=$ac_arg
4237 fi
4238 rm -f core conftest.err conftest.$ac_objext
4239 test "x$ac_cv_prog_cc_c89" != "xno" && break
4240 done
4241 rm -f conftest.$ac_ext
4242 CC=$ac_save_CC
4243
4244 fi
4245 # AC_CACHE_VAL
4246 case "x$ac_cv_prog_cc_c89" in
4247 x)
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4249 $as_echo "none needed" >&6; } ;;
4250 xno)
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4252 $as_echo "unsupported" >&6; } ;;
4253 *)
4254 CC="$CC $ac_cv_prog_cc_c89"
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4256 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4257 esac
4258 if test "x$ac_cv_prog_cc_c89" != xno; then :
4259
4260 fi
4261
4262 ac_ext=c
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267
4268
4269 # On Suns, sometimes $CPP names a directory.
4270 if test -n "$CPP" && test -d "$CPP"; then
4271 CPP=
4272 fi
4273
4274 ## If not using gcc, and on Solaris, and no CPP specified, see if
4275 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4276 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4277 test x"$CPP" = x; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4279 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4280
4281 if test "${emacs_cv_sunpro_c+set}" = set; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286
4287 int
4288 main ()
4289 {
4290 #ifndef __SUNPRO_C
4291 fail;
4292 #endif
4293
4294 ;
4295 return 0;
4296 }
4297 _ACEOF
4298 if ac_fn_c_try_link "$LINENO"; then :
4299 emacs_cv_sunpro_c=yes
4300 else
4301 emacs_cv_sunpro_c=no
4302 fi
4303 rm -f core conftest.err conftest.$ac_objext \
4304 conftest$ac_exeext conftest.$ac_ext
4305 fi
4306
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4308 $as_echo "$emacs_cv_sunpro_c" >&6; }
4309
4310 if test x"$emacs_cv_sunpro_c" = xyes; then
4311 NON_GNU_CPP="$CC -E -Xs"
4312 fi
4313 fi
4314
4315 #### Some systems specify a CPP to use unless we are using GCC.
4316 #### Now that we know whether we are using GCC, we can decide whether
4317 #### to use that one.
4318 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4319 then
4320 CPP="$NON_GNU_CPP"
4321 fi
4322
4323 #### Some systems specify a CC to use unless we are using GCC.
4324 #### Now that we know whether we are using GCC, we can decide whether
4325 #### to use that one.
4326 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4327 test x$cc_specified != xyes
4328 then
4329 CC="$NON_GNU_CC"
4330 fi
4331
4332 if test x$GCC = xyes; then
4333 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4334 else
4335 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4336 fi
4337
4338 ac_ext=c
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4344 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4345 # On Suns, sometimes $CPP names a directory.
4346 if test -n "$CPP" && test -d "$CPP"; then
4347 CPP=
4348 fi
4349 if test -z "$CPP"; then
4350 if test "${ac_cv_prog_CPP+set}" = set; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 # Double quotes because CPP needs to be expanded
4354 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4355 do
4356 ac_preproc_ok=false
4357 for ac_c_preproc_warn_flag in '' yes
4358 do
4359 # Use a header file that comes with gcc, so configuring glibc
4360 # with a fresh cross-compiler works.
4361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4362 # <limits.h> exists even on freestanding compilers.
4363 # On the NeXT, cc -E runs the code through the compiler's parser,
4364 # not just through cpp. "Syntax error" is here to catch this case.
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367 #ifdef __STDC__
4368 # include <limits.h>
4369 #else
4370 # include <assert.h>
4371 #endif
4372 Syntax error
4373 _ACEOF
4374 if ac_fn_c_try_cpp "$LINENO"; then :
4375
4376 else
4377 # Broken: fails on valid input.
4378 continue
4379 fi
4380 rm -f conftest.err conftest.$ac_ext
4381
4382 # OK, works on sane cases. Now check whether nonexistent headers
4383 # can be detected and how.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386 #include <ac_nonexistent.h>
4387 _ACEOF
4388 if ac_fn_c_try_cpp "$LINENO"; then :
4389 # Broken: success on invalid input.
4390 continue
4391 else
4392 # Passes both tests.
4393 ac_preproc_ok=:
4394 break
4395 fi
4396 rm -f conftest.err conftest.$ac_ext
4397
4398 done
4399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4400 rm -f conftest.err conftest.$ac_ext
4401 if $ac_preproc_ok; then :
4402 break
4403 fi
4404
4405 done
4406 ac_cv_prog_CPP=$CPP
4407
4408 fi
4409 CPP=$ac_cv_prog_CPP
4410 else
4411 ac_cv_prog_CPP=$CPP
4412 fi
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4414 $as_echo "$CPP" >&6; }
4415 ac_preproc_ok=false
4416 for ac_c_preproc_warn_flag in '' yes
4417 do
4418 # Use a header file that comes with gcc, so configuring glibc
4419 # with a fresh cross-compiler works.
4420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4421 # <limits.h> exists even on freestanding compilers.
4422 # On the NeXT, cc -E runs the code through the compiler's parser,
4423 # not just through cpp. "Syntax error" is here to catch this case.
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426 #ifdef __STDC__
4427 # include <limits.h>
4428 #else
4429 # include <assert.h>
4430 #endif
4431 Syntax error
4432 _ACEOF
4433 if ac_fn_c_try_cpp "$LINENO"; then :
4434
4435 else
4436 # Broken: fails on valid input.
4437 continue
4438 fi
4439 rm -f conftest.err conftest.$ac_ext
4440
4441 # OK, works on sane cases. Now check whether nonexistent headers
4442 # can be detected and how.
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445 #include <ac_nonexistent.h>
4446 _ACEOF
4447 if ac_fn_c_try_cpp "$LINENO"; then :
4448 # Broken: success on invalid input.
4449 continue
4450 else
4451 # Passes both tests.
4452 ac_preproc_ok=:
4453 break
4454 fi
4455 rm -f conftest.err conftest.$ac_ext
4456
4457 done
4458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4459 rm -f conftest.err conftest.$ac_ext
4460 if $ac_preproc_ok; then :
4461
4462 else
4463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4466 See \`config.log' for more details." "$LINENO" 5; }
4467 fi
4468
4469 ac_ext=c
4470 ac_cpp='$CPP $CPPFLAGS'
4471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4474
4475
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4477 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4478 if test "${ac_cv_path_GREP+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 if test -z "$GREP"; then
4482 ac_path_GREP_found=false
4483 # Loop through the user's path and test for each of PROGNAME-LIST
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4486 do
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_prog in grep ggrep; do
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4492 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4493 # Check for GNU ac_path_GREP and select it if it is found.
4494 # Check for GNU $ac_path_GREP
4495 case `"$ac_path_GREP" --version 2>&1` in
4496 *GNU*)
4497 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4498 *)
4499 ac_count=0
4500 $as_echo_n 0123456789 >"conftest.in"
4501 while :
4502 do
4503 cat "conftest.in" "conftest.in" >"conftest.tmp"
4504 mv "conftest.tmp" "conftest.in"
4505 cp "conftest.in" "conftest.nl"
4506 $as_echo 'GREP' >> "conftest.nl"
4507 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4508 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4509 as_fn_arith $ac_count + 1 && ac_count=$as_val
4510 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4511 # Best one so far, save it but keep looking for a better one
4512 ac_cv_path_GREP="$ac_path_GREP"
4513 ac_path_GREP_max=$ac_count
4514 fi
4515 # 10*(2^10) chars as input seems more than enough
4516 test $ac_count -gt 10 && break
4517 done
4518 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4519 esac
4520
4521 $ac_path_GREP_found && break 3
4522 done
4523 done
4524 done
4525 IFS=$as_save_IFS
4526 if test -z "$ac_cv_path_GREP"; then
4527 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4528 fi
4529 else
4530 ac_cv_path_GREP=$GREP
4531 fi
4532
4533 fi
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4535 $as_echo "$ac_cv_path_GREP" >&6; }
4536 GREP="$ac_cv_path_GREP"
4537
4538
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4540 $as_echo_n "checking for egrep... " >&6; }
4541 if test "${ac_cv_path_EGREP+set}" = set; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4545 then ac_cv_path_EGREP="$GREP -E"
4546 else
4547 if test -z "$EGREP"; then
4548 ac_path_EGREP_found=false
4549 # Loop through the user's path and test for each of PROGNAME-LIST
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4552 do
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_prog in egrep; do
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4558 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4559 # Check for GNU ac_path_EGREP and select it if it is found.
4560 # Check for GNU $ac_path_EGREP
4561 case `"$ac_path_EGREP" --version 2>&1` in
4562 *GNU*)
4563 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4564 *)
4565 ac_count=0
4566 $as_echo_n 0123456789 >"conftest.in"
4567 while :
4568 do
4569 cat "conftest.in" "conftest.in" >"conftest.tmp"
4570 mv "conftest.tmp" "conftest.in"
4571 cp "conftest.in" "conftest.nl"
4572 $as_echo 'EGREP' >> "conftest.nl"
4573 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4575 as_fn_arith $ac_count + 1 && ac_count=$as_val
4576 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4577 # Best one so far, save it but keep looking for a better one
4578 ac_cv_path_EGREP="$ac_path_EGREP"
4579 ac_path_EGREP_max=$ac_count
4580 fi
4581 # 10*(2^10) chars as input seems more than enough
4582 test $ac_count -gt 10 && break
4583 done
4584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4585 esac
4586
4587 $ac_path_EGREP_found && break 3
4588 done
4589 done
4590 done
4591 IFS=$as_save_IFS
4592 if test -z "$ac_cv_path_EGREP"; then
4593 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4594 fi
4595 else
4596 ac_cv_path_EGREP=$EGREP
4597 fi
4598
4599 fi
4600 fi
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4602 $as_echo "$ac_cv_path_EGREP" >&6; }
4603 EGREP="$ac_cv_path_EGREP"
4604
4605
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4607 $as_echo_n "checking for ANSI C header files... " >&6; }
4608 if test "${ac_cv_header_stdc+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613 #include <stdlib.h>
4614 #include <stdarg.h>
4615 #include <string.h>
4616 #include <float.h>
4617
4618 int
4619 main ()
4620 {
4621
4622 ;
4623 return 0;
4624 }
4625 _ACEOF
4626 if ac_fn_c_try_compile "$LINENO"; then :
4627 ac_cv_header_stdc=yes
4628 else
4629 ac_cv_header_stdc=no
4630 fi
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632
4633 if test $ac_cv_header_stdc = yes; then
4634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4637 #include <string.h>
4638
4639 _ACEOF
4640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4641 $EGREP "memchr" >/dev/null 2>&1; then :
4642
4643 else
4644 ac_cv_header_stdc=no
4645 fi
4646 rm -f conftest*
4647
4648 fi
4649
4650 if test $ac_cv_header_stdc = yes; then
4651 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4654 #include <stdlib.h>
4655
4656 _ACEOF
4657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4658 $EGREP "free" >/dev/null 2>&1; then :
4659
4660 else
4661 ac_cv_header_stdc=no
4662 fi
4663 rm -f conftest*
4664
4665 fi
4666
4667 if test $ac_cv_header_stdc = yes; then
4668 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4669 if test "$cross_compiling" = yes; then :
4670 :
4671 else
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4674 #include <ctype.h>
4675 #include <stdlib.h>
4676 #if ((' ' & 0x0FF) == 0x020)
4677 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4678 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4679 #else
4680 # define ISLOWER(c) \
4681 (('a' <= (c) && (c) <= 'i') \
4682 || ('j' <= (c) && (c) <= 'r') \
4683 || ('s' <= (c) && (c) <= 'z'))
4684 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4685 #endif
4686
4687 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4688 int
4689 main ()
4690 {
4691 int i;
4692 for (i = 0; i < 256; i++)
4693 if (XOR (islower (i), ISLOWER (i))
4694 || toupper (i) != TOUPPER (i))
4695 return 2;
4696 return 0;
4697 }
4698 _ACEOF
4699 if ac_fn_c_try_run "$LINENO"; then :
4700
4701 else
4702 ac_cv_header_stdc=no
4703 fi
4704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4705 conftest.$ac_objext conftest.beam conftest.$ac_ext
4706 fi
4707
4708 fi
4709 fi
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4711 $as_echo "$ac_cv_header_stdc" >&6; }
4712 if test $ac_cv_header_stdc = yes; then
4713
4714 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4715
4716 fi
4717
4718 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4719 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4720 inttypes.h stdint.h unistd.h
4721 do :
4722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4723 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4724 "
4725 eval as_val=\$$as_ac_Header
4726 if test "x$as_val" = x""yes; then :
4727 cat >>confdefs.h <<_ACEOF
4728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4729 _ACEOF
4730
4731 fi
4732
4733 done
4734
4735
4736
4737 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4738 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4739 MINIX=yes
4740 else
4741 MINIX=
4742 fi
4743
4744
4745 if test "$MINIX" = yes; then
4746
4747 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4748
4749
4750 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4751
4752
4753 $as_echo "#define _MINIX 1" >>confdefs.h
4754
4755 fi
4756
4757
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4759 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4760 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4765
4766 # define __EXTENSIONS__ 1
4767 $ac_includes_default
4768 int
4769 main ()
4770 {
4771
4772 ;
4773 return 0;
4774 }
4775 _ACEOF
4776 if ac_fn_c_try_compile "$LINENO"; then :
4777 ac_cv_safe_to_define___extensions__=yes
4778 else
4779 ac_cv_safe_to_define___extensions__=no
4780 fi
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782 fi
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4784 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4785 test $ac_cv_safe_to_define___extensions__ = yes &&
4786 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4787
4788 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4789
4790 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4791
4792 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4793
4794 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4795
4796
4797
4798 ### Use -Wno-pointer-sign if the compiler supports it
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4800 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4801 SAVE_CFLAGS="$CFLAGS"
4802 CFLAGS="$CFLAGS -Wno-pointer-sign"
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4805
4806 int
4807 main ()
4808 {
4809
4810 ;
4811 return 0;
4812 }
4813 _ACEOF
4814 if ac_fn_c_try_compile "$LINENO"; then :
4815 has_option=yes
4816 else
4817 has_option=no
4818 fi
4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 if test $has_option = yes; then
4821 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4822 fi
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4824 $as_echo "$has_option" >&6; }
4825 CFLAGS="$SAVE_CFLAGS"
4826 unset has_option
4827 unset SAVE_CFLAGS
4828
4829 ### Use -Wdeclaration-after-statement if the compiler supports it
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4831 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4832 SAVE_CFLAGS="$CFLAGS"
4833 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4836
4837 int
4838 main ()
4839 {
4840
4841 ;
4842 return 0;
4843 }
4844 _ACEOF
4845 if ac_fn_c_try_compile "$LINENO"; then :
4846 has_option=yes
4847 else
4848 has_option=no
4849 fi
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851 if test $has_option = yes; then
4852 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4853 fi
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4855 $as_echo "$has_option" >&6; }
4856 CFLAGS="$SAVE_CFLAGS"
4857 unset has_option
4858 unset SAVE_CFLAGS
4859
4860 ### Use -Wold-style-definition if the compiler supports it
4861 # This can be removed when conversion to standard C is finished.
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4863 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4864 SAVE_CFLAGS="$CFLAGS"
4865 CFLAGS="$CFLAGS -Wold-style-definition"
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4868
4869 int
4870 main ()
4871 {
4872
4873 ;
4874 return 0;
4875 }
4876 _ACEOF
4877 if ac_fn_c_try_compile "$LINENO"; then :
4878 has_option=yes
4879 else
4880 has_option=no
4881 fi
4882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883 if test $has_option = yes; then
4884 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4885 fi
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4887 $as_echo "$has_option" >&6; }
4888 CFLAGS="$SAVE_CFLAGS"
4889 unset has_option
4890 unset SAVE_CFLAGS
4891
4892 ### Use -Wimplicit-function-declaration if the compiler supports it
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4894 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4895 SAVE_CFLAGS="$CFLAGS"
4896 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899
4900 int
4901 main ()
4902 {
4903
4904 ;
4905 return 0;
4906 }
4907 _ACEOF
4908 if ac_fn_c_try_compile "$LINENO"; then :
4909 has_option=yes
4910 else
4911 has_option=no
4912 fi
4913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914 if test $has_option = yes; then
4915 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4916 fi
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4918 $as_echo "$has_option" >&6; }
4919 CFLAGS="$SAVE_CFLAGS"
4920 unset has_option
4921 unset SAVE_CFLAGS
4922
4923
4924
4925
4926 #### Some other nice autoconf tests.
4927
4928 ac_ext=c
4929 ac_cpp='$CPP $CPPFLAGS'
4930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4934 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4935 # On Suns, sometimes $CPP names a directory.
4936 if test -n "$CPP" && test -d "$CPP"; then
4937 CPP=
4938 fi
4939 if test -z "$CPP"; then
4940 if test "${ac_cv_prog_CPP+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 # Double quotes because CPP needs to be expanded
4944 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4945 do
4946 ac_preproc_ok=false
4947 for ac_c_preproc_warn_flag in '' yes
4948 do
4949 # Use a header file that comes with gcc, so configuring glibc
4950 # with a fresh cross-compiler works.
4951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4952 # <limits.h> exists even on freestanding compilers.
4953 # On the NeXT, cc -E runs the code through the compiler's parser,
4954 # not just through cpp. "Syntax error" is here to catch this case.
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4957 #ifdef __STDC__
4958 # include <limits.h>
4959 #else
4960 # include <assert.h>
4961 #endif
4962 Syntax error
4963 _ACEOF
4964 if ac_fn_c_try_cpp "$LINENO"; then :
4965
4966 else
4967 # Broken: fails on valid input.
4968 continue
4969 fi
4970 rm -f conftest.err conftest.$ac_ext
4971
4972 # OK, works on sane cases. Now check whether nonexistent headers
4973 # can be detected and how.
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4976 #include <ac_nonexistent.h>
4977 _ACEOF
4978 if ac_fn_c_try_cpp "$LINENO"; then :
4979 # Broken: success on invalid input.
4980 continue
4981 else
4982 # Passes both tests.
4983 ac_preproc_ok=:
4984 break
4985 fi
4986 rm -f conftest.err conftest.$ac_ext
4987
4988 done
4989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4990 rm -f conftest.err conftest.$ac_ext
4991 if $ac_preproc_ok; then :
4992 break
4993 fi
4994
4995 done
4996 ac_cv_prog_CPP=$CPP
4997
4998 fi
4999 CPP=$ac_cv_prog_CPP
5000 else
5001 ac_cv_prog_CPP=$CPP
5002 fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5004 $as_echo "$CPP" >&6; }
5005 ac_preproc_ok=false
5006 for ac_c_preproc_warn_flag in '' yes
5007 do
5008 # Use a header file that comes with gcc, so configuring glibc
5009 # with a fresh cross-compiler works.
5010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5011 # <limits.h> exists even on freestanding compilers.
5012 # On the NeXT, cc -E runs the code through the compiler's parser,
5013 # not just through cpp. "Syntax error" is here to catch this case.
5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h. */
5016 #ifdef __STDC__
5017 # include <limits.h>
5018 #else
5019 # include <assert.h>
5020 #endif
5021 Syntax error
5022 _ACEOF
5023 if ac_fn_c_try_cpp "$LINENO"; then :
5024
5025 else
5026 # Broken: fails on valid input.
5027 continue
5028 fi
5029 rm -f conftest.err conftest.$ac_ext
5030
5031 # OK, works on sane cases. Now check whether nonexistent headers
5032 # can be detected and how.
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5035 #include <ac_nonexistent.h>
5036 _ACEOF
5037 if ac_fn_c_try_cpp "$LINENO"; then :
5038 # Broken: success on invalid input.
5039 continue
5040 else
5041 # Passes both tests.
5042 ac_preproc_ok=:
5043 break
5044 fi
5045 rm -f conftest.err conftest.$ac_ext
5046
5047 done
5048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5049 rm -f conftest.err conftest.$ac_ext
5050 if $ac_preproc_ok; then :
5051
5052 else
5053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5055 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5056 See \`config.log' for more details." "$LINENO" 5; }
5057 fi
5058
5059 ac_ext=c
5060 ac_cpp='$CPP $CPPFLAGS'
5061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5064
5065 # Find a good install program. We prefer a C program (faster),
5066 # so one script is as good as another. But avoid the broken or
5067 # incompatible versions:
5068 # SysV /etc/install, /usr/sbin/install
5069 # SunOS /usr/etc/install
5070 # IRIX /sbin/install
5071 # AIX /bin/install
5072 # AmigaOS /C/install, which installs bootblocks on floppy discs
5073 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5074 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5075 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5076 # OS/2's system install, which has a completely different semantic
5077 # ./install, which can be erroneously created by make from ./install.sh.
5078 # Reject install programs that cannot install multiple files.
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5080 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5081 if test -z "$INSTALL"; then
5082 if test "${ac_cv_path_install+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5087 do
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
5090 # Account for people who put trailing slashes in PATH elements.
5091 case $as_dir/ in #((
5092 ./ | .// | /[cC]/* | \
5093 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5094 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5095 /usr/ucb/* ) ;;
5096 *)
5097 # OSF1 and SCO ODT 3.0 have their own names for install.
5098 # Don't use installbsd from OSF since it installs stuff as root
5099 # by default.
5100 for ac_prog in ginstall scoinst install; do
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5103 if test $ac_prog = install &&
5104 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5105 # AIX install. It has an incompatible calling convention.
5106 :
5107 elif test $ac_prog = install &&
5108 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5109 # program-specific install script used by HP pwplus--don't use.
5110 :
5111 else
5112 rm -rf conftest.one conftest.two conftest.dir
5113 echo one > conftest.one
5114 echo two > conftest.two
5115 mkdir conftest.dir
5116 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5117 test -s conftest.one && test -s conftest.two &&
5118 test -s conftest.dir/conftest.one &&
5119 test -s conftest.dir/conftest.two
5120 then
5121 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5122 break 3
5123 fi
5124 fi
5125 fi
5126 done
5127 done
5128 ;;
5129 esac
5130
5131 done
5132 IFS=$as_save_IFS
5133
5134 rm -rf conftest.one conftest.two conftest.dir
5135
5136 fi
5137 if test "${ac_cv_path_install+set}" = set; then
5138 INSTALL=$ac_cv_path_install
5139 else
5140 # As a last resort, use the slow shell script. Don't cache a
5141 # value for INSTALL within a source directory, because that will
5142 # break other packages using the cache if that directory is
5143 # removed, or if the value is a relative name.
5144 INSTALL=$ac_install_sh
5145 fi
5146 fi
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5148 $as_echo "$INSTALL" >&6; }
5149
5150 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5151 # It thinks the first close brace ends the variable substitution.
5152 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5153
5154 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5155
5156 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5157
5158 if test "x$RANLIB" = x; then
5159 if test -n "$ac_tool_prefix"; then
5160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5161 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 if test -n "$RANLIB"; then
5168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5169 else
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5172 do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181 done
5182 done
5183 IFS=$as_save_IFS
5184
5185 fi
5186 fi
5187 RANLIB=$ac_cv_prog_RANLIB
5188 if test -n "$RANLIB"; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5190 $as_echo "$RANLIB" >&6; }
5191 else
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 $as_echo "no" >&6; }
5194 fi
5195
5196
5197 fi
5198 if test -z "$ac_cv_prog_RANLIB"; then
5199 ac_ct_RANLIB=$RANLIB
5200 # Extract the first word of "ranlib", so it can be a program name with args.
5201 set dummy ranlib; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 if test -n "$ac_ct_RANLIB"; then
5208 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217 ac_cv_prog_ac_ct_RANLIB="ranlib"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221 done
5222 done
5223 IFS=$as_save_IFS
5224
5225 fi
5226 fi
5227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5228 if test -n "$ac_ct_RANLIB"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5230 $as_echo "$ac_ct_RANLIB" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 fi
5235
5236 if test "x$ac_ct_RANLIB" = x; then
5237 RANLIB=":"
5238 else
5239 case $cross_compiling:$ac_tool_warned in
5240 yes:)
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5243 ac_tool_warned=yes ;;
5244 esac
5245 RANLIB=$ac_ct_RANLIB
5246 fi
5247 else
5248 RANLIB="$ac_cv_prog_RANLIB"
5249 fi
5250
5251 fi
5252
5253 ## Although we're running on an amd64 kernel, we're actually compiling for
5254 ## the x86 architecture. The user should probably have provided an
5255 ## explicit --build to `configure', but if everything else than the kernel
5256 ## is running in i386 mode, we can help them out.
5257 if test "$machine" = "amdx86-64"; then
5258 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5259 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5260
5261 fi
5262
5263 if test "$ac_cv_have_decl_i386" = "yes"; then
5264 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5265 machine=intel386
5266 machfile="m/${machine}.h"
5267 fi
5268 fi
5269
5270 # Extract the first word of "install-info", so it can be a program name with args.
5271 set dummy install-info; ac_word=$2
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 case $INSTALL_INFO in
5278 [\\/]* | ?:[\\/]*)
5279 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5280 ;;
5281 *)
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5284 do
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5292 fi
5293 done
5294 done
5295 IFS=$as_save_IFS
5296
5297 ;;
5298 esac
5299 fi
5300 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5301 if test -n "$INSTALL_INFO"; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5303 $as_echo "$INSTALL_INFO" >&6; }
5304 else
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5307 fi
5308
5309
5310 # Extract the first word of "install-info", so it can be a program name with args.
5311 set dummy install-info; ac_word=$2
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 case $INSTALL_INFO in
5318 [\\/]* | ?:[\\/]*)
5319 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5320 ;;
5321 *)
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in /usr/sbin
5324 do
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5332 fi
5333 done
5334 done
5335 IFS=$as_save_IFS
5336
5337 ;;
5338 esac
5339 fi
5340 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5341 if test -n "$INSTALL_INFO"; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5343 $as_echo "$INSTALL_INFO" >&6; }
5344 else
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5347 fi
5348
5349
5350 # Extract the first word of "install-info", so it can be a program name with args.
5351 set dummy install-info; ac_word=$2
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353 $as_echo_n "checking for $ac_word... " >&6; }
5354 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5355 $as_echo_n "(cached) " >&6
5356 else
5357 case $INSTALL_INFO in
5358 [\\/]* | ?:[\\/]*)
5359 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5360 ;;
5361 *)
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in /sbin
5364 do
5365 IFS=$as_save_IFS
5366 test -z "$as_dir" && as_dir=.
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5369 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 break 2
5372 fi
5373 done
5374 done
5375 IFS=$as_save_IFS
5376
5377 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5378 ;;
5379 esac
5380 fi
5381 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5382 if test -n "$INSTALL_INFO"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5384 $as_echo "$INSTALL_INFO" >&6; }
5385 else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5388 fi
5389
5390
5391 # Extract the first word of "gzip", so it can be a program name with args.
5392 set dummy gzip; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 case $GZIP_PROG in
5399 [\\/]* | ?:[\\/]*)
5400 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5401 ;;
5402 *)
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5413 fi
5414 done
5415 done
5416 IFS=$as_save_IFS
5417
5418 ;;
5419 esac
5420 fi
5421 GZIP_PROG=$ac_cv_path_GZIP_PROG
5422 if test -n "$GZIP_PROG"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5424 $as_echo "$GZIP_PROG" >&6; }
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5428 fi
5429
5430
5431
5432
5433 ## Need makeinfo >= 4.6 (?) to build the manuals.
5434 # Extract the first word of "makeinfo", so it can be a program name with args.
5435 set dummy makeinfo; ac_word=$2
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 case $MAKEINFO in
5442 [\\/]* | ?:[\\/]*)
5443 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5444 ;;
5445 *)
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH
5448 do
5449 IFS=$as_save_IFS
5450 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5453 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455 break 2
5456 fi
5457 done
5458 done
5459 IFS=$as_save_IFS
5460
5461 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5462 ;;
5463 esac
5464 fi
5465 MAKEINFO=$ac_cv_path_MAKEINFO
5466 if test -n "$MAKEINFO"; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5468 $as_echo "$MAKEINFO" >&6; }
5469 else
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471 $as_echo "no" >&6; }
5472 fi
5473
5474
5475 if test "$MAKEINFO" != "no" && \
5476 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
5477 MAKEINFO=no
5478 fi
5479
5480 ## Makeinfo is unusual. For a released Emacs, the manuals are
5481 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5482 ## therefore in the category of "special tools" not normally required, which
5483 ## configure does not have to check for (eg autoconf itself).
5484 ## In a Bazaar checkout on the other hand, the manuals are not included.
5485 ## So makeinfo is a requirement to build from Bazaar, and configure
5486 ## should test for it as it does for any other build requirement.
5487 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5488 ## with pre-built manuals, from a Bazaar checkout.
5489 if test "$MAKEINFO" = "no"; then
5490 if test "x${with_makeinfo}" = "xno"; then
5491 MAKEINFO=off
5492 elif test ! -e $srcdir/info/emacs; then
5493 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5494 source tree does not seem to have pre-built manuals in the \`info' directory.
5495 Either install a suitable version of makeinfo, or re-run configure
5496 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5497 fi
5498 fi
5499
5500
5501 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5502 then
5503 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5504 fi
5505
5506 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5507 then
5508 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5509 fi
5510
5511
5512 late_LDFLAGS=$LDFLAGS
5513 if test "$GCC" = yes; then
5514 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5515 else
5516 LDFLAGS="$LDFLAGS -znocombreloc"
5517 fi
5518
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5520 $as_echo_n "checking for -znocombreloc... " >&6; }
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523 main(){return 0;}
5524 _ACEOF
5525 if ac_fn_c_try_link "$LINENO"; then :
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5527 $as_echo "yes" >&6; }
5528 else
5529 LDFLAGS=$late_LDFLAGS
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5532 fi
5533 rm -f core conftest.err conftest.$ac_objext \
5534 conftest$ac_exeext conftest.$ac_ext
5535
5536
5537 # The value of CPP is a quoted variable reference, so we need to do this
5538 # to get its actual value...
5539 CPP=`eval "echo $CPP"`
5540
5541
5542 CANNOT_DUMP=no
5543 case "$opsys" in
5544 your-opsys-here)
5545 CANNOT_DUMP=yes
5546
5547 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5548
5549 ;;
5550 esac
5551
5552
5553
5554 UNEXEC_OBJ=unexelf.o
5555 case "$opsys" in
5556 # MSDOS uses unexcoff.o
5557 # MSWindows uses unexw32.o
5558 aix4-2)
5559 UNEXEC_OBJ=unexaix.o
5560 ;;
5561 cygwin)
5562 UNEXEC_OBJ=unexcw.o
5563 ;;
5564 darwin)
5565 UNEXEC_OBJ=unexmacosx.o
5566 ;;
5567 hpux10-20 | hpux11)
5568 UNEXEC_OBJ=unexhp9k800.o
5569 ;;
5570 sol2-10)
5571 # Use the Solaris dldump() function, called from unexsol.c, to dump
5572 # emacs, instead of the generic ELF dump code found in unexelf.c.
5573 # The resulting binary has a complete symbol table, and is better
5574 # for debugging and other observability tools (debuggers, pstack, etc).
5575 #
5576 # If you encounter a problem using dldump(), please consider sending
5577 # a message to the OpenSolaris tools-linking mailing list:
5578 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5579 #
5580 # It is likely that dldump() works with older Solaris too, but this has
5581 # not been tested, so for now this change is for Solaris 10 or newer.
5582 UNEXEC_OBJ=unexsol.o
5583 ;;
5584 esac
5585
5586 LD_SWITCH_SYSTEM=
5587 case "$opsys" in
5588 freebsd)
5589 ## Let `ld' find image libs and similar things in /usr/local/lib.
5590 ## The system compiler, GCC, has apparently been modified to not
5591 ## look there, contrary to what a stock GCC would do.
5592 LD_SWITCH_SYSTEM=-L/usr/local/lib
5593 ;;
5594
5595 gnu-linux)
5596 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5597 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5598 ;;
5599
5600 netbsd)
5601 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5602 ;;
5603
5604 openbsd)
5605 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5606 ## otherwise Emacs dumps core on elf systems.
5607 LD_SWITCH_SYSTEM="-Z"
5608 ;;
5609 esac
5610
5611
5612 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5613
5614 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5615 ## which has not been defined yet. When this was handled with cpp,
5616 ## it was expanded to null when configure sourced the s/*.h file.
5617 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5618 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5619 ## (or somesuch), but because it is supposed to go at the _front_
5620 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5621 ## Compare with the gnu-linux case below, which added to the end
5622 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5623 ## LD_SWITCH_SYSTEM_TEMACS.
5624 case "$opsys" in
5625 netbsd|openbsd)
5626 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5627 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5628 esac
5629
5630
5631 C_SWITCH_MACHINE=
5632 if test "$machine" = "alpha"; then
5633 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5634 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5635
5636 fi
5637
5638 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5639 ## With ELF, make sure that all common symbols get allocated to in the
5640 ## data section. Otherwise, the dump of temacs may miss variables in
5641 ## the shared library that have been initialized. For example, with
5642 ## GNU libc, __malloc_initialized would normally be resolved to the
5643 ## shared library's .bss section, which is fatal.
5644 if test "x$GCC" = "xyes"; then
5645 C_SWITCH_MACHINE="-fno-common"
5646 else
5647 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5648 fi
5649 else
5650 UNEXEC_OBJ=unexalpha.o
5651 fi
5652 fi
5653
5654
5655
5656
5657 C_SWITCH_SYSTEM=
5658 ## Some programs in src produce warnings saying certain subprograms
5659 ## are too complex and need a MAXMEM value greater than 2000 for
5660 ## additional optimization. --nils@exp-math.uni-essen.de
5661 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5662 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5663 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5664 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5665
5666
5667
5668 LIBS_SYSTEM=
5669 case "$opsys" in
5670 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5671 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5672
5673 freebsd) LIBS_SYSTEM="-lutil" ;;
5674
5675 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5676
5677 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5678
5679 ## Motif needs -lgen.
5680 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5681 esac
5682
5683
5684
5685 ### Make sure subsequent tests use flags consistent with the build flags.
5686
5687 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5688 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5689 else
5690 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5691 fi
5692
5693
5694
5695 # Check whether --enable-largefile was given.
5696 if test "${enable_largefile+set}" = set; then :
5697 enableval=$enable_largefile;
5698 fi
5699
5700 if test "$enable_largefile" != no; then
5701
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5703 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5704 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 ac_cv_sys_largefile_CC=no
5708 if test "$GCC" != yes; then
5709 ac_save_CC=$CC
5710 while :; do
5711 # IRIX 6.2 and later do not support large files by default,
5712 # so use the C compiler's -n32 option if that helps.
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 #include <sys/types.h>
5716 /* Check that off_t can represent 2**63 - 1 correctly.
5717 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5718 since some C++ compilers masquerading as C compilers
5719 incorrectly reject 9223372036854775807. */
5720 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5721 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5722 && LARGE_OFF_T % 2147483647 == 1)
5723 ? 1 : -1];
5724 int
5725 main ()
5726 {
5727
5728 ;
5729 return 0;
5730 }
5731 _ACEOF
5732 if ac_fn_c_try_compile "$LINENO"; then :
5733 break
5734 fi
5735 rm -f core conftest.err conftest.$ac_objext
5736 CC="$CC -n32"
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738 ac_cv_sys_largefile_CC=' -n32'; break
5739 fi
5740 rm -f core conftest.err conftest.$ac_objext
5741 break
5742 done
5743 CC=$ac_save_CC
5744 rm -f conftest.$ac_ext
5745 fi
5746 fi
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5748 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5749 if test "$ac_cv_sys_largefile_CC" != no; then
5750 CC=$CC$ac_cv_sys_largefile_CC
5751 fi
5752
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5754 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5755 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 while :; do
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 #include <sys/types.h>
5762 /* Check that off_t can represent 2**63 - 1 correctly.
5763 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5764 since some C++ compilers masquerading as C compilers
5765 incorrectly reject 9223372036854775807. */
5766 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5767 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5768 && LARGE_OFF_T % 2147483647 == 1)
5769 ? 1 : -1];
5770 int
5771 main ()
5772 {
5773
5774 ;
5775 return 0;
5776 }
5777 _ACEOF
5778 if ac_fn_c_try_compile "$LINENO"; then :
5779 ac_cv_sys_file_offset_bits=no; break
5780 fi
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5784 #define _FILE_OFFSET_BITS 64
5785 #include <sys/types.h>
5786 /* Check that off_t can represent 2**63 - 1 correctly.
5787 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5788 since some C++ compilers masquerading as C compilers
5789 incorrectly reject 9223372036854775807. */
5790 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5791 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5792 && LARGE_OFF_T % 2147483647 == 1)
5793 ? 1 : -1];
5794 int
5795 main ()
5796 {
5797
5798 ;
5799 return 0;
5800 }
5801 _ACEOF
5802 if ac_fn_c_try_compile "$LINENO"; then :
5803 ac_cv_sys_file_offset_bits=64; break
5804 fi
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 ac_cv_sys_file_offset_bits=unknown
5807 break
5808 done
5809 fi
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5811 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5812 case $ac_cv_sys_file_offset_bits in #(
5813 no | unknown) ;;
5814 *)
5815 cat >>confdefs.h <<_ACEOF
5816 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5817 _ACEOF
5818 ;;
5819 esac
5820 rm -rf conftest*
5821 if test $ac_cv_sys_file_offset_bits = unknown; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5823 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5824 if test "${ac_cv_sys_large_files+set}" = set; then :
5825 $as_echo_n "(cached) " >&6
5826 else
5827 while :; do
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5830 #include <sys/types.h>
5831 /* Check that off_t can represent 2**63 - 1 correctly.
5832 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5833 since some C++ compilers masquerading as C compilers
5834 incorrectly reject 9223372036854775807. */
5835 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5837 && LARGE_OFF_T % 2147483647 == 1)
5838 ? 1 : -1];
5839 int
5840 main ()
5841 {
5842
5843 ;
5844 return 0;
5845 }
5846 _ACEOF
5847 if ac_fn_c_try_compile "$LINENO"; then :
5848 ac_cv_sys_large_files=no; break
5849 fi
5850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 #define _LARGE_FILES 1
5854 #include <sys/types.h>
5855 /* Check that off_t can represent 2**63 - 1 correctly.
5856 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5857 since some C++ compilers masquerading as C compilers
5858 incorrectly reject 9223372036854775807. */
5859 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5861 && LARGE_OFF_T % 2147483647 == 1)
5862 ? 1 : -1];
5863 int
5864 main ()
5865 {
5866
5867 ;
5868 return 0;
5869 }
5870 _ACEOF
5871 if ac_fn_c_try_compile "$LINENO"; then :
5872 ac_cv_sys_large_files=1; break
5873 fi
5874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875 ac_cv_sys_large_files=unknown
5876 break
5877 done
5878 fi
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5880 $as_echo "$ac_cv_sys_large_files" >&6; }
5881 case $ac_cv_sys_large_files in #(
5882 no | unknown) ;;
5883 *)
5884 cat >>confdefs.h <<_ACEOF
5885 #define _LARGE_FILES $ac_cv_sys_large_files
5886 _ACEOF
5887 ;;
5888 esac
5889 rm -rf conftest*
5890 fi
5891 fi
5892
5893
5894
5895 ## If user specified a crt-dir, use that unconditionally.
5896 if test "X$CRT_DIR" = "X"; then
5897
5898 case "$canonical" in
5899 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5900 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5901 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5902 ## For anything else (eg /usr/lib32), it is up the user to specify
5903 ## the location (bug#5655).
5904 ## Test for crtn.o, not just the directory, because sometimes the
5905 ## directory exists but does not have the relevant files (bug#1287).
5906 ## FIXME better to test for binary compatibility somehow.
5907 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5908 ;;
5909
5910 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5911 esac
5912
5913 case "$opsys" in
5914 hpux10-20) CRT_DIR=/lib ;;
5915 esac
5916
5917 ## Default is /usr/lib.
5918 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5919
5920 else
5921
5922 ## Some platforms don't use any of these files, so it is not
5923 ## appropriate to put this test outside the if block.
5924 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5925 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
5926
5927 fi
5928
5929
5930
5931 LIB_MATH=-lm
5932 LIB_STANDARD=
5933 START_FILES=
5934
5935 case $opsys in
5936 cygwin )
5937 LIB_MATH=
5938 START_FILES='pre-crt0.o'
5939 ;;
5940 darwin )
5941 ## Adding -lm confuses the dynamic linker, so omit it.
5942 LIB_MATH=
5943 START_FILES='pre-crt0.o'
5944 ;;
5945 freebsd )
5946 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5947 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5948 ;;
5949 gnu-linux | gnu-kfreebsd )
5950 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5951 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5952 ;;
5953 hpux10-20 | hpux11 )
5954 LIB_STANDARD=-lc
5955 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5956 ;;
5957 netbsd | openbsd )
5958 if test -f $CRT_DIR/crti.o; then
5959 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5960 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5961 else
5962 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5963 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5964 fi
5965 ;;
5966 esac
5967
5968
5969
5970
5971
5972
5973
5974 if test "${with_sound}" != "no"; then
5975 # Sound support for GNU/Linux and the free BSDs.
5976 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5977 do :
5978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5979 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5980 eval as_val=\$$as_ac_Header
5981 if test "x$as_val" = x""yes; then :
5982 cat >>confdefs.h <<_ACEOF
5983 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5984 _ACEOF
5985 have_sound_header=yes
5986 fi
5987
5988 done
5989
5990 # Emulation library used on NetBSD.
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5992 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5993 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996 ac_check_lib_save_LIBS=$LIBS
5997 LIBS="-lossaudio $LIBS"
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6000
6001 /* Override any GCC internal prototype to avoid an error.
6002 Use char because int might match the return type of a GCC
6003 builtin and then its argument prototype would still apply. */
6004 #ifdef __cplusplus
6005 extern "C"
6006 #endif
6007 char _oss_ioctl ();
6008 int
6009 main ()
6010 {
6011 return _oss_ioctl ();
6012 ;
6013 return 0;
6014 }
6015 _ACEOF
6016 if ac_fn_c_try_link "$LINENO"; then :
6017 ac_cv_lib_ossaudio__oss_ioctl=yes
6018 else
6019 ac_cv_lib_ossaudio__oss_ioctl=no
6020 fi
6021 rm -f core conftest.err conftest.$ac_objext \
6022 conftest$ac_exeext conftest.$ac_ext
6023 LIBS=$ac_check_lib_save_LIBS
6024 fi
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6026 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6027 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
6028 LIBSOUND=-lossaudio
6029 else
6030 LIBSOUND=
6031 fi
6032
6033
6034
6035 ALSA_REQUIRED=1.0.0
6036 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6037
6038 succeeded=no
6039
6040 # Extract the first word of "pkg-config", so it can be a program name with args.
6041 set dummy pkg-config; ac_word=$2
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043 $as_echo_n "checking for $ac_word... " >&6; }
6044 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 case $PKG_CONFIG in
6048 [\\/]* | ?:[\\/]*)
6049 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6050 ;;
6051 *)
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6054 do
6055 IFS=$as_save_IFS
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 break 2
6062 fi
6063 done
6064 done
6065 IFS=$as_save_IFS
6066
6067 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6068 ;;
6069 esac
6070 fi
6071 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6072 if test -n "$PKG_CONFIG"; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6074 $as_echo "$PKG_CONFIG" >&6; }
6075 else
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6078 fi
6079
6080
6081
6082 if test "$PKG_CONFIG" = "no" ; then
6083 HAVE_ALSA=no
6084 else
6085 PKG_CONFIG_MIN_VERSION=0.9.0
6086 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6088 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6089
6090 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6092 $as_echo "yes" >&6; }
6093 succeeded=yes
6094
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6096 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6097 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6099 $as_echo "$ALSA_CFLAGS" >&6; }
6100
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6102 $as_echo_n "checking ALSA_LIBS... " >&6; }
6103 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6105 $as_echo "$ALSA_LIBS" >&6; }
6106 else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6109 ALSA_CFLAGS=""
6110 ALSA_LIBS=""
6111 ## If we have a custom action on failure, don't print errors, but
6112 ## do set a variable so people can do so.
6113 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6114
6115 fi
6116
6117
6118
6119 else
6120 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6121 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6122 fi
6123 fi
6124
6125 if test $succeeded = yes; then
6126 HAVE_ALSA=yes
6127 else
6128 HAVE_ALSA=no
6129 fi
6130
6131 if test $HAVE_ALSA = yes; then
6132 SAVE_CFLAGS="$CFLAGS"
6133 SAVE_LDFLAGS="$LDFLAGS"
6134 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6135 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6138 #include <asoundlib.h>
6139 int
6140 main ()
6141 {
6142 snd_lib_error_set_handler (0);
6143 ;
6144 return 0;
6145 }
6146 _ACEOF
6147 if ac_fn_c_try_compile "$LINENO"; then :
6148 emacs_alsa_normal=yes
6149 else
6150 emacs_alsa_normal=no
6151 fi
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 if test "$emacs_alsa_normal" != yes; then
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156 #include <alsa/asoundlib.h>
6157 int
6158 main ()
6159 {
6160 snd_lib_error_set_handler (0);
6161 ;
6162 return 0;
6163 }
6164 _ACEOF
6165 if ac_fn_c_try_compile "$LINENO"; then :
6166 emacs_alsa_subdir=yes
6167 else
6168 emacs_alsa_subdir=no
6169 fi
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171 if test "$emacs_alsa_subdir" != yes; then
6172 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6173 fi
6174 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6175 fi
6176
6177 CFLAGS="$SAVE_CFLAGS"
6178 LDFLAGS="$SAVE_LDFLAGS"
6179 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6180 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6181
6182 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6183
6184 fi
6185
6186 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6187 case "$opsys" in
6188 gnu-linux|freebsd|netbsd)
6189
6190 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6191
6192 ;;
6193 esac
6194 fi
6195
6196
6197 fi
6198
6199 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6200 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6201 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6202 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6203 sys/utsname.h pwd.h utmp.h dirent.h util.h
6204 do :
6205 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6206 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6207 eval as_val=\$$as_ac_Header
6208 if test "x$as_val" = x""yes; then :
6209 cat >>confdefs.h <<_ACEOF
6210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6211 _ACEOF
6212
6213 fi
6214
6215 done
6216
6217
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6219 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 #include <sys/personality.h>
6223 int
6224 main ()
6225 {
6226 personality (PER_LINUX32)
6227 ;
6228 return 0;
6229 }
6230 _ACEOF
6231 if ac_fn_c_try_compile "$LINENO"; then :
6232 emacs_cv_personality_linux32=yes
6233 else
6234 emacs_cv_personality_linux32=no
6235 fi
6236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6238 $as_echo "$emacs_cv_personality_linux32" >&6; }
6239
6240 if test $emacs_cv_personality_linux32 = yes; then
6241
6242 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6243
6244 fi
6245
6246 for ac_header in term.h
6247 do :
6248 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6249 if test "x$ac_cv_header_term_h" = x""yes; then :
6250 cat >>confdefs.h <<_ACEOF
6251 #define HAVE_TERM_H 1
6252 _ACEOF
6253
6254 fi
6255
6256 done
6257
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6259 $as_echo_n "checking for ANSI C header files... " >&6; }
6260 if test "${ac_cv_header_stdc+set}" = set; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6265 #include <stdlib.h>
6266 #include <stdarg.h>
6267 #include <string.h>
6268 #include <float.h>
6269
6270 int
6271 main ()
6272 {
6273
6274 ;
6275 return 0;
6276 }
6277 _ACEOF
6278 if ac_fn_c_try_compile "$LINENO"; then :
6279 ac_cv_header_stdc=yes
6280 else
6281 ac_cv_header_stdc=no
6282 fi
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284
6285 if test $ac_cv_header_stdc = yes; then
6286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6289 #include <string.h>
6290
6291 _ACEOF
6292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6293 $EGREP "memchr" >/dev/null 2>&1; then :
6294
6295 else
6296 ac_cv_header_stdc=no
6297 fi
6298 rm -f conftest*
6299
6300 fi
6301
6302 if test $ac_cv_header_stdc = yes; then
6303 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6306 #include <stdlib.h>
6307
6308 _ACEOF
6309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6310 $EGREP "free" >/dev/null 2>&1; then :
6311
6312 else
6313 ac_cv_header_stdc=no
6314 fi
6315 rm -f conftest*
6316
6317 fi
6318
6319 if test $ac_cv_header_stdc = yes; then
6320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6321 if test "$cross_compiling" = yes; then :
6322 :
6323 else
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6326 #include <ctype.h>
6327 #include <stdlib.h>
6328 #if ((' ' & 0x0FF) == 0x020)
6329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6331 #else
6332 # define ISLOWER(c) \
6333 (('a' <= (c) && (c) <= 'i') \
6334 || ('j' <= (c) && (c) <= 'r') \
6335 || ('s' <= (c) && (c) <= 'z'))
6336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6337 #endif
6338
6339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6340 int
6341 main ()
6342 {
6343 int i;
6344 for (i = 0; i < 256; i++)
6345 if (XOR (islower (i), ISLOWER (i))
6346 || toupper (i) != TOUPPER (i))
6347 return 2;
6348 return 0;
6349 }
6350 _ACEOF
6351 if ac_fn_c_try_run "$LINENO"; then :
6352
6353 else
6354 ac_cv_header_stdc=no
6355 fi
6356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6357 conftest.$ac_objext conftest.beam conftest.$ac_ext
6358 fi
6359
6360 fi
6361 fi
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6363 $as_echo "$ac_cv_header_stdc" >&6; }
6364 if test $ac_cv_header_stdc = yes; then
6365
6366 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6367
6368 fi
6369
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6371 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6372 if test "${ac_cv_header_time+set}" = set; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6377 #include <sys/types.h>
6378 #include <sys/time.h>
6379 #include <time.h>
6380
6381 int
6382 main ()
6383 {
6384 if ((struct tm *) 0)
6385 return 0;
6386 ;
6387 return 0;
6388 }
6389 _ACEOF
6390 if ac_fn_c_try_compile "$LINENO"; then :
6391 ac_cv_header_time=yes
6392 else
6393 ac_cv_header_time=no
6394 fi
6395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6396 fi
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6398 $as_echo "$ac_cv_header_time" >&6; }
6399 if test $ac_cv_header_time = yes; then
6400
6401 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6402
6403 fi
6404
6405 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6406 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6407 ac_have_decl=1
6408 else
6409 ac_have_decl=0
6410 fi
6411
6412 cat >>confdefs.h <<_ACEOF
6413 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6414 _ACEOF
6415
6416 if test $ac_cv_have_decl_sys_siglist != yes; then
6417 # For Tru64, at least:
6418 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6419 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6420 ac_have_decl=1
6421 else
6422 ac_have_decl=0
6423 fi
6424
6425 cat >>confdefs.h <<_ACEOF
6426 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6427 _ACEOF
6428
6429 if test $ac_cv_have_decl___sys_siglist = yes; then
6430
6431 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6432
6433 fi
6434 fi
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6436 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6437 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442 #include <sys/types.h>
6443 #include <sys/wait.h>
6444 #ifndef WEXITSTATUS
6445 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6446 #endif
6447 #ifndef WIFEXITED
6448 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6449 #endif
6450
6451 int
6452 main ()
6453 {
6454 int s;
6455 wait (&s);
6456 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6457 ;
6458 return 0;
6459 }
6460 _ACEOF
6461 if ac_fn_c_try_compile "$LINENO"; then :
6462 ac_cv_header_sys_wait_h=yes
6463 else
6464 ac_cv_header_sys_wait_h=no
6465 fi
6466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6467 fi
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6469 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6470 if test $ac_cv_header_sys_wait_h = yes; then
6471
6472 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6473
6474 fi
6475
6476
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6478 $as_echo_n "checking for struct utimbuf... " >&6; }
6479 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6480 $as_echo_n "(cached) " >&6
6481 else
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6484 #ifdef TIME_WITH_SYS_TIME
6485 #include <sys/time.h>
6486 #include <time.h>
6487 #else
6488 #ifdef HAVE_SYS_TIME_H
6489 #include <sys/time.h>
6490 #else
6491 #include <time.h>
6492 #endif
6493 #endif
6494 #ifdef HAVE_UTIME_H
6495 #include <utime.h>
6496 #endif
6497 int
6498 main ()
6499 {
6500 static struct utimbuf x; x.actime = x.modtime;
6501 ;
6502 return 0;
6503 }
6504 _ACEOF
6505 if ac_fn_c_try_compile "$LINENO"; then :
6506 emacs_cv_struct_utimbuf=yes
6507 else
6508 emacs_cv_struct_utimbuf=no
6509 fi
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511 fi
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6513 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6514 if test $emacs_cv_struct_utimbuf = yes; then
6515
6516 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6517
6518 fi
6519
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6521 $as_echo_n "checking return type of signal handlers... " >&6; }
6522 if test "${ac_cv_type_signal+set}" = set; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527 #include <sys/types.h>
6528 #include <signal.h>
6529
6530 int
6531 main ()
6532 {
6533 return *(signal (0, 0)) (0) == 1;
6534 ;
6535 return 0;
6536 }
6537 _ACEOF
6538 if ac_fn_c_try_compile "$LINENO"; then :
6539 ac_cv_type_signal=int
6540 else
6541 ac_cv_type_signal=void
6542 fi
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 fi
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6546 $as_echo "$ac_cv_type_signal" >&6; }
6547
6548 cat >>confdefs.h <<_ACEOF
6549 #define RETSIGTYPE $ac_cv_type_signal
6550 _ACEOF
6551
6552
6553
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6555 $as_echo_n "checking for speed_t... " >&6; }
6556 if test "${emacs_cv_speed_t+set}" = set; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561 #include <termios.h>
6562 int
6563 main ()
6564 {
6565 speed_t x = 1;
6566 ;
6567 return 0;
6568 }
6569 _ACEOF
6570 if ac_fn_c_try_compile "$LINENO"; then :
6571 emacs_cv_speed_t=yes
6572 else
6573 emacs_cv_speed_t=no
6574 fi
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 fi
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6578 $as_echo "$emacs_cv_speed_t" >&6; }
6579 if test $emacs_cv_speed_t = yes; then
6580
6581 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6582
6583 fi
6584
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6586 $as_echo_n "checking for struct timeval... " >&6; }
6587 if test "${emacs_cv_struct_timeval+set}" = set; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 #ifdef TIME_WITH_SYS_TIME
6593 #include <sys/time.h>
6594 #include <time.h>
6595 #else
6596 #ifdef HAVE_SYS_TIME_H
6597 #include <sys/time.h>
6598 #else
6599 #include <time.h>
6600 #endif
6601 #endif
6602 int
6603 main ()
6604 {
6605 static struct timeval x; x.tv_sec = x.tv_usec;
6606 ;
6607 return 0;
6608 }
6609 _ACEOF
6610 if ac_fn_c_try_compile "$LINENO"; then :
6611 emacs_cv_struct_timeval=yes
6612 else
6613 emacs_cv_struct_timeval=no
6614 fi
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 fi
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6618 $as_echo "$emacs_cv_struct_timeval" >&6; }
6619 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6620 if test $emacs_cv_struct_timeval = yes; then
6621
6622 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6623
6624 fi
6625
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6627 $as_echo_n "checking for struct exception... " >&6; }
6628 if test "${emacs_cv_struct_exception+set}" = set; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632 /* end confdefs.h. */
6633 #include <math.h>
6634 int
6635 main ()
6636 {
6637 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6638 ;
6639 return 0;
6640 }
6641 _ACEOF
6642 if ac_fn_c_try_compile "$LINENO"; then :
6643 emacs_cv_struct_exception=yes
6644 else
6645 emacs_cv_struct_exception=no
6646 fi
6647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648 fi
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6650 $as_echo "$emacs_cv_struct_exception" >&6; }
6651 HAVE_EXCEPTION=$emacs_cv_struct_exception
6652 if test $emacs_cv_struct_exception != yes; then
6653
6654 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6655
6656 fi
6657
6658 for ac_header in sys/socket.h
6659 do :
6660 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6661 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6662 cat >>confdefs.h <<_ACEOF
6663 #define HAVE_SYS_SOCKET_H 1
6664 _ACEOF
6665
6666 fi
6667
6668 done
6669
6670 for ac_header in net/if.h
6671 do :
6672 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6673 #if HAVE_SYS_SOCKET_H
6674 #include <sys/socket.h>
6675 #endif
6676 "
6677 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6678 cat >>confdefs.h <<_ACEOF
6679 #define HAVE_NET_IF_H 1
6680 _ACEOF
6681
6682 fi
6683
6684 done
6685
6686
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6688 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6689 if test "${ac_cv_struct_tm+set}" = set; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 #include <sys/types.h>
6695 #include <time.h>
6696
6697 int
6698 main ()
6699 {
6700 struct tm tm;
6701 int *p = &tm.tm_sec;
6702 return !p;
6703 ;
6704 return 0;
6705 }
6706 _ACEOF
6707 if ac_fn_c_try_compile "$LINENO"; then :
6708 ac_cv_struct_tm=time.h
6709 else
6710 ac_cv_struct_tm=sys/time.h
6711 fi
6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713 fi
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6715 $as_echo "$ac_cv_struct_tm" >&6; }
6716 if test $ac_cv_struct_tm = sys/time.h; then
6717
6718 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6719
6720 fi
6721
6722 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6723 #include <$ac_cv_struct_tm>
6724
6725 "
6726 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6727
6728 cat >>confdefs.h <<_ACEOF
6729 #define HAVE_STRUCT_TM_TM_ZONE 1
6730 _ACEOF
6731
6732
6733 fi
6734
6735 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6736
6737 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6738
6739 else
6740 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6741 "
6742 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6743 ac_have_decl=1
6744 else
6745 ac_have_decl=0
6746 fi
6747
6748 cat >>confdefs.h <<_ACEOF
6749 #define HAVE_DECL_TZNAME $ac_have_decl
6750 _ACEOF
6751
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6753 $as_echo_n "checking for tzname... " >&6; }
6754 if test "${ac_cv_var_tzname+set}" = set; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6759 #include <time.h>
6760 #if !HAVE_DECL_TZNAME
6761 extern char *tzname[];
6762 #endif
6763
6764 int
6765 main ()
6766 {
6767 return tzname[0][0];
6768 ;
6769 return 0;
6770 }
6771 _ACEOF
6772 if ac_fn_c_try_link "$LINENO"; then :
6773 ac_cv_var_tzname=yes
6774 else
6775 ac_cv_var_tzname=no
6776 fi
6777 rm -f core conftest.err conftest.$ac_objext \
6778 conftest$ac_exeext conftest.$ac_ext
6779 fi
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6781 $as_echo "$ac_cv_var_tzname" >&6; }
6782 if test $ac_cv_var_tzname = yes; then
6783
6784 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6785
6786 fi
6787 fi
6788
6789 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6790 "
6791 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6792
6793 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6794
6795 fi
6796
6797 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6798 #if HAVE_SYS_SOCKET_H
6799 #include <sys/socket.h>
6800 #endif
6801 #if HAVE_NET_IF_H
6802 #include <net/if.h>
6803 #endif
6804 "
6805 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6806
6807 cat >>confdefs.h <<_ACEOF
6808 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6809 _ACEOF
6810
6811
6812 fi
6813 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6814 #if HAVE_SYS_SOCKET_H
6815 #include <sys/socket.h>
6816 #endif
6817 #if HAVE_NET_IF_H
6818 #include <net/if.h>
6819 #endif
6820 "
6821 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6822
6823 cat >>confdefs.h <<_ACEOF
6824 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6825 _ACEOF
6826
6827
6828 fi
6829 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6830 #if HAVE_SYS_SOCKET_H
6831 #include <sys/socket.h>
6832 #endif
6833 #if HAVE_NET_IF_H
6834 #include <net/if.h>
6835 #endif
6836 "
6837 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6838
6839 cat >>confdefs.h <<_ACEOF
6840 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6841 _ACEOF
6842
6843
6844 fi
6845 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6846 #if HAVE_SYS_SOCKET_H
6847 #include <sys/socket.h>
6848 #endif
6849 #if HAVE_NET_IF_H
6850 #include <net/if.h>
6851 #endif
6852 "
6853 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6854
6855 cat >>confdefs.h <<_ACEOF
6856 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6857 _ACEOF
6858
6859
6860 fi
6861 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6862 #if HAVE_SYS_SOCKET_H
6863 #include <sys/socket.h>
6864 #endif
6865 #if HAVE_NET_IF_H
6866 #include <net/if.h>
6867 #endif
6868 "
6869 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6870
6871 cat >>confdefs.h <<_ACEOF
6872 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6873 _ACEOF
6874
6875
6876 fi
6877
6878
6879
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6881 $as_echo_n "checking for function prototypes... " >&6; }
6882 if test "$ac_cv_prog_cc_c89" != no; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6884 $as_echo "yes" >&6; }
6885
6886 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6887
6888
6889 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6890
6891 else
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 $as_echo "no" >&6; }
6894 fi
6895
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6897 $as_echo_n "checking for working volatile... " >&6; }
6898 if test "${ac_cv_c_volatile+set}" = set; then :
6899 $as_echo_n "(cached) " >&6
6900 else
6901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902 /* end confdefs.h. */
6903
6904 int
6905 main ()
6906 {
6907
6908 volatile int x;
6909 int * volatile y = (int *) 0;
6910 return !x && !y;
6911 ;
6912 return 0;
6913 }
6914 _ACEOF
6915 if ac_fn_c_try_compile "$LINENO"; then :
6916 ac_cv_c_volatile=yes
6917 else
6918 ac_cv_c_volatile=no
6919 fi
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 fi
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6923 $as_echo "$ac_cv_c_volatile" >&6; }
6924 if test $ac_cv_c_volatile = no; then
6925
6926 $as_echo "#define volatile /**/" >>confdefs.h
6927
6928 fi
6929
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6931 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6932 if test "${ac_cv_c_const+set}" = set; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6937
6938 int
6939 main ()
6940 {
6941 /* FIXME: Include the comments suggested by Paul. */
6942 #ifndef __cplusplus
6943 /* Ultrix mips cc rejects this. */
6944 typedef int charset[2];
6945 const charset cs;
6946 /* SunOS 4.1.1 cc rejects this. */
6947 char const *const *pcpcc;
6948 char **ppc;
6949 /* NEC SVR4.0.2 mips cc rejects this. */
6950 struct point {int x, y;};
6951 static struct point const zero = {0,0};
6952 /* AIX XL C 1.02.0.0 rejects this.
6953 It does not let you subtract one const X* pointer from another in
6954 an arm of an if-expression whose if-part is not a constant
6955 expression */
6956 const char *g = "string";
6957 pcpcc = &g + (g ? g-g : 0);
6958 /* HPUX 7.0 cc rejects these. */
6959 ++pcpcc;
6960 ppc = (char**) pcpcc;
6961 pcpcc = (char const *const *) ppc;
6962 { /* SCO 3.2v4 cc rejects this. */
6963 char *t;
6964 char const *s = 0 ? (char *) 0 : (char const *) 0;
6965
6966 *t++ = 0;
6967 if (s) return 0;
6968 }
6969 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6970 int x[] = {25, 17};
6971 const int *foo = &x[0];
6972 ++foo;
6973 }
6974 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6975 typedef const int *iptr;
6976 iptr p = 0;
6977 ++p;
6978 }
6979 { /* AIX XL C 1.02.0.0 rejects this saying
6980 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6981 struct s { int j; const int *ap[3]; };
6982 struct s *b; b->j = 5;
6983 }
6984 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6985 const int foo = 10;
6986 if (!foo) return 0;
6987 }
6988 return !cs[0] && !zero.x;
6989 #endif
6990
6991 ;
6992 return 0;
6993 }
6994 _ACEOF
6995 if ac_fn_c_try_compile "$LINENO"; then :
6996 ac_cv_c_const=yes
6997 else
6998 ac_cv_c_const=no
6999 fi
7000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7001 fi
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7003 $as_echo "$ac_cv_c_const" >&6; }
7004 if test $ac_cv_c_const = no; then
7005
7006 $as_echo "#define const /**/" >>confdefs.h
7007
7008 fi
7009
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7011 $as_echo_n "checking for void * support... " >&6; }
7012 if test "${emacs_cv_void_star+set}" = set; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7017
7018 int
7019 main ()
7020 {
7021 void * foo;
7022 ;
7023 return 0;
7024 }
7025 _ACEOF
7026 if ac_fn_c_try_compile "$LINENO"; then :
7027 emacs_cv_void_star=yes
7028 else
7029 emacs_cv_void_star=no
7030 fi
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032 fi
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7034 $as_echo "$emacs_cv_void_star" >&6; }
7035 if test $emacs_cv_void_star = yes; then
7036 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7037
7038 else
7039 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7040
7041 fi
7042
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7044 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7045 if test "${ac_cv_c_bigendian+set}" = set; then :
7046 $as_echo_n "(cached) " >&6
7047 else
7048 ac_cv_c_bigendian=unknown
7049 # See if we're dealing with a universal compiler.
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 #ifndef __APPLE_CC__
7053 not a universal capable compiler
7054 #endif
7055 typedef int dummy;
7056
7057 _ACEOF
7058 if ac_fn_c_try_compile "$LINENO"; then :
7059
7060 # Check for potential -arch flags. It is not universal unless
7061 # there are at least two -arch flags with different values.
7062 ac_arch=
7063 ac_prev=
7064 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7065 if test -n "$ac_prev"; then
7066 case $ac_word in
7067 i?86 | x86_64 | ppc | ppc64)
7068 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7069 ac_arch=$ac_word
7070 else
7071 ac_cv_c_bigendian=universal
7072 break
7073 fi
7074 ;;
7075 esac
7076 ac_prev=
7077 elif test "x$ac_word" = "x-arch"; then
7078 ac_prev=arch
7079 fi
7080 done
7081 fi
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083 if test $ac_cv_c_bigendian = unknown; then
7084 # See if sys/param.h defines the BYTE_ORDER macro.
7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7087 #include <sys/types.h>
7088 #include <sys/param.h>
7089
7090 int
7091 main ()
7092 {
7093 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7094 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7095 && LITTLE_ENDIAN)
7096 bogus endian macros
7097 #endif
7098
7099 ;
7100 return 0;
7101 }
7102 _ACEOF
7103 if ac_fn_c_try_compile "$LINENO"; then :
7104 # It does; now see whether it defined to BIG_ENDIAN or not.
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7107 #include <sys/types.h>
7108 #include <sys/param.h>
7109
7110 int
7111 main ()
7112 {
7113 #if BYTE_ORDER != BIG_ENDIAN
7114 not big endian
7115 #endif
7116
7117 ;
7118 return 0;
7119 }
7120 _ACEOF
7121 if ac_fn_c_try_compile "$LINENO"; then :
7122 ac_cv_c_bigendian=yes
7123 else
7124 ac_cv_c_bigendian=no
7125 fi
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127 fi
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129 fi
7130 if test $ac_cv_c_bigendian = unknown; then
7131 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134 #include <limits.h>
7135
7136 int
7137 main ()
7138 {
7139 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7140 bogus endian macros
7141 #endif
7142
7143 ;
7144 return 0;
7145 }
7146 _ACEOF
7147 if ac_fn_c_try_compile "$LINENO"; then :
7148 # It does; now see whether it defined to _BIG_ENDIAN or not.
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7151 #include <limits.h>
7152
7153 int
7154 main ()
7155 {
7156 #ifndef _BIG_ENDIAN
7157 not big endian
7158 #endif
7159
7160 ;
7161 return 0;
7162 }
7163 _ACEOF
7164 if ac_fn_c_try_compile "$LINENO"; then :
7165 ac_cv_c_bigendian=yes
7166 else
7167 ac_cv_c_bigendian=no
7168 fi
7169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170 fi
7171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172 fi
7173 if test $ac_cv_c_bigendian = unknown; then
7174 # Compile a test program.
7175 if test "$cross_compiling" = yes; then :
7176 # Try to guess by grepping values from an object file.
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7179 short int ascii_mm[] =
7180 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7181 short int ascii_ii[] =
7182 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7183 int use_ascii (int i) {
7184 return ascii_mm[i] + ascii_ii[i];
7185 }
7186 short int ebcdic_ii[] =
7187 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7188 short int ebcdic_mm[] =
7189 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7190 int use_ebcdic (int i) {
7191 return ebcdic_mm[i] + ebcdic_ii[i];
7192 }
7193 extern int foo;
7194
7195 int
7196 main ()
7197 {
7198 return use_ascii (foo) == use_ebcdic (foo);
7199 ;
7200 return 0;
7201 }
7202 _ACEOF
7203 if ac_fn_c_try_compile "$LINENO"; then :
7204 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7205 ac_cv_c_bigendian=yes
7206 fi
7207 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7208 if test "$ac_cv_c_bigendian" = unknown; then
7209 ac_cv_c_bigendian=no
7210 else
7211 # finding both strings is unlikely to happen, but who knows?
7212 ac_cv_c_bigendian=unknown
7213 fi
7214 fi
7215 fi
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 else
7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7220 $ac_includes_default
7221 int
7222 main ()
7223 {
7224
7225 /* Are we little or big endian? From Harbison&Steele. */
7226 union
7227 {
7228 long int l;
7229 char c[sizeof (long int)];
7230 } u;
7231 u.l = 1;
7232 return u.c[sizeof (long int) - 1] == 1;
7233
7234 ;
7235 return 0;
7236 }
7237 _ACEOF
7238 if ac_fn_c_try_run "$LINENO"; then :
7239 ac_cv_c_bigendian=no
7240 else
7241 ac_cv_c_bigendian=yes
7242 fi
7243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7244 conftest.$ac_objext conftest.beam conftest.$ac_ext
7245 fi
7246
7247 fi
7248 fi
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7250 $as_echo "$ac_cv_c_bigendian" >&6; }
7251 case $ac_cv_c_bigendian in #(
7252 yes)
7253 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7254 ;; #(
7255 no)
7256 ;; #(
7257 universal)
7258
7259 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7260
7261 ;; #(
7262 *)
7263 as_fn_error "unknown endianness
7264 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7265 esac
7266
7267
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7269 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7270 set x ${MAKE-make}
7271 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7272 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 cat >conftest.make <<\_ACEOF
7276 SHELL = /bin/sh
7277 all:
7278 @echo '@@@%%%=$(MAKE)=@@@%%%'
7279 _ACEOF
7280 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7281 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7282 *@@@%%%=?*=@@@%%%*)
7283 eval ac_cv_prog_make_${ac_make}_set=yes;;
7284 *)
7285 eval ac_cv_prog_make_${ac_make}_set=no;;
7286 esac
7287 rm -f conftest.make
7288 fi
7289 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7291 $as_echo "yes" >&6; }
7292 SET_MAKE=
7293 else
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7296 SET_MAKE="MAKE=${MAKE-make}"
7297 fi
7298
7299
7300 DEPFLAGS=
7301 MKDEPDIR=":"
7302 deps_frag=deps.mk
7303 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7305 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7306 HAVE_GNU_MAKE=no
7307 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7308 if test "x$testval" != x; then
7309 HAVE_GNU_MAKE=yes
7310 else
7311 ac_enable_autodepend=no
7312 fi
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7314 $as_echo "$HAVE_GNU_MAKE" >&6; }
7315 if test $HAVE_GNU_MAKE = yes; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7317 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7318 SAVE_CFLAGS="$CFLAGS"
7319 CFLAGS="$CFLAGS -MMD -MF deps.d"
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322
7323 int
7324 main ()
7325 {
7326
7327 ;
7328 return 0;
7329 }
7330 _ACEOF
7331 if ac_fn_c_try_compile "$LINENO"; then :
7332
7333 else
7334 ac_enable_autodepend=no
7335 fi
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 CFLAGS="$SAVE_CFLAGS"
7338 test -f deps.d || ac_enable_autodepend=no
7339 rm -rf deps.d
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7341 $as_echo "$ac_enable_autodepend" >&6; }
7342 fi
7343 if test $ac_enable_autodepend = yes; then
7344 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7345 ## In parallel builds, another make might create depdir between
7346 ## the first test and mkdir, so stick another test on the end.
7347 ## Or use mkinstalldirs? mkdir -p is not portable.
7348 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7349 deps_frag=autodeps.mk
7350 fi
7351 fi
7352 deps_frag=$srcdir/src/$deps_frag
7353
7354
7355
7356
7357
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7359 $as_echo_n "checking for long file names... " >&6; }
7360 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7361 $as_echo_n "(cached) " >&6
7362 else
7363 ac_cv_sys_long_file_names=yes
7364 # Test for long file names in all the places we know might matter:
7365 # . the current directory, where building will happen
7366 # $prefix/lib where we will be installing things
7367 # $exec_prefix/lib likewise
7368 # $TMPDIR if set, where it might want to write temporary files
7369 # /tmp where it might want to write temporary files
7370 # /var/tmp likewise
7371 # /usr/tmp likewise
7372 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7373 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7374 # in the usual case where exec_prefix is '${prefix}'.
7375 case $ac_dir in #(
7376 . | /* | ?:[\\/]*) ;; #(
7377 *) continue;;
7378 esac
7379 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7380 ac_xdir=$ac_dir/cf$$
7381 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7382 ac_tf1=$ac_xdir/conftest9012345
7383 ac_tf2=$ac_xdir/conftest9012346
7384 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7385 ac_cv_sys_long_file_names=no
7386 rm -f -r "$ac_xdir" 2>/dev/null
7387 test $ac_cv_sys_long_file_names = no && break
7388 done
7389 fi
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7391 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7392 if test $ac_cv_sys_long_file_names = yes; then
7393
7394 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7395
7396 fi
7397
7398
7399 #### Choose a window system.
7400
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7402 $as_echo_n "checking for X... " >&6; }
7403
7404
7405 # Check whether --with-x was given.
7406 if test "${with_x+set}" = set; then :
7407 withval=$with_x;
7408 fi
7409
7410 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7411 if test "x$with_x" = xno; then
7412 # The user explicitly disabled X.
7413 have_x=disabled
7414 else
7415 case $x_includes,$x_libraries in #(
7416 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7417 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 # One or both of the vars are not set, and there is no cached value.
7421 ac_x_includes=no ac_x_libraries=no
7422 rm -f -r conftest.dir
7423 if mkdir conftest.dir; then
7424 cd conftest.dir
7425 cat >Imakefile <<'_ACEOF'
7426 incroot:
7427 @echo incroot='${INCROOT}'
7428 usrlibdir:
7429 @echo usrlibdir='${USRLIBDIR}'
7430 libdir:
7431 @echo libdir='${LIBDIR}'
7432 _ACEOF
7433 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7434 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7435 for ac_var in incroot usrlibdir libdir; do
7436 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7437 done
7438 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7439 for ac_extension in a so sl dylib la dll; do
7440 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7441 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7442 ac_im_usrlibdir=$ac_im_libdir; break
7443 fi
7444 done
7445 # Screen out bogus values from the imake configuration. They are
7446 # bogus both because they are the default anyway, and because
7447 # using them would break gcc on systems where it needs fixed includes.
7448 case $ac_im_incroot in
7449 /usr/include) ac_x_includes= ;;
7450 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7451 esac
7452 case $ac_im_usrlibdir in
7453 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7454 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7455 esac
7456 fi
7457 cd ..
7458 rm -f -r conftest.dir
7459 fi
7460
7461 # Standard set of common directories for X headers.
7462 # Check X11 before X11Rn because it is often a symlink to the current release.
7463 ac_x_header_dirs='
7464 /usr/X11/include
7465 /usr/X11R7/include
7466 /usr/X11R6/include
7467 /usr/X11R5/include
7468 /usr/X11R4/include
7469
7470 /usr/include/X11
7471 /usr/include/X11R7
7472 /usr/include/X11R6
7473 /usr/include/X11R5
7474 /usr/include/X11R4
7475
7476 /usr/local/X11/include
7477 /usr/local/X11R7/include
7478 /usr/local/X11R6/include
7479 /usr/local/X11R5/include
7480 /usr/local/X11R4/include
7481
7482 /usr/local/include/X11
7483 /usr/local/include/X11R7
7484 /usr/local/include/X11R6
7485 /usr/local/include/X11R5
7486 /usr/local/include/X11R4
7487
7488 /usr/X386/include
7489 /usr/x386/include
7490 /usr/XFree86/include/X11
7491
7492 /usr/include
7493 /usr/local/include
7494 /usr/unsupported/include
7495 /usr/athena/include
7496 /usr/local/x11r5/include
7497 /usr/lpp/Xamples/include
7498
7499 /usr/openwin/include
7500 /usr/openwin/share/include'
7501
7502 if test "$ac_x_includes" = no; then
7503 # Guess where to find include files, by looking for Xlib.h.
7504 # First, try using that file with no special directory specified.
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7507 #include <X11/Xlib.h>
7508 _ACEOF
7509 if ac_fn_c_try_cpp "$LINENO"; then :
7510 # We can compile using X headers with no special include directory.
7511 ac_x_includes=
7512 else
7513 for ac_dir in $ac_x_header_dirs; do
7514 if test -r "$ac_dir/X11/Xlib.h"; then
7515 ac_x_includes=$ac_dir
7516 break
7517 fi
7518 done
7519 fi
7520 rm -f conftest.err conftest.$ac_ext
7521 fi # $ac_x_includes = no
7522
7523 if test "$ac_x_libraries" = no; then
7524 # Check for the libraries.
7525 # See if we find them without any special options.
7526 # Don't add to $LIBS permanently.
7527 ac_save_LIBS=$LIBS
7528 LIBS="-lX11 $LIBS"
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7531 #include <X11/Xlib.h>
7532 int
7533 main ()
7534 {
7535 XrmInitialize ()
7536 ;
7537 return 0;
7538 }
7539 _ACEOF
7540 if ac_fn_c_try_link "$LINENO"; then :
7541 LIBS=$ac_save_LIBS
7542 # We can link X programs with no special library path.
7543 ac_x_libraries=
7544 else
7545 LIBS=$ac_save_LIBS
7546 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7547 do
7548 # Don't even attempt the hair of trying to link an X program!
7549 for ac_extension in a so sl dylib la dll; do
7550 if test -r "$ac_dir/libX11.$ac_extension"; then
7551 ac_x_libraries=$ac_dir
7552 break 2
7553 fi
7554 done
7555 done
7556 fi
7557 rm -f core conftest.err conftest.$ac_objext \
7558 conftest$ac_exeext conftest.$ac_ext
7559 fi # $ac_x_libraries = no
7560
7561 case $ac_x_includes,$ac_x_libraries in #(
7562 no,* | *,no | *\'*)
7563 # Didn't find X, or a directory has "'" in its name.
7564 ac_cv_have_x="have_x=no";; #(
7565 *)
7566 # Record where we found X for the cache.
7567 ac_cv_have_x="have_x=yes\
7568 ac_x_includes='$ac_x_includes'\
7569 ac_x_libraries='$ac_x_libraries'"
7570 esac
7571 fi
7572 ;; #(
7573 *) have_x=yes;;
7574 esac
7575 eval "$ac_cv_have_x"
7576 fi # $with_x != no
7577
7578 if test "$have_x" != yes; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7580 $as_echo "$have_x" >&6; }
7581 no_x=yes
7582 else
7583 # If each of the values was on the command line, it overrides each guess.
7584 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7585 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7586 # Update the cache value to reflect the command line values.
7587 ac_cv_have_x="have_x=yes\
7588 ac_x_includes='$x_includes'\
7589 ac_x_libraries='$x_libraries'"
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7591 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7592 fi
7593
7594 if test "$no_x" = yes; then
7595 window_system=none
7596 else
7597 window_system=x11
7598 fi
7599
7600 ## Workaround for bug in autoconf <= 2.62.
7601 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7602 ## No need to do anything special for these standard directories.
7603 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7604
7605 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7606
7607 fi
7608
7609 LD_SWITCH_X_SITE_AUX=
7610 LD_SWITCH_X_SITE_AUX_RPATH=
7611 if test "${x_libraries}" != NONE; then
7612 if test -n "${x_libraries}"; then
7613 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7614 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7615 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7616 fi
7617 x_default_search_path=""
7618 x_search_path=${x_libraries}
7619 if test -z "${x_search_path}"; then
7620 x_search_path=/usr/lib
7621 fi
7622 for x_library in `echo ${x_search_path}: | \
7623 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7624 x_search_path="\
7625 ${x_library}/X11/%L/%T/%N%C%S:\
7626 ${x_library}/X11/%l/%T/%N%C%S:\
7627 ${x_library}/X11/%T/%N%C%S:\
7628 ${x_library}/X11/%L/%T/%N%S:\
7629 ${x_library}/X11/%l/%T/%N%S:\
7630 ${x_library}/X11/%T/%N%S"
7631 if test x"${x_default_search_path}" = x; then
7632 x_default_search_path=${x_search_path}
7633 else
7634 x_default_search_path="${x_search_path}:${x_default_search_path}"
7635 fi
7636 done
7637 fi
7638
7639
7640
7641 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7642 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7643 fi
7644
7645 if test x"${x_includes}" = x; then
7646 bitmapdir=/usr/include/X11/bitmaps
7647 else
7648 # accumulate include directories that have X11 bitmap subdirectories
7649 bmd_acc="dummyval"
7650 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7651 if test -d "${bmd}/X11/bitmaps"; then
7652 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7653 fi
7654 if test -d "${bmd}/bitmaps"; then
7655 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7656 fi
7657 done
7658 if test ${bmd_acc} != "dummyval"; then
7659 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7660 fi
7661 fi
7662
7663 HAVE_NS=no
7664 NS_IMPL_COCOA=no
7665 NS_IMPL_GNUSTEP=no
7666 tmp_CPPFLAGS="$CPPFLAGS"
7667 tmp_CFLAGS="$CFLAGS"
7668 CPPFLAGS="$CPPFLAGS -x objective-c"
7669 CFLAGS="$CFLAGS -x objective-c"
7670 TEMACS_LDFLAGS2="\${LDFLAGS} \${PROFILING_LDFLAGS}"
7671 if test "${with_ns}" != no; then
7672 if test "${opsys}" = darwin; then
7673 NS_IMPL_COCOA=yes
7674 ns_appdir=`pwd`/nextstep/Emacs.app/
7675 ns_appbindir=${ns_appdir}Contents/MacOS/
7676 ns_appresdir=${ns_appdir}Contents/Resources
7677 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7678 elif test -f $GNUSTEP_CONFIG_FILE; then
7679 NS_IMPL_GNUSTEP=yes
7680 ns_appdir=`pwd`/nextstep/Emacs.app/
7681 ns_appbindir=${ns_appdir}
7682 ns_appresdir=${ns_appdir}Resources
7683 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7684 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7685 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7686 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7687 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7688 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7689 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7690 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7691 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7692 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7693 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7694 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7695 LIB_STANDARD=
7696 START_FILES=
7697 TEMACS_LDFLAGS2=
7698 fi
7699 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7700 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7701 HAVE_NS=yes
7702 else
7703 as_fn_error "\`--with-ns' was specified, but the include
7704 files are missing or cannot be compiled." "$LINENO" 5
7705 fi
7706
7707
7708 NS_HAVE_NSINTEGER=yes
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711 #include <Foundation/NSObjCRuntime.h>
7712 int
7713 main ()
7714 {
7715 NSInteger i;
7716 ;
7717 return 0;
7718 }
7719 _ACEOF
7720 if ac_fn_c_try_compile "$LINENO"; then :
7721 ns_have_nsinteger=yes
7722 else
7723 ns_have_nsinteger=no
7724 fi
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 if test $ns_have_nsinteger = no; then
7727 NS_HAVE_NSINTEGER=no
7728 fi
7729 fi
7730
7731
7732 ns_frag=/dev/null
7733 NS_OBJ=
7734 NS_SUPPORT=
7735 if test "${HAVE_NS}" = yes; then
7736 window_system=nextstep
7737 with_xft=no
7738 # set up packaging dirs
7739 exec_prefix=${ns_appbindir}
7740 libexecdir=${ns_appbindir}/libexec
7741 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7742 prefix=${ns_appresdir}
7743 fi
7744 ns_frag=$srcdir/src/ns.mk
7745 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7746 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7747 fi
7748 CFLAGS="$tmp_CFLAGS"
7749 CPPFLAGS="$tmp_CPPFLAGS"
7750
7751
7752
7753
7754
7755 case "${window_system}" in
7756 x11 )
7757 HAVE_X_WINDOWS=yes
7758 HAVE_X11=yes
7759 case "${with_x_toolkit}" in
7760 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7761 motif ) USE_X_TOOLKIT=MOTIF ;;
7762 gtk ) with_gtk=yes
7763 USE_X_TOOLKIT=none ;;
7764 gtk3 ) with_gtk3=yes
7765 USE_X_TOOLKIT=none ;;
7766 no ) USE_X_TOOLKIT=none ;;
7767 * ) USE_X_TOOLKIT=maybe ;;
7768 esac
7769 ;;
7770 nextstep | none )
7771 HAVE_X_WINDOWS=no
7772 HAVE_X11=no
7773 USE_X_TOOLKIT=none
7774 ;;
7775 esac
7776
7777 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7778 # Extract the first word of "X", so it can be a program name with args.
7779 set dummy X; ac_word=$2
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781 $as_echo_n "checking for $ac_word... " >&6; }
7782 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7783 $as_echo_n "(cached) " >&6
7784 else
7785 if test -n "$HAVE_XSERVER"; then
7786 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7787 else
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7790 do
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7795 ac_cv_prog_HAVE_XSERVER="true"
7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 break 2
7798 fi
7799 done
7800 done
7801 IFS=$as_save_IFS
7802
7803 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7804 fi
7805 fi
7806 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7807 if test -n "$HAVE_XSERVER"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7809 $as_echo "$HAVE_XSERVER" >&6; }
7810 else
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7813 fi
7814
7815
7816 if test "$HAVE_XSERVER" = true ||
7817 test -n "$DISPLAY" ||
7818 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7819 as_fn_error "You seem to be running X, but no X development libraries
7820 were found. You should install the relevant development files for X
7821 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7822 sure you have development files for image handling, i.e.
7823 tiff, gif, jpeg, png and xpm.
7824 If you are sure you want Emacs compiled without X window support, pass
7825 --without-x
7826 to configure." "$LINENO" 5
7827 fi
7828 fi
7829
7830 ### If we're using X11, we should use the X menu package.
7831 HAVE_MENUS=no
7832 case ${HAVE_X11} in
7833 yes ) HAVE_MENUS=yes ;;
7834 esac
7835
7836 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7837 # Assume not, until told otherwise.
7838 GNU_MALLOC=yes
7839 doug_lea_malloc=yes
7840 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7841 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7842
7843 else
7844 doug_lea_malloc=no
7845 fi
7846
7847 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7848 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7849
7850 else
7851 doug_lea_malloc=no
7852 fi
7853
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7855 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7856 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h. */
7861 extern void (* __after_morecore_hook)();
7862 int
7863 main ()
7864 {
7865 __after_morecore_hook = 0
7866 ;
7867 return 0;
7868 }
7869 _ACEOF
7870 if ac_fn_c_try_link "$LINENO"; then :
7871 emacs_cv_var___after_morecore_hook=yes
7872 else
7873 emacs_cv_var___after_morecore_hook=no
7874 fi
7875 rm -f core conftest.err conftest.$ac_objext \
7876 conftest$ac_exeext conftest.$ac_ext
7877 fi
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7879 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7880 if test $emacs_cv_var___after_morecore_hook = no; then
7881 doug_lea_malloc=no
7882 fi
7883
7884
7885 system_malloc=no
7886 case "$opsys" in
7887 ## darwin ld insists on the use of malloc routines in the System framework.
7888 darwin|sol2-10) system_malloc=yes ;;
7889 esac
7890
7891 if test "${system_malloc}" = "yes"; then
7892
7893 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7894
7895 GNU_MALLOC=no
7896 GNU_MALLOC_reason="
7897 (The GNU allocators don't work with this system configuration.)"
7898 GMALLOC_OBJ=
7899 VMLIMIT_OBJ=
7900 else
7901 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7902 VMLIMIT_OBJ=vm-limit.o
7903 fi
7904
7905
7906
7907 if test "$doug_lea_malloc" = "yes" ; then
7908 if test "$GNU_MALLOC" = yes ; then
7909 GNU_MALLOC_reason="
7910 (Using Doug Lea's new malloc from the GNU C Library.)"
7911 fi
7912
7913 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7914
7915
7916 ## Use mmap directly for allocating larger buffers.
7917 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7918 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7919 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7920 case "$opsys" in
7921 gnu*) REL_ALLOC=no ;;
7922 esac
7923 fi
7924
7925 if test x"${REL_ALLOC}" = x; then
7926 REL_ALLOC=${GNU_MALLOC}
7927 fi
7928
7929 use_mmap_for_buffers=no
7930 case "$opsys" in
7931 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7932 esac
7933
7934
7935
7936
7937 for ac_header in $ac_header_list
7938 do :
7939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7940 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7941 "
7942 eval as_val=\$$as_ac_Header
7943 if test "x$as_val" = x""yes; then :
7944 cat >>confdefs.h <<_ACEOF
7945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7946 _ACEOF
7947
7948 fi
7949
7950 done
7951
7952
7953
7954
7955
7956
7957
7958
7959 for ac_func in getpagesize
7960 do :
7961 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7962 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7963 cat >>confdefs.h <<_ACEOF
7964 #define HAVE_GETPAGESIZE 1
7965 _ACEOF
7966
7967 fi
7968 done
7969
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7971 $as_echo_n "checking for working mmap... " >&6; }
7972 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 if test "$cross_compiling" = yes; then :
7976 ac_cv_func_mmap_fixed_mapped=no
7977 else
7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7980 $ac_includes_default
7981 /* malloc might have been renamed as rpl_malloc. */
7982 #undef malloc
7983
7984 /* Thanks to Mike Haertel and Jim Avera for this test.
7985 Here is a matrix of mmap possibilities:
7986 mmap private not fixed
7987 mmap private fixed at somewhere currently unmapped
7988 mmap private fixed at somewhere already mapped
7989 mmap shared not fixed
7990 mmap shared fixed at somewhere currently unmapped
7991 mmap shared fixed at somewhere already mapped
7992 For private mappings, we should verify that changes cannot be read()
7993 back from the file, nor mmap's back from the file at a different
7994 address. (There have been systems where private was not correctly
7995 implemented like the infamous i386 svr4.0, and systems where the
7996 VM page cache was not coherent with the file system buffer cache
7997 like early versions of FreeBSD and possibly contemporary NetBSD.)
7998 For shared mappings, we should conversely verify that changes get
7999 propagated back to all the places they're supposed to be.
8000
8001 Grep wants private fixed already mapped.
8002 The main things grep needs to know about mmap are:
8003 * does it exist and is it safe to write into the mmap'd area
8004 * how to use it (BSD variants) */
8005
8006 #include <fcntl.h>
8007 #include <sys/mman.h>
8008
8009 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8010 char *malloc ();
8011 #endif
8012
8013 /* This mess was copied from the GNU getpagesize.h. */
8014 #ifndef HAVE_GETPAGESIZE
8015 # ifdef _SC_PAGESIZE
8016 # define getpagesize() sysconf(_SC_PAGESIZE)
8017 # else /* no _SC_PAGESIZE */
8018 # ifdef HAVE_SYS_PARAM_H
8019 # include <sys/param.h>
8020 # ifdef EXEC_PAGESIZE
8021 # define getpagesize() EXEC_PAGESIZE
8022 # else /* no EXEC_PAGESIZE */
8023 # ifdef NBPG
8024 # define getpagesize() NBPG * CLSIZE
8025 # ifndef CLSIZE
8026 # define CLSIZE 1
8027 # endif /* no CLSIZE */
8028 # else /* no NBPG */
8029 # ifdef NBPC
8030 # define getpagesize() NBPC
8031 # else /* no NBPC */
8032 # ifdef PAGESIZE
8033 # define getpagesize() PAGESIZE
8034 # endif /* PAGESIZE */
8035 # endif /* no NBPC */
8036 # endif /* no NBPG */
8037 # endif /* no EXEC_PAGESIZE */
8038 # else /* no HAVE_SYS_PARAM_H */
8039 # define getpagesize() 8192 /* punt totally */
8040 # endif /* no HAVE_SYS_PARAM_H */
8041 # endif /* no _SC_PAGESIZE */
8042
8043 #endif /* no HAVE_GETPAGESIZE */
8044
8045 int
8046 main ()
8047 {
8048 char *data, *data2, *data3;
8049 const char *cdata2;
8050 int i, pagesize;
8051 int fd, fd2;
8052
8053 pagesize = getpagesize ();
8054
8055 /* First, make a file with some known garbage in it. */
8056 data = (char *) malloc (pagesize);
8057 if (!data)
8058 return 1;
8059 for (i = 0; i < pagesize; ++i)
8060 *(data + i) = rand ();
8061 umask (0);
8062 fd = creat ("conftest.mmap", 0600);
8063 if (fd < 0)
8064 return 2;
8065 if (write (fd, data, pagesize) != pagesize)
8066 return 3;
8067 close (fd);
8068
8069 /* Next, check that the tail of a page is zero-filled. File must have
8070 non-zero length, otherwise we risk SIGBUS for entire page. */
8071 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8072 if (fd2 < 0)
8073 return 4;
8074 cdata2 = "";
8075 if (write (fd2, cdata2, 1) != 1)
8076 return 5;
8077 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8078 if (data2 == MAP_FAILED)
8079 return 6;
8080 for (i = 0; i < pagesize; ++i)
8081 if (*(data2 + i))
8082 return 7;
8083 close (fd2);
8084 if (munmap (data2, pagesize))
8085 return 8;
8086
8087 /* Next, try to mmap the file at a fixed address which already has
8088 something else allocated at it. If we can, also make sure that
8089 we see the same garbage. */
8090 fd = open ("conftest.mmap", O_RDWR);
8091 if (fd < 0)
8092 return 9;
8093 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8094 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8095 return 10;
8096 for (i = 0; i < pagesize; ++i)
8097 if (*(data + i) != *(data2 + i))
8098 return 11;
8099
8100 /* Finally, make sure that changes to the mapped area do not
8101 percolate back to the file as seen by read(). (This is a bug on
8102 some variants of i386 svr4.0.) */
8103 for (i = 0; i < pagesize; ++i)
8104 *(data2 + i) = *(data2 + i) + 1;
8105 data3 = (char *) malloc (pagesize);
8106 if (!data3)
8107 return 12;
8108 if (read (fd, data3, pagesize) != pagesize)
8109 return 13;
8110 for (i = 0; i < pagesize; ++i)
8111 if (*(data + i) != *(data3 + i))
8112 return 14;
8113 close (fd);
8114 return 0;
8115 }
8116 _ACEOF
8117 if ac_fn_c_try_run "$LINENO"; then :
8118 ac_cv_func_mmap_fixed_mapped=yes
8119 else
8120 ac_cv_func_mmap_fixed_mapped=no
8121 fi
8122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8123 conftest.$ac_objext conftest.beam conftest.$ac_ext
8124 fi
8125
8126 fi
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8128 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8129 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8130
8131 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8132
8133 fi
8134 rm -f conftest.mmap conftest.txt
8135
8136 if test $use_mmap_for_buffers = yes; then
8137
8138 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8139
8140 REL_ALLOC=no
8141 fi
8142
8143 LIBS="$LIBS_SYSTEM $LIBS"
8144
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8146 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8147 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8148 $as_echo_n "(cached) " >&6
8149 else
8150 ac_check_lib_save_LIBS=$LIBS
8151 LIBS="-ldnet $LIBS"
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154
8155 /* Override any GCC internal prototype to avoid an error.
8156 Use char because int might match the return type of a GCC
8157 builtin and then its argument prototype would still apply. */
8158 #ifdef __cplusplus
8159 extern "C"
8160 #endif
8161 char dnet_ntoa ();
8162 int
8163 main ()
8164 {
8165 return dnet_ntoa ();
8166 ;
8167 return 0;
8168 }
8169 _ACEOF
8170 if ac_fn_c_try_link "$LINENO"; then :
8171 ac_cv_lib_dnet_dnet_ntoa=yes
8172 else
8173 ac_cv_lib_dnet_dnet_ntoa=no
8174 fi
8175 rm -f core conftest.err conftest.$ac_objext \
8176 conftest$ac_exeext conftest.$ac_ext
8177 LIBS=$ac_check_lib_save_LIBS
8178 fi
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8180 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8181 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
8182 cat >>confdefs.h <<_ACEOF
8183 #define HAVE_LIBDNET 1
8184 _ACEOF
8185
8186 LIBS="-ldnet $LIBS"
8187
8188 fi
8189
8190
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8192 $as_echo_n "checking for main in -lXbsd... " >&6; }
8193 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 ac_check_lib_save_LIBS=$LIBS
8197 LIBS="-lXbsd $LIBS"
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8200
8201
8202 int
8203 main ()
8204 {
8205 return main ();
8206 ;
8207 return 0;
8208 }
8209 _ACEOF
8210 if ac_fn_c_try_link "$LINENO"; then :
8211 ac_cv_lib_Xbsd_main=yes
8212 else
8213 ac_cv_lib_Xbsd_main=no
8214 fi
8215 rm -f core conftest.err conftest.$ac_objext \
8216 conftest$ac_exeext conftest.$ac_ext
8217 LIBS=$ac_check_lib_save_LIBS
8218 fi
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8220 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8221 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
8222 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8223 fi
8224
8225
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8227 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8228 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 ac_check_lib_save_LIBS=$LIBS
8232 LIBS="-lpthreads $LIBS"
8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234 /* end confdefs.h. */
8235
8236 /* Override any GCC internal prototype to avoid an error.
8237 Use char because int might match the return type of a GCC
8238 builtin and then its argument prototype would still apply. */
8239 #ifdef __cplusplus
8240 extern "C"
8241 #endif
8242 char cma_open ();
8243 int
8244 main ()
8245 {
8246 return cma_open ();
8247 ;
8248 return 0;
8249 }
8250 _ACEOF
8251 if ac_fn_c_try_link "$LINENO"; then :
8252 ac_cv_lib_pthreads_cma_open=yes
8253 else
8254 ac_cv_lib_pthreads_cma_open=no
8255 fi
8256 rm -f core conftest.err conftest.$ac_objext \
8257 conftest$ac_exeext conftest.$ac_ext
8258 LIBS=$ac_check_lib_save_LIBS
8259 fi
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8261 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8262 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
8263 cat >>confdefs.h <<_ACEOF
8264 #define HAVE_LIBPTHREADS 1
8265 _ACEOF
8266
8267 LIBS="-lpthreads $LIBS"
8268
8269 fi
8270
8271
8272 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8273 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8274 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8275 ## added to LIBS in configure would never contain the pthreads part,
8276 ## but the value used in Makefiles might. FIXME?
8277 ##
8278 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8279 ## be harmless on older versions of X where it happens to exist.
8280 test "$opsys" = "aix4-2" && \
8281 test $ac_cv_lib_pthreads_cma_open = yes && \
8282 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8283
8284
8285 case ${host_os} in
8286 aix*)
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8288 $as_echo_n "checking for -bbigtoc option... " >&6; }
8289 if test "${gdb_cv_bigtoc+set}" = set; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292
8293 case $GCC in
8294 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8295 *) gdb_cv_bigtoc=-bbigtoc ;;
8296 esac
8297
8298 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8301
8302 int
8303 main ()
8304 {
8305 int i;
8306 ;
8307 return 0;
8308 }
8309 _ACEOF
8310 if ac_fn_c_try_link "$LINENO"; then :
8311
8312 else
8313 gdb_cv_bigtoc=
8314 fi
8315 rm -f core conftest.err conftest.$ac_objext \
8316 conftest$ac_exeext conftest.$ac_ext
8317
8318 fi
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8320 $as_echo "$gdb_cv_bigtoc" >&6; }
8321 ;;
8322 esac
8323
8324 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8325 # used for the tests that follow. We set them back to REAL_CFLAGS and
8326 # REAL_CPPFLAGS later on.
8327
8328 REAL_CFLAGS="$CFLAGS"
8329 REAL_CPPFLAGS="$CPPFLAGS"
8330
8331 if test "${HAVE_X11}" = "yes"; then
8332 DEFS="$C_SWITCH_X_SITE $DEFS"
8333 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8334 LIBS="-lX11 $LIBS"
8335 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8336 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8337
8338 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8339 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8340 # but it's more convenient here to set LD_RUN_PATH
8341 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8342 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8343 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8344 export LD_RUN_PATH
8345 fi
8346
8347 if test "${opsys}" = "gnu-linux"; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8349 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8352
8353 int
8354 main ()
8355 {
8356 XOpenDisplay ("foo");
8357 ;
8358 return 0;
8359 }
8360 _ACEOF
8361 if ac_fn_c_try_link "$LINENO"; then :
8362 xlinux_first_failure=no
8363 else
8364 xlinux_first_failure=yes
8365 fi
8366 rm -f core conftest.err conftest.$ac_objext \
8367 conftest$ac_exeext conftest.$ac_ext
8368 if test "${xlinux_first_failure}" = "yes"; then
8369 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8370 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8371 OLD_CPPFLAGS="$CPPFLAGS"
8372 OLD_LIBS="$LIBS"
8373 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8374 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8375 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8376 LIBS="$LIBS -b i486-linuxaout"
8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8379
8380 int
8381 main ()
8382 {
8383 XOpenDisplay ("foo");
8384 ;
8385 return 0;
8386 }
8387 _ACEOF
8388 if ac_fn_c_try_link "$LINENO"; then :
8389 xlinux_second_failure=no
8390 else
8391 xlinux_second_failure=yes
8392 fi
8393 rm -f core conftest.err conftest.$ac_objext \
8394 conftest$ac_exeext conftest.$ac_ext
8395 if test "${xlinux_second_failure}" = "yes"; then
8396 # If we get the same failure with -b, there is no use adding -b.
8397 # So take it out. This plays safe.
8398 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8399 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8400 CPPFLAGS="$OLD_CPPFLAGS"
8401 LIBS="$OLD_LIBS"
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403 $as_echo "no" >&6; }
8404 else
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8406 $as_echo "yes" >&6; }
8407 fi
8408 else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8411 fi
8412 fi
8413
8414 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8415 # header files included from there.
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8417 $as_echo_n "checking for Xkb... " >&6; }
8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h. */
8420 #include <X11/Xlib.h>
8421 #include <X11/XKBlib.h>
8422 int
8423 main ()
8424 {
8425 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8426 ;
8427 return 0;
8428 }
8429 _ACEOF
8430 if ac_fn_c_try_link "$LINENO"; then :
8431 emacs_xkb=yes
8432 else
8433 emacs_xkb=no
8434 fi
8435 rm -f core conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext conftest.$ac_ext
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8438 $as_echo "$emacs_xkb" >&6; }
8439 if test $emacs_xkb = yes; then
8440
8441 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8442
8443 fi
8444
8445 for ac_func in XrmSetDatabase XScreenResourceString \
8446 XScreenNumberOfScreen XSetWMProtocols
8447 do :
8448 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8449 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8450 eval as_val=\$$as_ac_var
8451 if test "x$as_val" = x""yes; then :
8452 cat >>confdefs.h <<_ACEOF
8453 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8454 _ACEOF
8455
8456 fi
8457 done
8458
8459 fi
8460
8461 if test "${window_system}" = "x11"; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8463 $as_echo_n "checking X11 version 6... " >&6; }
8464 if test "${emacs_cv_x11_version_6+set}" = set; then :
8465 $as_echo_n "(cached) " >&6
8466 else
8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8469 #include <X11/Xlib.h>
8470 int
8471 main ()
8472 {
8473 #if XlibSpecificationRelease < 6
8474 fail;
8475 #endif
8476
8477 ;
8478 return 0;
8479 }
8480 _ACEOF
8481 if ac_fn_c_try_link "$LINENO"; then :
8482 emacs_cv_x11_version_6=yes
8483 else
8484 emacs_cv_x11_version_6=no
8485 fi
8486 rm -f core conftest.err conftest.$ac_objext \
8487 conftest$ac_exeext conftest.$ac_ext
8488 fi
8489
8490 if test $emacs_cv_x11_version_6 = yes; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8492 $as_echo "6 or newer" >&6; }
8493
8494 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8495
8496
8497 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8498
8499 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8500 ## XIM support.
8501 case "$opsys" in
8502 sol2-*) : ;;
8503 *)
8504 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8505
8506 ;;
8507 esac
8508 else
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8510 $as_echo "before 6" >&6; }
8511 fi
8512 fi
8513
8514
8515 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8516 HAVE_RSVG=no
8517 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8518 if test "${with_rsvg}" != "no"; then
8519 RSVG_REQUIRED=2.11.0
8520 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8521
8522
8523 succeeded=no
8524
8525 # Extract the first word of "pkg-config", so it can be a program name with args.
8526 set dummy pkg-config; ac_word=$2
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8528 $as_echo_n "checking for $ac_word... " >&6; }
8529 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8530 $as_echo_n "(cached) " >&6
8531 else
8532 case $PKG_CONFIG in
8533 [\\/]* | ?:[\\/]*)
8534 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8535 ;;
8536 *)
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 for as_dir in $PATH
8539 do
8540 IFS=$as_save_IFS
8541 test -z "$as_dir" && as_dir=.
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8544 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8546 break 2
8547 fi
8548 done
8549 done
8550 IFS=$as_save_IFS
8551
8552 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8553 ;;
8554 esac
8555 fi
8556 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8557 if test -n "$PKG_CONFIG"; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8559 $as_echo "$PKG_CONFIG" >&6; }
8560 else
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8563 fi
8564
8565
8566
8567 if test "$PKG_CONFIG" = "no" ; then
8568 :
8569 else
8570 PKG_CONFIG_MIN_VERSION=0.9.0
8571 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8573 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8574
8575 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8577 $as_echo "yes" >&6; }
8578 succeeded=yes
8579
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8581 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8582 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8584 $as_echo "$RSVG_CFLAGS" >&6; }
8585
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8587 $as_echo_n "checking RSVG_LIBS... " >&6; }
8588 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8590 $as_echo "$RSVG_LIBS" >&6; }
8591 else
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593 $as_echo "no" >&6; }
8594 RSVG_CFLAGS=""
8595 RSVG_LIBS=""
8596 ## If we have a custom action on failure, don't print errors, but
8597 ## do set a variable so people can do so.
8598 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8599
8600 fi
8601
8602
8603
8604 else
8605 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8606 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8607 fi
8608 fi
8609
8610 if test $succeeded = yes; then
8611 HAVE_RSVG=yes
8612 else
8613 :
8614 fi
8615
8616
8617
8618
8619 if test $HAVE_RSVG = yes; then
8620
8621 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8622
8623 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8624 LIBS="$RSVG_LIBS $LIBS"
8625 fi
8626 fi
8627 fi
8628
8629 HAVE_IMAGEMAGICK=no
8630 if test "${with_imagemagick}" != "no"; then
8631 IMAGEMAGICK_MODULE="Wand"
8632
8633 succeeded=no
8634
8635 # Extract the first word of "pkg-config", so it can be a program name with args.
8636 set dummy pkg-config; ac_word=$2
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638 $as_echo_n "checking for $ac_word... " >&6; }
8639 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8641 else
8642 case $PKG_CONFIG in
8643 [\\/]* | ?:[\\/]*)
8644 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8645 ;;
8646 *)
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 for as_dir in $PATH
8649 do
8650 IFS=$as_save_IFS
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8654 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8656 break 2
8657 fi
8658 done
8659 done
8660 IFS=$as_save_IFS
8661
8662 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8663 ;;
8664 esac
8665 fi
8666 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8667 if test -n "$PKG_CONFIG"; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8669 $as_echo "$PKG_CONFIG" >&6; }
8670 else
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672 $as_echo "no" >&6; }
8673 fi
8674
8675
8676
8677 if test "$PKG_CONFIG" = "no" ; then
8678 :
8679 else
8680 PKG_CONFIG_MIN_VERSION=0.9.0
8681 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8683 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8684
8685 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8687 $as_echo "yes" >&6; }
8688 succeeded=yes
8689
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8691 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8692 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8694 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8695
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8697 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8698 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8700 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8701 else
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703 $as_echo "no" >&6; }
8704 IMAGEMAGICK_CFLAGS=""
8705 IMAGEMAGICK_LIBS=""
8706 ## If we have a custom action on failure, don't print errors, but
8707 ## do set a variable so people can do so.
8708 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8709
8710 fi
8711
8712
8713
8714 else
8715 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8716 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8717 fi
8718 fi
8719
8720 if test $succeeded = yes; then
8721 HAVE_IMAGEMAGICK=yes
8722 else
8723 :
8724 fi
8725
8726
8727
8728
8729 if test $HAVE_IMAGEMAGICK = yes; then
8730
8731 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8732
8733 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
8734 LIBS="$IMAGEMAGICK_LIBS $LIBS"
8735 for ac_func in MagickExportImagePixels
8736 do :
8737 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8738 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
8739 cat >>confdefs.h <<_ACEOF
8740 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8741 _ACEOF
8742
8743 fi
8744 done
8745
8746 fi
8747 fi
8748
8749
8750 HAVE_GTK=no
8751 if test "${with_gtk3}" = "yes"; then
8752 GLIB_REQUIRED=2.6
8753 GTK_REQUIRED=2.90
8754 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8755
8756
8757 succeeded=no
8758
8759 # Extract the first word of "pkg-config", so it can be a program name with args.
8760 set dummy pkg-config; ac_word=$2
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 $as_echo_n "checking for $ac_word... " >&6; }
8763 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8764 $as_echo_n "(cached) " >&6
8765 else
8766 case $PKG_CONFIG in
8767 [\\/]* | ?:[\\/]*)
8768 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8769 ;;
8770 *)
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8773 do
8774 IFS=$as_save_IFS
8775 test -z "$as_dir" && as_dir=.
8776 for ac_exec_ext in '' $ac_executable_extensions; do
8777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8778 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780 break 2
8781 fi
8782 done
8783 done
8784 IFS=$as_save_IFS
8785
8786 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8787 ;;
8788 esac
8789 fi
8790 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8791 if test -n "$PKG_CONFIG"; then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8793 $as_echo "$PKG_CONFIG" >&6; }
8794 else
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 $as_echo "no" >&6; }
8797 fi
8798
8799
8800
8801 if test "$PKG_CONFIG" = "no" ; then
8802 pkg_check_gtk=no
8803 else
8804 PKG_CONFIG_MIN_VERSION=0.9.0
8805 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8807 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8808
8809 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8811 $as_echo "yes" >&6; }
8812 succeeded=yes
8813
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8815 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8816 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8818 $as_echo "$GTK_CFLAGS" >&6; }
8819
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8821 $as_echo_n "checking GTK_LIBS... " >&6; }
8822 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8824 $as_echo "$GTK_LIBS" >&6; }
8825 else
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8828 GTK_CFLAGS=""
8829 GTK_LIBS=""
8830 ## If we have a custom action on failure, don't print errors, but
8831 ## do set a variable so people can do so.
8832 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8833
8834 fi
8835
8836
8837
8838 else
8839 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8840 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8841 fi
8842 fi
8843
8844 if test $succeeded = yes; then
8845 pkg_check_gtk=yes
8846 else
8847 pkg_check_gtk=no
8848 fi
8849
8850 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8851 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8852 fi
8853 fi
8854
8855 if test "$pkg_check_gtk" != "yes"; then
8856 HAVE_GTK=no
8857 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8858 GLIB_REQUIRED=2.6
8859 GTK_REQUIRED=2.6
8860 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8861
8862
8863 succeeded=no
8864
8865 # Extract the first word of "pkg-config", so it can be a program name with args.
8866 set dummy pkg-config; ac_word=$2
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8868 $as_echo_n "checking for $ac_word... " >&6; }
8869 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8870 $as_echo_n "(cached) " >&6
8871 else
8872 case $PKG_CONFIG in
8873 [\\/]* | ?:[\\/]*)
8874 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8875 ;;
8876 *)
8877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878 for as_dir in $PATH
8879 do
8880 IFS=$as_save_IFS
8881 test -z "$as_dir" && as_dir=.
8882 for ac_exec_ext in '' $ac_executable_extensions; do
8883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8884 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8886 break 2
8887 fi
8888 done
8889 done
8890 IFS=$as_save_IFS
8891
8892 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8893 ;;
8894 esac
8895 fi
8896 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8897 if test -n "$PKG_CONFIG"; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8899 $as_echo "$PKG_CONFIG" >&6; }
8900 else
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8902 $as_echo "no" >&6; }
8903 fi
8904
8905
8906
8907 if test "$PKG_CONFIG" = "no" ; then
8908 pkg_check_gtk=no
8909 else
8910 PKG_CONFIG_MIN_VERSION=0.9.0
8911 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8913 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8914
8915 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8917 $as_echo "yes" >&6; }
8918 succeeded=yes
8919
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8921 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8922 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8924 $as_echo "$GTK_CFLAGS" >&6; }
8925
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8927 $as_echo_n "checking GTK_LIBS... " >&6; }
8928 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8930 $as_echo "$GTK_LIBS" >&6; }
8931 else
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8934 GTK_CFLAGS=""
8935 GTK_LIBS=""
8936 ## If we have a custom action on failure, don't print errors, but
8937 ## do set a variable so people can do so.
8938 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8939
8940 fi
8941
8942
8943
8944 else
8945 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8946 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8947 fi
8948 fi
8949
8950 if test $succeeded = yes; then
8951 pkg_check_gtk=yes
8952 else
8953 pkg_check_gtk=no
8954 fi
8955
8956 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8957 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8958 fi
8959 fi
8960 fi
8961
8962 GTK_OBJ=
8963 if test x"$pkg_check_gtk" = xyes; then
8964
8965
8966
8967 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8968 CFLAGS="$CFLAGS $GTK_CFLAGS"
8969 LIBS="$GTK_LIBS $LIBS"
8970 GTK_COMPILES=no
8971 for ac_func in gtk_main
8972 do :
8973 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8974 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8975 cat >>confdefs.h <<_ACEOF
8976 #define HAVE_GTK_MAIN 1
8977 _ACEOF
8978 GTK_COMPILES=yes
8979 fi
8980 done
8981
8982 if test "${GTK_COMPILES}" != "yes"; then
8983 if test "$USE_X_TOOLKIT" != "maybe"; then
8984 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8985 fi
8986 else
8987 HAVE_GTK=yes
8988
8989 $as_echo "#define USE_GTK 1" >>confdefs.h
8990
8991 GTK_OBJ=gtkutil.o
8992 USE_X_TOOLKIT=none
8993 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8994 :
8995 else
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8997 closing open displays. This is no problem if you just use
8998 one display, but if you use more than one and close one of them
8999 Emacs may crash." >&5
9000 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
9001 closing open displays. This is no problem if you just use
9002 one display, but if you use more than one and close one of them
9003 Emacs may crash." >&2;}
9004 sleep 3
9005 fi
9006 fi
9007
9008 fi
9009
9010
9011
9012 if test "${HAVE_GTK}" = "yes"; then
9013
9014 if test "$with_toolkit_scroll_bars" != no; then
9015 with_toolkit_scroll_bars=yes
9016 fi
9017
9018 HAVE_GTK_FILE_SELECTION=no
9019 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9020 #include <gtk/gtk.h>
9021 "
9022 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
9023 HAVE_GTK_FILE_SELECTION=yes
9024 else
9025 HAVE_GTK_FILE_SELECTION=no
9026 fi
9027
9028 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9029 for ac_func in gtk_file_selection_new
9030 do :
9031 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9032 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
9033 cat >>confdefs.h <<_ACEOF
9034 #define HAVE_GTK_FILE_SELECTION_NEW 1
9035 _ACEOF
9036
9037 fi
9038 done
9039
9040 fi
9041
9042 HAVE_GTK_AND_PTHREAD=no
9043 for ac_header in pthread.h
9044 do :
9045 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9046 if test "x$ac_cv_header_pthread_h" = x""yes; then :
9047 cat >>confdefs.h <<_ACEOF
9048 #define HAVE_PTHREAD_H 1
9049 _ACEOF
9050
9051 fi
9052
9053 done
9054
9055 if test "$ac_cv_header_pthread_h"; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9057 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9058 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9059 $as_echo_n "(cached) " >&6
9060 else
9061 ac_check_lib_save_LIBS=$LIBS
9062 LIBS="-lpthread $LIBS"
9063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064 /* end confdefs.h. */
9065
9066 /* Override any GCC internal prototype to avoid an error.
9067 Use char because int might match the return type of a GCC
9068 builtin and then its argument prototype would still apply. */
9069 #ifdef __cplusplus
9070 extern "C"
9071 #endif
9072 char pthread_self ();
9073 int
9074 main ()
9075 {
9076 return pthread_self ();
9077 ;
9078 return 0;
9079 }
9080 _ACEOF
9081 if ac_fn_c_try_link "$LINENO"; then :
9082 ac_cv_lib_pthread_pthread_self=yes
9083 else
9084 ac_cv_lib_pthread_pthread_self=no
9085 fi
9086 rm -f core conftest.err conftest.$ac_objext \
9087 conftest$ac_exeext conftest.$ac_ext
9088 LIBS=$ac_check_lib_save_LIBS
9089 fi
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9091 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9092 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
9093 HAVE_GTK_AND_PTHREAD=yes
9094 fi
9095
9096 fi
9097 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9098 case "${canonical}" in
9099 *-hpux*) ;;
9100 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
9101 esac
9102
9103 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9104
9105 fi
9106
9107 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
9108 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9109 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9110 gtk_orientable_set_orientation
9111 do :
9112 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9113 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9114 eval as_val=\$$as_ac_var
9115 if test "x$as_val" = x""yes; then :
9116 cat >>confdefs.h <<_ACEOF
9117 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9118 _ACEOF
9119
9120 fi
9121 done
9122
9123
9124 fi
9125
9126 HAVE_DBUS=no
9127 DBUS_OBJ=
9128 if test "${with_dbus}" = "yes"; then
9129
9130 succeeded=no
9131
9132 # Extract the first word of "pkg-config", so it can be a program name with args.
9133 set dummy pkg-config; ac_word=$2
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9135 $as_echo_n "checking for $ac_word... " >&6; }
9136 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9137 $as_echo_n "(cached) " >&6
9138 else
9139 case $PKG_CONFIG in
9140 [\\/]* | ?:[\\/]*)
9141 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9142 ;;
9143 *)
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in $PATH
9146 do
9147 IFS=$as_save_IFS
9148 test -z "$as_dir" && as_dir=.
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9151 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153 break 2
9154 fi
9155 done
9156 done
9157 IFS=$as_save_IFS
9158
9159 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9160 ;;
9161 esac
9162 fi
9163 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9164 if test -n "$PKG_CONFIG"; then
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9166 $as_echo "$PKG_CONFIG" >&6; }
9167 else
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9170 fi
9171
9172
9173
9174 if test "$PKG_CONFIG" = "no" ; then
9175 HAVE_DBUS=no
9176 else
9177 PKG_CONFIG_MIN_VERSION=0.9.0
9178 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9180 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9181
9182 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9184 $as_echo "yes" >&6; }
9185 succeeded=yes
9186
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9188 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9189 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9191 $as_echo "$DBUS_CFLAGS" >&6; }
9192
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9194 $as_echo_n "checking DBUS_LIBS... " >&6; }
9195 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9197 $as_echo "$DBUS_LIBS" >&6; }
9198 else
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200 $as_echo "no" >&6; }
9201 DBUS_CFLAGS=""
9202 DBUS_LIBS=""
9203 ## If we have a custom action on failure, don't print errors, but
9204 ## do set a variable so people can do so.
9205 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9206
9207 fi
9208
9209
9210
9211 else
9212 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9213 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9214 fi
9215 fi
9216
9217 if test $succeeded = yes; then
9218 HAVE_DBUS=yes
9219 else
9220 HAVE_DBUS=no
9221 fi
9222
9223 if test "$HAVE_DBUS" = yes; then
9224 LIBS="$LIBS $DBUS_LIBS"
9225
9226 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9227
9228 for ac_func in dbus_watch_get_unix_fd
9229 do :
9230 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9231 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
9232 cat >>confdefs.h <<_ACEOF
9233 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9234 _ACEOF
9235
9236 fi
9237 done
9238
9239 DBUS_OBJ=dbusbind.o
9240 fi
9241 fi
9242
9243
9244 HAVE_GCONF=no
9245 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9246
9247 succeeded=no
9248
9249 # Extract the first word of "pkg-config", so it can be a program name with args.
9250 set dummy pkg-config; ac_word=$2
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9252 $as_echo_n "checking for $ac_word... " >&6; }
9253 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9254 $as_echo_n "(cached) " >&6
9255 else
9256 case $PKG_CONFIG in
9257 [\\/]* | ?:[\\/]*)
9258 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9259 ;;
9260 *)
9261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262 for as_dir in $PATH
9263 do
9264 IFS=$as_save_IFS
9265 test -z "$as_dir" && as_dir=.
9266 for ac_exec_ext in '' $ac_executable_extensions; do
9267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9268 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9270 break 2
9271 fi
9272 done
9273 done
9274 IFS=$as_save_IFS
9275
9276 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9277 ;;
9278 esac
9279 fi
9280 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9281 if test -n "$PKG_CONFIG"; then
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9283 $as_echo "$PKG_CONFIG" >&6; }
9284 else
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286 $as_echo "no" >&6; }
9287 fi
9288
9289
9290
9291 if test "$PKG_CONFIG" = "no" ; then
9292 HAVE_GCONF=no
9293 else
9294 PKG_CONFIG_MIN_VERSION=0.9.0
9295 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9297 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9298
9299 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9301 $as_echo "yes" >&6; }
9302 succeeded=yes
9303
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9305 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9306 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9308 $as_echo "$GCONF_CFLAGS" >&6; }
9309
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9311 $as_echo_n "checking GCONF_LIBS... " >&6; }
9312 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9314 $as_echo "$GCONF_LIBS" >&6; }
9315 else
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317 $as_echo "no" >&6; }
9318 GCONF_CFLAGS=""
9319 GCONF_LIBS=""
9320 ## If we have a custom action on failure, don't print errors, but
9321 ## do set a variable so people can do so.
9322 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9323
9324 fi
9325
9326
9327
9328 else
9329 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9330 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9331 fi
9332 fi
9333
9334 if test $succeeded = yes; then
9335 HAVE_GCONF=yes
9336 else
9337 HAVE_GCONF=no
9338 fi
9339
9340 if test "$HAVE_GCONF" = yes; then
9341
9342 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9343
9344 fi
9345 fi
9346
9347 HAVE_LIBSELINUX=no
9348 LIBSELINUX_LIBS=
9349 if test "${with_selinux}" = "yes"; then
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9351 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9352 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9353 $as_echo_n "(cached) " >&6
9354 else
9355 ac_check_lib_save_LIBS=$LIBS
9356 LIBS="-lselinux $LIBS"
9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9359
9360 /* Override any GCC internal prototype to avoid an error.
9361 Use char because int might match the return type of a GCC
9362 builtin and then its argument prototype would still apply. */
9363 #ifdef __cplusplus
9364 extern "C"
9365 #endif
9366 char lgetfilecon ();
9367 int
9368 main ()
9369 {
9370 return lgetfilecon ();
9371 ;
9372 return 0;
9373 }
9374 _ACEOF
9375 if ac_fn_c_try_link "$LINENO"; then :
9376 ac_cv_lib_selinux_lgetfilecon=yes
9377 else
9378 ac_cv_lib_selinux_lgetfilecon=no
9379 fi
9380 rm -f core conftest.err conftest.$ac_objext \
9381 conftest$ac_exeext conftest.$ac_ext
9382 LIBS=$ac_check_lib_save_LIBS
9383 fi
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9385 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9386 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
9387 HAVE_LIBSELINUX=yes
9388 else
9389 HAVE_LIBSELINUX=no
9390 fi
9391
9392 if test "$HAVE_LIBSELINUX" = yes; then
9393
9394 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9395
9396 LIBSELINUX_LIBS=-lselinux
9397 fi
9398 fi
9399
9400
9401 HAVE_XAW3D=no
9402 LUCID_LIBW=
9403 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9404 if test "$with_xaw3d" != no; then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9406 $as_echo_n "checking for xaw3d... " >&6; }
9407 if test "${emacs_cv_xaw3d+set}" = set; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9412
9413 #include <X11/Intrinsic.h>
9414 #include <X11/Xaw3d/Simple.h>
9415 int
9416 main ()
9417 {
9418
9419 ;
9420 return 0;
9421 }
9422 _ACEOF
9423 if ac_fn_c_try_link "$LINENO"; then :
9424 emacs_cv_xaw3d=yes
9425 else
9426 emacs_cv_xaw3d=no
9427 fi
9428 rm -f core conftest.err conftest.$ac_objext \
9429 conftest$ac_exeext conftest.$ac_ext
9430 fi
9431
9432 else
9433 emacs_cv_xaw3d=no
9434 fi
9435 if test $emacs_cv_xaw3d = yes; then
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9437 $as_echo "yes; using Lucid toolkit" >&6; }
9438 USE_X_TOOLKIT=LUCID
9439 HAVE_XAW3D=yes
9440 LUCID_LIBW=-lXaw3d
9441
9442 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9443
9444 else
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9446 $as_echo "no" >&6; }
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9448 $as_echo_n "checking for libXaw... " >&6; }
9449 if test "${emacs_cv_xaw+set}" = set; then :
9450 $as_echo_n "(cached) " >&6
9451 else
9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9454
9455 #include <X11/Intrinsic.h>
9456 #include <X11/Xaw/Simple.h>
9457 int
9458 main ()
9459 {
9460
9461 ;
9462 return 0;
9463 }
9464 _ACEOF
9465 if ac_fn_c_try_link "$LINENO"; then :
9466 emacs_cv_xaw=yes
9467 else
9468 emacs_cv_xaw=no
9469 fi
9470 rm -f core conftest.err conftest.$ac_objext \
9471 conftest$ac_exeext conftest.$ac_ext
9472 fi
9473
9474 if test $emacs_cv_xaw = yes; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9476 $as_echo "yes; using Lucid toolkit" >&6; }
9477 USE_X_TOOLKIT=LUCID
9478 LUCID_LIBW=-lXaw
9479 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9480 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9481 else
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9483 $as_echo "no; do not use toolkit by default" >&6; }
9484 USE_X_TOOLKIT=none
9485 fi
9486 fi
9487 fi
9488
9489 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9490
9491 LIBXTR6=
9492 if test "${USE_X_TOOLKIT}" != "none"; then
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9494 $as_echo_n "checking X11 toolkit version... " >&6; }
9495 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9496 $as_echo_n "(cached) " >&6
9497 else
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500 #include <X11/Intrinsic.h>
9501 int
9502 main ()
9503 {
9504 #if XtSpecificationRelease < 6
9505 fail;
9506 #endif
9507
9508 ;
9509 return 0;
9510 }
9511 _ACEOF
9512 if ac_fn_c_try_link "$LINENO"; then :
9513 emacs_cv_x11_toolkit_version_6=yes
9514 else
9515 emacs_cv_x11_toolkit_version_6=no
9516 fi
9517 rm -f core conftest.err conftest.$ac_objext \
9518 conftest$ac_exeext conftest.$ac_ext
9519 fi
9520
9521 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9522 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9524 $as_echo "6 or newer" >&6; }
9525
9526 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9527
9528 LIBXTR6="-lSM -lICE"
9529 case "$opsys" in
9530 ## Use libw.a along with X11R6 Xt.
9531 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9532 esac
9533 else
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9535 $as_echo "before 6" >&6; }
9536 fi
9537
9538 OLDLIBS="$LIBS"
9539 if test x$HAVE_X11XTR6 = xyes; then
9540 LIBS="-lXt -lSM -lICE $LIBS"
9541 else
9542 LIBS="-lXt $LIBS"
9543 fi
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9545 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9546 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9547 $as_echo_n "(cached) " >&6
9548 else
9549 ac_check_lib_save_LIBS=$LIBS
9550 LIBS="-lXmu $LIBS"
9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9552 /* end confdefs.h. */
9553
9554 /* Override any GCC internal prototype to avoid an error.
9555 Use char because int might match the return type of a GCC
9556 builtin and then its argument prototype would still apply. */
9557 #ifdef __cplusplus
9558 extern "C"
9559 #endif
9560 char XmuConvertStandardSelection ();
9561 int
9562 main ()
9563 {
9564 return XmuConvertStandardSelection ();
9565 ;
9566 return 0;
9567 }
9568 _ACEOF
9569 if ac_fn_c_try_link "$LINENO"; then :
9570 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9571 else
9572 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9573 fi
9574 rm -f core conftest.err conftest.$ac_objext \
9575 conftest$ac_exeext conftest.$ac_ext
9576 LIBS=$ac_check_lib_save_LIBS
9577 fi
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9579 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9580 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9581 cat >>confdefs.h <<_ACEOF
9582 #define HAVE_LIBXMU 1
9583 _ACEOF
9584
9585 LIBS="-lXmu $LIBS"
9586
9587 fi
9588
9589 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9590 fi
9591
9592
9593 LIBXMU=-lXmu
9594 case "$machine" in
9595 ## These machines don't supply Xmu.
9596 hpux* | aix4-2 )
9597 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9598 ;;
9599 esac
9600
9601
9602 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9603 if test "${HAVE_X11}" = "yes"; then
9604 if test "${USE_X_TOOLKIT}" != "none"; then
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9606 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9607 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9608 $as_echo_n "(cached) " >&6
9609 else
9610 ac_check_lib_save_LIBS=$LIBS
9611 LIBS="-lXext $LIBS"
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9614
9615 /* Override any GCC internal prototype to avoid an error.
9616 Use char because int might match the return type of a GCC
9617 builtin and then its argument prototype would still apply. */
9618 #ifdef __cplusplus
9619 extern "C"
9620 #endif
9621 char XShapeQueryExtension ();
9622 int
9623 main ()
9624 {
9625 return XShapeQueryExtension ();
9626 ;
9627 return 0;
9628 }
9629 _ACEOF
9630 if ac_fn_c_try_link "$LINENO"; then :
9631 ac_cv_lib_Xext_XShapeQueryExtension=yes
9632 else
9633 ac_cv_lib_Xext_XShapeQueryExtension=no
9634 fi
9635 rm -f core conftest.err conftest.$ac_objext \
9636 conftest$ac_exeext conftest.$ac_ext
9637 LIBS=$ac_check_lib_save_LIBS
9638 fi
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9640 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9641 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9642 cat >>confdefs.h <<_ACEOF
9643 #define HAVE_LIBXEXT 1
9644 _ACEOF
9645
9646 LIBS="-lXext $LIBS"
9647
9648 fi
9649
9650 fi
9651 fi
9652
9653 LIBXP=
9654 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9656 $as_echo_n "checking for Motif version 2.1... " >&6; }
9657 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9658 $as_echo_n "(cached) " >&6
9659 else
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9662 #include <Xm/Xm.h>
9663 int
9664 main ()
9665 {
9666 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9667 int x = 5;
9668 #else
9669 Motif version prior to 2.1.
9670 #endif
9671 ;
9672 return 0;
9673 }
9674 _ACEOF
9675 if ac_fn_c_try_compile "$LINENO"; then :
9676 emacs_cv_motif_version_2_1=yes
9677 else
9678 emacs_cv_motif_version_2_1=no
9679 fi
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 fi
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9683 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9684 if test $emacs_cv_motif_version_2_1 = yes; then
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9686 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9687 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9688 $as_echo_n "(cached) " >&6
9689 else
9690 ac_check_lib_save_LIBS=$LIBS
9691 LIBS="-lXp $LIBS"
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9694
9695 /* Override any GCC internal prototype to avoid an error.
9696 Use char because int might match the return type of a GCC
9697 builtin and then its argument prototype would still apply. */
9698 #ifdef __cplusplus
9699 extern "C"
9700 #endif
9701 char XpCreateContext ();
9702 int
9703 main ()
9704 {
9705 return XpCreateContext ();
9706 ;
9707 return 0;
9708 }
9709 _ACEOF
9710 if ac_fn_c_try_link "$LINENO"; then :
9711 ac_cv_lib_Xp_XpCreateContext=yes
9712 else
9713 ac_cv_lib_Xp_XpCreateContext=no
9714 fi
9715 rm -f core conftest.err conftest.$ac_objext \
9716 conftest$ac_exeext conftest.$ac_ext
9717 LIBS=$ac_check_lib_save_LIBS
9718 fi
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9720 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9721 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9722 LIBXP=-lXp
9723 fi
9724
9725 else
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9727 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9728 if test "${emacs_cv_lesstif+set}" = set; then :
9729 $as_echo_n "(cached) " >&6
9730 else
9731 # We put this in CFLAGS temporarily to precede other -I options
9732 # that might be in CFLAGS temporarily.
9733 # We put this in CPPFLAGS where it precedes the other -I options.
9734 OLD_CPPFLAGS=$CPPFLAGS
9735 OLD_CFLAGS=$CFLAGS
9736 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9737 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9740 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9741 int
9742 main ()
9743 {
9744 int x = 5;
9745 ;
9746 return 0;
9747 }
9748 _ACEOF
9749 if ac_fn_c_try_compile "$LINENO"; then :
9750 emacs_cv_lesstif=yes
9751 else
9752 emacs_cv_lesstif=no
9753 fi
9754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9755 fi
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9757 $as_echo "$emacs_cv_lesstif" >&6; }
9758 if test $emacs_cv_lesstif = yes; then
9759 # Make sure this -I option remains in CPPFLAGS after it is set
9760 # back to REAL_CPPFLAGS.
9761 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9762 # have those other -I options anyway. Ultimately, having this
9763 # directory ultimately in CPPFLAGS will be enough.
9764 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9765 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9766 else
9767 CFLAGS=$OLD_CFLAGS
9768 CPPFLAGS=$OLD_CPPFLAGS
9769 fi
9770 fi
9771 fi
9772
9773
9774 USE_TOOLKIT_SCROLL_BARS=no
9775 if test "${with_toolkit_scroll_bars}" != "no"; then
9776 if test "${USE_X_TOOLKIT}" != "none"; then
9777 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9778 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9779
9780 HAVE_XAW3D=no
9781 USE_TOOLKIT_SCROLL_BARS=yes
9782 elif test "${HAVE_XAW3D}" = "yes"; then
9783 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9784
9785 USE_TOOLKIT_SCROLL_BARS=yes
9786 fi
9787 elif test "${HAVE_GTK}" = "yes"; then
9788 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9789
9790 USE_TOOLKIT_SCROLL_BARS=yes
9791 elif test "${HAVE_NS}" = "yes"; then
9792 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9793
9794 USE_TOOLKIT_SCROLL_BARS=yes
9795 fi
9796 fi
9797
9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9800
9801 #include <X11/Xlib.h>
9802 #include <X11/Xresource.h>
9803 int
9804 main ()
9805 {
9806 XIMProc callback;
9807 ;
9808 return 0;
9809 }
9810 _ACEOF
9811 if ac_fn_c_try_compile "$LINENO"; then :
9812 HAVE_XIM=yes
9813
9814 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9815
9816 else
9817 HAVE_XIM=no
9818 fi
9819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9820
9821
9822 if test "${with_xim}" != "no"; then
9823
9824 $as_echo "#define USE_XIM 1" >>confdefs.h
9825
9826 fi
9827
9828
9829 if test "${HAVE_XIM}" != "no"; then
9830 late_CFLAGS=$CFLAGS
9831 if test "$GCC" = yes; then
9832 CFLAGS="$CFLAGS --pedantic-errors"
9833 fi
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9836
9837 #include <X11/Xlib.h>
9838 #include <X11/Xresource.h>
9839 int
9840 main ()
9841 {
9842 Display *display;
9843 XrmDatabase db;
9844 char *res_name;
9845 char *res_class;
9846 XIMProc callback;
9847 XPointer *client_data;
9848 #ifndef __GNUC__
9849 /* If we're not using GCC, it's probably not XFree86, and this is
9850 probably right, but we can't use something like --pedantic-errors. */
9851 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9852 char*, XIMProc, XPointer*);
9853 #endif
9854 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9855 client_data);
9856 ;
9857 return 0;
9858 }
9859 _ACEOF
9860 if ac_fn_c_try_compile "$LINENO"; then :
9861 emacs_cv_arg6_star=yes
9862 fi
9863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9864 if test "$emacs_cv_arg6_star" = yes; then
9865 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9866
9867 else
9868 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9869
9870 fi
9871 CFLAGS=$late_CFLAGS
9872 fi
9873
9874 ### Start of font-backend (under any platform) section.
9875 # (nothing here yet -- this is a placeholder)
9876 ### End of font-backend (under any platform) section.
9877
9878 ### Start of font-backend (under X11) section.
9879 if test "${HAVE_X11}" = "yes"; then
9880
9881 succeeded=no
9882
9883 # Extract the first word of "pkg-config", so it can be a program name with args.
9884 set dummy pkg-config; ac_word=$2
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9886 $as_echo_n "checking for $ac_word... " >&6; }
9887 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9888 $as_echo_n "(cached) " >&6
9889 else
9890 case $PKG_CONFIG in
9891 [\\/]* | ?:[\\/]*)
9892 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9893 ;;
9894 *)
9895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9896 for as_dir in $PATH
9897 do
9898 IFS=$as_save_IFS
9899 test -z "$as_dir" && as_dir=.
9900 for ac_exec_ext in '' $ac_executable_extensions; do
9901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9902 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9904 break 2
9905 fi
9906 done
9907 done
9908 IFS=$as_save_IFS
9909
9910 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9911 ;;
9912 esac
9913 fi
9914 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9915 if test -n "$PKG_CONFIG"; then
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9917 $as_echo "$PKG_CONFIG" >&6; }
9918 else
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9920 $as_echo "no" >&6; }
9921 fi
9922
9923
9924
9925 if test "$PKG_CONFIG" = "no" ; then
9926 HAVE_FC=no
9927 else
9928 PKG_CONFIG_MIN_VERSION=0.9.0
9929 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9931 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9932
9933 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9935 $as_echo "yes" >&6; }
9936 succeeded=yes
9937
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9939 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9940 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9942 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9943
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9945 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9946 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9948 $as_echo "$FONTCONFIG_LIBS" >&6; }
9949 else
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9952 FONTCONFIG_CFLAGS=""
9953 FONTCONFIG_LIBS=""
9954 ## If we have a custom action on failure, don't print errors, but
9955 ## do set a variable so people can do so.
9956 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9957
9958 fi
9959
9960
9961
9962 else
9963 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9964 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9965 fi
9966 fi
9967
9968 if test $succeeded = yes; then
9969 HAVE_FC=yes
9970 else
9971 HAVE_FC=no
9972 fi
9973
9974
9975 ## Use -lXft if available, unless `--with-xft=no'.
9976 HAVE_XFT=maybe
9977 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
9978 with_xft="no";
9979 fi
9980 if test "x${with_xft}" != "xno"; then
9981
9982
9983 succeeded=no
9984
9985 # Extract the first word of "pkg-config", so it can be a program name with args.
9986 set dummy pkg-config; ac_word=$2
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988 $as_echo_n "checking for $ac_word... " >&6; }
9989 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9990 $as_echo_n "(cached) " >&6
9991 else
9992 case $PKG_CONFIG in
9993 [\\/]* | ?:[\\/]*)
9994 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9995 ;;
9996 *)
9997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9998 for as_dir in $PATH
9999 do
10000 IFS=$as_save_IFS
10001 test -z "$as_dir" && as_dir=.
10002 for ac_exec_ext in '' $ac_executable_extensions; do
10003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10004 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10006 break 2
10007 fi
10008 done
10009 done
10010 IFS=$as_save_IFS
10011
10012 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10013 ;;
10014 esac
10015 fi
10016 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10017 if test -n "$PKG_CONFIG"; then
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10019 $as_echo "$PKG_CONFIG" >&6; }
10020 else
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10022 $as_echo "no" >&6; }
10023 fi
10024
10025
10026
10027 if test "$PKG_CONFIG" = "no" ; then
10028 HAVE_XFT=no
10029 else
10030 PKG_CONFIG_MIN_VERSION=0.9.0
10031 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10033 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10034
10035 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10037 $as_echo "yes" >&6; }
10038 succeeded=yes
10039
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10041 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10042 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10044 $as_echo "$XFT_CFLAGS" >&6; }
10045
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10047 $as_echo_n "checking XFT_LIBS... " >&6; }
10048 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10050 $as_echo "$XFT_LIBS" >&6; }
10051 else
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10054 XFT_CFLAGS=""
10055 XFT_LIBS=""
10056 ## If we have a custom action on failure, don't print errors, but
10057 ## do set a variable so people can do so.
10058 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10059
10060 fi
10061
10062
10063
10064 else
10065 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10066 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10067 fi
10068 fi
10069
10070 if test $succeeded = yes; then
10071 :
10072 else
10073 HAVE_XFT=no
10074 fi
10075
10076 ## Because xftfont.c uses XRenderQueryExtension, we also
10077 ## need to link to -lXrender.
10078 HAVE_XRENDER=no
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10080 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10081 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
10082 $as_echo_n "(cached) " >&6
10083 else
10084 ac_check_lib_save_LIBS=$LIBS
10085 LIBS="-lXrender $LIBS"
10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h. */
10088
10089 /* Override any GCC internal prototype to avoid an error.
10090 Use char because int might match the return type of a GCC
10091 builtin and then its argument prototype would still apply. */
10092 #ifdef __cplusplus
10093 extern "C"
10094 #endif
10095 char XRenderQueryExtension ();
10096 int
10097 main ()
10098 {
10099 return XRenderQueryExtension ();
10100 ;
10101 return 0;
10102 }
10103 _ACEOF
10104 if ac_fn_c_try_link "$LINENO"; then :
10105 ac_cv_lib_Xrender_XRenderQueryExtension=yes
10106 else
10107 ac_cv_lib_Xrender_XRenderQueryExtension=no
10108 fi
10109 rm -f core conftest.err conftest.$ac_objext \
10110 conftest$ac_exeext conftest.$ac_ext
10111 LIBS=$ac_check_lib_save_LIBS
10112 fi
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10114 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10115 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
10116 HAVE_XRENDER=yes
10117 fi
10118
10119 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
10120 OLD_CPPFLAGS="$CPPFLAGS"
10121 OLD_CFLAGS="$CFLAGS"
10122 OLD_LIBS="$LIBS"
10123 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
10124 CFLAGS="$CFLAGS $XFT_CFLAGS"
10125 XFT_LIBS="-lXrender $XFT_LIBS"
10126 LIBS="$XFT_LIBS $LIBS"
10127 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10128 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10130 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10131 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
10132 $as_echo_n "(cached) " >&6
10133 else
10134 ac_check_lib_save_LIBS=$LIBS
10135 LIBS="-lXft $XFT_LIBS $LIBS"
10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137 /* end confdefs.h. */
10138
10139 /* Override any GCC internal prototype to avoid an error.
10140 Use char because int might match the return type of a GCC
10141 builtin and then its argument prototype would still apply. */
10142 #ifdef __cplusplus
10143 extern "C"
10144 #endif
10145 char XftFontOpen ();
10146 int
10147 main ()
10148 {
10149 return XftFontOpen ();
10150 ;
10151 return 0;
10152 }
10153 _ACEOF
10154 if ac_fn_c_try_link "$LINENO"; then :
10155 ac_cv_lib_Xft_XftFontOpen=yes
10156 else
10157 ac_cv_lib_Xft_XftFontOpen=no
10158 fi
10159 rm -f core conftest.err conftest.$ac_objext \
10160 conftest$ac_exeext conftest.$ac_ext
10161 LIBS=$ac_check_lib_save_LIBS
10162 fi
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10164 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10165 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
10166 HAVE_XFT=yes
10167 fi
10168
10169 fi
10170
10171
10172
10173 if test "${HAVE_XFT}" = "yes"; then
10174
10175 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10176
10177
10178 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
10179 else
10180 CPPFLAGS="$OLD_CPPFLAGS"
10181 CFLAGS="$OLD_CFLAGS"
10182 LIBS="$OLD_LIBS"
10183 fi # "${HAVE_XFT}" = "yes"
10184 fi # "$HAVE_XFT" != no
10185 fi # "x${with_xft}" != "xno"
10186
10187 if test "$HAVE_XFT" != "yes"; then
10188 HAVE_XFT=no
10189 fi
10190
10191
10192 HAVE_FREETYPE=no
10193 ## We used to allow building with FreeType and without Xft.
10194 ## However, the ftx font backend driver is not in good shape.
10195 if test "${HAVE_XFT}" = "yes"; then
10196 HAVE_FREETYPE=yes
10197 FONTCONFIG_CFLAGS=
10198 FONTCONFIG_LIBS=
10199 fi
10200
10201 HAVE_LIBOTF=no
10202 if test "${HAVE_FREETYPE}" = "yes"; then
10203
10204 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10205
10206 if test "${with_libotf}" != "no"; then
10207
10208 succeeded=no
10209
10210 # Extract the first word of "pkg-config", so it can be a program name with args.
10211 set dummy pkg-config; ac_word=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 case $PKG_CONFIG in
10218 [\\/]* | ?:[\\/]*)
10219 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10220 ;;
10221 *)
10222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223 for as_dir in $PATH
10224 do
10225 IFS=$as_save_IFS
10226 test -z "$as_dir" && as_dir=.
10227 for ac_exec_ext in '' $ac_executable_extensions; do
10228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10229 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10231 break 2
10232 fi
10233 done
10234 done
10235 IFS=$as_save_IFS
10236
10237 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10238 ;;
10239 esac
10240 fi
10241 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10242 if test -n "$PKG_CONFIG"; then
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10244 $as_echo "$PKG_CONFIG" >&6; }
10245 else
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247 $as_echo "no" >&6; }
10248 fi
10249
10250
10251
10252 if test "$PKG_CONFIG" = "no" ; then
10253 HAVE_LIBOTF=no
10254 else
10255 PKG_CONFIG_MIN_VERSION=0.9.0
10256 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10258 $as_echo_n "checking for libotf... " >&6; }
10259
10260 if $PKG_CONFIG --exists "libotf" 2>&5; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10262 $as_echo "yes" >&6; }
10263 succeeded=yes
10264
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10266 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10267 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10269 $as_echo "$LIBOTF_CFLAGS" >&6; }
10270
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10272 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10273 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10275 $as_echo "$LIBOTF_LIBS" >&6; }
10276 else
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10279 LIBOTF_CFLAGS=""
10280 LIBOTF_LIBS=""
10281 ## If we have a custom action on failure, don't print errors, but
10282 ## do set a variable so people can do so.
10283 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10284
10285 fi
10286
10287
10288
10289 else
10290 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10291 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10292 fi
10293 fi
10294
10295 if test $succeeded = yes; then
10296 HAVE_LIBOTF=yes
10297 else
10298 HAVE_LIBOTF=no
10299 fi
10300
10301 if test "$HAVE_LIBOTF" = "yes"; then
10302
10303 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10304
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10306 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10307 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10308 $as_echo_n "(cached) " >&6
10309 else
10310 ac_check_lib_save_LIBS=$LIBS
10311 LIBS="-lotf $LIBS"
10312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10313 /* end confdefs.h. */
10314
10315 /* Override any GCC internal prototype to avoid an error.
10316 Use char because int might match the return type of a GCC
10317 builtin and then its argument prototype would still apply. */
10318 #ifdef __cplusplus
10319 extern "C"
10320 #endif
10321 char OTF_get_variation_glyphs ();
10322 int
10323 main ()
10324 {
10325 return OTF_get_variation_glyphs ();
10326 ;
10327 return 0;
10328 }
10329 _ACEOF
10330 if ac_fn_c_try_link "$LINENO"; then :
10331 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
10332 else
10333 ac_cv_lib_otf_OTF_get_variation_glyphs=no
10334 fi
10335 rm -f core conftest.err conftest.$ac_objext \
10336 conftest$ac_exeext conftest.$ac_ext
10337 LIBS=$ac_check_lib_save_LIBS
10338 fi
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10340 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10341 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
10342 HAVE_OTF_GET_VARIATION_GLYPHS=yes
10343 else
10344 HAVE_OTF_GET_VARIATION_GLYPHS=no
10345 fi
10346
10347 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10348
10349 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10350
10351 fi
10352 fi
10353 fi
10354 fi
10355
10356 HAVE_M17N_FLT=no
10357 if test "${HAVE_LIBOTF}" = yes; then
10358 if test "${with_m17n_flt}" != "no"; then
10359
10360 succeeded=no
10361
10362 # Extract the first word of "pkg-config", so it can be a program name with args.
10363 set dummy pkg-config; ac_word=$2
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10365 $as_echo_n "checking for $ac_word... " >&6; }
10366 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10367 $as_echo_n "(cached) " >&6
10368 else
10369 case $PKG_CONFIG in
10370 [\\/]* | ?:[\\/]*)
10371 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10372 ;;
10373 *)
10374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10375 for as_dir in $PATH
10376 do
10377 IFS=$as_save_IFS
10378 test -z "$as_dir" && as_dir=.
10379 for ac_exec_ext in '' $ac_executable_extensions; do
10380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10381 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10383 break 2
10384 fi
10385 done
10386 done
10387 IFS=$as_save_IFS
10388
10389 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10390 ;;
10391 esac
10392 fi
10393 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10394 if test -n "$PKG_CONFIG"; then
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10396 $as_echo "$PKG_CONFIG" >&6; }
10397 else
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399 $as_echo "no" >&6; }
10400 fi
10401
10402
10403
10404 if test "$PKG_CONFIG" = "no" ; then
10405 HAVE_M17N_FLT=no
10406 else
10407 PKG_CONFIG_MIN_VERSION=0.9.0
10408 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10410 $as_echo_n "checking for m17n-flt... " >&6; }
10411
10412 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10414 $as_echo "yes" >&6; }
10415 succeeded=yes
10416
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10418 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10419 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10421 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10422
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10424 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10425 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10427 $as_echo "$M17N_FLT_LIBS" >&6; }
10428 else
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10430 $as_echo "no" >&6; }
10431 M17N_FLT_CFLAGS=""
10432 M17N_FLT_LIBS=""
10433 ## If we have a custom action on failure, don't print errors, but
10434 ## do set a variable so people can do so.
10435 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10436
10437 fi
10438
10439
10440
10441 else
10442 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10443 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10444 fi
10445 fi
10446
10447 if test $succeeded = yes; then
10448 HAVE_M17N_FLT=yes
10449 else
10450 HAVE_M17N_FLT=no
10451 fi
10452
10453 if test "$HAVE_M17N_FLT" = "yes"; then
10454
10455 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10456
10457 fi
10458 fi
10459 fi
10460 else
10461 HAVE_XFT=no
10462 HAVE_FREETYPE=no
10463 HAVE_LIBOTF=no
10464 HAVE_M17N_FLT=no
10465 fi
10466
10467 ### End of font-backend (under X11) section.
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478 ### Use -lXpm if available, unless `--with-xpm=no'.
10479 HAVE_XPM=no
10480 LIBXPM=
10481 if test "${HAVE_X11}" = "yes"; then
10482 if test "${with_xpm}" != "no"; then
10483 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10484 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10486 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10487 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10488 $as_echo_n "(cached) " >&6
10489 else
10490 ac_check_lib_save_LIBS=$LIBS
10491 LIBS="-lXpm -lX11 $LIBS"
10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h. */
10494
10495 /* Override any GCC internal prototype to avoid an error.
10496 Use char because int might match the return type of a GCC
10497 builtin and then its argument prototype would still apply. */
10498 #ifdef __cplusplus
10499 extern "C"
10500 #endif
10501 char XpmReadFileToPixmap ();
10502 int
10503 main ()
10504 {
10505 return XpmReadFileToPixmap ();
10506 ;
10507 return 0;
10508 }
10509 _ACEOF
10510 if ac_fn_c_try_link "$LINENO"; then :
10511 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10512 else
10513 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10514 fi
10515 rm -f core conftest.err conftest.$ac_objext \
10516 conftest$ac_exeext conftest.$ac_ext
10517 LIBS=$ac_check_lib_save_LIBS
10518 fi
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10520 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10521 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10522 HAVE_XPM=yes
10523 fi
10524
10525 fi
10526
10527
10528 if test "${HAVE_XPM}" = "yes"; then
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10530 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532 /* end confdefs.h. */
10533 #include "X11/xpm.h"
10534 #ifndef XpmReturnAllocPixels
10535 no_return_alloc_pixels
10536 #endif
10537
10538 _ACEOF
10539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10540 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10541 HAVE_XPM=no
10542 else
10543 HAVE_XPM=yes
10544 fi
10545 rm -f conftest*
10546
10547
10548 if test "${HAVE_XPM}" = "yes"; then
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10550 $as_echo "yes" >&6; }
10551 else
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10553 $as_echo "no" >&6; }
10554 fi
10555 fi
10556 fi
10557
10558 if test "${HAVE_XPM}" = "yes"; then
10559
10560 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10561
10562 LIBXPM=-lXpm
10563 fi
10564 fi
10565
10566
10567 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10568 HAVE_JPEG=no
10569 LIBJPEG=
10570 if test "${HAVE_X11}" = "yes"; then
10571 if test "${with_jpeg}" != "no"; then
10572 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10573 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10575 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10576 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10577 $as_echo_n "(cached) " >&6
10578 else
10579 ac_check_lib_save_LIBS=$LIBS
10580 LIBS="-ljpeg $LIBS"
10581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582 /* end confdefs.h. */
10583
10584 /* Override any GCC internal prototype to avoid an error.
10585 Use char because int might match the return type of a GCC
10586 builtin and then its argument prototype would still apply. */
10587 #ifdef __cplusplus
10588 extern "C"
10589 #endif
10590 char jpeg_destroy_compress ();
10591 int
10592 main ()
10593 {
10594 return jpeg_destroy_compress ();
10595 ;
10596 return 0;
10597 }
10598 _ACEOF
10599 if ac_fn_c_try_link "$LINENO"; then :
10600 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10601 else
10602 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10603 fi
10604 rm -f core conftest.err conftest.$ac_objext \
10605 conftest$ac_exeext conftest.$ac_ext
10606 LIBS=$ac_check_lib_save_LIBS
10607 fi
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10609 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10610 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10611 HAVE_JPEG=yes
10612 fi
10613
10614 fi
10615
10616
10617 fi
10618
10619 if test "${HAVE_JPEG}" = "yes"; then
10620 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10621
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10624 #include <jpeglib.h>
10625 version=JPEG_LIB_VERSION
10626
10627 _ACEOF
10628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10629 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10630 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10631
10632 else
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10634 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10635 HAVE_JPEG=no
10636 fi
10637 rm -f conftest*
10638
10639 fi
10640 if test "${HAVE_JPEG}" = "yes"; then
10641 LIBJPEG=-ljpeg
10642 fi
10643 fi
10644
10645
10646 ### Use -lpng if available, unless `--with-png=no'.
10647 HAVE_PNG=no
10648 LIBPNG=
10649 if test "${HAVE_X11}" = "yes"; then
10650 if test "${with_png}" != "no"; then
10651 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10652 # in /usr/include/libpng.
10653 for ac_header in png.h libpng/png.h
10654 do :
10655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10656 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10657 eval as_val=\$$as_ac_Header
10658 if test "x$as_val" = x""yes; then :
10659 cat >>confdefs.h <<_ACEOF
10660 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10661 _ACEOF
10662
10663 fi
10664
10665 done
10666
10667 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10669 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10670 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10671 $as_echo_n "(cached) " >&6
10672 else
10673 ac_check_lib_save_LIBS=$LIBS
10674 LIBS="-lpng -lz -lm $LIBS"
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677
10678 /* Override any GCC internal prototype to avoid an error.
10679 Use char because int might match the return type of a GCC
10680 builtin and then its argument prototype would still apply. */
10681 #ifdef __cplusplus
10682 extern "C"
10683 #endif
10684 char png_get_channels ();
10685 int
10686 main ()
10687 {
10688 return png_get_channels ();
10689 ;
10690 return 0;
10691 }
10692 _ACEOF
10693 if ac_fn_c_try_link "$LINENO"; then :
10694 ac_cv_lib_png_png_get_channels=yes
10695 else
10696 ac_cv_lib_png_png_get_channels=no
10697 fi
10698 rm -f core conftest.err conftest.$ac_objext \
10699 conftest$ac_exeext conftest.$ac_ext
10700 LIBS=$ac_check_lib_save_LIBS
10701 fi
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10703 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10704 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10705 HAVE_PNG=yes
10706 fi
10707
10708 fi
10709 fi
10710
10711 if test "${HAVE_PNG}" = "yes"; then
10712
10713 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10714
10715 LIBPNG="-lpng -lz -lm"
10716 fi
10717 fi
10718
10719
10720 ### Use -ltiff if available, unless `--with-tiff=no'.
10721 HAVE_TIFF=no
10722 LIBTIFF=
10723 if test "${HAVE_X11}" = "yes"; then
10724 if test "${with_tiff}" != "no"; then
10725 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10726 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10727 tifflibs="-lz -lm"
10728 # At least one tiff package requires the jpeg library.
10729 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10731 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10732 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10733 $as_echo_n "(cached) " >&6
10734 else
10735 ac_check_lib_save_LIBS=$LIBS
10736 LIBS="-ltiff $tifflibs $LIBS"
10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739
10740 /* Override any GCC internal prototype to avoid an error.
10741 Use char because int might match the return type of a GCC
10742 builtin and then its argument prototype would still apply. */
10743 #ifdef __cplusplus
10744 extern "C"
10745 #endif
10746 char TIFFGetVersion ();
10747 int
10748 main ()
10749 {
10750 return TIFFGetVersion ();
10751 ;
10752 return 0;
10753 }
10754 _ACEOF
10755 if ac_fn_c_try_link "$LINENO"; then :
10756 ac_cv_lib_tiff_TIFFGetVersion=yes
10757 else
10758 ac_cv_lib_tiff_TIFFGetVersion=no
10759 fi
10760 rm -f core conftest.err conftest.$ac_objext \
10761 conftest$ac_exeext conftest.$ac_ext
10762 LIBS=$ac_check_lib_save_LIBS
10763 fi
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10765 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10766 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10767 HAVE_TIFF=yes
10768 fi
10769
10770 fi
10771
10772
10773 fi
10774
10775 if test "${HAVE_TIFF}" = "yes"; then
10776
10777 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10778
10779 LIBTIFF=-ltiff
10780 fi
10781 fi
10782
10783
10784 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10785 HAVE_GIF=no
10786 LIBGIF=
10787 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10788 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10789 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10790 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10791 # Earlier versions can crash Emacs.
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10793 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10794 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10795 $as_echo_n "(cached) " >&6
10796 else
10797 ac_check_lib_save_LIBS=$LIBS
10798 LIBS="-lgif $LIBS"
10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10801
10802 /* Override any GCC internal prototype to avoid an error.
10803 Use char because int might match the return type of a GCC
10804 builtin and then its argument prototype would still apply. */
10805 #ifdef __cplusplus
10806 extern "C"
10807 #endif
10808 char EGifPutExtensionLast ();
10809 int
10810 main ()
10811 {
10812 return EGifPutExtensionLast ();
10813 ;
10814 return 0;
10815 }
10816 _ACEOF
10817 if ac_fn_c_try_link "$LINENO"; then :
10818 ac_cv_lib_gif_EGifPutExtensionLast=yes
10819 else
10820 ac_cv_lib_gif_EGifPutExtensionLast=no
10821 fi
10822 rm -f core conftest.err conftest.$ac_objext \
10823 conftest$ac_exeext conftest.$ac_ext
10824 LIBS=$ac_check_lib_save_LIBS
10825 fi
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10827 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10828 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10829 HAVE_GIF=yes
10830 else
10831 HAVE_GIF=maybe
10832 fi
10833
10834 fi
10835
10836
10837
10838 if test "$HAVE_GIF" = yes; then
10839 LIBGIF=-lgif
10840 elif test "$HAVE_GIF" = maybe; then
10841 # If gif_lib.h but no libgif, try libungif.
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10843 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10844 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847 ac_check_lib_save_LIBS=$LIBS
10848 LIBS="-lungif $LIBS"
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10851
10852 /* Override any GCC internal prototype to avoid an error.
10853 Use char because int might match the return type of a GCC
10854 builtin and then its argument prototype would still apply. */
10855 #ifdef __cplusplus
10856 extern "C"
10857 #endif
10858 char EGifPutExtensionLast ();
10859 int
10860 main ()
10861 {
10862 return EGifPutExtensionLast ();
10863 ;
10864 return 0;
10865 }
10866 _ACEOF
10867 if ac_fn_c_try_link "$LINENO"; then :
10868 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10869 else
10870 ac_cv_lib_ungif_EGifPutExtensionLast=no
10871 fi
10872 rm -f core conftest.err conftest.$ac_objext \
10873 conftest$ac_exeext conftest.$ac_ext
10874 LIBS=$ac_check_lib_save_LIBS
10875 fi
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10877 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10878 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10879 HAVE_GIF=yes
10880 else
10881 HAVE_GIF=no
10882 fi
10883
10884 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10885 fi
10886
10887 if test "${HAVE_GIF}" = "yes"; then
10888
10889 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10890
10891 fi
10892 fi
10893
10894
10895 if test "${HAVE_X11}" = "yes"; then
10896 MISSING=""
10897 WITH_NO=""
10898 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10899 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10900 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10901 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
10902 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10903 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
10904 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10905 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10906 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10907 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10908
10909 if test "X${MISSING}" != X; then
10910 as_fn_error "The following required libraries were not found:
10911 $MISSING
10912 Maybe some development libraries/packages are missing?
10913 If you don't want to link with them give
10914 $WITH_NO
10915 as options to configure" "$LINENO" 5
10916 fi
10917 fi
10918
10919 ### Use -lgpm if available, unless `--with-gpm=no'.
10920 HAVE_GPM=no
10921 LIBGPM=
10922 MOUSE_SUPPORT=
10923 if test "${with_gpm}" != "no"; then
10924 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10925 if test "x$ac_cv_header_gpm_h" = x""yes; then :
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10927 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10928 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10929 $as_echo_n "(cached) " >&6
10930 else
10931 ac_check_lib_save_LIBS=$LIBS
10932 LIBS="-lgpm $LIBS"
10933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934 /* end confdefs.h. */
10935
10936 /* Override any GCC internal prototype to avoid an error.
10937 Use char because int might match the return type of a GCC
10938 builtin and then its argument prototype would still apply. */
10939 #ifdef __cplusplus
10940 extern "C"
10941 #endif
10942 char Gpm_Open ();
10943 int
10944 main ()
10945 {
10946 return Gpm_Open ();
10947 ;
10948 return 0;
10949 }
10950 _ACEOF
10951 if ac_fn_c_try_link "$LINENO"; then :
10952 ac_cv_lib_gpm_Gpm_Open=yes
10953 else
10954 ac_cv_lib_gpm_Gpm_Open=no
10955 fi
10956 rm -f core conftest.err conftest.$ac_objext \
10957 conftest$ac_exeext conftest.$ac_ext
10958 LIBS=$ac_check_lib_save_LIBS
10959 fi
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10961 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10962 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
10963 HAVE_GPM=yes
10964 fi
10965
10966 fi
10967
10968
10969
10970 if test "${HAVE_GPM}" = "yes"; then
10971
10972 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10973
10974 LIBGPM=-lgpm
10975 ## May be reset below.
10976 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
10977 fi
10978 fi
10979
10980
10981 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10982 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
10983
10984 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10985
10986 fi
10987
10988
10989
10990 C_SWITCH_X_SYSTEM=
10991 ### Use NeXTstep API to implement GUI.
10992 if test "${HAVE_NS}" = "yes"; then
10993
10994 $as_echo "#define HAVE_NS 1" >>confdefs.h
10995
10996 if test "${NS_IMPL_COCOA}" = "yes"; then
10997
10998 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10999
11000 GNU_OBJC_CFLAGS=
11001 fi
11002 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11003
11004 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11005
11006 # See also .m.o rule in Makefile.in */
11007 # FIXME: are all these flags really needed? Document here why. */
11008 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
11009 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11010 fi
11011 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11012
11013 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11014
11015 fi
11016 # We also have mouse menus.
11017 HAVE_MENUS=yes
11018 OTHER_FILES=ns-app
11019 fi
11020
11021
11022 ### Use session management (-lSM -lICE) if available
11023 HAVE_X_SM=no
11024 LIBXSM=
11025 if test "${HAVE_X11}" = "yes"; then
11026 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11027 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11029 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11030 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 ac_check_lib_save_LIBS=$LIBS
11034 LIBS="-lSM -lICE $LIBS"
11035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11037
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 char SmcOpenConnection ();
11045 int
11046 main ()
11047 {
11048 return SmcOpenConnection ();
11049 ;
11050 return 0;
11051 }
11052 _ACEOF
11053 if ac_fn_c_try_link "$LINENO"; then :
11054 ac_cv_lib_SM_SmcOpenConnection=yes
11055 else
11056 ac_cv_lib_SM_SmcOpenConnection=no
11057 fi
11058 rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11060 LIBS=$ac_check_lib_save_LIBS
11061 fi
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11063 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11064 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
11065 HAVE_X_SM=yes
11066 fi
11067
11068 fi
11069
11070
11071
11072 if test "${HAVE_X_SM}" = "yes"; then
11073
11074 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11075
11076 LIBXSM="-lSM -lICE"
11077 case "$LIBS" in
11078 *-lSM*) ;;
11079 *) LIBS="$LIBXSM $LIBS" ;;
11080 esac
11081 fi
11082 fi
11083
11084
11085 ### Use libxml (-lxml2) if available
11086 if test "${with_xml2}" != "no"; then
11087 ### I'm not sure what the version number should be, so I just guessed.
11088
11089 succeeded=no
11090
11091 # Extract the first word of "pkg-config", so it can be a program name with args.
11092 set dummy pkg-config; ac_word=$2
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11094 $as_echo_n "checking for $ac_word... " >&6; }
11095 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11096 $as_echo_n "(cached) " >&6
11097 else
11098 case $PKG_CONFIG in
11099 [\\/]* | ?:[\\/]*)
11100 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11101 ;;
11102 *)
11103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11104 for as_dir in $PATH
11105 do
11106 IFS=$as_save_IFS
11107 test -z "$as_dir" && as_dir=.
11108 for ac_exec_ext in '' $ac_executable_extensions; do
11109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11110 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11112 break 2
11113 fi
11114 done
11115 done
11116 IFS=$as_save_IFS
11117
11118 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11119 ;;
11120 esac
11121 fi
11122 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11123 if test -n "$PKG_CONFIG"; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11125 $as_echo "$PKG_CONFIG" >&6; }
11126 else
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128 $as_echo "no" >&6; }
11129 fi
11130
11131
11132
11133 if test "$PKG_CONFIG" = "no" ; then
11134 HAVE_LIBXML2=no
11135 else
11136 PKG_CONFIG_MIN_VERSION=0.9.0
11137 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11139 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11140
11141 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11143 $as_echo "yes" >&6; }
11144 succeeded=yes
11145
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11147 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11148 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11150 $as_echo "$LIBXML2_CFLAGS" >&6; }
11151
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11153 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11154 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11156 $as_echo "$LIBXML2_LIBS" >&6; }
11157 else
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 $as_echo "no" >&6; }
11160 LIBXML2_CFLAGS=""
11161 LIBXML2_LIBS=""
11162 ## If we have a custom action on failure, don't print errors, but
11163 ## do set a variable so people can do so.
11164 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11165
11166 fi
11167
11168
11169
11170 else
11171 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11172 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11173 fi
11174 fi
11175
11176 if test $succeeded = yes; then
11177 HAVE_LIBXML2=yes
11178 else
11179 HAVE_LIBXML2=no
11180 fi
11181
11182 if test "${HAVE_LIBXML2}" = "yes"; then
11183 LIBS="$LIBXML2_LIBS $LIBS"
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11185 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11186 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
11187 $as_echo_n "(cached) " >&6
11188 else
11189 ac_check_lib_save_LIBS=$LIBS
11190 LIBS="-lxml2 $LIBS"
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11193
11194 /* Override any GCC internal prototype to avoid an error.
11195 Use char because int might match the return type of a GCC
11196 builtin and then its argument prototype would still apply. */
11197 #ifdef __cplusplus
11198 extern "C"
11199 #endif
11200 char htmlReadMemory ();
11201 int
11202 main ()
11203 {
11204 return htmlReadMemory ();
11205 ;
11206 return 0;
11207 }
11208 _ACEOF
11209 if ac_fn_c_try_link "$LINENO"; then :
11210 ac_cv_lib_xml2_htmlReadMemory=yes
11211 else
11212 ac_cv_lib_xml2_htmlReadMemory=no
11213 fi
11214 rm -f core conftest.err conftest.$ac_objext \
11215 conftest$ac_exeext conftest.$ac_ext
11216 LIBS=$ac_check_lib_save_LIBS
11217 fi
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11219 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11220 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
11221 HAVE_LIBXML2=yes
11222 else
11223 HAVE_LIBXML2=no
11224 fi
11225
11226 if test "${HAVE_LIBXML2}" = "yes"; then
11227
11228 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11229
11230 else
11231 LIBXML2_LIBS=""
11232 LIBXML2_CFLAGS=""
11233 fi
11234 fi
11235 fi
11236
11237
11238
11239 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11241 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11242 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
11243 $as_echo_n "(cached) " >&6
11244 else
11245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h. */
11247 #include <netdb.h>
11248 int
11249 main ()
11250 {
11251 return h_errno;
11252 ;
11253 return 0;
11254 }
11255 _ACEOF
11256 if ac_fn_c_try_link "$LINENO"; then :
11257 emacs_cv_netdb_declares_h_errno=yes
11258 else
11259 emacs_cv_netdb_declares_h_errno=no
11260 fi
11261 rm -f core conftest.err conftest.$ac_objext \
11262 conftest$ac_exeext conftest.$ac_ext
11263 fi
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11265 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11266 if test $emacs_cv_netdb_declares_h_errno = yes; then
11267
11268 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11269
11270 fi
11271
11272 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11273 # for constant arguments. Useless!
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11275 $as_echo_n "checking for working alloca.h... " >&6; }
11276 if test "${ac_cv_working_alloca_h+set}" = set; then :
11277 $as_echo_n "(cached) " >&6
11278 else
11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11281 #include <alloca.h>
11282 int
11283 main ()
11284 {
11285 char *p = (char *) alloca (2 * sizeof (int));
11286 if (p) return 0;
11287 ;
11288 return 0;
11289 }
11290 _ACEOF
11291 if ac_fn_c_try_link "$LINENO"; then :
11292 ac_cv_working_alloca_h=yes
11293 else
11294 ac_cv_working_alloca_h=no
11295 fi
11296 rm -f core conftest.err conftest.$ac_objext \
11297 conftest$ac_exeext conftest.$ac_ext
11298 fi
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11300 $as_echo "$ac_cv_working_alloca_h" >&6; }
11301 if test $ac_cv_working_alloca_h = yes; then
11302
11303 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11304
11305 fi
11306
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11308 $as_echo_n "checking for alloca... " >&6; }
11309 if test "${ac_cv_func_alloca_works+set}" = set; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313 /* end confdefs.h. */
11314 #ifdef __GNUC__
11315 # define alloca __builtin_alloca
11316 #else
11317 # ifdef _MSC_VER
11318 # include <malloc.h>
11319 # define alloca _alloca
11320 # else
11321 # ifdef HAVE_ALLOCA_H
11322 # include <alloca.h>
11323 # else
11324 # ifdef _AIX
11325 #pragma alloca
11326 # else
11327 # ifndef alloca /* predefined by HP cc +Olibcalls */
11328 char *alloca ();
11329 # endif
11330 # endif
11331 # endif
11332 # endif
11333 #endif
11334
11335 int
11336 main ()
11337 {
11338 char *p = (char *) alloca (1);
11339 if (p) return 0;
11340 ;
11341 return 0;
11342 }
11343 _ACEOF
11344 if ac_fn_c_try_link "$LINENO"; then :
11345 ac_cv_func_alloca_works=yes
11346 else
11347 ac_cv_func_alloca_works=no
11348 fi
11349 rm -f core conftest.err conftest.$ac_objext \
11350 conftest$ac_exeext conftest.$ac_ext
11351 fi
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11353 $as_echo "$ac_cv_func_alloca_works" >&6; }
11354
11355 if test $ac_cv_func_alloca_works = yes; then
11356
11357 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11358
11359 else
11360 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11361 # that cause trouble. Some versions do not even contain alloca or
11362 # contain a buggy version. If you still want to use their alloca,
11363 # use ar to extract alloca.o from them instead of compiling alloca.c.
11364
11365 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11366
11367 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11368
11369
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11371 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11372 if test "${ac_cv_os_cray+set}" = set; then :
11373 $as_echo_n "(cached) " >&6
11374 else
11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h. */
11377 #if defined CRAY && ! defined CRAY2
11378 webecray
11379 #else
11380 wenotbecray
11381 #endif
11382
11383 _ACEOF
11384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11385 $EGREP "webecray" >/dev/null 2>&1; then :
11386 ac_cv_os_cray=yes
11387 else
11388 ac_cv_os_cray=no
11389 fi
11390 rm -f conftest*
11391
11392 fi
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11394 $as_echo "$ac_cv_os_cray" >&6; }
11395 if test $ac_cv_os_cray = yes; then
11396 for ac_func in _getb67 GETB67 getb67; do
11397 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11398 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11399 eval as_val=\$$as_ac_var
11400 if test "x$as_val" = x""yes; then :
11401
11402 cat >>confdefs.h <<_ACEOF
11403 #define CRAY_STACKSEG_END $ac_func
11404 _ACEOF
11405
11406 break
11407 fi
11408
11409 done
11410 fi
11411
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11413 $as_echo_n "checking stack direction for C alloca... " >&6; }
11414 if test "${ac_cv_c_stack_direction+set}" = set; then :
11415 $as_echo_n "(cached) " >&6
11416 else
11417 if test "$cross_compiling" = yes; then :
11418 ac_cv_c_stack_direction=0
11419 else
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11422 $ac_includes_default
11423 int
11424 find_stack_direction ()
11425 {
11426 static char *addr = 0;
11427 auto char dummy;
11428 if (addr == 0)
11429 {
11430 addr = &dummy;
11431 return find_stack_direction ();
11432 }
11433 else
11434 return (&dummy > addr) ? 1 : -1;
11435 }
11436
11437 int
11438 main ()
11439 {
11440 return find_stack_direction () < 0;
11441 }
11442 _ACEOF
11443 if ac_fn_c_try_run "$LINENO"; then :
11444 ac_cv_c_stack_direction=1
11445 else
11446 ac_cv_c_stack_direction=-1
11447 fi
11448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11449 conftest.$ac_objext conftest.beam conftest.$ac_ext
11450 fi
11451
11452 fi
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11454 $as_echo "$ac_cv_c_stack_direction" >&6; }
11455 cat >>confdefs.h <<_ACEOF
11456 #define STACK_DIRECTION $ac_cv_c_stack_direction
11457 _ACEOF
11458
11459
11460 fi
11461
11462
11463 if test x"$ac_cv_func_alloca_works" != xyes; then
11464 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
11465 fi
11466
11467 # fmod, logb, and frexp are found in -lm on most systems.
11468 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11470 $as_echo_n "checking for sqrt in -lm... " >&6; }
11471 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
11472 $as_echo_n "(cached) " >&6
11473 else
11474 ac_check_lib_save_LIBS=$LIBS
11475 LIBS="-lm $LIBS"
11476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h. */
11478
11479 /* Override any GCC internal prototype to avoid an error.
11480 Use char because int might match the return type of a GCC
11481 builtin and then its argument prototype would still apply. */
11482 #ifdef __cplusplus
11483 extern "C"
11484 #endif
11485 char sqrt ();
11486 int
11487 main ()
11488 {
11489 return sqrt ();
11490 ;
11491 return 0;
11492 }
11493 _ACEOF
11494 if ac_fn_c_try_link "$LINENO"; then :
11495 ac_cv_lib_m_sqrt=yes
11496 else
11497 ac_cv_lib_m_sqrt=no
11498 fi
11499 rm -f core conftest.err conftest.$ac_objext \
11500 conftest$ac_exeext conftest.$ac_ext
11501 LIBS=$ac_check_lib_save_LIBS
11502 fi
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11504 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11505 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
11506 cat >>confdefs.h <<_ACEOF
11507 #define HAVE_LIBM 1
11508 _ACEOF
11509
11510 LIBS="-lm $LIBS"
11511
11512 fi
11513
11514
11515 # Check for mail-locking functions in a "mail" library. Probably this should
11516 # have the same check as for liblockfile below.
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11518 $as_echo_n "checking for maillock in -lmail... " >&6; }
11519 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11520 $as_echo_n "(cached) " >&6
11521 else
11522 ac_check_lib_save_LIBS=$LIBS
11523 LIBS="-lmail $LIBS"
11524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h. */
11526
11527 /* Override any GCC internal prototype to avoid an error.
11528 Use char because int might match the return type of a GCC
11529 builtin and then its argument prototype would still apply. */
11530 #ifdef __cplusplus
11531 extern "C"
11532 #endif
11533 char maillock ();
11534 int
11535 main ()
11536 {
11537 return maillock ();
11538 ;
11539 return 0;
11540 }
11541 _ACEOF
11542 if ac_fn_c_try_link "$LINENO"; then :
11543 ac_cv_lib_mail_maillock=yes
11544 else
11545 ac_cv_lib_mail_maillock=no
11546 fi
11547 rm -f core conftest.err conftest.$ac_objext \
11548 conftest$ac_exeext conftest.$ac_ext
11549 LIBS=$ac_check_lib_save_LIBS
11550 fi
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11552 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11553 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
11554 have_mail=yes
11555 else
11556 have_mail=no
11557 fi
11558
11559 if test $have_mail = yes; then
11560 LIBS_MAIL=-lmail
11561 LIBS="$LIBS_MAIL $LIBS"
11562
11563 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11564
11565 else
11566 LIBS_MAIL=
11567 fi
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11569 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11570 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11571 $as_echo_n "(cached) " >&6
11572 else
11573 ac_check_lib_save_LIBS=$LIBS
11574 LIBS="-llockfile $LIBS"
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11577
11578 /* Override any GCC internal prototype to avoid an error.
11579 Use char because int might match the return type of a GCC
11580 builtin and then its argument prototype would still apply. */
11581 #ifdef __cplusplus
11582 extern "C"
11583 #endif
11584 char maillock ();
11585 int
11586 main ()
11587 {
11588 return maillock ();
11589 ;
11590 return 0;
11591 }
11592 _ACEOF
11593 if ac_fn_c_try_link "$LINENO"; then :
11594 ac_cv_lib_lockfile_maillock=yes
11595 else
11596 ac_cv_lib_lockfile_maillock=no
11597 fi
11598 rm -f core conftest.err conftest.$ac_objext \
11599 conftest$ac_exeext conftest.$ac_ext
11600 LIBS=$ac_check_lib_save_LIBS
11601 fi
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11603 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11604 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
11605 have_lockfile=yes
11606 else
11607 have_lockfile=no
11608 fi
11609
11610 if test $have_lockfile = yes; then
11611 LIBS_MAIL=-llockfile
11612 LIBS="$LIBS_MAIL $LIBS"
11613
11614 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11615
11616 else
11617 # If we have the shared liblockfile, assume we must use it for mail
11618 # locking (e.g. Debian). If we couldn't link against liblockfile
11619 # (no liblockfile.a installed), ensure that we don't need to.
11620 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11621 set dummy liblockfile.so; ac_word=$2
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11623 $as_echo_n "checking for $ac_word... " >&6; }
11624 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11625 $as_echo_n "(cached) " >&6
11626 else
11627 if test -n "$liblockfile"; then
11628 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11629 else
11630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11632 for as_dir in $as_dummy
11633 do
11634 IFS=$as_save_IFS
11635 test -z "$as_dir" && as_dir=.
11636 for ac_exec_ext in '' $ac_executable_extensions; do
11637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11638 ac_cv_prog_liblockfile="yes"
11639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640 break 2
11641 fi
11642 done
11643 done
11644 IFS=$as_save_IFS
11645
11646 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11647 fi
11648 fi
11649 liblockfile=$ac_cv_prog_liblockfile
11650 if test -n "$liblockfile"; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11652 $as_echo "$liblockfile" >&6; }
11653 else
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11656 fi
11657
11658
11659 if test $ac_cv_prog_liblockfile = yes; then
11660 as_fn_error "Shared liblockfile found but can't link against it.
11661 This probably means that movemail could lose mail.
11662 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11663 fi
11664 fi
11665 for ac_func in touchlock
11666 do :
11667 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11668 if test "x$ac_cv_func_touchlock" = x""yes; then :
11669 cat >>confdefs.h <<_ACEOF
11670 #define HAVE_TOUCHLOCK 1
11671 _ACEOF
11672
11673 fi
11674 done
11675
11676 for ac_header in maillock.h
11677 do :
11678 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11679 if test "x$ac_cv_header_maillock_h" = x""yes; then :
11680 cat >>confdefs.h <<_ACEOF
11681 #define HAVE_MAILLOCK_H 1
11682 _ACEOF
11683
11684 fi
11685
11686 done
11687
11688
11689
11690 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11691 ## interlock access to the mail spool. The alternative is a lock file named
11692 ## /usr/spool/mail/$USER.lock.
11693 mail_lock=no
11694 case "$opsys" in
11695 aix4-2) mail_lock="lockf" ;;
11696
11697 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11698
11699 ## On GNU/Linux systems, both methods are used by various mail programs.
11700 ## I assume most people are using newer mailers that have heard of flock.
11701 ## Change this if you need to.
11702 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11703 ## configure gets the right answers, and that means *NOT* using flock.
11704 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11705 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11706 ## Debian maintainer hasn't provided a clean fix for Emacs.
11707 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11708 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11709 ## correct logic. -- fx
11710 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11711 ## liblockfile is a Free Software replacement for libmail, used on
11712 ## Debian systems and elsewhere. -rfr.
11713 gnu-*)
11714 mail_lock="flock"
11715 if test $have_mail = yes || test $have_lockfile = yes; then
11716 test $ac_cv_header_maillock_h = yes && mail_lock=no
11717 fi
11718 ;;
11719 esac
11720
11721 BLESSMAIL_TARGET=
11722 case "$mail_lock" in
11723 flock)
11724 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11725 ;;
11726
11727 lockf)
11728 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11729 ;;
11730
11731 *) BLESSMAIL_TARGET="need-blessmail" ;;
11732 esac
11733
11734
11735
11736 for ac_func in gethostname getdomainname dup2 \
11737 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11738 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11739 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11740 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11741 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11742 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11743 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11744 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11745 cfmakeraw cfsetspeed isnan copysign __executable_start
11746 do :
11747 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11748 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11749 eval as_val=\$$as_ac_var
11750 if test "x$as_val" = x""yes; then :
11751 cat >>confdefs.h <<_ACEOF
11752 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11753 _ACEOF
11754
11755 fi
11756 done
11757
11758
11759 for ac_header in sys/un.h
11760 do :
11761 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11762 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11763 cat >>confdefs.h <<_ACEOF
11764 #define HAVE_SYS_UN_H 1
11765 _ACEOF
11766
11767 fi
11768
11769 done
11770
11771
11772
11773
11774
11775
11776
11777 for ac_func in $ac_func_list
11778 do :
11779 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11780 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11781 eval as_val=\$$as_ac_var
11782 if test "x$as_val" = x""yes; then :
11783 cat >>confdefs.h <<_ACEOF
11784 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11785 _ACEOF
11786
11787 fi
11788 done
11789
11790
11791
11792
11793
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11795 $as_echo_n "checking for working mktime... " >&6; }
11796 if test "${ac_cv_func_working_mktime+set}" = set; then :
11797 $as_echo_n "(cached) " >&6
11798 else
11799 if test "$cross_compiling" = yes; then :
11800 ac_cv_func_working_mktime=no
11801 else
11802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11803 /* end confdefs.h. */
11804 /* Test program from Paul Eggert and Tony Leneis. */
11805 #ifdef TIME_WITH_SYS_TIME
11806 # include <sys/time.h>
11807 # include <time.h>
11808 #else
11809 # ifdef HAVE_SYS_TIME_H
11810 # include <sys/time.h>
11811 # else
11812 # include <time.h>
11813 # endif
11814 #endif
11815
11816 #include <limits.h>
11817 #include <stdlib.h>
11818
11819 #ifdef HAVE_UNISTD_H
11820 # include <unistd.h>
11821 #endif
11822
11823 #ifndef HAVE_ALARM
11824 # define alarm(X) /* empty */
11825 #endif
11826
11827 /* Work around redefinition to rpl_putenv by other config tests. */
11828 #undef putenv
11829
11830 static time_t time_t_max;
11831 static time_t time_t_min;
11832
11833 /* Values we'll use to set the TZ environment variable. */
11834 static char *tz_strings[] = {
11835 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11836 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11837 };
11838 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11839
11840 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11841 Based on a problem report from Andreas Jaeger. */
11842 static int
11843 spring_forward_gap ()
11844 {
11845 /* glibc (up to about 1998-10-07) failed this test. */
11846 struct tm tm;
11847
11848 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11849 instead of "TZ=America/Vancouver" in order to detect the bug even
11850 on systems that don't support the Olson extension, or don't have the
11851 full zoneinfo tables installed. */
11852 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11853
11854 tm.tm_year = 98;
11855 tm.tm_mon = 3;
11856 tm.tm_mday = 5;
11857 tm.tm_hour = 2;
11858 tm.tm_min = 0;
11859 tm.tm_sec = 0;
11860 tm.tm_isdst = -1;
11861 return mktime (&tm) != (time_t) -1;
11862 }
11863
11864 static int
11865 mktime_test1 (now)
11866 time_t now;
11867 {
11868 struct tm *lt;
11869 return ! (lt = localtime (&now)) || mktime (lt) == now;
11870 }
11871
11872 static int
11873 mktime_test (now)
11874 time_t now;
11875 {
11876 return (mktime_test1 (now)
11877 && mktime_test1 ((time_t) (time_t_max - now))
11878 && mktime_test1 ((time_t) (time_t_min + now)));
11879 }
11880
11881 static int
11882 irix_6_4_bug ()
11883 {
11884 /* Based on code from Ariel Faigon. */
11885 struct tm tm;
11886 tm.tm_year = 96;
11887 tm.tm_mon = 3;
11888 tm.tm_mday = 0;
11889 tm.tm_hour = 0;
11890 tm.tm_min = 0;
11891 tm.tm_sec = 0;
11892 tm.tm_isdst = -1;
11893 mktime (&tm);
11894 return tm.tm_mon == 2 && tm.tm_mday == 31;
11895 }
11896
11897 static int
11898 bigtime_test (j)
11899 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 ("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 (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 eval as_val=\$$as_ac_var
14047 if test "x$as_val" = x""yes; then :
14048 cat >>confdefs.h <<_ACEOF
14049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14050 _ACEOF
14051
14052 fi
14053 done
14054
14055 if test "x$ac_cv_func_fork" = xyes; then
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14057 $as_echo_n "checking for working fork... " >&6; }
14058 if test "${ac_cv_func_fork_works+set}" = set; then :
14059 $as_echo_n "(cached) " >&6
14060 else
14061 if test "$cross_compiling" = yes; then :
14062 ac_cv_func_fork_works=cross
14063 else
14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h. */
14066 $ac_includes_default
14067 int
14068 main ()
14069 {
14070
14071 /* By Ruediger Kuhlmann. */
14072 return fork () < 0;
14073
14074 ;
14075 return 0;
14076 }
14077 _ACEOF
14078 if ac_fn_c_try_run "$LINENO"; then :
14079 ac_cv_func_fork_works=yes
14080 else
14081 ac_cv_func_fork_works=no
14082 fi
14083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14084 conftest.$ac_objext conftest.beam conftest.$ac_ext
14085 fi
14086
14087 fi
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14089 $as_echo "$ac_cv_func_fork_works" >&6; }
14090
14091 else
14092 ac_cv_func_fork_works=$ac_cv_func_fork
14093 fi
14094 if test "x$ac_cv_func_fork_works" = xcross; then
14095 case $host in
14096 *-*-amigaos* | *-*-msdosdjgpp*)
14097 # Override, as these systems have only a dummy fork() stub
14098 ac_cv_func_fork_works=no
14099 ;;
14100 *)
14101 ac_cv_func_fork_works=yes
14102 ;;
14103 esac
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14105 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14106 fi
14107 ac_cv_func_vfork_works=$ac_cv_func_vfork
14108 if test "x$ac_cv_func_vfork" = xyes; then
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14110 $as_echo_n "checking for working vfork... " >&6; }
14111 if test "${ac_cv_func_vfork_works+set}" = set; then :
14112 $as_echo_n "(cached) " >&6
14113 else
14114 if test "$cross_compiling" = yes; then :
14115 ac_cv_func_vfork_works=cross
14116 else
14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118 /* end confdefs.h. */
14119 /* Thanks to Paul Eggert for this test. */
14120 $ac_includes_default
14121 #include <sys/wait.h>
14122 #ifdef HAVE_VFORK_H
14123 # include <vfork.h>
14124 #endif
14125 /* On some sparc systems, changes by the child to local and incoming
14126 argument registers are propagated back to the parent. The compiler
14127 is told about this with #include <vfork.h>, but some compilers
14128 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14129 static variable whose address is put into a register that is
14130 clobbered by the vfork. */
14131 static void
14132 #ifdef __cplusplus
14133 sparc_address_test (int arg)
14134 # else
14135 sparc_address_test (arg) int arg;
14136 #endif
14137 {
14138 static pid_t child;
14139 if (!child) {
14140 child = vfork ();
14141 if (child < 0) {
14142 perror ("vfork");
14143 _exit(2);
14144 }
14145 if (!child) {
14146 arg = getpid();
14147 write(-1, "", 0);
14148 _exit (arg);
14149 }
14150 }
14151 }
14152
14153 int
14154 main ()
14155 {
14156 pid_t parent = getpid ();
14157 pid_t child;
14158
14159 sparc_address_test (0);
14160
14161 child = vfork ();
14162
14163 if (child == 0) {
14164 /* Here is another test for sparc vfork register problems. This
14165 test uses lots of local variables, at least as many local
14166 variables as main has allocated so far including compiler
14167 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14168 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14169 reuse the register of parent for one of the local variables,
14170 since it will think that parent can't possibly be used any more
14171 in this routine. Assigning to the local variable will thus
14172 munge parent in the parent process. */
14173 pid_t
14174 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14175 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14176 /* Convince the compiler that p..p7 are live; otherwise, it might
14177 use the same hardware register for all 8 local variables. */
14178 if (p != p1 || p != p2 || p != p3 || p != p4
14179 || p != p5 || p != p6 || p != p7)
14180 _exit(1);
14181
14182 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14183 from child file descriptors. If the child closes a descriptor
14184 before it execs or exits, this munges the parent's descriptor
14185 as well. Test for this by closing stdout in the child. */
14186 _exit(close(fileno(stdout)) != 0);
14187 } else {
14188 int status;
14189 struct stat st;
14190
14191 while (wait(&status) != child)
14192 ;
14193 return (
14194 /* Was there some problem with vforking? */
14195 child < 0
14196
14197 /* Did the child fail? (This shouldn't happen.) */
14198 || status
14199
14200 /* Did the vfork/compiler bug occur? */
14201 || parent != getpid()
14202
14203 /* Did the file descriptor bug occur? */
14204 || fstat(fileno(stdout), &st) != 0
14205 );
14206 }
14207 }
14208 _ACEOF
14209 if ac_fn_c_try_run "$LINENO"; then :
14210 ac_cv_func_vfork_works=yes
14211 else
14212 ac_cv_func_vfork_works=no
14213 fi
14214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14215 conftest.$ac_objext conftest.beam conftest.$ac_ext
14216 fi
14217
14218 fi
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14220 $as_echo "$ac_cv_func_vfork_works" >&6; }
14221
14222 fi;
14223 if test "x$ac_cv_func_fork_works" = xcross; then
14224 ac_cv_func_vfork_works=$ac_cv_func_vfork
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14226 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14227 fi
14228
14229 if test "x$ac_cv_func_vfork_works" = xyes; then
14230
14231 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14232
14233 else
14234
14235 $as_echo "#define vfork fork" >>confdefs.h
14236
14237 fi
14238 if test "x$ac_cv_func_fork_works" = xyes; then
14239
14240 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14241
14242 fi
14243
14244
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14246 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14247 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14248 $as_echo_n "(cached) " >&6
14249 else
14250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14251 /* end confdefs.h. */
14252 #include <langinfo.h>
14253 int
14254 main ()
14255 {
14256 char* cs = nl_langinfo(CODESET);
14257 ;
14258 return 0;
14259 }
14260 _ACEOF
14261 if ac_fn_c_try_link "$LINENO"; then :
14262 emacs_cv_langinfo_codeset=yes
14263 else
14264 emacs_cv_langinfo_codeset=no
14265 fi
14266 rm -f core conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
14268
14269 fi
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14271 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14272 if test $emacs_cv_langinfo_codeset = yes; then
14273
14274 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14275
14276 fi
14277
14278 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14279 if test "x$ac_cv_type_size_t" = x""yes; then :
14280
14281 cat >>confdefs.h <<_ACEOF
14282 #define HAVE_SIZE_T 1
14283 _ACEOF
14284
14285
14286 fi
14287
14288
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14290 $as_echo_n "checking for mbstate_t... " >&6; }
14291 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14292 $as_echo_n "(cached) " >&6
14293 else
14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14296 $ac_includes_default
14297 # include <wchar.h>
14298 int
14299 main ()
14300 {
14301 mbstate_t x; return sizeof x;
14302 ;
14303 return 0;
14304 }
14305 _ACEOF
14306 if ac_fn_c_try_compile "$LINENO"; then :
14307 ac_cv_type_mbstate_t=yes
14308 else
14309 ac_cv_type_mbstate_t=no
14310 fi
14311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14312 fi
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14314 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14315 if test $ac_cv_type_mbstate_t = yes; then
14316
14317 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14318
14319 else
14320
14321 $as_echo "#define mbstate_t int" >>confdefs.h
14322
14323 fi
14324
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14326 $as_echo_n "checking for C restrict keyword... " >&6; }
14327 if test "${emacs_cv_c_restrict+set}" = set; then :
14328 $as_echo_n "(cached) " >&6
14329 else
14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h. */
14332 void fred (int *restrict x);
14333 int
14334 main ()
14335 {
14336
14337 ;
14338 return 0;
14339 }
14340 _ACEOF
14341 if ac_fn_c_try_compile "$LINENO"; then :
14342 emacs_cv_c_restrict=yes
14343 else
14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14346 void fred (int *__restrict x);
14347 int
14348 main ()
14349 {
14350
14351 ;
14352 return 0;
14353 }
14354 _ACEOF
14355 if ac_fn_c_try_compile "$LINENO"; then :
14356 emacs_cv_c_restrict=__restrict
14357 else
14358 emacs_cv_c_restrict=no
14359 fi
14360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14361 fi
14362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14363 fi
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14365 $as_echo "$emacs_cv_c_restrict" >&6; }
14366 case "$emacs_cv_c_restrict" in
14367 yes) emacs_restrict=restrict;;
14368 no) emacs_restrict="";;
14369 *) emacs_restrict="$emacs_cv_c_restrict";;
14370 esac
14371 if test "$emacs_restrict" != __restrict; then
14372
14373 cat >>confdefs.h <<_ACEOF
14374 #define __restrict $emacs_restrict
14375 _ACEOF
14376
14377 fi
14378
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14380 $as_echo_n "checking for C restricted array declarations... " >&6; }
14381 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14382 $as_echo_n "(cached) " >&6
14383 else
14384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h. */
14386 void fred (int x[__restrict]);
14387 int
14388 main ()
14389 {
14390
14391 ;
14392 return 0;
14393 }
14394 _ACEOF
14395 if ac_fn_c_try_compile "$LINENO"; then :
14396 emacs_cv_c_restrict_arr=yes
14397 else
14398 emacs_cv_c_restrict_arr=no
14399 fi
14400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14401 fi
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14403 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14404 if test "$emacs_cv_c_restrict_arr" = yes; then
14405
14406 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14407
14408 fi
14409
14410
14411
14412 # Set up the CFLAGS for real compilation, so we can substitute it.
14413 CFLAGS="$REAL_CFLAGS"
14414 CPPFLAGS="$REAL_CPPFLAGS"
14415
14416 ## Hack to detect a buggy GCC version.
14417 if test "x$GCC" = xyes \
14418 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14419 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14420 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14421 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14422 fi
14423
14424 #### Find out which version of Emacs this is.
14425 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14426 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14427 if test x"${version}" = x; then
14428 as_fn_error "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14429 fi
14430 if test x"${version}" != x"$PACKAGE_VERSION"; then
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14432 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14433 fi
14434
14435 ### Specify what sort of things we'll be editing into Makefile and config.h.
14436 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14437
14438
14439 ## Unused?
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14461 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14462 ## end of LIBX_BASE, but nothing ever set it.
14463
14464
14465
14466
14467 ## Used in lwlib/Makefile.in.
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480 cat >>confdefs.h <<_ACEOF
14481 #define EMACS_CONFIGURATION "${canonical}"
14482 _ACEOF
14483
14484
14485 cat >>confdefs.h <<_ACEOF
14486 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14487 _ACEOF
14488
14489
14490 cat >>confdefs.h <<_ACEOF
14491 #define config_machfile "${machfile}"
14492 _ACEOF
14493
14494
14495 cat >>confdefs.h <<_ACEOF
14496 #define config_opsysfile "${opsysfile}"
14497 _ACEOF
14498
14499
14500 XMENU_OBJ=
14501 XOBJ=
14502 FONT_OBJ=
14503 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14504
14505 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14506
14507 XMENU_OBJ=xmenu.o
14508 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14509 FONT_OBJ=xfont.o
14510 if test "$HAVE_XFT" = "yes"; then
14511 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14512 elif test "$HAVE_FREETYPE" = "yes"; then
14513 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14514 fi
14515
14516 fi
14517
14518
14519
14520
14521 WIDGET_OBJ=
14522 MOTIF_LIBW=
14523 if test "${USE_X_TOOLKIT}" != "none" ; then
14524 WIDGET_OBJ=widget.o
14525
14526 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14527
14528 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14529
14530 $as_echo "#define USE_LUCID 1" >>confdefs.h
14531
14532 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14533
14534 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14535
14536 MOTIF_LIBW=-lXm
14537 case "$opsys" in
14538 gnu-linux)
14539 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14540 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14541 ;;
14542
14543 unixware)
14544 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14545 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14546 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14547 ;;
14548
14549 aix4-2)
14550 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14551 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14552 ;;
14553 esac
14554 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14555 fi
14556 fi
14557
14558
14559 TOOLKIT_LIBW=
14560 case "$USE_X_TOOLKIT" in
14561 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14562 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14563 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14564 esac
14565
14566
14567 if test "$USE_X_TOOLKIT" = "none"; then
14568 LIBXT_OTHER="\$(LIBXSM)"
14569 OLDXMENU_TARGET="really-oldXMenu"
14570 else
14571 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14572 OLDXMENU_TARGET="really-lwlib"
14573 fi
14574
14575
14576 ## The X Menu stuff is present in the X10 distribution, but missing
14577 ## from X11. If we have X10, just use the installed library;
14578 ## otherwise, use our own copy.
14579 if test "${HAVE_X11}" = "yes" ; then
14580
14581 $as_echo "#define HAVE_X11 1" >>confdefs.h
14582
14583
14584 if test "$USE_X_TOOLKIT" = "none"; then
14585 OLDXMENU="\${oldXMenudir}libXMenu11.a"
14586 else
14587 OLDXMENU="\${lwlibdir}liblw.a"
14588 fi
14589 LIBXMENU="\$(OLDXMENU)"
14590 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14591 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14592 else
14593 ## For a syntactically valid Makefile; not actually used for anything.
14594 ## See comments in src/Makefile.in.
14595 OLDXMENU=nothing
14596 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14597 if test "${HAVE_X_WINDOWS}" = "yes"; then
14598 LIBXMENU="-lXMenu"
14599 else
14600 LIBXMENU=
14601 fi
14602 LIBX_OTHER=
14603 OLDXMENU_DEPS=
14604 fi
14605
14606 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14607 OLDXMENU_TARGET=
14608 OLDXMENU=nothing
14609 LIBXMENU=
14610 OLDXMENU_DEPS=
14611 fi
14612
14613
14614
14615
14616
14617
14618
14619 if test "${HAVE_MENUS}" = "yes" ; then
14620
14621 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14622
14623 fi
14624
14625 if test "${GNU_MALLOC}" = "yes" ; then
14626
14627 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14628
14629 fi
14630
14631 RALLOC_OBJ=
14632 if test "${REL_ALLOC}" = "yes" ; then
14633
14634 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14635
14636
14637 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14638 fi
14639
14640
14641 if test "$opsys" = "cygwin"; then
14642 CYGWIN_OBJ="sheap.o"
14643 ## Cygwin differs because of its unexec().
14644 PRE_ALLOC_OBJ=
14645 POST_ALLOC_OBJ=lastfile.o
14646 else
14647 CYGWIN_OBJ=
14648 PRE_ALLOC_OBJ=lastfile.o
14649 POST_ALLOC_OBJ=
14650 fi
14651
14652
14653
14654
14655
14656 case "$opsys" in
14657 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14658
14659 darwin)
14660 ## The -headerpad option tells ld (see man page) to leave room at the
14661 ## end of the header for adding load commands. Needed for dumping.
14662 ## 0x690 is the total size of 30 segment load commands (at 56
14663 ## each); under Cocoa 31 commands are required.
14664 if test "$HAVE_NS" = "yes"; then
14665 libs_nsgui="-framework AppKit"
14666 headerpad_extra=6C8
14667 else
14668 libs_nsgui=
14669 headerpad_extra=690
14670 fi
14671 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14672
14673 ## This is here because src/Makefile.in did some extra fiddling around
14674 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14675 ## #ifndef LD_SWITCH_SYSTEM
14676 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14677 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14678 ## not using gcc, darwin system not on an alpha (ie darwin, since
14679 ## darwin + alpha does not occur).
14680 ## Because this was done in src/Makefile.in, the resulting part of
14681 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14682 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14683 ## rather than LD_SWITCH_SYSTEM.
14684 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14685 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14686 ;;
14687
14688 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14689 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14690 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14691 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14692 ## had different values in configure (in ac_link) and src/Makefile.in.
14693 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14694 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14695
14696 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14697 esac
14698
14699 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14700 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14701 fi
14702
14703
14704
14705
14706 LD_FIRSTFLAG=
14707 ORDINARY_LINK=
14708 case "$opsys" in
14709 ## gnu: GNU needs its own crt0.
14710 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14711
14712 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14713 ## library search parth, i.e. it won't search /usr/lib for libc and
14714 ## friends. Using -nostartfiles instead avoids this problem, and
14715 ## will also work on earlier NetBSD releases.
14716 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
14717
14718 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14719 ## MkLinux/LinuxPPC needs this.
14720 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14721 gnu-*)
14722 case "$machine" in
14723 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
14724 esac
14725 ;;
14726 esac
14727
14728
14729 if test "x$ORDINARY_LINK" = "xyes"; then
14730
14731 LD_FIRSTFLAG=""
14732
14733 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14734
14735
14736 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14737 ## freebsd, gnu-* not on macppc|ibms390x.
14738 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14739
14740 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14741 ## places that are difficult to figure out at make time. Fortunately,
14742 ## these same versions allow you to pass arbitrary flags on to the
14743 ## linker, so there is no reason not to use it as a linker.
14744 ##
14745 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14746 ## searching for libraries in its internal directories, so we have to
14747 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14748 LD_FIRSTFLAG="-nostdlib"
14749 fi
14750
14751 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14752 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
14753
14754
14755
14756
14757 ## FIXME? The logic here is not precisely the same as that above.
14758 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14759 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14760 LIB_GCC=
14761 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14762
14763 case "$opsys" in
14764 freebsd|netbsd|openbsd) LIB_GCC= ;;
14765
14766 gnu-*)
14767 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14768 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14769 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14770 if test "$machine" = "arm"; then
14771 LIB_GCC="-lgcc_s"
14772 else
14773 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14774 ## immediately undefine it again and redefine it to empty.
14775 ## Was the C_SWITCH_X_SITE part really necessary?
14776 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14777 LIB_GCC=
14778 fi
14779 ;;
14780
14781 ## Ask GCC where to find libgcc.a.
14782 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14783 esac
14784 fi
14785
14786
14787 TOOLTIP_SUPPORT=
14788 WINDOW_SUPPORT=
14789 ## If we're using X11/GNUstep, define some consequences.
14790 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14791
14792 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14793
14794
14795 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14796
14797 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14798 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
14799
14800 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14801 test "$HAVE_X_WINDOWS" = "yes" && \
14802 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14803
14804 fi
14805
14806
14807
14808
14809
14810
14811
14812 #### Report on what we decided to do.
14813 #### Report GTK as a toolkit, even if it doesn't use Xt.
14814 #### It makes printing result more understandable as using GTK sets
14815 #### toolkit_scroll_bars to yes by default.
14816 if test "${HAVE_GTK}" = "yes"; then
14817 USE_X_TOOLKIT=GTK
14818 fi
14819
14820 echo "
14821 Configured for \`${canonical}'.
14822
14823 Where should the build process find the source code? ${srcdir}
14824 What operating system and machine description files should Emacs use?
14825 \`${opsysfile}' and \`${machfile}'
14826 What compiler should emacs be built with? ${CC} ${CFLAGS}
14827 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14828 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14829 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14830 What window system should Emacs use? ${window_system}
14831 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14832
14833 if test -n "${x_includes}"; then
14834 echo " Where do we find X Windows header files? ${x_includes}"
14835 else
14836 echo " Where do we find X Windows header files? Standard dirs"
14837 fi
14838 if test -n "${x_libraries}"; then
14839 echo " Where do we find X Windows libraries? ${x_libraries}"
14840 else
14841 echo " Where do we find X Windows libraries? Standard dirs"
14842 fi
14843
14844 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14845 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14846 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14847 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14848 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14849 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14850 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14851 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
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
14857 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14858 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14859 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14860 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14861
14862 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14863 echo
14864
14865 if test $USE_XASSERTS = yes; then
14866 echo " Compiling with asserts turned on."
14867 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14868 fi
14869
14870 echo
14871
14872 if test "$HAVE_NS" = "yes"; then
14873 echo
14874 echo "You must run \"make install\" in order to test the built application.
14875 The installed application will go to nextstep/Emacs.app and can be
14876 run or moved from there."
14877 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14878 echo "The application will be fully self-contained."
14879 else
14880 echo "The lisp resources for the application will be installed under ${prefix}.
14881 You may need to run \"make install\" with sudo. The application will fail
14882 to run if these resources are not installed."
14883 fi
14884 echo
14885 fi
14886
14887 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
14888 echo "D-Bus integration has been tested for GNU/Linux only."
14889 echo
14890 fi
14891
14892
14893 # Remove any trailing slashes in these variables.
14894 test "${prefix}" != NONE &&
14895 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14896 test "${exec_prefix}" != NONE &&
14897 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14898
14899 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"
14900
14901 ac_config_commands="$ac_config_commands default"
14902
14903 cat >confcache <<\_ACEOF
14904 # This file is a shell script that caches the results of configure
14905 # tests run on this system so they can be shared between configure
14906 # scripts and configure runs, see configure's option --config-cache.
14907 # It is not useful on other systems. If it contains results you don't
14908 # want to keep, you may remove or edit it.
14909 #
14910 # config.status only pays attention to the cache file if you give it
14911 # the --recheck option to rerun configure.
14912 #
14913 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14914 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14915 # following values.
14916
14917 _ACEOF
14918
14919 # The following way of writing the cache mishandles newlines in values,
14920 # but we know of no workaround that is simple, portable, and efficient.
14921 # So, we kill variables containing newlines.
14922 # Ultrix sh set writes to stderr and can't be redirected directly,
14923 # and sets the high bit in the cache file unless we assign to the vars.
14924 (
14925 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14926 eval ac_val=\$$ac_var
14927 case $ac_val in #(
14928 *${as_nl}*)
14929 case $ac_var in #(
14930 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14931 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14932 esac
14933 case $ac_var in #(
14934 _ | IFS | as_nl) ;; #(
14935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14936 *) { eval $ac_var=; unset $ac_var;} ;;
14937 esac ;;
14938 esac
14939 done
14940
14941 (set) 2>&1 |
14942 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14943 *${as_nl}ac_space=\ *)
14944 # `set' does not quote correctly, so add quotes: double-quote
14945 # substitution turns \\\\ into \\, and sed turns \\ into \.
14946 sed -n \
14947 "s/'/'\\\\''/g;
14948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14949 ;; #(
14950 *)
14951 # `set' quotes correctly as required by POSIX, so do not add quotes.
14952 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14953 ;;
14954 esac |
14955 sort
14956 ) |
14957 sed '
14958 /^ac_cv_env_/b end
14959 t clear
14960 :clear
14961 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14962 t end
14963 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14964 :end' >>confcache
14965 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14966 if test -w "$cache_file"; then
14967 test "x$cache_file" != "x/dev/null" &&
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14969 $as_echo "$as_me: updating cache $cache_file" >&6;}
14970 cat confcache >$cache_file
14971 else
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14973 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14974 fi
14975 fi
14976 rm -f confcache
14977
14978 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14979 # Let make expand exec_prefix.
14980 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14981
14982 DEFS=-DHAVE_CONFIG_H
14983
14984 ac_libobjs=
14985 ac_ltlibobjs=
14986 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14987 # 1. Remove the extension, and $U if already installed.
14988 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14989 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14990 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14991 # will be set to the directory where LIBOBJS objects are built.
14992 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14993 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14994 done
14995 LIBOBJS=$ac_libobjs
14996
14997 LTLIBOBJS=$ac_ltlibobjs
14998
14999
15000
15001
15002 : ${CONFIG_STATUS=./config.status}
15003 ac_write_fail=0
15004 ac_clean_files_save=$ac_clean_files
15005 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15007 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15008 as_write_fail=0
15009 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15010 #! $SHELL
15011 # Generated by $as_me.
15012 # Run this file to recreate the current configuration.
15013 # Compiler output produced by configure, useful for debugging
15014 # configure, is in config.log if it exists.
15015
15016 debug=false
15017 ac_cs_recheck=false
15018 ac_cs_silent=false
15019
15020 SHELL=\${CONFIG_SHELL-$SHELL}
15021 export SHELL
15022 _ASEOF
15023 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15024 ## -------------------- ##
15025 ## M4sh Initialization. ##
15026 ## -------------------- ##
15027
15028 # Be more Bourne compatible
15029 DUALCASE=1; export DUALCASE # for MKS sh
15030 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15031 emulate sh
15032 NULLCMD=:
15033 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15034 # is contrary to our usage. Disable this feature.
15035 alias -g '${1+"$@"}'='"$@"'
15036 setopt NO_GLOB_SUBST
15037 else
15038 case `(set -o) 2>/dev/null` in #(
15039 *posix*) :
15040 set -o posix ;; #(
15041 *) :
15042 ;;
15043 esac
15044 fi
15045
15046
15047 as_nl='
15048 '
15049 export as_nl
15050 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15051 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15052 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15053 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15054 # Prefer a ksh shell builtin over an external printf program on Solaris,
15055 # but without wasting forks for bash or zsh.
15056 if test -z "$BASH_VERSION$ZSH_VERSION" \
15057 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15058 as_echo='print -r --'
15059 as_echo_n='print -rn --'
15060 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15061 as_echo='printf %s\n'
15062 as_echo_n='printf %s'
15063 else
15064 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15065 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15066 as_echo_n='/usr/ucb/echo -n'
15067 else
15068 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15069 as_echo_n_body='eval
15070 arg=$1;
15071 case $arg in #(
15072 *"$as_nl"*)
15073 expr "X$arg" : "X\\(.*\\)$as_nl";
15074 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15075 esac;
15076 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15077 '
15078 export as_echo_n_body
15079 as_echo_n='sh -c $as_echo_n_body as_echo'
15080 fi
15081 export as_echo_body
15082 as_echo='sh -c $as_echo_body as_echo'
15083 fi
15084
15085 # The user is always right.
15086 if test "${PATH_SEPARATOR+set}" != set; then
15087 PATH_SEPARATOR=:
15088 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15089 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15090 PATH_SEPARATOR=';'
15091 }
15092 fi
15093
15094
15095 # IFS
15096 # We need space, tab and new line, in precisely that order. Quoting is
15097 # there to prevent editors from complaining about space-tab.
15098 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15099 # splitting by setting IFS to empty value.)
15100 IFS=" "" $as_nl"
15101
15102 # Find who we are. Look in the path if we contain no directory separator.
15103 case $0 in #((
15104 *[\\/]* ) as_myself=$0 ;;
15105 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15106 for as_dir in $PATH
15107 do
15108 IFS=$as_save_IFS
15109 test -z "$as_dir" && as_dir=.
15110 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15111 done
15112 IFS=$as_save_IFS
15113
15114 ;;
15115 esac
15116 # We did not find ourselves, most probably we were run as `sh COMMAND'
15117 # in which case we are not to be found in the path.
15118 if test "x$as_myself" = x; then
15119 as_myself=$0
15120 fi
15121 if test ! -f "$as_myself"; then
15122 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15123 exit 1
15124 fi
15125
15126 # Unset variables that we do not need and which cause bugs (e.g. in
15127 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15128 # suppresses any "Segmentation fault" message there. '((' could
15129 # trigger a bug in pdksh 5.2.14.
15130 for as_var in BASH_ENV ENV MAIL MAILPATH
15131 do eval test x\${$as_var+set} = xset \
15132 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15133 done
15134 PS1='$ '
15135 PS2='> '
15136 PS4='+ '
15137
15138 # NLS nuisances.
15139 LC_ALL=C
15140 export LC_ALL
15141 LANGUAGE=C
15142 export LANGUAGE
15143
15144 # CDPATH.
15145 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15146
15147
15148 # as_fn_error ERROR [LINENO LOG_FD]
15149 # ---------------------------------
15150 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15151 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15152 # script with status $?, using 1 if that was 0.
15153 as_fn_error ()
15154 {
15155 as_status=$?; test $as_status -eq 0 && as_status=1
15156 if test "$3"; then
15157 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15158 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15159 fi
15160 $as_echo "$as_me: error: $1" >&2
15161 as_fn_exit $as_status
15162 } # as_fn_error
15163
15164
15165 # as_fn_set_status STATUS
15166 # -----------------------
15167 # Set $? to STATUS, without forking.
15168 as_fn_set_status ()
15169 {
15170 return $1
15171 } # as_fn_set_status
15172
15173 # as_fn_exit STATUS
15174 # -----------------
15175 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15176 as_fn_exit ()
15177 {
15178 set +e
15179 as_fn_set_status $1
15180 exit $1
15181 } # as_fn_exit
15182
15183 # as_fn_unset VAR
15184 # ---------------
15185 # Portably unset VAR.
15186 as_fn_unset ()
15187 {
15188 { eval $1=; unset $1;}
15189 }
15190 as_unset=as_fn_unset
15191 # as_fn_append VAR VALUE
15192 # ----------------------
15193 # Append the text in VALUE to the end of the definition contained in VAR. Take
15194 # advantage of any shell optimizations that allow amortized linear growth over
15195 # repeated appends, instead of the typical quadratic growth present in naive
15196 # implementations.
15197 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15198 eval 'as_fn_append ()
15199 {
15200 eval $1+=\$2
15201 }'
15202 else
15203 as_fn_append ()
15204 {
15205 eval $1=\$$1\$2
15206 }
15207 fi # as_fn_append
15208
15209 # as_fn_arith ARG...
15210 # ------------------
15211 # Perform arithmetic evaluation on the ARGs, and store the result in the
15212 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15213 # must be portable across $(()) and expr.
15214 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15215 eval 'as_fn_arith ()
15216 {
15217 as_val=$(( $* ))
15218 }'
15219 else
15220 as_fn_arith ()
15221 {
15222 as_val=`expr "$@" || test $? -eq 1`
15223 }
15224 fi # as_fn_arith
15225
15226
15227 if expr a : '\(a\)' >/dev/null 2>&1 &&
15228 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15229 as_expr=expr
15230 else
15231 as_expr=false
15232 fi
15233
15234 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15235 as_basename=basename
15236 else
15237 as_basename=false
15238 fi
15239
15240 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15241 as_dirname=dirname
15242 else
15243 as_dirname=false
15244 fi
15245
15246 as_me=`$as_basename -- "$0" ||
15247 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15248 X"$0" : 'X\(//\)$' \| \
15249 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15250 $as_echo X/"$0" |
15251 sed '/^.*\/\([^/][^/]*\)\/*$/{
15252 s//\1/
15253 q
15254 }
15255 /^X\/\(\/\/\)$/{
15256 s//\1/
15257 q
15258 }
15259 /^X\/\(\/\).*/{
15260 s//\1/
15261 q
15262 }
15263 s/.*/./; q'`
15264
15265 # Avoid depending upon Character Ranges.
15266 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15267 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15268 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15269 as_cr_digits='0123456789'
15270 as_cr_alnum=$as_cr_Letters$as_cr_digits
15271
15272 ECHO_C= ECHO_N= ECHO_T=
15273 case `echo -n x` in #(((((
15274 -n*)
15275 case `echo 'xy\c'` in
15276 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15277 xy) ECHO_C='\c';;
15278 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15279 ECHO_T=' ';;
15280 esac;;
15281 *)
15282 ECHO_N='-n';;
15283 esac
15284
15285 rm -f conf$$ conf$$.exe conf$$.file
15286 if test -d conf$$.dir; then
15287 rm -f conf$$.dir/conf$$.file
15288 else
15289 rm -f conf$$.dir
15290 mkdir conf$$.dir 2>/dev/null
15291 fi
15292 if (echo >conf$$.file) 2>/dev/null; then
15293 if ln -s conf$$.file conf$$ 2>/dev/null; then
15294 as_ln_s='ln -s'
15295 # ... but there are two gotchas:
15296 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15297 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15298 # In both cases, we have to default to `cp -p'.
15299 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15300 as_ln_s='cp -p'
15301 elif ln conf$$.file conf$$ 2>/dev/null; then
15302 as_ln_s=ln
15303 else
15304 as_ln_s='cp -p'
15305 fi
15306 else
15307 as_ln_s='cp -p'
15308 fi
15309 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15310 rmdir conf$$.dir 2>/dev/null
15311
15312
15313 # as_fn_mkdir_p
15314 # -------------
15315 # Create "$as_dir" as a directory, including parents if necessary.
15316 as_fn_mkdir_p ()
15317 {
15318
15319 case $as_dir in #(
15320 -*) as_dir=./$as_dir;;
15321 esac
15322 test -d "$as_dir" || eval $as_mkdir_p || {
15323 as_dirs=
15324 while :; do
15325 case $as_dir in #(
15326 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15327 *) as_qdir=$as_dir;;
15328 esac
15329 as_dirs="'$as_qdir' $as_dirs"
15330 as_dir=`$as_dirname -- "$as_dir" ||
15331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15332 X"$as_dir" : 'X\(//\)[^/]' \| \
15333 X"$as_dir" : 'X\(//\)$' \| \
15334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15335 $as_echo X"$as_dir" |
15336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15337 s//\1/
15338 q
15339 }
15340 /^X\(\/\/\)[^/].*/{
15341 s//\1/
15342 q
15343 }
15344 /^X\(\/\/\)$/{
15345 s//\1/
15346 q
15347 }
15348 /^X\(\/\).*/{
15349 s//\1/
15350 q
15351 }
15352 s/.*/./; q'`
15353 test -d "$as_dir" && break
15354 done
15355 test -z "$as_dirs" || eval "mkdir $as_dirs"
15356 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15357
15358
15359 } # as_fn_mkdir_p
15360 if mkdir -p . 2>/dev/null; then
15361 as_mkdir_p='mkdir -p "$as_dir"'
15362 else
15363 test -d ./-p && rmdir ./-p
15364 as_mkdir_p=false
15365 fi
15366
15367 if test -x / >/dev/null 2>&1; then
15368 as_test_x='test -x'
15369 else
15370 if ls -dL / >/dev/null 2>&1; then
15371 as_ls_L_option=L
15372 else
15373 as_ls_L_option=
15374 fi
15375 as_test_x='
15376 eval sh -c '\''
15377 if test -d "$1"; then
15378 test -d "$1/.";
15379 else
15380 case $1 in #(
15381 -*)set "./$1";;
15382 esac;
15383 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15384 ???[sx]*):;;*)false;;esac;fi
15385 '\'' sh
15386 '
15387 fi
15388 as_executable_p=$as_test_x
15389
15390 # Sed expression to map a string onto a valid CPP name.
15391 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15392
15393 # Sed expression to map a string onto a valid variable name.
15394 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15395
15396
15397 exec 6>&1
15398 ## ----------------------------------- ##
15399 ## Main body of $CONFIG_STATUS script. ##
15400 ## ----------------------------------- ##
15401 _ASEOF
15402 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15403
15404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15405 # Save the log message, to keep $0 and so on meaningful, and to
15406 # report actual input values of CONFIG_FILES etc. instead of their
15407 # values after options handling.
15408 ac_log="
15409 This file was extended by emacs $as_me 24.0.50, which was
15410 generated by GNU Autoconf 2.65. Invocation command line was
15411
15412 CONFIG_FILES = $CONFIG_FILES
15413 CONFIG_HEADERS = $CONFIG_HEADERS
15414 CONFIG_LINKS = $CONFIG_LINKS
15415 CONFIG_COMMANDS = $CONFIG_COMMANDS
15416 $ $0 $@
15417
15418 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15419 "
15420
15421 _ACEOF
15422
15423 case $ac_config_files in *"
15424 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15425 esac
15426
15427 case $ac_config_headers in *"
15428 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15429 esac
15430
15431
15432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15433 # Files that config.status was made for.
15434 config_files="$ac_config_files"
15435 config_headers="$ac_config_headers"
15436 config_commands="$ac_config_commands"
15437
15438 _ACEOF
15439
15440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15441 ac_cs_usage="\
15442 \`$as_me' instantiates files and other configuration actions
15443 from templates according to the current configuration. Unless the files
15444 and actions are specified as TAGs, all are instantiated by default.
15445
15446 Usage: $0 [OPTION]... [TAG]...
15447
15448 -h, --help print this help, then exit
15449 -V, --version print version number and configuration settings, then exit
15450 --config print configuration, then exit
15451 -q, --quiet, --silent
15452 do not print progress messages
15453 -d, --debug don't remove temporary files
15454 --recheck update $as_me by reconfiguring in the same conditions
15455 --file=FILE[:TEMPLATE]
15456 instantiate the configuration file FILE
15457 --header=FILE[:TEMPLATE]
15458 instantiate the configuration header FILE
15459
15460 Configuration files:
15461 $config_files
15462
15463 Configuration headers:
15464 $config_headers
15465
15466 Configuration commands:
15467 $config_commands
15468
15469 Report bugs to the package provider."
15470
15471 _ACEOF
15472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15473 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15474 ac_cs_version="\\
15475 emacs config.status 24.0.50
15476 configured by $0, generated by GNU Autoconf 2.65,
15477 with options \\"\$ac_cs_config\\"
15478
15479 Copyright (C) 2009 Free Software Foundation, Inc.
15480 This config.status script is free software; the Free Software Foundation
15481 gives unlimited permission to copy, distribute and modify it."
15482
15483 ac_pwd='$ac_pwd'
15484 srcdir='$srcdir'
15485 INSTALL='$INSTALL'
15486 test -n "\$AWK" || AWK=awk
15487 _ACEOF
15488
15489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15490 # The default lists apply if the user does not specify any file.
15491 ac_need_defaults=:
15492 while test $# != 0
15493 do
15494 case $1 in
15495 --*=*)
15496 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15497 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15498 ac_shift=:
15499 ;;
15500 *)
15501 ac_option=$1
15502 ac_optarg=$2
15503 ac_shift=shift
15504 ;;
15505 esac
15506
15507 case $ac_option in
15508 # Handling of the options.
15509 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15510 ac_cs_recheck=: ;;
15511 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15512 $as_echo "$ac_cs_version"; exit ;;
15513 --config | --confi | --conf | --con | --co | --c )
15514 $as_echo "$ac_cs_config"; exit ;;
15515 --debug | --debu | --deb | --de | --d | -d )
15516 debug=: ;;
15517 --file | --fil | --fi | --f )
15518 $ac_shift
15519 case $ac_optarg in
15520 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15521 esac
15522 as_fn_append CONFIG_FILES " '$ac_optarg'"
15523 ac_need_defaults=false;;
15524 --header | --heade | --head | --hea )
15525 $ac_shift
15526 case $ac_optarg in
15527 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15528 esac
15529 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15530 ac_need_defaults=false;;
15531 --he | --h)
15532 # Conflict between --help and --header
15533 as_fn_error "ambiguous option: \`$1'
15534 Try \`$0 --help' for more information.";;
15535 --help | --hel | -h )
15536 $as_echo "$ac_cs_usage"; exit ;;
15537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15538 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15539 ac_cs_silent=: ;;
15540
15541 # This is an error.
15542 -*) as_fn_error "unrecognized option: \`$1'
15543 Try \`$0 --help' for more information." ;;
15544
15545 *) as_fn_append ac_config_targets " $1"
15546 ac_need_defaults=false ;;
15547
15548 esac
15549 shift
15550 done
15551
15552 ac_configure_extra_args=
15553
15554 if $ac_cs_silent; then
15555 exec 6>/dev/null
15556 ac_configure_extra_args="$ac_configure_extra_args --silent"
15557 fi
15558
15559 _ACEOF
15560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15561 if \$ac_cs_recheck; then
15562 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15563 shift
15564 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15565 CONFIG_SHELL='$SHELL'
15566 export CONFIG_SHELL
15567 exec "\$@"
15568 fi
15569
15570 _ACEOF
15571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15572 exec 5>>config.log
15573 {
15574 echo
15575 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15576 ## Running $as_me. ##
15577 _ASBOX
15578 $as_echo "$ac_log"
15579 } >&5
15580
15581 _ACEOF
15582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15583 #
15584 # INIT-COMMANDS
15585 #
15586 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15587
15588 _ACEOF
15589
15590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15591
15592 # Handling of arguments.
15593 for ac_config_target in $ac_config_targets
15594 do
15595 case $ac_config_target in
15596 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15597 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15598 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15599 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15600 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15601 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15602 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15603 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15604 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15605 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15606 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15607 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15608 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15609
15610 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15611 esac
15612 done
15613
15614
15615 # If the user did not use the arguments to specify the items to instantiate,
15616 # then the envvar interface is used. Set only those that are not.
15617 # We use the long form for the default assignment because of an extremely
15618 # bizarre bug on SunOS 4.1.3.
15619 if $ac_need_defaults; then
15620 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15621 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15622 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15623 fi
15624
15625 # Have a temporary directory for convenience. Make it in the build tree
15626 # simply because there is no reason against having it here, and in addition,
15627 # creating and moving files from /tmp can sometimes cause problems.
15628 # Hook for its removal unless debugging.
15629 # Note that there is a small window in which the directory will not be cleaned:
15630 # after its creation but before its name has been assigned to `$tmp'.
15631 $debug ||
15632 {
15633 tmp=
15634 trap 'exit_status=$?
15635 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15636 ' 0
15637 trap 'as_fn_exit 1' 1 2 13 15
15638 }
15639 # Create a (secure) tmp directory for tmp files.
15640
15641 {
15642 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15643 test -n "$tmp" && test -d "$tmp"
15644 } ||
15645 {
15646 tmp=./conf$$-$RANDOM
15647 (umask 077 && mkdir "$tmp")
15648 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15649
15650 # Set up the scripts for CONFIG_FILES section.
15651 # No need to generate them if there are no CONFIG_FILES.
15652 # This happens for instance with `./config.status config.h'.
15653 if test -n "$CONFIG_FILES"; then
15654
15655 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15656 ac_cs_awk_getline=:
15657 ac_cs_awk_pipe_init=
15658 ac_cs_awk_read_file='
15659 while ((getline aline < (F[key])) > 0)
15660 print(aline)
15661 close(F[key])'
15662 ac_cs_awk_pipe_fini=
15663 else
15664 ac_cs_awk_getline=false
15665 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15666 ac_cs_awk_read_file='
15667 print "|#_!!_#|"
15668 print "cat " F[key] " &&"
15669 '$ac_cs_awk_pipe_init
15670 # The final `:' finishes the AND list.
15671 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15672 fi
15673 ac_cr=`echo X | tr X '\015'`
15674 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15675 # But we know of no other shell where ac_cr would be empty at this
15676 # point, so we can use a bashism as a fallback.
15677 if test "x$ac_cr" = x; then
15678 eval ac_cr=\$\'\\r\'
15679 fi
15680 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15681 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15682 ac_cs_awk_cr='\r'
15683 else
15684 ac_cs_awk_cr=$ac_cr
15685 fi
15686
15687 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15688 _ACEOF
15689
15690 # Create commands to substitute file output variables.
15691 {
15692 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15693 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15694 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15695 echo "_ACAWK" &&
15696 echo "_ACEOF"
15697 } >conf$$files.sh &&
15698 . ./conf$$files.sh ||
15699 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15700 rm -f conf$$files.sh
15701
15702 {
15703 echo "cat >conf$$subs.awk <<_ACEOF" &&
15704 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15705 echo "_ACEOF"
15706 } >conf$$subs.sh ||
15707 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15708 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15709 ac_delim='%!_!# '
15710 for ac_last_try in false false false false false :; do
15711 . ./conf$$subs.sh ||
15712 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15713
15714 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15715 if test $ac_delim_n = $ac_delim_num; then
15716 break
15717 elif $ac_last_try; then
15718 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15719 else
15720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15721 fi
15722 done
15723 rm -f conf$$subs.sh
15724
15725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15726 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15727 _ACEOF
15728 sed -n '
15729 h
15730 s/^/S["/; s/!.*/"]=/
15731 p
15732 g
15733 s/^[^!]*!//
15734 :repl
15735 t repl
15736 s/'"$ac_delim"'$//
15737 t delim
15738 :nl
15739 h
15740 s/\(.\{148\}\)..*/\1/
15741 t more1
15742 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15743 p
15744 n
15745 b repl
15746 :more1
15747 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15748 p
15749 g
15750 s/.\{148\}//
15751 t nl
15752 :delim
15753 h
15754 s/\(.\{148\}\)..*/\1/
15755 t more2
15756 s/["\\]/\\&/g; s/^/"/; s/$/"/
15757 p
15758 b
15759 :more2
15760 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15761 p
15762 g
15763 s/.\{148\}//
15764 t delim
15765 ' <conf$$subs.awk | sed '
15766 /^[^""]/{
15767 N
15768 s/\n//
15769 }
15770 ' >>$CONFIG_STATUS || ac_write_fail=1
15771 rm -f conf$$subs.awk
15772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15773 _ACAWK
15774 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15775 for (key in S) S_is_set[key] = 1
15776 FS = "\a"
15777 \$ac_cs_awk_pipe_init
15778 }
15779 {
15780 line = $ 0
15781 nfields = split(line, field, "@")
15782 substed = 0
15783 len = length(field[1])
15784 for (i = 2; i < nfields; i++) {
15785 key = field[i]
15786 keylen = length(key)
15787 if (S_is_set[key]) {
15788 value = S[key]
15789 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15790 len += length(value) + length(field[++i])
15791 substed = 1
15792 } else
15793 len += 1 + keylen
15794 }
15795 if (nfields == 3 && !substed) {
15796 key = field[2]
15797 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15798 \$ac_cs_awk_read_file
15799 next
15800 }
15801 }
15802 print line
15803 }
15804 \$ac_cs_awk_pipe_fini
15805 _ACAWK
15806 _ACEOF
15807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15808 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15809 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15810 else
15811 cat
15812 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15813 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15814 _ACEOF
15815
15816 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15817 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15818 # trailing colons and then remove the whole line if VPATH becomes empty
15819 # (actually we leave an empty line to preserve line numbers).
15820 if test "x$srcdir" = x.; then
15821 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15822 s/:*\$(srcdir):*/:/
15823 s/:*\${srcdir}:*/:/
15824 s/:*@srcdir@:*/:/
15825 s/^\([^=]*=[ ]*\):*/\1/
15826 s/:*$//
15827 s/^[^=]*=[ ]*$//
15828 }'
15829 fi
15830
15831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15832 fi # test -n "$CONFIG_FILES"
15833
15834 # Set up the scripts for CONFIG_HEADERS section.
15835 # No need to generate them if there are no CONFIG_HEADERS.
15836 # This happens for instance with `./config.status Makefile'.
15837 if test -n "$CONFIG_HEADERS"; then
15838 cat >"$tmp/defines.awk" <<\_ACAWK ||
15839 BEGIN {
15840 _ACEOF
15841
15842 # Transform confdefs.h into an awk script `defines.awk', embedded as
15843 # here-document in config.status, that substitutes the proper values into
15844 # config.h.in to produce config.h.
15845
15846 # Create a delimiter string that does not exist in confdefs.h, to ease
15847 # handling of long lines.
15848 ac_delim='%!_!# '
15849 for ac_last_try in false false :; do
15850 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15851 if test -z "$ac_t"; then
15852 break
15853 elif $ac_last_try; then
15854 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15855 else
15856 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15857 fi
15858 done
15859
15860 # For the awk script, D is an array of macro values keyed by name,
15861 # likewise P contains macro parameters if any. Preserve backslash
15862 # newline sequences.
15863
15864 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15865 sed -n '
15866 s/.\{148\}/&'"$ac_delim"'/g
15867 t rset
15868 :rset
15869 s/^[ ]*#[ ]*define[ ][ ]*/ /
15870 t def
15871 d
15872 :def
15873 s/\\$//
15874 t bsnl
15875 s/["\\]/\\&/g
15876 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15877 D["\1"]=" \3"/p
15878 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15879 d
15880 :bsnl
15881 s/["\\]/\\&/g
15882 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15883 D["\1"]=" \3\\\\\\n"\\/p
15884 t cont
15885 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15886 t cont
15887 d
15888 :cont
15889 n
15890 s/.\{148\}/&'"$ac_delim"'/g
15891 t clear
15892 :clear
15893 s/\\$//
15894 t bsnlc
15895 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15896 d
15897 :bsnlc
15898 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15899 b cont
15900 ' <confdefs.h | sed '
15901 s/'"$ac_delim"'/"\\\
15902 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15903
15904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15905 for (key in D) D_is_set[key] = 1
15906 FS = "\a"
15907 }
15908 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15909 line = \$ 0
15910 split(line, arg, " ")
15911 if (arg[1] == "#") {
15912 defundef = arg[2]
15913 mac1 = arg[3]
15914 } else {
15915 defundef = substr(arg[1], 2)
15916 mac1 = arg[2]
15917 }
15918 split(mac1, mac2, "(") #)
15919 macro = mac2[1]
15920 prefix = substr(line, 1, index(line, defundef) - 1)
15921 if (D_is_set[macro]) {
15922 # Preserve the white space surrounding the "#".
15923 print prefix "define", macro P[macro] D[macro]
15924 next
15925 } else {
15926 # Replace #undef with comments. This is necessary, for example,
15927 # in the case of _POSIX_SOURCE, which is predefined and required
15928 # on some systems where configure will not decide to define it.
15929 if (defundef == "undef") {
15930 print "/*", prefix defundef, macro, "*/"
15931 next
15932 }
15933 }
15934 }
15935 { print }
15936 _ACAWK
15937 _ACEOF
15938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15939 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15940 fi # test -n "$CONFIG_HEADERS"
15941
15942
15943 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15944 shift
15945 for ac_tag
15946 do
15947 case $ac_tag in
15948 :[FHLC]) ac_mode=$ac_tag; continue;;
15949 esac
15950 case $ac_mode$ac_tag in
15951 :[FHL]*:*);;
15952 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15953 :[FH]-) ac_tag=-:-;;
15954 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15955 esac
15956 ac_save_IFS=$IFS
15957 IFS=:
15958 set x $ac_tag
15959 IFS=$ac_save_IFS
15960 shift
15961 ac_file=$1
15962 shift
15963
15964 case $ac_mode in
15965 :L) ac_source=$1;;
15966 :[FH])
15967 ac_file_inputs=
15968 for ac_f
15969 do
15970 case $ac_f in
15971 -) ac_f="$tmp/stdin";;
15972 *) # Look for the file first in the build tree, then in the source tree
15973 # (if the path is not absolute). The absolute path cannot be DOS-style,
15974 # because $ac_f cannot contain `:'.
15975 test -f "$ac_f" ||
15976 case $ac_f in
15977 [\\/$]*) false;;
15978 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15979 esac ||
15980 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15981 esac
15982 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15983 as_fn_append ac_file_inputs " '$ac_f'"
15984 done
15985
15986 # Let's still pretend it is `configure' which instantiates (i.e., don't
15987 # use $as_me), people would be surprised to read:
15988 # /* config.h. Generated by config.status. */
15989 configure_input='Generated from '`
15990 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15991 `' by configure.'
15992 if test x"$ac_file" != x-; then
15993 configure_input="$ac_file. $configure_input"
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15995 $as_echo "$as_me: creating $ac_file" >&6;}
15996 fi
15997 # Neutralize special characters interpreted by sed in replacement strings.
15998 case $configure_input in #(
15999 *\&* | *\|* | *\\* )
16000 ac_sed_conf_input=`$as_echo "$configure_input" |
16001 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16002 *) ac_sed_conf_input=$configure_input;;
16003 esac
16004
16005 case $ac_tag in
16006 *:-:* | *:-) cat >"$tmp/stdin" \
16007 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16008 esac
16009 ;;
16010 esac
16011
16012 ac_dir=`$as_dirname -- "$ac_file" ||
16013 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16014 X"$ac_file" : 'X\(//\)[^/]' \| \
16015 X"$ac_file" : 'X\(//\)$' \| \
16016 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16017 $as_echo X"$ac_file" |
16018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16019 s//\1/
16020 q
16021 }
16022 /^X\(\/\/\)[^/].*/{
16023 s//\1/
16024 q
16025 }
16026 /^X\(\/\/\)$/{
16027 s//\1/
16028 q
16029 }
16030 /^X\(\/\).*/{
16031 s//\1/
16032 q
16033 }
16034 s/.*/./; q'`
16035 as_dir="$ac_dir"; as_fn_mkdir_p
16036 ac_builddir=.
16037
16038 case "$ac_dir" in
16039 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16040 *)
16041 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16042 # A ".." for each directory in $ac_dir_suffix.
16043 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16044 case $ac_top_builddir_sub in
16045 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16046 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16047 esac ;;
16048 esac
16049 ac_abs_top_builddir=$ac_pwd
16050 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16051 # for backward compatibility:
16052 ac_top_builddir=$ac_top_build_prefix
16053
16054 case $srcdir in
16055 .) # We are building in place.
16056 ac_srcdir=.
16057 ac_top_srcdir=$ac_top_builddir_sub
16058 ac_abs_top_srcdir=$ac_pwd ;;
16059 [\\/]* | ?:[\\/]* ) # Absolute name.
16060 ac_srcdir=$srcdir$ac_dir_suffix;
16061 ac_top_srcdir=$srcdir
16062 ac_abs_top_srcdir=$srcdir ;;
16063 *) # Relative name.
16064 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16065 ac_top_srcdir=$ac_top_build_prefix$srcdir
16066 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16067 esac
16068 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16069
16070
16071 case $ac_mode in
16072 :F)
16073 #
16074 # CONFIG_FILE
16075 #
16076
16077 case $INSTALL in
16078 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16079 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16080 esac
16081 _ACEOF
16082
16083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16084 # If the template does not know about datarootdir, expand it.
16085 # FIXME: This hack should be removed a few years after 2.60.
16086 ac_datarootdir_hack=; ac_datarootdir_seen=
16087 ac_sed_dataroot='
16088 /datarootdir/ {
16089 p
16090 q
16091 }
16092 /@datadir@/p
16093 /@docdir@/p
16094 /@infodir@/p
16095 /@localedir@/p
16096 /@mandir@/p'
16097 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16098 *datarootdir*) ac_datarootdir_seen=yes;;
16099 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16101 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16102 _ACEOF
16103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16104 ac_datarootdir_hack='
16105 s&@datadir@&$datadir&g
16106 s&@docdir@&$docdir&g
16107 s&@infodir@&$infodir&g
16108 s&@localedir@&$localedir&g
16109 s&@mandir@&$mandir&g
16110 s&\\\${datarootdir}&$datarootdir&g' ;;
16111 esac
16112 _ACEOF
16113
16114 # Neutralize VPATH when `$srcdir' = `.'.
16115 # Shell code in configure.ac might set extrasub.
16116 # FIXME: do we really want to maintain this feature?
16117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16118 ac_sed_extra="$ac_vpsub
16119 $extrasub
16120 _ACEOF
16121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16122 :t
16123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16124 s|@configure_input@|$ac_sed_conf_input|;t t
16125 s&@top_builddir@&$ac_top_builddir_sub&;t t
16126 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16127 s&@srcdir@&$ac_srcdir&;t t
16128 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16129 s&@top_srcdir@&$ac_top_srcdir&;t t
16130 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16131 s&@builddir@&$ac_builddir&;t t
16132 s&@abs_builddir@&$ac_abs_builddir&;t t
16133 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16134 s&@INSTALL@&$ac_INSTALL&;t t
16135 $ac_datarootdir_hack
16136 "
16137 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16138 if $ac_cs_awk_getline; then
16139 $AWK -f "$tmp/subs.awk"
16140 else
16141 $AWK -f "$tmp/subs.awk" | $SHELL
16142 fi >$tmp/out \
16143 || as_fn_error "could not create $ac_file" "$LINENO" 5
16144
16145 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16146 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16147 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16149 which seems to be undefined. Please make sure it is defined." >&5
16150 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16151 which seems to be undefined. Please make sure it is defined." >&2;}
16152
16153 rm -f "$tmp/stdin"
16154 case $ac_file in
16155 -) cat "$tmp/out" && rm -f "$tmp/out";;
16156 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16157 esac \
16158 || as_fn_error "could not create $ac_file" "$LINENO" 5
16159 ;;
16160 :H)
16161 #
16162 # CONFIG_HEADER
16163 #
16164 if test x"$ac_file" != x-; then
16165 {
16166 $as_echo "/* $configure_input */" \
16167 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16168 } >"$tmp/config.h" \
16169 || as_fn_error "could not create $ac_file" "$LINENO" 5
16170 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16172 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16173 else
16174 rm -f "$ac_file"
16175 mv "$tmp/config.h" "$ac_file" \
16176 || as_fn_error "could not create $ac_file" "$LINENO" 5
16177 fi
16178 else
16179 $as_echo "/* $configure_input */" \
16180 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16181 || as_fn_error "could not create -" "$LINENO" 5
16182 fi
16183 ;;
16184
16185 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16186 $as_echo "$as_me: executing $ac_file commands" >&6;}
16187 ;;
16188 esac
16189
16190
16191 case $ac_file$ac_mode in
16192 "default":C)
16193
16194 ### Make the necessary directories, if they don't exist.
16195 for dir in etc lisp ; do
16196 test -d ${dir} || mkdir ${dir}
16197 done
16198
16199 echo creating src/epaths.h
16200 ${MAKE-make} epaths-force
16201
16202 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
16203 echo creating src/.gdbinit
16204 echo source $srcdir/src/.gdbinit > src/.gdbinit
16205 fi
16206
16207 ;;
16208
16209 esac
16210 done # for ac_tag
16211
16212
16213 as_fn_exit 0
16214 _ACEOF
16215 ac_clean_files=$ac_clean_files_save
16216
16217 test $ac_write_fail = 0 ||
16218 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16219
16220
16221 # configure is writing to config.log, and then calls config.status.
16222 # config.status does its own redirection, appending to config.log.
16223 # Unfortunately, on DOS this fails, as config.log is still kept open
16224 # by configure, so config.status won't be able to write to it; its
16225 # output is simply discarded. So we exec the FD to /dev/null,
16226 # effectively closing config.log, so it can be properly (re)opened and
16227 # appended to by config.status. When coming back to configure, we
16228 # need to make the FD available again.
16229 if test "$no_create" != yes; then
16230 ac_cs_success=:
16231 ac_config_status_args=
16232 test "$silent" = yes &&
16233 ac_config_status_args="$ac_config_status_args --quiet"
16234 exec 5>/dev/null
16235 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16236 exec 5>>config.log
16237 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16238 # would make configure fail if this is the last instruction.
16239 $ac_cs_success || as_fn_exit $?
16240 fi
16241 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16243 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16244 fi
16245
16246