Handle --version reasonably in CANNOT_DUMP configuration.
[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_SWITCH_SYSTEM_EXTRA
603 LD_SWITCH_SYSTEM_TEMACS
604 POST_ALLOC_OBJ
605 PRE_ALLOC_OBJ
606 CYGWIN_OBJ
607 LIBX_OTHER
608 LIBXMENU
609 OLDXMENU
610 OLDXMENU_TARGET
611 LIBXT_OTHER
612 TOOLKIT_LIBW
613 WIDGET_OBJ
614 XOBJ
615 XMENU_OBJ
616 OTHER_FILES
617 GNU_OBJC_CFLAGS
618 GNUSTEP_SYSTEM_LIBRARIES
619 GNUSTEP_SYSTEM_HEADERS
620 ns_appsrc
621 ns_appresdir
622 ns_appbindir
623 ns_appdir
624 opsysfile
625 machfile
626 X_TOOLKIT_TYPE
627 C_SWITCH_X_SYSTEM
628 C_SWITCH_X_SITE
629 LD_SWITCH_X_SITE
630 unexec
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 LIBXSM
664 LIBGPM
665 LIBGIF
666 LIBTIFF
667 LIBPNG
668 LIBJPEG
669 LIBXPM
670 FREETYPE_LIBS
671 FREETYPE_CFLAGS
672 FONT_OBJ
673 M17N_FLT_LIBS
674 M17N_FLT_CFLAGS
675 LIBOTF_LIBS
676 LIBOTF_CFLAGS
677 XFT_LIBS
678 XFT_CFLAGS
679 FONTCONFIG_LIBS
680 FONTCONFIG_CFLAGS
681 LIBXMU
682 LIBXTR6
683 LIBSELINUX_LIBS
684 GCONF_LIBS
685 GCONF_CFLAGS
686 DBUS_OBJ
687 DBUS_LIBS
688 DBUS_CFLAGS
689 GTK_OBJ
690 GTK_LIBS
691 GTK_CFLAGS
692 RSVG_LIBS
693 RSVG_CFLAGS
694 HAVE_XSERVER
695 LIB_STANDARD
696 NS_SUPPORT
697 NS_OBJ
698 NS_IMPL_GNUSTEP_INC
699 LD_SWITCH_X_SITE_AUX_RPATH
700 LD_SWITCH_X_SITE_AUX
701 XMKMF
702 SET_MAKE
703 CFLAGS_SOUND
704 ALSA_LIBS
705 ALSA_CFLAGS
706 PKG_CONFIG
707 LIBSOUND
708 START_FILES
709 LIB_MATH
710 CRT_DIR
711 LIBS_SYSTEM
712 C_SWITCH_SYSTEM
713 C_SWITCH_MACHINE
714 LD_SWITCH_SYSTEM
715 MAKEINFO
716 GZIP_PROG
717 INSTALL_INFO
718 RANLIB
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 EGREP
723 GREP
724 CPP
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
731 CC
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 MAINT
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 with_pop
783 with_kerberos
784 with_kerberos5
785 with_hesiod
786 with_mmdf
787 with_mail_unlink
788 with_mailhost
789 with_sound
790 with_sync_input
791 with_x_toolkit
792 with_xpm
793 with_jpeg
794 with_tiff
795 with_gif
796 with_png
797 with_rsvg
798 with_xft
799 with_libotf
800 with_m17n_flt
801 with_toolkit_scroll_bars
802 with_xaw3d
803 with_xim
804 with_ns
805 with_gpm
806 with_dbus
807 with_gconf
808 with_selinux
809 with_makeinfo
810 with_gtk
811 with_gcc
812 with_pkg_config_prog
813 with_crt_dir
814 with_gnustep_conf
815 enable_ns_self_contained
816 enable_asserts
817 enable_maintainer_mode
818 enable_locallisppath
819 enable_checking
820 enable_profiling
821 enable_autodepend
822 enable_largefile
823 with_x
824 '
825 ac_precious_vars='build_alias
826 host_alias
827 target_alias
828 CC
829 CFLAGS
830 LDFLAGS
831 LIBS
832 CPPFLAGS
833 CPP
834 XMKMF'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
894 fi
895
896 case $ac_option in
897 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *) ac_optarg=yes ;;
899 esac
900
901 # Accept the important Cygnus configure options, so we can diagnose typos.
902
903 case $ac_dashdash$ac_option in
904 --)
905 ac_dashdash=yes ;;
906
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 bindir=$ac_optarg ;;
911
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
916
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
923
924 --config-cache | -C)
925 cache_file=config.cache ;;
926
927 -datadir | --datadir | --datadi | --datad)
928 ac_prev=datadir ;;
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
931
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
938
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
954
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
959
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
964
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=\$ac_optarg ;;
980
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
989
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
993
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1000
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1005
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1011
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1018
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1023
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1028
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1035
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1040
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1047
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1052
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1056
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1059 no_create=yes ;;
1060
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1064
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1073
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1078
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1085
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1092
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1109
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1114
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1119
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1123
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1128 sbindir=$ac_optarg ;;
1129
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1139 sharedstatedir=$ac_optarg ;;
1140
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1144 site=$ac_optarg ;;
1145
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1150
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1157
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1162
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1165
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1168
1169 -with-* | --with-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=\$ac_optarg ;;
1184
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
1200
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1204
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1211
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1218
1219 -*) as_fn_error "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information."
1221 ;;
1222
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1232
1233 *)
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1239 ;;
1240
1241 esac
1242 done
1243
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error "missing argument to $ac_option"
1247 fi
1248
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac
1255 fi
1256
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1262 do
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
1275 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1277
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1290 If a cross compiler is detected then cross compile mode will be used." >&2
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1293 fi
1294 fi
1295
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299 test "$silent" = yes && exec 6>/dev/null
1300
1301
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error "pwd does not report name of working directory"
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\).*/{
1333 s//\1/
1334 q
1335 }
1336 s/.*/./; q'`
1337 srcdir=$ac_confdir
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 srcdir=..
1340 fi
1341 else
1342 ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1347 fi
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1351 pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1355 fi
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1368
1369 #
1370 # Report the --help message.
1371 #
1372 if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1377
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE. See below for descriptions of some of the useful variables.
1382
1383 Defaults for the options are specified in brackets.
1384
1385 Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395
1396 Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 [PREFIX]
1401
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1406
1407 For better control, use the options below.
1408
1409 Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1429 _ACEOF
1430
1431 cat <<\_ACEOF
1432
1433 Program names:
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437
1438 X features:
1439 --x-includes=DIR X include files are in DIR
1440 --x-libraries=DIR X library files are in DIR
1441
1442 System types:
1443 --build=BUILD configure for building on BUILD [guessed]
1444 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1445 _ACEOF
1446 fi
1447
1448 if test -n "$ac_init_help"; then
1449 case $ac_init_help in
1450 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1451 esac
1452 cat <<\_ACEOF
1453
1454 Optional Features:
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --disable-ns-self-contained
1459 disable self contained build under NeXTstep
1460 --enable-asserts compile code with asserts enabled
1461 --enable-maintainer-mode
1462 enable make rules and dependencies not useful (and
1463 sometimes confusing) to the casual installer
1464 --enable-locallisppath=PATH
1465 directories Emacs should search for lisp files
1466 specific to this site
1467 --enable-checking[=LIST]
1468 enable expensive run-time checks. With LIST, enable
1469 only specific categories of checks. Categories are:
1470 all,yes,no. Flags are: stringbytes, stringoverrun,
1471 stringfreelist, xmallocoverrun, conslist
1472 --enable-profiling build emacs with profiling support. This might not
1473 work on all platforms
1474 --enable-autodepend automatically generate dependencies to .h-files.
1475 Requires GNU Make and Gcc. Enabled if GNU Make and
1476 Gcc is found
1477 --disable-largefile omit support for large files
1478
1479 Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --without-pop don't support POP mail retrieval with movemail
1483 --with-kerberos support Kerberos-authenticated POP
1484 --with-kerberos5 support Kerberos version 5 authenticated POP
1485 --with-hesiod support Hesiod to get the POP server host
1486 --with-mmdf support MMDF mailboxes
1487 --with-mail-unlink unlink, rather than empty, mail spool after reading
1488 --with-mailhost=HOSTNAME
1489 string giving default POP mail host
1490 --without-sound don't compile with sound support
1491 --without-sync-input process async input synchronously
1492 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1493 athena, motif, no)
1494 --without-xpm don't compile with XPM image support
1495 --without-jpeg don't compile with JPEG image support
1496 --without-tiff don't compile with TIFF image support
1497 --without-gif don't compile with GIF image support
1498 --without-png don't compile with PNG image support
1499 --without-rsvg don't compile with SVG image support
1500 --without-xft don't use XFT for anti aliased fonts
1501 --without-libotf don't use libotf for OpenType font support
1502 --without-m17n-flt don't use m17n-flt for text shaping
1503 --without-toolkit-scroll-bars
1504 don't use Motif or Xaw3d scroll bars
1505 --without-xaw3d don't use Xaw3d
1506 --without-xim don't use X11 XIM
1507 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1508 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1509 console
1510 --without-dbus don't compile with D-Bus support
1511 --without-gconf don't compile with GConf support
1512 --without-selinux don't compile with SELinux support
1513 --without-makeinfo don't require makeinfo for building manuals
1514
1515 --with-pkg-config-prog=PATH
1516 path to pkg-config for finding GTK and librsvg
1517 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1518 /usr/lib, or /usr/lib64 on some platforms.
1519 --with-gnustep-conf=PATH
1520 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1521 or /etc/GNUstep/GNUstep.conf
1522 --with-x use the X Window System
1523
1524 Some influential environment variables:
1525 CC C compiler command
1526 CFLAGS C compiler flags
1527 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1528 nonstandard directory <lib dir>
1529 LIBS libraries to pass to the linker, e.g. -l<library>
1530 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1531 you have headers in a nonstandard directory <include dir>
1532 CPP C preprocessor
1533 XMKMF Path to xmkmf, Makefile generator for X Window System
1534
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1537
1538 Report bugs to the package provider.
1539 _ACEOF
1540 ac_status=$?
1541 fi
1542
1543 if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546 test -d "$ac_dir" ||
1547 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548 continue
1549 ac_builddir=.
1550
1551 case "$ac_dir" in
1552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *)
1554 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1555 # A ".." for each directory in $ac_dir_suffix.
1556 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557 case $ac_top_builddir_sub in
1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 esac ;;
1561 esac
1562 ac_abs_top_builddir=$ac_pwd
1563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564 # for backward compatibility:
1565 ac_top_builddir=$ac_top_build_prefix
1566
1567 case $srcdir in
1568 .) # We are building in place.
1569 ac_srcdir=.
1570 ac_top_srcdir=$ac_top_builddir_sub
1571 ac_abs_top_srcdir=$ac_pwd ;;
1572 [\\/]* | ?:[\\/]* ) # Absolute name.
1573 ac_srcdir=$srcdir$ac_dir_suffix;
1574 ac_top_srcdir=$srcdir
1575 ac_abs_top_srcdir=$srcdir ;;
1576 *) # Relative name.
1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578 ac_top_srcdir=$ac_top_build_prefix$srcdir
1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 esac
1581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583 cd "$ac_dir" || { ac_status=$?; continue; }
1584 # Check for guested configure.
1585 if test -f "$ac_srcdir/configure.gnu"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588 elif test -f "$ac_srcdir/configure"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure" --help=recursive
1591 else
1592 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 fi || ac_status=$?
1594 cd "$ac_pwd" || { ac_status=$?; break; }
1595 done
1596 fi
1597
1598 test -n "$ac_init_help" && exit $ac_status
1599 if $ac_init_version; then
1600 cat <<\_ACEOF
1601 emacs configure 24.0.50
1602 generated by GNU Autoconf 2.65
1603
1604 Copyright (C) 2009 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1607 _ACEOF
1608 exit
1609 fi
1610
1611 ## ------------------------ ##
1612 ## Autoconf initialization. ##
1613 ## ------------------------ ##
1614
1615 # ac_fn_c_try_compile LINENO
1616 # --------------------------
1617 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_compile ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext
1622 if { { ac_try="$ac_compile"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_compile") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest.$ac_objext; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=1
1647 fi
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649 as_fn_set_status $ac_retval
1650
1651 } # ac_fn_c_try_compile
1652
1653 # ac_fn_c_try_link LINENO
1654 # -----------------------
1655 # Try to link conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_c_try_link ()
1657 {
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 rm -f conftest.$ac_objext conftest$ac_exeext
1660 if { { ac_try="$ac_link"
1661 case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_link") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1673 fi
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && {
1676 test -z "$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1678 } && test -s conftest$ac_exeext && {
1679 test "$cross_compiling" = yes ||
1680 $as_test_x conftest$ac_exeext
1681 }; then :
1682 ac_retval=0
1683 else
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688 fi
1689 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691 # interfere with the next link command; also delete a directory that is
1692 # left behind by Apple's compiler. We do this before executing the actions.
1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695 as_fn_set_status $ac_retval
1696
1697 } # ac_fn_c_try_link
1698
1699 # ac_fn_c_try_cpp LINENO
1700 # ----------------------
1701 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_cpp ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if { { ac_try="$ac_cpp conftest.$ac_ext"
1706 case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1713 ac_status=$?
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1718 fi
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } >/dev/null && {
1721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1723 }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730 fi
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_cpp
1735
1736 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1739 # the include files in INCLUDES and setting the cache variable VAR
1740 # accordingly.
1741 ac_fn_c_check_header_mongrel ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1746 $as_echo_n "checking for $2... " >&6; }
1747 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1748 $as_echo_n "(cached) " >&6
1749 fi
1750 eval ac_res=\$$3
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753 else
1754 # Is the header compilable?
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1756 $as_echo_n "checking $2 usability... " >&6; }
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1759 $4
1760 #include <$2>
1761 _ACEOF
1762 if ac_fn_c_try_compile "$LINENO"; then :
1763 ac_header_compiler=yes
1764 else
1765 ac_header_compiler=no
1766 fi
1767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1769 $as_echo "$ac_header_compiler" >&6; }
1770
1771 # Is the header present?
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1773 $as_echo_n "checking $2 presence... " >&6; }
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_cpp "$LINENO"; then :
1779 ac_header_preproc=yes
1780 else
1781 ac_header_preproc=no
1782 fi
1783 rm -f conftest.err conftest.$ac_ext
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1785 $as_echo "$ac_header_preproc" >&6; }
1786
1787 # So? What about this header?
1788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1789 yes:no: )
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1791 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1793 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1794 ;;
1795 no:yes:* )
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1797 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1799 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1801 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1803 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1805 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1806 ;;
1807 esac
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1811 $as_echo_n "(cached) " >&6
1812 else
1813 eval "$3=\$ac_header_compiler"
1814 fi
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 fi
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820
1821 } # ac_fn_c_check_header_mongrel
1822
1823 # ac_fn_c_try_run LINENO
1824 # ----------------------
1825 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1826 # that executables *can* be run.
1827 ac_fn_c_try_run ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if { { ac_try="$ac_link"
1831 case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_link") 2>&5
1838 ac_status=$?
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1841 { { case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_try") 2>&5
1848 ac_status=$?
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; }; }; then :
1851 ac_retval=0
1852 else
1853 $as_echo "$as_me: program exited with status $ac_status" >&5
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1856
1857 ac_retval=$ac_status
1858 fi
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 as_fn_set_status $ac_retval
1862
1863 } # ac_fn_c_try_run
1864
1865 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1866 # -------------------------------------------------------
1867 # Tests whether HEADER exists and can be compiled using the include files in
1868 # INCLUDES, setting the cache variable VAR accordingly.
1869 ac_fn_c_check_header_compile ()
1870 {
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 $as_echo_n "(cached) " >&6
1876 else
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1879 $4
1880 #include <$2>
1881 _ACEOF
1882 if ac_fn_c_try_compile "$LINENO"; then :
1883 eval "$3=yes"
1884 else
1885 eval "$3=no"
1886 fi
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888 fi
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893
1894 } # ac_fn_c_check_header_compile
1895
1896 # ac_fn_c_check_decl LINENO SYMBOL VAR
1897 # ------------------------------------
1898 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1899 ac_fn_c_check_decl ()
1900 {
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1903 $as_echo_n "checking whether $2 is declared... " >&6; }
1904 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905 $as_echo_n "(cached) " >&6
1906 else
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 $4
1910 int
1911 main ()
1912 {
1913 #ifndef $2
1914 (void) $2;
1915 #endif
1916
1917 ;
1918 return 0;
1919 }
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922 eval "$3=yes"
1923 else
1924 eval "$3=no"
1925 fi
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 fi
1928 eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1932
1933 } # ac_fn_c_check_decl
1934
1935 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1936 # ----------------------------------------------
1937 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1938 ac_fn_c_check_header_preproc ()
1939 {
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942 $as_echo_n "checking for $2... " >&6; }
1943 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1944 $as_echo_n "(cached) " >&6
1945 else
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1948 #include <$2>
1949 _ACEOF
1950 if ac_fn_c_try_cpp "$LINENO"; then :
1951 eval "$3=yes"
1952 else
1953 eval "$3=no"
1954 fi
1955 rm -f conftest.err conftest.$ac_ext
1956 fi
1957 eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1961
1962 } # ac_fn_c_check_header_preproc
1963
1964 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1965 # ----------------------------------------------------
1966 # Tries to find if the field MEMBER exists in type AGGR, after including
1967 # INCLUDES, setting cache variable VAR accordingly.
1968 ac_fn_c_check_member ()
1969 {
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1972 $as_echo_n "checking for $2.$3... " >&6; }
1973 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1974 $as_echo_n "(cached) " >&6
1975 else
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1978 $5
1979 int
1980 main ()
1981 {
1982 static $2 ac_aggr;
1983 if (ac_aggr.$3)
1984 return 0;
1985 ;
1986 return 0;
1987 }
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990 eval "$4=yes"
1991 else
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1994 $5
1995 int
1996 main ()
1997 {
1998 static $2 ac_aggr;
1999 if (sizeof ac_aggr.$3)
2000 return 0;
2001 ;
2002 return 0;
2003 }
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006 eval "$4=yes"
2007 else
2008 eval "$4=no"
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 fi
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 fi
2014 eval ac_res=\$$4
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018
2019 } # ac_fn_c_check_member
2020
2021 # ac_fn_c_check_func LINENO FUNC VAR
2022 # ----------------------------------
2023 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2024 ac_fn_c_check_func ()
2025 {
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2030 $as_echo_n "(cached) " >&6
2031 else
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2036 #define $2 innocuous_$2
2037
2038 /* System header to define __stub macros and hopefully few prototypes,
2039 which can conflict with char $2 (); below.
2040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2041 <limits.h> exists even on freestanding compilers. */
2042
2043 #ifdef __STDC__
2044 # include <limits.h>
2045 #else
2046 # include <assert.h>
2047 #endif
2048
2049 #undef $2
2050
2051 /* Override any GCC internal prototype to avoid an error.
2052 Use char because int might match the return type of a GCC
2053 builtin and then its argument prototype would still apply. */
2054 #ifdef __cplusplus
2055 extern "C"
2056 #endif
2057 char $2 ();
2058 /* The GNU C library defines this for functions which it implements
2059 to always fail with ENOSYS. Some functions are actually named
2060 something starting with __ and the normal name is an alias. */
2061 #if defined __stub_$2 || defined __stub___$2
2062 choke me
2063 #endif
2064
2065 int
2066 main ()
2067 {
2068 return $2 ();
2069 ;
2070 return 0;
2071 }
2072 _ACEOF
2073 if ac_fn_c_try_link "$LINENO"; then :
2074 eval "$3=yes"
2075 else
2076 eval "$3=no"
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext \
2079 conftest$ac_exeext conftest.$ac_ext
2080 fi
2081 eval ac_res=\$$3
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2085
2086 } # ac_fn_c_check_func
2087
2088 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2089 # -------------------------------------------
2090 # Tests whether TYPE exists after having included INCLUDES, setting cache
2091 # variable VAR accordingly.
2092 ac_fn_c_check_type ()
2093 {
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096 $as_echo_n "checking for $2... " >&6; }
2097 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2098 $as_echo_n "(cached) " >&6
2099 else
2100 eval "$3=no"
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 $4
2104 int
2105 main ()
2106 {
2107 if (sizeof ($2))
2108 return 0;
2109 ;
2110 return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2116 $4
2117 int
2118 main ()
2119 {
2120 if (sizeof (($2)))
2121 return 0;
2122 ;
2123 return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127
2128 else
2129 eval "$3=yes"
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 fi
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 fi
2135 eval ac_res=\$$3
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2139
2140 } # ac_fn_c_check_type
2141 cat >config.log <<_ACEOF
2142 This file contains any messages produced by compilers while
2143 running configure, to aid debugging if configure makes a mistake.
2144
2145 It was created by emacs $as_me 24.0.50, which was
2146 generated by GNU Autoconf 2.65. Invocation command line was
2147
2148 $ $0 $@
2149
2150 _ACEOF
2151 exec 5>>config.log
2152 {
2153 cat <<_ASUNAME
2154 ## --------- ##
2155 ## Platform. ##
2156 ## --------- ##
2157
2158 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2159 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2160 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2161 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2162 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2163
2164 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2165 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2166
2167 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2168 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2169 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2170 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2171 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2172 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2173 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2174
2175 _ASUNAME
2176
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 $as_echo "PATH: $as_dir"
2183 done
2184 IFS=$as_save_IFS
2185
2186 } >&5
2187
2188 cat >&5 <<_ACEOF
2189
2190
2191 ## ----------- ##
2192 ## Core tests. ##
2193 ## ----------- ##
2194
2195 _ACEOF
2196
2197
2198 # Keep a trace of the command line.
2199 # Strip out --no-create and --no-recursion so they do not pile up.
2200 # Strip out --silent because we don't want to record it for future runs.
2201 # Also quote any args containing shell meta-characters.
2202 # Make two passes to allow for proper duplicate-argument suppression.
2203 ac_configure_args=
2204 ac_configure_args0=
2205 ac_configure_args1=
2206 ac_must_keep_next=false
2207 for ac_pass in 1 2
2208 do
2209 for ac_arg
2210 do
2211 case $ac_arg in
2212 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2214 | -silent | --silent | --silen | --sile | --sil)
2215 continue ;;
2216 *\'*)
2217 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2218 esac
2219 case $ac_pass in
2220 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2221 2)
2222 as_fn_append ac_configure_args1 " '$ac_arg'"
2223 if test $ac_must_keep_next = true; then
2224 ac_must_keep_next=false # Got value, back to normal.
2225 else
2226 case $ac_arg in
2227 *=* | --config-cache | -C | -disable-* | --disable-* \
2228 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2229 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2230 | -with-* | --with-* | -without-* | --without-* | --x)
2231 case "$ac_configure_args0 " in
2232 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2233 esac
2234 ;;
2235 -* ) ac_must_keep_next=true ;;
2236 esac
2237 fi
2238 as_fn_append ac_configure_args " '$ac_arg'"
2239 ;;
2240 esac
2241 done
2242 done
2243 { ac_configure_args0=; unset ac_configure_args0;}
2244 { ac_configure_args1=; unset ac_configure_args1;}
2245
2246 # When interrupted or exit'd, cleanup temporary files, and complete
2247 # config.log. We remove comments because anyway the quotes in there
2248 # would cause problems or look ugly.
2249 # WARNING: Use '\'' to represent an apostrophe within the trap.
2250 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2251 trap 'exit_status=$?
2252 # Save into config.log some information that might help in debugging.
2253 {
2254 echo
2255
2256 cat <<\_ASBOX
2257 ## ---------------- ##
2258 ## Cache variables. ##
2259 ## ---------------- ##
2260 _ASBOX
2261 echo
2262 # The following way of writing the cache mishandles newlines in values,
2263 (
2264 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2265 eval ac_val=\$$ac_var
2266 case $ac_val in #(
2267 *${as_nl}*)
2268 case $ac_var in #(
2269 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2270 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2271 esac
2272 case $ac_var in #(
2273 _ | IFS | as_nl) ;; #(
2274 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2275 *) { eval $ac_var=; unset $ac_var;} ;;
2276 esac ;;
2277 esac
2278 done
2279 (set) 2>&1 |
2280 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2281 *${as_nl}ac_space=\ *)
2282 sed -n \
2283 "s/'\''/'\''\\\\'\'''\''/g;
2284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2285 ;; #(
2286 *)
2287 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2288 ;;
2289 esac |
2290 sort
2291 )
2292 echo
2293
2294 cat <<\_ASBOX
2295 ## ----------------- ##
2296 ## Output variables. ##
2297 ## ----------------- ##
2298 _ASBOX
2299 echo
2300 for ac_var in $ac_subst_vars
2301 do
2302 eval ac_val=\$$ac_var
2303 case $ac_val in
2304 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2305 esac
2306 $as_echo "$ac_var='\''$ac_val'\''"
2307 done | sort
2308 echo
2309
2310 if test -n "$ac_subst_files"; then
2311 cat <<\_ASBOX
2312 ## ------------------- ##
2313 ## File substitutions. ##
2314 ## ------------------- ##
2315 _ASBOX
2316 echo
2317 for ac_var in $ac_subst_files
2318 do
2319 eval ac_val=\$$ac_var
2320 case $ac_val in
2321 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322 esac
2323 $as_echo "$ac_var='\''$ac_val'\''"
2324 done | sort
2325 echo
2326 fi
2327
2328 if test -s confdefs.h; then
2329 cat <<\_ASBOX
2330 ## ----------- ##
2331 ## confdefs.h. ##
2332 ## ----------- ##
2333 _ASBOX
2334 echo
2335 cat confdefs.h
2336 echo
2337 fi
2338 test "$ac_signal" != 0 &&
2339 $as_echo "$as_me: caught signal $ac_signal"
2340 $as_echo "$as_me: exit $exit_status"
2341 } >&5
2342 rm -f core *.core core.conftest.* &&
2343 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2344 exit $exit_status
2345 ' 0
2346 for ac_signal in 1 2 13 15; do
2347 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2348 done
2349 ac_signal=0
2350
2351 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2352 rm -f -r conftest* confdefs.h
2353
2354 $as_echo "/* confdefs.h */" > confdefs.h
2355
2356 # Predefined preprocessor variables.
2357
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_NAME "$PACKAGE_NAME"
2360 _ACEOF
2361
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2364 _ACEOF
2365
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2368 _ACEOF
2369
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_STRING "$PACKAGE_STRING"
2372 _ACEOF
2373
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2376 _ACEOF
2377
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_URL "$PACKAGE_URL"
2380 _ACEOF
2381
2382
2383 # Let the site file select an alternate cache file if it wants to.
2384 # Prefer an explicitly selected file to automatically selected ones.
2385 ac_site_file1=NONE
2386 ac_site_file2=NONE
2387 if test -n "$CONFIG_SITE"; then
2388 ac_site_file1=$CONFIG_SITE
2389 elif test "x$prefix" != xNONE; then
2390 ac_site_file1=$prefix/share/config.site
2391 ac_site_file2=$prefix/etc/config.site
2392 else
2393 ac_site_file1=$ac_default_prefix/share/config.site
2394 ac_site_file2=$ac_default_prefix/etc/config.site
2395 fi
2396 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2397 do
2398 test "x$ac_site_file" = xNONE && continue
2399 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2401 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2402 sed 's/^/| /' "$ac_site_file" >&5
2403 . "$ac_site_file"
2404 fi
2405 done
2406
2407 if test -r "$cache_file"; then
2408 # Some versions of bash will fail to source /dev/null (special files
2409 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2410 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2412 $as_echo "$as_me: loading cache $cache_file" >&6;}
2413 case $cache_file in
2414 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2415 *) . "./$cache_file";;
2416 esac
2417 fi
2418 else
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2420 $as_echo "$as_me: creating cache $cache_file" >&6;}
2421 >$cache_file
2422 fi
2423
2424 as_fn_append ac_header_list " stdlib.h"
2425 as_fn_append ac_header_list " unistd.h"
2426 as_fn_append ac_header_list " sys/param.h"
2427 as_fn_append ac_header_list " sys/time.h"
2428 as_fn_append ac_func_list " alarm"
2429 # Check that the precious variables saved in the cache have kept the same
2430 # value.
2431 ac_cache_corrupted=false
2432 for ac_var in $ac_precious_vars; do
2433 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2434 eval ac_new_set=\$ac_env_${ac_var}_set
2435 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2436 eval ac_new_val=\$ac_env_${ac_var}_value
2437 case $ac_old_set,$ac_new_set in
2438 set,)
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2440 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2441 ac_cache_corrupted=: ;;
2442 ,set)
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2444 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2445 ac_cache_corrupted=: ;;
2446 ,);;
2447 *)
2448 if test "x$ac_old_val" != "x$ac_new_val"; then
2449 # differences in whitespace do not lead to failure.
2450 ac_old_val_w=`echo x $ac_old_val`
2451 ac_new_val_w=`echo x $ac_new_val`
2452 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2454 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2455 ac_cache_corrupted=:
2456 else
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2458 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2459 eval $ac_var=\$ac_old_val
2460 fi
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2462 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2464 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2465 fi;;
2466 esac
2467 # Pass precious variables to config.status.
2468 if test "$ac_new_set" = set; then
2469 case $ac_new_val in
2470 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2471 *) ac_arg=$ac_var=$ac_new_val ;;
2472 esac
2473 case " $ac_configure_args " in
2474 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2475 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2476 esac
2477 fi
2478 done
2479 if $ac_cache_corrupted; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2483 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2484 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2485 fi
2486 ## -------------------- ##
2487 ## Main body of script. ##
2488 ## -------------------- ##
2489
2490 ac_ext=c
2491 ac_cpp='$CPP $CPPFLAGS'
2492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2495
2496
2497 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2498
2499
2500
2501 test "$program_prefix" != NONE &&
2502 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2503 # Use a double $ so make ignores it.
2504 test "$program_suffix" != NONE &&
2505 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2506 # Double any \ or $.
2507 # By default was `s,x,x', remove it if useless.
2508 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2509 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2510
2511
2512 lispdir='${datadir}/emacs/${version}/lisp'
2513 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2514 '${datadir}/emacs/site-lisp'
2515 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2516 etcdir='${datadir}/emacs/${version}/etc'
2517 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2518 docdir='${datadir}/emacs/${version}/etc'
2519 gamedir='${localstatedir}/games/emacs'
2520
2521 gameuser=games
2522
2523
2524
2525
2526 # Check whether --with-pop was given.
2527 if test "${with_pop+set}" = set; then :
2528 withval=$with_pop;
2529 else
2530 with_pop=yes
2531 fi
2532
2533 if test "$with_pop" = yes; then
2534 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2535
2536 fi
2537
2538
2539 # Check whether --with-kerberos was given.
2540 if test "${with_kerberos+set}" = set; then :
2541 withval=$with_kerberos;
2542 else
2543 with_kerberos=no
2544 fi
2545
2546 if test "$with_kerberos" != no; then
2547 $as_echo "#define KERBEROS 1" >>confdefs.h
2548
2549 fi
2550
2551
2552 # Check whether --with-kerberos5 was given.
2553 if test "${with_kerberos5+set}" = set; then :
2554 withval=$with_kerberos5;
2555 else
2556 with_kerberos5=no
2557 fi
2558
2559 if test "${with_kerberos5}" != no; then
2560 if test "${with_kerberos}" = no; then
2561 with_kerberos=yes
2562 $as_echo "#define KERBEROS 1" >>confdefs.h
2563
2564 fi
2565
2566 $as_echo "#define KERBEROS5 1" >>confdefs.h
2567
2568 fi
2569
2570
2571 # Check whether --with-hesiod was given.
2572 if test "${with_hesiod+set}" = set; then :
2573 withval=$with_hesiod;
2574 else
2575 with_hesiod=no
2576 fi
2577
2578 if test "$with_hesiod" != no; then
2579
2580 $as_echo "#define HESIOD 1" >>confdefs.h
2581
2582 fi
2583
2584
2585 # Check whether --with-mmdf was given.
2586 if test "${with_mmdf+set}" = set; then :
2587 withval=$with_mmdf;
2588 else
2589 with_mmdf=no
2590 fi
2591
2592 if test "$with_mmdf" != no; then
2593
2594 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2595
2596 fi
2597
2598
2599 # Check whether --with-mail-unlink was given.
2600 if test "${with_mail_unlink+set}" = set; then :
2601 withval=$with_mail_unlink;
2602 else
2603 with_mail_unlink=no
2604 fi
2605
2606 if test "$with_mail_unlink" != no; then
2607
2608 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2609
2610 fi
2611
2612
2613 # Check whether --with-mailhost was given.
2614 if test "${with_mailhost+set}" = set; then :
2615 withval=$with_mailhost;
2616 cat >>confdefs.h <<_ACEOF
2617 #define MAILHOST "$withval"
2618 _ACEOF
2619
2620 fi
2621
2622
2623
2624 # Check whether --with-sound was given.
2625 if test "${with_sound+set}" = set; then :
2626 withval=$with_sound;
2627 else
2628 with_sound=yes
2629 fi
2630
2631
2632
2633 # Check whether --with-sync-input was given.
2634 if test "${with_sync_input+set}" = set; then :
2635 withval=$with_sync_input;
2636 else
2637 with_sync_input=yes
2638 fi
2639
2640 if test "$with_sync_input" = yes; then
2641
2642 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2643
2644 fi
2645
2646
2647 # Check whether --with-x-toolkit was given.
2648 if test "${with_x_toolkit+set}" = set; then :
2649 withval=$with_x_toolkit; case "${withval}" in
2650 y | ye | yes ) val=gtk ;;
2651 n | no ) val=no ;;
2652 l | lu | luc | luci | lucid ) val=lucid ;;
2653 a | at | ath | athe | athen | athena ) val=athena ;;
2654 m | mo | mot | moti | motif ) val=motif ;;
2655 g | gt | gtk ) val=gtk ;;
2656 * )
2657 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2658 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2659 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2660 ;;
2661 esac
2662 with_x_toolkit=$val
2663
2664 fi
2665
2666
2667
2668 # Check whether --with-xpm was given.
2669 if test "${with_xpm+set}" = set; then :
2670 withval=$with_xpm;
2671 else
2672 with_xpm=yes
2673 fi
2674
2675
2676 # Check whether --with-jpeg was given.
2677 if test "${with_jpeg+set}" = set; then :
2678 withval=$with_jpeg;
2679 else
2680 with_jpeg=yes
2681 fi
2682
2683
2684 # Check whether --with-tiff was given.
2685 if test "${with_tiff+set}" = set; then :
2686 withval=$with_tiff;
2687 else
2688 with_tiff=yes
2689 fi
2690
2691
2692 # Check whether --with-gif was given.
2693 if test "${with_gif+set}" = set; then :
2694 withval=$with_gif;
2695 else
2696 with_gif=yes
2697 fi
2698
2699
2700 # Check whether --with-png was given.
2701 if test "${with_png+set}" = set; then :
2702 withval=$with_png;
2703 else
2704 with_png=yes
2705 fi
2706
2707
2708 # Check whether --with-rsvg was given.
2709 if test "${with_rsvg+set}" = set; then :
2710 withval=$with_rsvg;
2711 else
2712 with_rsvg=yes
2713 fi
2714
2715
2716
2717 # Check whether --with-xft was given.
2718 if test "${with_xft+set}" = set; then :
2719 withval=$with_xft;
2720 else
2721 with_xft=yes
2722 fi
2723
2724
2725 # Check whether --with-libotf was given.
2726 if test "${with_libotf+set}" = set; then :
2727 withval=$with_libotf;
2728 else
2729 with_libotf=yes
2730 fi
2731
2732
2733 # Check whether --with-m17n-flt was given.
2734 if test "${with_m17n_flt+set}" = set; then :
2735 withval=$with_m17n_flt;
2736 else
2737 with_m17n_flt=yes
2738 fi
2739
2740
2741
2742 # Check whether --with-toolkit-scroll-bars was given.
2743 if test "${with_toolkit_scroll_bars+set}" = set; then :
2744 withval=$with_toolkit_scroll_bars;
2745 else
2746 with_toolkit_scroll_bars=yes
2747 fi
2748
2749
2750 # Check whether --with-xaw3d was given.
2751 if test "${with_xaw3d+set}" = set; then :
2752 withval=$with_xaw3d;
2753 else
2754 with_xaw3d=yes
2755 fi
2756
2757
2758 # Check whether --with-xim was given.
2759 if test "${with_xim+set}" = set; then :
2760 withval=$with_xim;
2761 else
2762 with_xim=yes
2763 fi
2764
2765
2766 # Check whether --with-ns was given.
2767 if test "${with_ns+set}" = set; then :
2768 withval=$with_ns;
2769 else
2770 with_ns=no
2771 fi
2772
2773
2774
2775 # Check whether --with-gpm was given.
2776 if test "${with_gpm+set}" = set; then :
2777 withval=$with_gpm;
2778 else
2779 with_gpm=yes
2780 fi
2781
2782
2783 # Check whether --with-dbus was given.
2784 if test "${with_dbus+set}" = set; then :
2785 withval=$with_dbus;
2786 else
2787 with_dbus=yes
2788 fi
2789
2790
2791 # Check whether --with-gconf was given.
2792 if test "${with_gconf+set}" = set; then :
2793 withval=$with_gconf;
2794 else
2795 with_gconf=yes
2796 fi
2797
2798
2799 # Check whether --with-selinux was given.
2800 if test "${with_selinux+set}" = set; then :
2801 withval=$with_selinux;
2802 else
2803 with_selinux=yes
2804 fi
2805
2806
2807 ## For the times when you want to build Emacs but don't have
2808 ## a suitable makeinfo, and can live without the manuals.
2809
2810 # Check whether --with-makeinfo was given.
2811 if test "${with_makeinfo+set}" = set; then :
2812 withval=$with_makeinfo;
2813 else
2814 with_makeinfo=yes
2815 fi
2816
2817
2818
2819 # Check whether --with-gtk was given.
2820 if test "${with_gtk+set}" = set; then :
2821 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use --with-x-toolkit to
2822 specify a toolkit." "$LINENO" 5
2823 fi
2824
2825
2826
2827 # Check whether --with-gcc was given.
2828 if test "${with_gcc+set}" = set; then :
2829 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \`CC' environment
2830 variable to specify a compiler." "$LINENO" 5
2831 fi
2832
2833
2834
2835 # Check whether --with-pkg-config-prog was given.
2836 if test "${with_pkg_config_prog+set}" = set; then :
2837 withval=$with_pkg_config_prog;
2838 fi
2839
2840 if test "X${with_pkg_config_prog}" != X; then
2841 if test "${with_pkg_config_prog}" != yes; then
2842 PKG_CONFIG="${with_pkg_config_prog}"
2843 fi
2844 fi
2845
2846 CRT_DIR=
2847
2848 # Check whether --with-crt-dir was given.
2849 if test "${with_crt_dir+set}" = set; then :
2850 withval=$with_crt_dir;
2851 fi
2852
2853 CRT_DIR="${with_crt_dir}"
2854
2855
2856 # Check whether --with-gnustep-conf was given.
2857 if test "${with_gnustep_conf+set}" = set; then :
2858 withval=$with_gnustep_conf;
2859 fi
2860
2861 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2862 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2863 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2864 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2865
2866 # Check whether --enable-ns-self-contained was given.
2867 if test "${enable_ns_self_contained+set}" = set; then :
2868 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2869 else
2870 EN_NS_SELF_CONTAINED=yes
2871 fi
2872
2873
2874 # Check whether --enable-asserts was given.
2875 if test "${enable_asserts+set}" = set; then :
2876 enableval=$enable_asserts; USE_XASSERTS=$enableval
2877 else
2878 USE_XASSERTS=no
2879 fi
2880
2881
2882 # Check whether --enable-maintainer-mode was given.
2883 if test "${enable_maintainer_mode+set}" = set; then :
2884 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2885 else
2886 USE_MAINTAINER_MODE=no
2887 fi
2888
2889 if test $USE_MAINTAINER_MODE = yes; then
2890 MAINT=
2891 else
2892 MAINT=#
2893 fi
2894
2895
2896 # Check whether --enable-locallisppath was given.
2897 if test "${enable_locallisppath+set}" = set; then :
2898 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2899 locallisppath=
2900 elif test "${enableval}" != "yes"; then
2901 locallisppath=${enableval}
2902 fi
2903 fi
2904
2905
2906 # Check whether --enable-checking was given.
2907 if test "${enable_checking+set}" = set; then :
2908 enableval=$enable_checking; ac_checking_flags="${enableval}"
2909 fi
2910
2911 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2912 for check in $ac_checking_flags
2913 do
2914 case $check in
2915 # these set all the flags to specific states
2916 yes) ac_enable_checking=1 ;;
2917 no) ac_enable_checking= ;
2918 ac_gc_check_stringbytes= ;
2919 ac_gc_check_string_overrun= ;
2920 ac_gc_check_string_free_list= ;
2921 ac_xmalloc_overrun= ;
2922 ac_gc_check_cons_list= ;;
2923 all) ac_enable_checking=1 ;
2924 ac_gc_check_stringbytes=1 ;
2925 ac_gc_check_string_overrun=1 ;
2926 ac_gc_check_string_free_list=1 ;
2927 ac_xmalloc_overrun=1 ;
2928 ac_gc_check_cons_list=1 ;;
2929 # these enable particular checks
2930 stringbytes) ac_gc_check_stringbytes=1 ;;
2931 stringoverrun) ac_gc_check_string_overrun=1 ;;
2932 stringfreelist) ac_gc_check_string_free_list=1 ;;
2933 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2934 conslist) ac_gc_check_cons_list=1 ;;
2935 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2936 esac
2937 done
2938 IFS="$ac_save_IFS"
2939
2940 if test x$ac_enable_checking != x ; then
2941
2942 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2943
2944 fi
2945 if test x$ac_gc_check_stringbytes != x ; then
2946
2947 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2948
2949 fi
2950 if test x$ac_gc_check_stringoverrun != x ; then
2951
2952 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2953
2954 fi
2955 if test x$ac_gc_check_string_free_list != x ; then
2956
2957 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2958
2959 fi
2960 if test x$ac_xmalloc_overrun != x ; then
2961
2962 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2963
2964 fi
2965 if test x$ac_gc_check_cons_list != x ; then
2966
2967 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2968
2969 fi
2970
2971 # Check whether --enable-profiling was given.
2972 if test "${enable_profiling+set}" = set; then :
2973 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2974 fi
2975
2976 if test x$ac_enable_profiling != x ; then
2977 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2978 PROFILING_LDFLAGS="-pg"
2979 else
2980 PROFILING_CFLAGS=
2981 PROFILING_LDFLAGS=
2982 fi
2983
2984 # Check whether --enable-autodepend was given.
2985 if test "${enable_autodepend+set}" = set; then :
2986 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2987 else
2988 ac_enable_autodepend=yes
2989 fi
2990
2991
2992 #### Make srcdir absolute, if it isn't already. It's important to
2993 #### avoid running the path through pwd unnecessarily, since pwd can
2994 #### give you automounter prefixes, which can go away. We do all this
2995 #### so Emacs can find its files when run uninstalled.
2996 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2997 unset CDPATH
2998 case "${srcdir}" in
2999 /* ) ;;
3000 . )
3001 ## We may be able to use the $PWD environment variable to make this
3002 ## absolute. But sometimes PWD is inaccurate.
3003 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3004 ## but that tested only for a well-formed and valid PWD,
3005 ## it did not object when PWD was well-formed and valid but just wrong.
3006 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3007 then
3008 srcdir="$PWD"
3009 else
3010 srcdir="`(cd ${srcdir}; pwd)`"
3011 fi
3012 ;;
3013 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3014 esac
3015
3016 #### Check if the source directory already has a configured system in it.
3017 if test `pwd` != `(cd ${srcdir} && pwd)` \
3018 && test -f "${srcdir}/src/config.h" ; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3020 as a build directory right now; it has been configured in its own
3021 right. To configure in another directory as well, you MUST
3022 use GNU make. If you do not have GNU make, then you must
3023 now do \`make distclean' in ${srcdir},
3024 and then run $0 again." >&5
3025 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3026 as a build directory right now; it has been configured in its own
3027 right. To configure in another directory as well, you MUST
3028 use GNU make. If you do not have GNU make, then you must
3029 now do \`make distclean' in ${srcdir},
3030 and then run $0 again." >&2;}
3031 fi
3032
3033 #### Given the configuration name, set machfile and opsysfile to the
3034 #### names of the m/*.h and s/*.h files we should use.
3035
3036 ### Canonicalize the configuration name.
3037
3038 ac_aux_dir=
3039 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3040 for ac_t in install-sh install.sh shtool; do
3041 if test -f "$ac_dir/$ac_t"; then
3042 ac_aux_dir=$ac_dir
3043 ac_install_sh="$ac_aux_dir/$ac_t -c"
3044 break 2
3045 fi
3046 done
3047 done
3048 if test -z "$ac_aux_dir"; then
3049 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3050 fi
3051
3052 # These three variables are undocumented and unsupported,
3053 # and are intended to be withdrawn in a future Autoconf release.
3054 # They can cause serious problems if a builder's source tree is in a directory
3055 # whose full name contains unusual characters.
3056 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3057 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3058 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3059
3060
3061 # Make sure we can run config.sub.
3062 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3063 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3064
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3066 $as_echo_n "checking build system type... " >&6; }
3067 if test "${ac_cv_build+set}" = set; then :
3068 $as_echo_n "(cached) " >&6
3069 else
3070 ac_build_alias=$build_alias
3071 test "x$ac_build_alias" = x &&
3072 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3073 test "x$ac_build_alias" = x &&
3074 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3075 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3076 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3077
3078 fi
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3080 $as_echo "$ac_cv_build" >&6; }
3081 case $ac_cv_build in
3082 *-*-*) ;;
3083 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3084 esac
3085 build=$ac_cv_build
3086 ac_save_IFS=$IFS; IFS='-'
3087 set x $ac_cv_build
3088 shift
3089 build_cpu=$1
3090 build_vendor=$2
3091 shift; shift
3092 # Remember, the first character of IFS is used to create $*,
3093 # except with old shells:
3094 build_os=$*
3095 IFS=$ac_save_IFS
3096 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3097
3098
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3100 $as_echo_n "checking host system type... " >&6; }
3101 if test "${ac_cv_host+set}" = set; then :
3102 $as_echo_n "(cached) " >&6
3103 else
3104 if test "x$host_alias" = x; then
3105 ac_cv_host=$ac_cv_build
3106 else
3107 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3108 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3109 fi
3110
3111 fi
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3113 $as_echo "$ac_cv_host" >&6; }
3114 case $ac_cv_host in
3115 *-*-*) ;;
3116 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3117 esac
3118 host=$ac_cv_host
3119 ac_save_IFS=$IFS; IFS='-'
3120 set x $ac_cv_host
3121 shift
3122 host_cpu=$1
3123 host_vendor=$2
3124 shift; shift
3125 # Remember, the first character of IFS is used to create $*,
3126 # except with old shells:
3127 host_os=$*
3128 IFS=$ac_save_IFS
3129 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3130
3131
3132 canonical=$host
3133 configuration=${host_alias-${build_alias-$host}}
3134
3135
3136
3137 ### If you add support for a new configuration, add code to this
3138 ### switch statement to recognize your configuration name and select
3139 ### the appropriate operating system and machine description files.
3140
3141 ### You would hope that you could choose an m/*.h file pretty much
3142 ### based on the machine portion of the configuration name, and an s-
3143 ### file based on the operating system portion. However, it turns out
3144 ### that each m/*.h file is pretty manufacturer-specific - for
3145 ### example mips.h is MIPS
3146 ### So we basically have to have a special case for each
3147 ### configuration name.
3148 ###
3149 ### As far as handling version numbers on operating systems is
3150 ### concerned, make sure things will fail in a fixable way. If
3151 ### /etc/MACHINES doesn't say anything about version numbers, be
3152 ### prepared to handle anything reasonably. If version numbers
3153 ### matter, be sure /etc/MACHINES says something about it.
3154 ###
3155 ### Eric Raymond says we should accept strings like "sysvr4" to mean
3156 ### "System V Release 4"; he writes, "The old convention encouraged
3157 ### confusion between `system' and `release' levels'."
3158
3159 machine='' opsys='' unported=no
3160 case "${canonical}" in
3161
3162 ## FreeBSD ports
3163 *-*-freebsd* )
3164 opsys=freebsd
3165 case "${canonical}" in
3166 alpha*-*-freebsd*) machine=alpha ;;
3167 arm*-*-freebsd*) machine=arm ;;
3168 ia64-*-freebsd*) machine=ia64 ;;
3169 sparc-*-freebsd*) machine=sparc ;;
3170 sparc64-*-freebsd*) machine=sparc ;;
3171 powerpc-*-freebsd*) machine=macppc ;;
3172 i[3456]86-*-freebsd*) machine=intel386 ;;
3173 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
3174 esac
3175 ;;
3176
3177 ## FreeBSD kernel + glibc based userland
3178 *-*-kfreebsd*gnu* )
3179 opsys=gnu-kfreebsd
3180 case "${canonical}" in
3181 alpha*-*-kfreebsd*) machine=alpha ;;
3182 ia64-*-kfreebsd*) machine=ia64 ;;
3183 sparc-*-kfreebsd*) machine=sparc ;;
3184 sparc64-*-kfreebsd*) machine=sparc ;;
3185 powerpc-*-kfreebsd*) machine=macppc ;;
3186 i[3456]86-*-kfreebsd*) machine=intel386 ;;
3187 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
3188 esac
3189 ;;
3190
3191 ## NetBSD ports
3192 *-*-netbsd* )
3193 opsys=netbsd
3194 case "${canonical}" in
3195 alpha*-*-netbsd*) machine=alpha ;;
3196 i[3456]86-*-netbsd*) machine=intel386 ;;
3197 mips-*-netbsd*) machine=mips ;;
3198 mipsel-*-netbsd*) machine=mips ;;
3199 mipseb-*-netbsd*) machine=mips ;;
3200 powerpc-*-netbsd*) machine=macppc ;;
3201 sparc*-*-netbsd*) machine=sparc ;;
3202 vax-*-netbsd*) machine=vax ;;
3203 arm-*-netbsd*) machine=arm ;;
3204 x86_64-*-netbsd*) machine=amdx86-64 ;;
3205 hppa-*-netbsd*) machine=hp800 ;;
3206 m68k-*-netbsd*) machine=m68k ;;
3207 esac
3208 ;;
3209
3210 ## OpenBSD ports
3211 *-*-openbsd* )
3212 opsys=openbsd
3213 case "${canonical}" in
3214 alpha*-*-openbsd*) machine=alpha ;;
3215 arm-*-openbsd*) machine=arm ;;
3216 i386-*-openbsd*) machine=intel386 ;;
3217 powerpc-*-openbsd*) machine=macppc ;;
3218 sparc*-*-openbsd*) machine=sparc ;;
3219 vax-*-openbsd*) machine=vax ;;
3220 x86_64-*-openbsd*) machine=amdx86-64 ;;
3221 hppa-*-openbsd*) machine=hp800 ;;
3222 esac
3223 ;;
3224
3225 alpha*-*-linux-gnu* )
3226 machine=alpha opsys=gnu-linux
3227 ;;
3228
3229 arm*-*-linux-gnu* )
3230 machine=arm opsys=gnu-linux
3231 ;;
3232
3233 ## Apple Darwin / Mac OS X
3234 *-apple-darwin* )
3235 case "${canonical}" in
3236 i[3456]86-* ) machine=intel386 ;;
3237 powerpc-* ) machine=macppc ;;
3238 x86_64-* ) machine=amdx86-64 ;;
3239 * ) unported=yes ;;
3240 esac
3241 opsys=darwin
3242 # Define CPP as follows to make autoconf work correctly.
3243 CPP="${CC-cc} -E -no-cpp-precomp"
3244 # Use fink packages if available.
3245 if test -d /sw/include && test -d /sw/lib; then
3246 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3247 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3248 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3249 fi
3250 ;;
3251
3252 ## HP 9000 series 700 and 800, running HP/UX
3253 hppa*-hp-hpux10.2* )
3254 machine=hp800 opsys=hpux10-20
3255 ;;
3256 hppa*-hp-hpux1[1-9]* )
3257 machine=hp800 opsys=hpux11
3258 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3259 ;;
3260
3261 hppa*-*-linux-gnu* )
3262 machine=hp800 opsys=gnu-linux
3263 ;;
3264
3265 ## IBM machines
3266 s390-*-linux-gnu* )
3267 machine=ibms390 opsys=gnu-linux
3268 ;;
3269 s390x-*-linux-gnu* )
3270 machine=ibms390x opsys=gnu-linux
3271 ;;
3272 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
3273 machine=ibmrs6000 opsys=aix4-2
3274 ;;
3275 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
3276 machine=ibmrs6000 opsys=aix4-2
3277 ;;
3278 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
3279 machine=ibmrs6000 opsys=aix4-2
3280 ;;
3281 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
3282 machine=ibmrs6000 opsys=aix4-2
3283 ;;
3284
3285 ## Macintosh PowerPC
3286 powerpc*-*-linux-gnu* )
3287 machine=macppc opsys=gnu-linux
3288 ;;
3289
3290 ## Silicon Graphics machines
3291 ## Iris 4D
3292 mips-sgi-irix6.5 )
3293 machine=iris4d opsys=irix6-5
3294 # Without defining _LANGUAGE_C, things get masked out in the headers
3295 # so that, for instance, grepping for `free' in stdlib.h fails and
3296 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3297 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3298 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3299 ;;
3300
3301 ## Suns
3302 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3303 machine=sparc opsys=gnu-linux
3304 ;;
3305
3306 *-sun-solaris* \
3307 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3308 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3309 case "${canonical}" in
3310 i[3456]86-*-* ) machine=intel386 ;;
3311 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3312 sparc* ) machine=sparc ;;
3313 * ) unported=yes ;;
3314 esac
3315 case "${canonical}" in
3316 *-sunos5.6* | *-solaris2.6* )
3317 opsys=sol2-6
3318 NON_GNU_CPP=/usr/ccs/lib/cpp
3319 RANLIB="ar -ts"
3320 ;;
3321 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3322 opsys=sol2-6
3323 emacs_check_sunpro_c=yes
3324 NON_GNU_CPP=/usr/ccs/lib/cpp
3325 ;;
3326 *-sunos5* | *-solaris* )
3327 opsys=sol2-10
3328 emacs_check_sunpro_c=yes
3329 NON_GNU_CPP=/usr/ccs/lib/cpp
3330 ;;
3331 esac
3332 ## Watch out for a compiler that we know will not work.
3333 case "${canonical}" in
3334 *-solaris* | *-sunos5* )
3335 if [ "x$CC" = x/usr/ucb/cc ]; then
3336 ## /usr/ucb/cc doesn't work;
3337 ## we should find some other compiler that does work.
3338 unset CC
3339 fi
3340 ;;
3341 *) ;;
3342 esac
3343 ;;
3344
3345 ## IA-64
3346 ia64*-*-linux* )
3347 machine=ia64 opsys=gnu-linux
3348 ;;
3349
3350 ## Intel 386 machines where we don't care about the manufacturer
3351 i[3456]86-*-* )
3352 machine=intel386
3353 case "${canonical}" in
3354 *-cygwin ) opsys=cygwin ;;
3355 *-darwin* ) opsys=darwin
3356 CPP="${CC-cc} -E -no-cpp-precomp"
3357 ;;
3358 *-linux-gnu* ) opsys=gnu-linux ;;
3359 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3360 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3361 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3362 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3363 esac
3364 ;;
3365
3366 ## m68k Linux-based GNU system
3367 m68k-*-linux-gnu* )
3368 machine=m68k opsys=gnu-linux
3369 ;;
3370
3371 ## Mips Linux-based GNU system
3372 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3373 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3374 machine=mips opsys=gnu-linux
3375 ;;
3376
3377 ## AMD x86-64 Linux-based GNU system
3378 x86_64-*-linux-gnu* )
3379 machine=amdx86-64 opsys=gnu-linux
3380 ;;
3381
3382 ## Tensilica Xtensa Linux-based GNU system
3383 xtensa*-*-linux-gnu* )
3384 machine=xtensa opsys=gnu-linux
3385 ;;
3386
3387 ## SuperH Linux-based GNU system
3388 sh[34]*-*-linux-gnu* )
3389 machine=sh3 opsys=gnu-linux
3390 ;;
3391
3392 * )
3393 unported=yes
3394 ;;
3395 esac
3396
3397 ### If the code above didn't choose an operating system, just choose
3398 ### an operating system based on the configuration name. You really
3399 ### only want to use this when you have no idea what the right
3400 ### operating system is; if you know what operating systems a machine
3401 ### runs, it's cleaner to make it explicit in the case statement
3402 ### above.
3403 if test x"${opsys}" = x; then
3404 case "${canonical}" in
3405 *-gnu* ) opsys=gnu ;;
3406 * )
3407 unported=yes
3408 ;;
3409 esac
3410 fi
3411
3412
3413
3414 if test $unported = yes; then
3415 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
3416 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3417 fi
3418
3419 machfile="m/${machine}.h"
3420 opsysfile="s/${opsys}.h"
3421
3422
3423 #### Choose a compiler.
3424 test -n "$CC" && cc_specified=yes
3425
3426 # Save the value of CFLAGS that the user specified.
3427 SPECIFIED_CFLAGS="$CFLAGS"
3428
3429 ac_ext=c
3430 ac_cpp='$CPP $CPPFLAGS'
3431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434 if test -n "$ac_tool_prefix"; then
3435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 $as_echo_n "checking for $ac_word... " >&6; }
3439 if test "${ac_cv_prog_CC+set}" = set; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3447 do
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3455 fi
3456 done
3457 done
3458 IFS=$as_save_IFS
3459
3460 fi
3461 fi
3462 CC=$ac_cv_prog_CC
3463 if test -n "$CC"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465 $as_echo "$CC" >&6; }
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3469 fi
3470
3471
3472 fi
3473 if test -z "$ac_cv_prog_CC"; then
3474 ac_ct_CC=$CC
3475 # Extract the first word of "gcc", so it can be a program name with args.
3476 set dummy gcc; ac_word=$2
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 $as_echo_n "checking for $ac_word... " >&6; }
3479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3480 $as_echo_n "(cached) " >&6
3481 else
3482 if test -n "$ac_ct_CC"; then
3483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3484 else
3485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 for as_dir in $PATH
3487 do
3488 IFS=$as_save_IFS
3489 test -z "$as_dir" && as_dir=.
3490 for ac_exec_ext in '' $ac_executable_extensions; do
3491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3492 ac_cv_prog_ac_ct_CC="gcc"
3493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 break 2
3495 fi
3496 done
3497 done
3498 IFS=$as_save_IFS
3499
3500 fi
3501 fi
3502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3503 if test -n "$ac_ct_CC"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3505 $as_echo "$ac_ct_CC" >&6; }
3506 else
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 $as_echo "no" >&6; }
3509 fi
3510
3511 if test "x$ac_ct_CC" = x; then
3512 CC=""
3513 else
3514 case $cross_compiling:$ac_tool_warned in
3515 yes:)
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3518 ac_tool_warned=yes ;;
3519 esac
3520 CC=$ac_ct_CC
3521 fi
3522 else
3523 CC="$ac_cv_prog_CC"
3524 fi
3525
3526 if test -z "$CC"; then
3527 if test -n "$ac_tool_prefix"; then
3528 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3529 set dummy ${ac_tool_prefix}cc; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if test "${ac_cv_prog_CC+set}" = set; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 if test -n "$CC"; then
3536 ac_cv_prog_CC="$CC" # Let the user override the test.
3537 else
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3540 do
3541 IFS=$as_save_IFS
3542 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3545 ac_cv_prog_CC="${ac_tool_prefix}cc"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 break 2
3548 fi
3549 done
3550 done
3551 IFS=$as_save_IFS
3552
3553 fi
3554 fi
3555 CC=$ac_cv_prog_CC
3556 if test -n "$CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3558 $as_echo "$CC" >&6; }
3559 else
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3562 fi
3563
3564
3565 fi
3566 fi
3567 if test -z "$CC"; then
3568 # Extract the first word of "cc", so it can be a program name with args.
3569 set dummy cc; ac_word=$2
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 $as_echo_n "checking for $ac_word... " >&6; }
3572 if test "${ac_cv_prog_CC+set}" = set; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 if test -n "$CC"; then
3576 ac_cv_prog_CC="$CC" # Let the user override the test.
3577 else
3578 ac_prog_rejected=no
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH
3581 do
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3586 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3587 ac_prog_rejected=yes
3588 continue
3589 fi
3590 ac_cv_prog_CC="cc"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 break 2
3593 fi
3594 done
3595 done
3596 IFS=$as_save_IFS
3597
3598 if test $ac_prog_rejected = yes; then
3599 # We found a bogon in the path, so make sure we never use it.
3600 set dummy $ac_cv_prog_CC
3601 shift
3602 if test $# != 0; then
3603 # We chose a different compiler from the bogus one.
3604 # However, it has the same basename, so the bogon will be chosen
3605 # first if we set CC to just the basename; use the full file name.
3606 shift
3607 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3608 fi
3609 fi
3610 fi
3611 fi
3612 CC=$ac_cv_prog_CC
3613 if test -n "$CC"; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3615 $as_echo "$CC" >&6; }
3616 else
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3619 fi
3620
3621
3622 fi
3623 if test -z "$CC"; then
3624 if test -n "$ac_tool_prefix"; then
3625 for ac_prog in cl.exe
3626 do
3627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_CC+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 if test -n "$CC"; then
3635 ac_cv_prog_CC="$CC" # Let the user override the test.
3636 else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 break 2
3647 fi
3648 done
3649 done
3650 IFS=$as_save_IFS
3651
3652 fi
3653 fi
3654 CC=$ac_cv_prog_CC
3655 if test -n "$CC"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3657 $as_echo "$CC" >&6; }
3658 else
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3661 fi
3662
3663
3664 test -n "$CC" && break
3665 done
3666 fi
3667 if test -z "$CC"; then
3668 ac_ct_CC=$CC
3669 for ac_prog in cl.exe
3670 do
3671 # Extract the first word of "$ac_prog", so it can be a program name with args.
3672 set dummy $ac_prog; ac_word=$2
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674 $as_echo_n "checking for $ac_word... " >&6; }
3675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 if test -n "$ac_ct_CC"; then
3679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3680 else
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH
3683 do
3684 IFS=$as_save_IFS
3685 test -z "$as_dir" && as_dir=.
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3688 ac_cv_prog_ac_ct_CC="$ac_prog"
3689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 break 2
3691 fi
3692 done
3693 done
3694 IFS=$as_save_IFS
3695
3696 fi
3697 fi
3698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3699 if test -n "$ac_ct_CC"; then
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3701 $as_echo "$ac_ct_CC" >&6; }
3702 else
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704 $as_echo "no" >&6; }
3705 fi
3706
3707
3708 test -n "$ac_ct_CC" && break
3709 done
3710
3711 if test "x$ac_ct_CC" = x; then
3712 CC=""
3713 else
3714 case $cross_compiling:$ac_tool_warned in
3715 yes:)
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3718 ac_tool_warned=yes ;;
3719 esac
3720 CC=$ac_ct_CC
3721 fi
3722 fi
3723
3724 fi
3725
3726
3727 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 as_fn_error "no acceptable C compiler found in \$PATH
3730 See \`config.log' for more details." "$LINENO" 5; }
3731
3732 # Provide some information about the compiler.
3733 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3734 set X $ac_compile
3735 ac_compiler=$2
3736 for ac_option in --version -v -V -qversion; do
3737 { { ac_try="$ac_compiler $ac_option >&5"
3738 case "(($ac_try" in
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3741 esac
3742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3743 $as_echo "$ac_try_echo"; } >&5
3744 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3745 ac_status=$?
3746 if test -s conftest.err; then
3747 sed '10a\
3748 ... rest of stderr output deleted ...
3749 10q' conftest.err >conftest.er1
3750 cat conftest.er1 >&5
3751 fi
3752 rm -f conftest.er1 conftest.err
3753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754 test $ac_status = 0; }
3755 done
3756
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759
3760 int
3761 main ()
3762 {
3763
3764 ;
3765 return 0;
3766 }
3767 _ACEOF
3768 ac_clean_files_save=$ac_clean_files
3769 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3770 # Try to create an executable without -o first, disregard a.out.
3771 # It will help us diagnose broken compilers, and finding out an intuition
3772 # of exeext.
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3774 $as_echo_n "checking whether the C compiler works... " >&6; }
3775 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3776
3777 # The possible output files:
3778 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3779
3780 ac_rmfiles=
3781 for ac_file in $ac_files
3782 do
3783 case $ac_file in
3784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3785 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3786 esac
3787 done
3788 rm -f $ac_rmfiles
3789
3790 if { { ac_try="$ac_link_default"
3791 case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794 esac
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797 (eval "$ac_link_default") 2>&5
3798 ac_status=$?
3799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800 test $ac_status = 0; }; then :
3801 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3802 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3803 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3804 # so that the user can short-circuit this test for compilers unknown to
3805 # Autoconf.
3806 for ac_file in $ac_files ''
3807 do
3808 test -f "$ac_file" || continue
3809 case $ac_file in
3810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3811 ;;
3812 [ab].out )
3813 # We found the default executable, but exeext='' is most
3814 # certainly right.
3815 break;;
3816 *.* )
3817 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3818 then :; else
3819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3820 fi
3821 # We set ac_cv_exeext here because the later test for it is not
3822 # safe: cross compilers may not add the suffix if given an `-o'
3823 # argument, so we may need to know it at that point already.
3824 # Even if this section looks crufty: it has the advantage of
3825 # actually working.
3826 break;;
3827 * )
3828 break;;
3829 esac
3830 done
3831 test "$ac_cv_exeext" = no && ac_cv_exeext=
3832
3833 else
3834 ac_file=''
3835 fi
3836 if test -z "$ac_file"; then :
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838 $as_echo "no" >&6; }
3839 $as_echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3841
3842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3844 { as_fn_set_status 77
3845 as_fn_error "C compiler cannot create executables
3846 See \`config.log' for more details." "$LINENO" 5; }; }
3847 else
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3849 $as_echo "yes" >&6; }
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3852 $as_echo_n "checking for C compiler default output file name... " >&6; }
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3854 $as_echo "$ac_file" >&6; }
3855 ac_exeext=$ac_cv_exeext
3856
3857 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3858 ac_clean_files=$ac_clean_files_save
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3860 $as_echo_n "checking for suffix of executables... " >&6; }
3861 if { { ac_try="$ac_link"
3862 case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865 esac
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_link") 2>&5
3869 ac_status=$?
3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871 test $ac_status = 0; }; then :
3872 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3873 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3874 # work properly (i.e., refer to `conftest.exe'), while it won't with
3875 # `rm'.
3876 for ac_file in conftest.exe conftest conftest.*; do
3877 test -f "$ac_file" || continue
3878 case $ac_file in
3879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3880 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881 break;;
3882 * ) break;;
3883 esac
3884 done
3885 else
3886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3888 as_fn_error "cannot compute suffix of executables: cannot compile and link
3889 See \`config.log' for more details." "$LINENO" 5; }
3890 fi
3891 rm -f conftest conftest$ac_cv_exeext
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3893 $as_echo "$ac_cv_exeext" >&6; }
3894
3895 rm -f conftest.$ac_ext
3896 EXEEXT=$ac_cv_exeext
3897 ac_exeext=$EXEEXT
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3900 #include <stdio.h>
3901 int
3902 main ()
3903 {
3904 FILE *f = fopen ("conftest.out", "w");
3905 return ferror (f) || fclose (f) != 0;
3906
3907 ;
3908 return 0;
3909 }
3910 _ACEOF
3911 ac_clean_files="$ac_clean_files conftest.out"
3912 # Check that the compiler produces executables we can run. If not, either
3913 # the compiler is broken, or we cross compile.
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3915 $as_echo_n "checking whether we are cross compiling... " >&6; }
3916 if test "$cross_compiling" != yes; then
3917 { { ac_try="$ac_link"
3918 case "(($ac_try" in
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3921 esac
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924 (eval "$ac_link") 2>&5
3925 ac_status=$?
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }
3928 if { ac_try='./conftest$ac_cv_exeext'
3929 { { case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3932 esac
3933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934 $as_echo "$ac_try_echo"; } >&5
3935 (eval "$ac_try") 2>&5
3936 ac_status=$?
3937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938 test $ac_status = 0; }; }; then
3939 cross_compiling=no
3940 else
3941 if test "$cross_compiling" = maybe; then
3942 cross_compiling=yes
3943 else
3944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3946 as_fn_error "cannot run C compiled programs.
3947 If you meant to cross compile, use \`--host'.
3948 See \`config.log' for more details." "$LINENO" 5; }
3949 fi
3950 fi
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3953 $as_echo "$cross_compiling" >&6; }
3954
3955 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3956 ac_clean_files=$ac_clean_files_save
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3958 $as_echo_n "checking for suffix of object files... " >&6; }
3959 if test "${ac_cv_objext+set}" = set; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3964
3965 int
3966 main ()
3967 {
3968
3969 ;
3970 return 0;
3971 }
3972 _ACEOF
3973 rm -f conftest.o conftest.obj
3974 if { { ac_try="$ac_compile"
3975 case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3978 esac
3979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980 $as_echo "$ac_try_echo"; } >&5
3981 (eval "$ac_compile") 2>&5
3982 ac_status=$?
3983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984 test $ac_status = 0; }; then :
3985 for ac_file in conftest.o conftest.obj conftest.*; do
3986 test -f "$ac_file" || continue;
3987 case $ac_file in
3988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3989 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3990 break;;
3991 esac
3992 done
3993 else
3994 $as_echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3996
3997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3999 as_fn_error "cannot compute suffix of object files: cannot compile
4000 See \`config.log' for more details." "$LINENO" 5; }
4001 fi
4002 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4003 fi
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4005 $as_echo "$ac_cv_objext" >&6; }
4006 OBJEXT=$ac_cv_objext
4007 ac_objext=$OBJEXT
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4009 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4010 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4015
4016 int
4017 main ()
4018 {
4019 #ifndef __GNUC__
4020 choke me
4021 #endif
4022
4023 ;
4024 return 0;
4025 }
4026 _ACEOF
4027 if ac_fn_c_try_compile "$LINENO"; then :
4028 ac_compiler_gnu=yes
4029 else
4030 ac_compiler_gnu=no
4031 fi
4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4034
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4037 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4038 if test $ac_compiler_gnu = yes; then
4039 GCC=yes
4040 else
4041 GCC=
4042 fi
4043 ac_test_CFLAGS=${CFLAGS+set}
4044 ac_save_CFLAGS=$CFLAGS
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4046 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4047 if test "${ac_cv_prog_cc_g+set}" = set; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 ac_save_c_werror_flag=$ac_c_werror_flag
4051 ac_c_werror_flag=yes
4052 ac_cv_prog_cc_g=no
4053 CFLAGS="-g"
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4056
4057 int
4058 main ()
4059 {
4060
4061 ;
4062 return 0;
4063 }
4064 _ACEOF
4065 if ac_fn_c_try_compile "$LINENO"; then :
4066 ac_cv_prog_cc_g=yes
4067 else
4068 CFLAGS=""
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071
4072 int
4073 main ()
4074 {
4075
4076 ;
4077 return 0;
4078 }
4079 _ACEOF
4080 if ac_fn_c_try_compile "$LINENO"; then :
4081
4082 else
4083 ac_c_werror_flag=$ac_save_c_werror_flag
4084 CFLAGS="-g"
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087
4088 int
4089 main ()
4090 {
4091
4092 ;
4093 return 0;
4094 }
4095 _ACEOF
4096 if ac_fn_c_try_compile "$LINENO"; then :
4097 ac_cv_prog_cc_g=yes
4098 fi
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 fi
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 fi
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 ac_c_werror_flag=$ac_save_c_werror_flag
4105 fi
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4107 $as_echo "$ac_cv_prog_cc_g" >&6; }
4108 if test "$ac_test_CFLAGS" = set; then
4109 CFLAGS=$ac_save_CFLAGS
4110 elif test $ac_cv_prog_cc_g = yes; then
4111 if test "$GCC" = yes; then
4112 CFLAGS="-g -O2"
4113 else
4114 CFLAGS="-g"
4115 fi
4116 else
4117 if test "$GCC" = yes; then
4118 CFLAGS="-O2"
4119 else
4120 CFLAGS=
4121 fi
4122 fi
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4124 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4125 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 ac_cv_prog_cc_c89=no
4129 ac_save_CC=$CC
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132 #include <stdarg.h>
4133 #include <stdio.h>
4134 #include <sys/types.h>
4135 #include <sys/stat.h>
4136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4137 struct buf { int x; };
4138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4139 static char *e (p, i)
4140 char **p;
4141 int i;
4142 {
4143 return p[i];
4144 }
4145 static char *f (char * (*g) (char **, int), char **p, ...)
4146 {
4147 char *s;
4148 va_list v;
4149 va_start (v,p);
4150 s = g (p, va_arg (v,int));
4151 va_end (v);
4152 return s;
4153 }
4154
4155 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4156 function prototypes and stuff, but not '\xHH' hex character constants.
4157 These don't provoke an error unfortunately, instead are silently treated
4158 as 'x'. The following induces an error, until -std is added to get
4159 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4160 array size at least. It's necessary to write '\x00'==0 to get something
4161 that's true only with -std. */
4162 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4163
4164 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4165 inside strings and character constants. */
4166 #define FOO(x) 'x'
4167 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4168
4169 int test (int i, double x);
4170 struct s1 {int (*f) (int a);};
4171 struct s2 {int (*f) (double a);};
4172 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4173 int argc;
4174 char **argv;
4175 int
4176 main ()
4177 {
4178 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4179 ;
4180 return 0;
4181 }
4182 _ACEOF
4183 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4184 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4185 do
4186 CC="$ac_save_CC $ac_arg"
4187 if ac_fn_c_try_compile "$LINENO"; then :
4188 ac_cv_prog_cc_c89=$ac_arg
4189 fi
4190 rm -f core conftest.err conftest.$ac_objext
4191 test "x$ac_cv_prog_cc_c89" != "xno" && break
4192 done
4193 rm -f conftest.$ac_ext
4194 CC=$ac_save_CC
4195
4196 fi
4197 # AC_CACHE_VAL
4198 case "x$ac_cv_prog_cc_c89" in
4199 x)
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4201 $as_echo "none needed" >&6; } ;;
4202 xno)
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4204 $as_echo "unsupported" >&6; } ;;
4205 *)
4206 CC="$CC $ac_cv_prog_cc_c89"
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4208 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4209 esac
4210 if test "x$ac_cv_prog_cc_c89" != xno; then :
4211
4212 fi
4213
4214 ac_ext=c
4215 ac_cpp='$CPP $CPPFLAGS'
4216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4219
4220
4221 # On Suns, sometimes $CPP names a directory.
4222 if test -n "$CPP" && test -d "$CPP"; then
4223 CPP=
4224 fi
4225
4226 ## If not using gcc, and on Solaris, and no CPP specified, see if
4227 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4228 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4229 test x"$CPP" = x; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4231 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4232
4233 if test "${emacs_cv_sunpro_c+set}" = set; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238
4239 int
4240 main ()
4241 {
4242 #ifndef __SUNPRO_C
4243 fail;
4244 #endif
4245
4246 ;
4247 return 0;
4248 }
4249 _ACEOF
4250 if ac_fn_c_try_link "$LINENO"; then :
4251 emacs_cv_sunpro_c=yes
4252 else
4253 emacs_cv_sunpro_c=no
4254 fi
4255 rm -f core conftest.err conftest.$ac_objext \
4256 conftest$ac_exeext conftest.$ac_ext
4257 fi
4258
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4260 $as_echo "$emacs_cv_sunpro_c" >&6; }
4261
4262 if test x"$emacs_cv_sunpro_c" = xyes; then
4263 NON_GNU_CPP="$CC -E -Xs"
4264 fi
4265 fi
4266
4267 #### Some systems specify a CPP to use unless we are using GCC.
4268 #### Now that we know whether we are using GCC, we can decide whether
4269 #### to use that one.
4270 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4271 then
4272 CPP="$NON_GNU_CPP"
4273 fi
4274
4275 #### Some systems specify a CC to use unless we are using GCC.
4276 #### Now that we know whether we are using GCC, we can decide whether
4277 #### to use that one.
4278 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4279 test x$cc_specified != xyes
4280 then
4281 CC="$NON_GNU_CC"
4282 fi
4283
4284 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4285 then
4286 CC="$CC $GCC_TEST_OPTIONS"
4287 fi
4288
4289 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4290 then
4291 CC="$CC $NON_GCC_TEST_OPTIONS"
4292 fi
4293
4294 ac_ext=c
4295 ac_cpp='$CPP $CPPFLAGS'
4296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4300 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4301 # On Suns, sometimes $CPP names a directory.
4302 if test -n "$CPP" && test -d "$CPP"; then
4303 CPP=
4304 fi
4305 if test -z "$CPP"; then
4306 if test "${ac_cv_prog_CPP+set}" = set; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 # Double quotes because CPP needs to be expanded
4310 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4311 do
4312 ac_preproc_ok=false
4313 for ac_c_preproc_warn_flag in '' yes
4314 do
4315 # Use a header file that comes with gcc, so configuring glibc
4316 # with a fresh cross-compiler works.
4317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4318 # <limits.h> exists even on freestanding compilers.
4319 # On the NeXT, cc -E runs the code through the compiler's parser,
4320 # not just through cpp. "Syntax error" is here to catch this case.
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4323 #ifdef __STDC__
4324 # include <limits.h>
4325 #else
4326 # include <assert.h>
4327 #endif
4328 Syntax error
4329 _ACEOF
4330 if ac_fn_c_try_cpp "$LINENO"; then :
4331
4332 else
4333 # Broken: fails on valid input.
4334 continue
4335 fi
4336 rm -f conftest.err conftest.$ac_ext
4337
4338 # OK, works on sane cases. Now check whether nonexistent headers
4339 # can be detected and how.
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342 #include <ac_nonexistent.h>
4343 _ACEOF
4344 if ac_fn_c_try_cpp "$LINENO"; then :
4345 # Broken: success on invalid input.
4346 continue
4347 else
4348 # Passes both tests.
4349 ac_preproc_ok=:
4350 break
4351 fi
4352 rm -f conftest.err conftest.$ac_ext
4353
4354 done
4355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4356 rm -f conftest.err conftest.$ac_ext
4357 if $ac_preproc_ok; then :
4358 break
4359 fi
4360
4361 done
4362 ac_cv_prog_CPP=$CPP
4363
4364 fi
4365 CPP=$ac_cv_prog_CPP
4366 else
4367 ac_cv_prog_CPP=$CPP
4368 fi
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4370 $as_echo "$CPP" >&6; }
4371 ac_preproc_ok=false
4372 for ac_c_preproc_warn_flag in '' yes
4373 do
4374 # Use a header file that comes with gcc, so configuring glibc
4375 # with a fresh cross-compiler works.
4376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4377 # <limits.h> exists even on freestanding compilers.
4378 # On the NeXT, cc -E runs the code through the compiler's parser,
4379 # not just through cpp. "Syntax error" is here to catch this case.
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4382 #ifdef __STDC__
4383 # include <limits.h>
4384 #else
4385 # include <assert.h>
4386 #endif
4387 Syntax error
4388 _ACEOF
4389 if ac_fn_c_try_cpp "$LINENO"; then :
4390
4391 else
4392 # Broken: fails on valid input.
4393 continue
4394 fi
4395 rm -f conftest.err conftest.$ac_ext
4396
4397 # OK, works on sane cases. Now check whether nonexistent headers
4398 # can be detected and how.
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401 #include <ac_nonexistent.h>
4402 _ACEOF
4403 if ac_fn_c_try_cpp "$LINENO"; then :
4404 # Broken: success on invalid input.
4405 continue
4406 else
4407 # Passes both tests.
4408 ac_preproc_ok=:
4409 break
4410 fi
4411 rm -f conftest.err conftest.$ac_ext
4412
4413 done
4414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4415 rm -f conftest.err conftest.$ac_ext
4416 if $ac_preproc_ok; then :
4417
4418 else
4419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4421 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4422 See \`config.log' for more details." "$LINENO" 5; }
4423 fi
4424
4425 ac_ext=c
4426 ac_cpp='$CPP $CPPFLAGS'
4427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430
4431
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4433 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4434 if test "${ac_cv_path_GREP+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 if test -z "$GREP"; then
4438 ac_path_GREP_found=false
4439 # Loop through the user's path and test for each of PROGNAME-LIST
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4442 do
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_prog in grep ggrep; do
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4448 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4449 # Check for GNU ac_path_GREP and select it if it is found.
4450 # Check for GNU $ac_path_GREP
4451 case `"$ac_path_GREP" --version 2>&1` in
4452 *GNU*)
4453 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4454 *)
4455 ac_count=0
4456 $as_echo_n 0123456789 >"conftest.in"
4457 while :
4458 do
4459 cat "conftest.in" "conftest.in" >"conftest.tmp"
4460 mv "conftest.tmp" "conftest.in"
4461 cp "conftest.in" "conftest.nl"
4462 $as_echo 'GREP' >> "conftest.nl"
4463 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4464 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4465 as_fn_arith $ac_count + 1 && ac_count=$as_val
4466 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4467 # Best one so far, save it but keep looking for a better one
4468 ac_cv_path_GREP="$ac_path_GREP"
4469 ac_path_GREP_max=$ac_count
4470 fi
4471 # 10*(2^10) chars as input seems more than enough
4472 test $ac_count -gt 10 && break
4473 done
4474 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4475 esac
4476
4477 $ac_path_GREP_found && break 3
4478 done
4479 done
4480 done
4481 IFS=$as_save_IFS
4482 if test -z "$ac_cv_path_GREP"; then
4483 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4484 fi
4485 else
4486 ac_cv_path_GREP=$GREP
4487 fi
4488
4489 fi
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4491 $as_echo "$ac_cv_path_GREP" >&6; }
4492 GREP="$ac_cv_path_GREP"
4493
4494
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4496 $as_echo_n "checking for egrep... " >&6; }
4497 if test "${ac_cv_path_EGREP+set}" = set; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4501 then ac_cv_path_EGREP="$GREP -E"
4502 else
4503 if test -z "$EGREP"; then
4504 ac_path_EGREP_found=false
4505 # Loop through the user's path and test for each of PROGNAME-LIST
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4508 do
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_prog in egrep; do
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4514 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4515 # Check for GNU ac_path_EGREP and select it if it is found.
4516 # Check for GNU $ac_path_EGREP
4517 case `"$ac_path_EGREP" --version 2>&1` in
4518 *GNU*)
4519 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4520 *)
4521 ac_count=0
4522 $as_echo_n 0123456789 >"conftest.in"
4523 while :
4524 do
4525 cat "conftest.in" "conftest.in" >"conftest.tmp"
4526 mv "conftest.tmp" "conftest.in"
4527 cp "conftest.in" "conftest.nl"
4528 $as_echo 'EGREP' >> "conftest.nl"
4529 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4531 as_fn_arith $ac_count + 1 && ac_count=$as_val
4532 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4533 # Best one so far, save it but keep looking for a better one
4534 ac_cv_path_EGREP="$ac_path_EGREP"
4535 ac_path_EGREP_max=$ac_count
4536 fi
4537 # 10*(2^10) chars as input seems more than enough
4538 test $ac_count -gt 10 && break
4539 done
4540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4541 esac
4542
4543 $ac_path_EGREP_found && break 3
4544 done
4545 done
4546 done
4547 IFS=$as_save_IFS
4548 if test -z "$ac_cv_path_EGREP"; then
4549 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4550 fi
4551 else
4552 ac_cv_path_EGREP=$EGREP
4553 fi
4554
4555 fi
4556 fi
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4558 $as_echo "$ac_cv_path_EGREP" >&6; }
4559 EGREP="$ac_cv_path_EGREP"
4560
4561
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4563 $as_echo_n "checking for ANSI C header files... " >&6; }
4564 if test "${ac_cv_header_stdc+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4569 #include <stdlib.h>
4570 #include <stdarg.h>
4571 #include <string.h>
4572 #include <float.h>
4573
4574 int
4575 main ()
4576 {
4577
4578 ;
4579 return 0;
4580 }
4581 _ACEOF
4582 if ac_fn_c_try_compile "$LINENO"; then :
4583 ac_cv_header_stdc=yes
4584 else
4585 ac_cv_header_stdc=no
4586 fi
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588
4589 if test $ac_cv_header_stdc = yes; then
4590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <string.h>
4594
4595 _ACEOF
4596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4597 $EGREP "memchr" >/dev/null 2>&1; then :
4598
4599 else
4600 ac_cv_header_stdc=no
4601 fi
4602 rm -f conftest*
4603
4604 fi
4605
4606 if test $ac_cv_header_stdc = yes; then
4607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4610 #include <stdlib.h>
4611
4612 _ACEOF
4613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4614 $EGREP "free" >/dev/null 2>&1; then :
4615
4616 else
4617 ac_cv_header_stdc=no
4618 fi
4619 rm -f conftest*
4620
4621 fi
4622
4623 if test $ac_cv_header_stdc = yes; then
4624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4625 if test "$cross_compiling" = yes; then :
4626 :
4627 else
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4630 #include <ctype.h>
4631 #include <stdlib.h>
4632 #if ((' ' & 0x0FF) == 0x020)
4633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4635 #else
4636 # define ISLOWER(c) \
4637 (('a' <= (c) && (c) <= 'i') \
4638 || ('j' <= (c) && (c) <= 'r') \
4639 || ('s' <= (c) && (c) <= 'z'))
4640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4641 #endif
4642
4643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4644 int
4645 main ()
4646 {
4647 int i;
4648 for (i = 0; i < 256; i++)
4649 if (XOR (islower (i), ISLOWER (i))
4650 || toupper (i) != TOUPPER (i))
4651 return 2;
4652 return 0;
4653 }
4654 _ACEOF
4655 if ac_fn_c_try_run "$LINENO"; then :
4656
4657 else
4658 ac_cv_header_stdc=no
4659 fi
4660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4661 conftest.$ac_objext conftest.beam conftest.$ac_ext
4662 fi
4663
4664 fi
4665 fi
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4667 $as_echo "$ac_cv_header_stdc" >&6; }
4668 if test $ac_cv_header_stdc = yes; then
4669
4670 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4671
4672 fi
4673
4674 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4675 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4676 inttypes.h stdint.h unistd.h
4677 do :
4678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4679 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4680 "
4681 eval as_val=\$$as_ac_Header
4682 if test "x$as_val" = x""yes; then :
4683 cat >>confdefs.h <<_ACEOF
4684 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4685 _ACEOF
4686
4687 fi
4688
4689 done
4690
4691
4692
4693 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4694 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4695 MINIX=yes
4696 else
4697 MINIX=
4698 fi
4699
4700
4701 if test "$MINIX" = yes; then
4702
4703 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4704
4705
4706 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4707
4708
4709 $as_echo "#define _MINIX 1" >>confdefs.h
4710
4711 fi
4712
4713
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4715 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4716 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721
4722 # define __EXTENSIONS__ 1
4723 $ac_includes_default
4724 int
4725 main ()
4726 {
4727
4728 ;
4729 return 0;
4730 }
4731 _ACEOF
4732 if ac_fn_c_try_compile "$LINENO"; then :
4733 ac_cv_safe_to_define___extensions__=yes
4734 else
4735 ac_cv_safe_to_define___extensions__=no
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 fi
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4740 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4741 test $ac_cv_safe_to_define___extensions__ = yes &&
4742 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4743
4744 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4745
4746 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4747
4748 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4749
4750 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4751
4752
4753
4754 ### Use -Wno-pointer-sign if the compiler supports it
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4756 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4757 SAVE_CFLAGS="$CFLAGS"
4758 CFLAGS="$CFLAGS -Wno-pointer-sign"
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761
4762 int
4763 main ()
4764 {
4765
4766 ;
4767 return 0;
4768 }
4769 _ACEOF
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 has_option=yes
4772 else
4773 has_option=no
4774 fi
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 if test $has_option = yes; then
4777 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4778 fi
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4780 $as_echo "$has_option" >&6; }
4781 CFLAGS="$SAVE_CFLAGS"
4782 unset has_option
4783 unset SAVE_CFLAGS
4784
4785 ### Use -Wdeclaration-after-statement if the compiler supports it
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4787 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4788 SAVE_CFLAGS="$CFLAGS"
4789 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792
4793 int
4794 main ()
4795 {
4796
4797 ;
4798 return 0;
4799 }
4800 _ACEOF
4801 if ac_fn_c_try_compile "$LINENO"; then :
4802 has_option=yes
4803 else
4804 has_option=no
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 if test $has_option = yes; then
4808 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4809 fi
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4811 $as_echo "$has_option" >&6; }
4812 CFLAGS="$SAVE_CFLAGS"
4813 unset has_option
4814 unset SAVE_CFLAGS
4815
4816 #### Some other nice autoconf tests.
4817
4818 ac_ext=c
4819 ac_cpp='$CPP $CPPFLAGS'
4820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4824 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4825 # On Suns, sometimes $CPP names a directory.
4826 if test -n "$CPP" && test -d "$CPP"; then
4827 CPP=
4828 fi
4829 if test -z "$CPP"; then
4830 if test "${ac_cv_prog_CPP+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 # Double quotes because CPP needs to be expanded
4834 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4835 do
4836 ac_preproc_ok=false
4837 for ac_c_preproc_warn_flag in '' yes
4838 do
4839 # Use a header file that comes with gcc, so configuring glibc
4840 # with a fresh cross-compiler works.
4841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4842 # <limits.h> exists even on freestanding compilers.
4843 # On the NeXT, cc -E runs the code through the compiler's parser,
4844 # not just through cpp. "Syntax error" is here to catch this case.
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h. */
4847 #ifdef __STDC__
4848 # include <limits.h>
4849 #else
4850 # include <assert.h>
4851 #endif
4852 Syntax error
4853 _ACEOF
4854 if ac_fn_c_try_cpp "$LINENO"; then :
4855
4856 else
4857 # Broken: fails on valid input.
4858 continue
4859 fi
4860 rm -f conftest.err conftest.$ac_ext
4861
4862 # OK, works on sane cases. Now check whether nonexistent headers
4863 # can be detected and how.
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866 #include <ac_nonexistent.h>
4867 _ACEOF
4868 if ac_fn_c_try_cpp "$LINENO"; then :
4869 # Broken: success on invalid input.
4870 continue
4871 else
4872 # Passes both tests.
4873 ac_preproc_ok=:
4874 break
4875 fi
4876 rm -f conftest.err conftest.$ac_ext
4877
4878 done
4879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4880 rm -f conftest.err conftest.$ac_ext
4881 if $ac_preproc_ok; then :
4882 break
4883 fi
4884
4885 done
4886 ac_cv_prog_CPP=$CPP
4887
4888 fi
4889 CPP=$ac_cv_prog_CPP
4890 else
4891 ac_cv_prog_CPP=$CPP
4892 fi
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4894 $as_echo "$CPP" >&6; }
4895 ac_preproc_ok=false
4896 for ac_c_preproc_warn_flag in '' yes
4897 do
4898 # Use a header file that comes with gcc, so configuring glibc
4899 # with a fresh cross-compiler works.
4900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4901 # <limits.h> exists even on freestanding compilers.
4902 # On the NeXT, cc -E runs the code through the compiler's parser,
4903 # not just through cpp. "Syntax error" is here to catch this case.
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905 /* end confdefs.h. */
4906 #ifdef __STDC__
4907 # include <limits.h>
4908 #else
4909 # include <assert.h>
4910 #endif
4911 Syntax error
4912 _ACEOF
4913 if ac_fn_c_try_cpp "$LINENO"; then :
4914
4915 else
4916 # Broken: fails on valid input.
4917 continue
4918 fi
4919 rm -f conftest.err conftest.$ac_ext
4920
4921 # OK, works on sane cases. Now check whether nonexistent headers
4922 # can be detected and how.
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4925 #include <ac_nonexistent.h>
4926 _ACEOF
4927 if ac_fn_c_try_cpp "$LINENO"; then :
4928 # Broken: success on invalid input.
4929 continue
4930 else
4931 # Passes both tests.
4932 ac_preproc_ok=:
4933 break
4934 fi
4935 rm -f conftest.err conftest.$ac_ext
4936
4937 done
4938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4939 rm -f conftest.err conftest.$ac_ext
4940 if $ac_preproc_ok; then :
4941
4942 else
4943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4945 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4946 See \`config.log' for more details." "$LINENO" 5; }
4947 fi
4948
4949 ac_ext=c
4950 ac_cpp='$CPP $CPPFLAGS'
4951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4954
4955 # Find a good install program. We prefer a C program (faster),
4956 # so one script is as good as another. But avoid the broken or
4957 # incompatible versions:
4958 # SysV /etc/install, /usr/sbin/install
4959 # SunOS /usr/etc/install
4960 # IRIX /sbin/install
4961 # AIX /bin/install
4962 # AmigaOS /C/install, which installs bootblocks on floppy discs
4963 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4964 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4965 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4966 # OS/2's system install, which has a completely different semantic
4967 # ./install, which can be erroneously created by make from ./install.sh.
4968 # Reject install programs that cannot install multiple files.
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4970 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4971 if test -z "$INSTALL"; then
4972 if test "${ac_cv_path_install+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4977 do
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 # Account for people who put trailing slashes in PATH elements.
4981 case $as_dir/ in #((
4982 ./ | .// | /[cC]/* | \
4983 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4984 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4985 /usr/ucb/* ) ;;
4986 *)
4987 # OSF1 and SCO ODT 3.0 have their own names for install.
4988 # Don't use installbsd from OSF since it installs stuff as root
4989 # by default.
4990 for ac_prog in ginstall scoinst install; do
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4993 if test $ac_prog = install &&
4994 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4995 # AIX install. It has an incompatible calling convention.
4996 :
4997 elif test $ac_prog = install &&
4998 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4999 # program-specific install script used by HP pwplus--don't use.
5000 :
5001 else
5002 rm -rf conftest.one conftest.two conftest.dir
5003 echo one > conftest.one
5004 echo two > conftest.two
5005 mkdir conftest.dir
5006 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5007 test -s conftest.one && test -s conftest.two &&
5008 test -s conftest.dir/conftest.one &&
5009 test -s conftest.dir/conftest.two
5010 then
5011 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5012 break 3
5013 fi
5014 fi
5015 fi
5016 done
5017 done
5018 ;;
5019 esac
5020
5021 done
5022 IFS=$as_save_IFS
5023
5024 rm -rf conftest.one conftest.two conftest.dir
5025
5026 fi
5027 if test "${ac_cv_path_install+set}" = set; then
5028 INSTALL=$ac_cv_path_install
5029 else
5030 # As a last resort, use the slow shell script. Don't cache a
5031 # value for INSTALL within a source directory, because that will
5032 # break other packages using the cache if that directory is
5033 # removed, or if the value is a relative name.
5034 INSTALL=$ac_install_sh
5035 fi
5036 fi
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5038 $as_echo "$INSTALL" >&6; }
5039
5040 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5041 # It thinks the first close brace ends the variable substitution.
5042 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5043
5044 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5045
5046 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5047
5048 if test "x$RANLIB" = x; then
5049 if test -n "$ac_tool_prefix"; then
5050 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5051 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 if test -n "$RANLIB"; then
5058 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5070 fi
5071 done
5072 done
5073 IFS=$as_save_IFS
5074
5075 fi
5076 fi
5077 RANLIB=$ac_cv_prog_RANLIB
5078 if test -n "$RANLIB"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5080 $as_echo "$RANLIB" >&6; }
5081 else
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5084 fi
5085
5086
5087 fi
5088 if test -z "$ac_cv_prog_RANLIB"; then
5089 ac_ct_RANLIB=$RANLIB
5090 # Extract the first word of "ranlib", so it can be a program name with args.
5091 set dummy ranlib; ac_word=$2
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093 $as_echo_n "checking for $ac_word... " >&6; }
5094 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 if test -n "$ac_ct_RANLIB"; then
5098 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5099 else
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5102 do
5103 IFS=$as_save_IFS
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107 ac_cv_prog_ac_ct_RANLIB="ranlib"
5108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 break 2
5110 fi
5111 done
5112 done
5113 IFS=$as_save_IFS
5114
5115 fi
5116 fi
5117 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5118 if test -n "$ac_ct_RANLIB"; then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5120 $as_echo "$ac_ct_RANLIB" >&6; }
5121 else
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5124 fi
5125
5126 if test "x$ac_ct_RANLIB" = x; then
5127 RANLIB=":"
5128 else
5129 case $cross_compiling:$ac_tool_warned in
5130 yes:)
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5133 ac_tool_warned=yes ;;
5134 esac
5135 RANLIB=$ac_ct_RANLIB
5136 fi
5137 else
5138 RANLIB="$ac_cv_prog_RANLIB"
5139 fi
5140
5141 fi
5142
5143 ## Although we're running on an amd64 kernel, we're actually compiling for
5144 ## the x86 architecture. The user should probably have provided an
5145 ## explicit --build to `configure', but if everything else than the kernel
5146 ## is running in i386 mode, we can help them out.
5147 if test "$machine" = "amdx86-64"; then
5148 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5149 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5150
5151 fi
5152
5153 if test "$ac_cv_have_decl_i386" = "yes"; then
5154 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5155 machine=intel386
5156 machfile="m/${machine}.h"
5157 fi
5158 fi
5159
5160 # Extract the first word of "install-info", so it can be a program name with args.
5161 set dummy install-info; 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_path_INSTALL_INFO+set}" = set; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 case $INSTALL_INFO in
5168 [\\/]* | ?:[\\/]*)
5169 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5170 ;;
5171 *)
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5174 do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5182 fi
5183 done
5184 done
5185 IFS=$as_save_IFS
5186
5187 ;;
5188 esac
5189 fi
5190 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5191 if test -n "$INSTALL_INFO"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5193 $as_echo "$INSTALL_INFO" >&6; }
5194 else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5197 fi
5198
5199
5200 # Extract the first word of "install-info", so it can be a program name with args.
5201 set dummy install-info; 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_path_INSTALL_INFO+set}" = set; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 case $INSTALL_INFO in
5208 [\\/]* | ?:[\\/]*)
5209 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5210 ;;
5211 *)
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in /usr/sbin
5214 do
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 break 2
5222 fi
5223 done
5224 done
5225 IFS=$as_save_IFS
5226
5227 ;;
5228 esac
5229 fi
5230 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5231 if test -n "$INSTALL_INFO"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5233 $as_echo "$INSTALL_INFO" >&6; }
5234 else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5237 fi
5238
5239
5240 # Extract the first word of "install-info", so it can be a program name with args.
5241 set dummy install-info; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 case $INSTALL_INFO in
5248 [\\/]* | ?:[\\/]*)
5249 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5250 ;;
5251 *)
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in /sbin
5254 do
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5262 fi
5263 done
5264 done
5265 IFS=$as_save_IFS
5266
5267 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5268 ;;
5269 esac
5270 fi
5271 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5272 if test -n "$INSTALL_INFO"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5274 $as_echo "$INSTALL_INFO" >&6; }
5275 else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5278 fi
5279
5280
5281 # Extract the first word of "gzip", so it can be a program name with args.
5282 set dummy gzip; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 case $GZIP_PROG in
5289 [\\/]* | ?:[\\/]*)
5290 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5291 ;;
5292 *)
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5295 do
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5303 fi
5304 done
5305 done
5306 IFS=$as_save_IFS
5307
5308 ;;
5309 esac
5310 fi
5311 GZIP_PROG=$ac_cv_path_GZIP_PROG
5312 if test -n "$GZIP_PROG"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5314 $as_echo "$GZIP_PROG" >&6; }
5315 else
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5318 fi
5319
5320
5321
5322
5323 ## Need makeinfo >= 4.6 (?) to build the manuals.
5324 # Extract the first word of "makeinfo", so it can be a program name with args.
5325 set dummy makeinfo; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 case $MAKEINFO in
5332 [\\/]* | ?:[\\/]*)
5333 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5334 ;;
5335 *)
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH
5338 do
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 break 2
5346 fi
5347 done
5348 done
5349 IFS=$as_save_IFS
5350
5351 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5352 ;;
5353 esac
5354 fi
5355 MAKEINFO=$ac_cv_path_MAKEINFO
5356 if test -n "$MAKEINFO"; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5358 $as_echo "$MAKEINFO" >&6; }
5359 else
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5362 fi
5363
5364
5365 if test "$MAKEINFO" != "no" && \
5366 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
5367 MAKEINFO=no
5368 fi
5369
5370 ## Makeinfo is unusual. For a released Emacs, the manuals are
5371 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5372 ## therefore in the category of "special tools" not normally required, which
5373 ## configure does not have to check for (eg autoconf itself).
5374 ## In a Bazaar checkout on the other hand, the manuals are not included.
5375 ## So makeinfo is a requirement to build from Bazaar, and configure
5376 ## should test for it as it does for any other build requirement.
5377 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5378 ## with pre-built manuals, from a Bazaar checkout.
5379 if test "$MAKEINFO" = "no"; then
5380 if test "x${with_makeinfo}" = "xno"; then
5381 MAKEINFO=off
5382 elif test ! -e $srcdir/info/emacs; then
5383 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5384 source tree does not seem to have pre-built manuals in the \`info' directory.
5385 Either install a suitable version of makeinfo, or re-run configure
5386 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5387 fi
5388 fi
5389
5390
5391 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5392 then
5393 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5394 fi
5395
5396 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5397 then
5398 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5399 fi
5400
5401
5402 late_LDFLAGS=$LDFLAGS
5403 if test "$GCC" = yes; then
5404 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5405 else
5406 LDFLAGS="$LDFLAGS -znocombreloc"
5407 fi
5408
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5410 $as_echo_n "checking for -znocombreloc... " >&6; }
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 main(){return 0;}
5414 _ACEOF
5415 if ac_fn_c_try_link "$LINENO"; then :
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5417 $as_echo "yes" >&6; }
5418 else
5419 LDFLAGS=$late_LDFLAGS
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5422 fi
5423 rm -f core conftest.err conftest.$ac_objext \
5424 conftest$ac_exeext conftest.$ac_ext
5425
5426 #### Extract some information from the operating system and machine files.
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5429 - which libraries the lib-src programs will want, and
5430 - whether the GNU malloc routines are usable..." >&5
5431 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5432 - which libraries the lib-src programs will want, and
5433 - whether the GNU malloc routines are usable..." >&6;}
5434
5435 ### First figure out CFLAGS (which we use for running the compiler here)
5436 ### and REAL_CFLAGS (which we use for real compilation).
5437 ### The two are the same except on a few systems, where they are made
5438 ### different to work around various lossages. For example,
5439 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5440 ### as implying static linking.
5441
5442 ### If the CFLAGS env var is specified, we use that value
5443 ### instead of the default.
5444
5445 ### It's not important that this name contain the PID; you can't run
5446 ### two configures in the same directory and have anything work
5447 ### anyway.
5448 tempcname="conftest.c"
5449
5450 echo '
5451 #include "'${srcdir}'/src/'${opsysfile}'"
5452 #include "'${srcdir}'/src/'${machfile}'"
5453
5454 configure___ LIBX=-lX11
5455
5456 configure___ unexec=UNEXEC
5457
5458 #ifdef SYSTEM_MALLOC
5459 configure___ system_malloc=yes
5460 #else
5461 configure___ system_malloc=no
5462 #endif
5463
5464 #ifdef USE_MMAP_FOR_BUFFERS
5465 configure___ use_mmap_for_buffers=yes
5466 #else
5467 configure___ use_mmap_for_buffers=no
5468 #endif
5469
5470 #ifndef C_OPTIMIZE_SWITCH
5471 #ifdef __GNUC__
5472 #define C_OPTIMIZE_SWITCH -O2
5473 #else
5474 #define C_OPTIMIZE_SWITCH -O
5475 #endif
5476 #endif
5477
5478 #ifndef C_WARNINGS_SWITCH
5479 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5480 #endif
5481
5482 #ifdef THIS_IS_CONFIGURE
5483
5484 /* Get the CFLAGS for tests in configure. */
5485 #ifdef __GNUC__
5486 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5487 #else
5488 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5489 #endif
5490
5491 #else /* not THIS_IS_CONFIGURE */
5492
5493 /* Get the CFLAGS for real compilation. */
5494 #ifdef __GNUC__
5495 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5496 #else
5497 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5498 #endif
5499
5500 #endif /* not THIS_IS_CONFIGURE */
5501 ' > ${tempcname}
5502
5503 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5504
5505 # The value of CPP is a quoted variable reference, so we need to do this
5506 # to get its actual value...
5507 CPP=`eval "echo $CPP"`
5508 eval `${CPP} -Isrc ${tempcname} \
5509 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5510 if test "x$SPECIFIED_CFLAGS" = x; then
5511 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5512 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5513 else
5514 REAL_CFLAGS="$CFLAGS"
5515 fi
5516 rm ${tempcname}
5517
5518
5519 LD_SWITCH_SYSTEM=
5520 case "$opsys" in
5521 freebsd)
5522 ## Let `ld' find image libs and similar things in /usr/local/lib.
5523 ## The system compiler, GCC, has apparently been modified to not
5524 ## look there, contrary to what a stock GCC would do.
5525 LD_SWITCH_SYSTEM=-L/usr/local/lib
5526 ;;
5527
5528 gnu-linux)
5529 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5530 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5531 ;;
5532
5533 netbsd)
5534 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5535 ;;
5536
5537 openbsd)
5538 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5539 ## otherwise Emacs dumps core on elf systems.
5540 LD_SWITCH_SYSTEM="-Z"
5541 ;;
5542 esac
5543
5544
5545 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5546
5547 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5548 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5549 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5550 ## values in configure and the Makefiles. How helpful.
5551 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5552 case "$opsys" in
5553 gnu-linux)
5554 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5555 LD_SWITCH_SYSTEM="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5556
5557 netbsd|openbsd)
5558 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5559 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5560 esac
5561
5562
5563 C_SWITCH_MACHINE=
5564 if test "$machine" = "alpha"; then
5565 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5566 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5567
5568 fi
5569
5570 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5571 ## With ELF, make sure that all common symbols get allocated to in the
5572 ## data section. Otherwise, the dump of temacs may miss variables in
5573 ## the shared library that have been initialized. For example, with
5574 ## GNU libc, __malloc_initialized would normally be resolved to the
5575 ## shared library's .bss section, which is fatal.
5576 if test "x$GCC" = "xyes"; then
5577 C_SWITCH_MACHINE="-fno-common"
5578 else
5579 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5580 fi
5581 fi
5582 fi
5583
5584
5585
5586 C_SWITCH_SYSTEM=
5587 ## Some programs in src produce warnings saying certain subprograms
5588 ## are too complex and need a MAXMEM value greater than 2000 for
5589 ## additional optimization. --nils@exp-math.uni-essen.de
5590 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5591 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5592 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5593 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5594
5595
5596
5597 LIBS_SYSTEM=
5598 case "$opsys" in
5599 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5600 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5601
5602 freebsd) LIBS_SYSTEM="-lutil" ;;
5603
5604 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5605
5606 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5607
5608 ## Motif needs -lgen.
5609 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5610 esac
5611
5612
5613
5614 ### Make sure subsequent tests use flags consistent with the build flags.
5615
5616 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5617 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5618 else
5619 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5620 fi
5621
5622
5623
5624 # Check whether --enable-largefile was given.
5625 if test "${enable_largefile+set}" = set; then :
5626 enableval=$enable_largefile;
5627 fi
5628
5629 if test "$enable_largefile" != no; then
5630
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5632 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5633 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 ac_cv_sys_largefile_CC=no
5637 if test "$GCC" != yes; then
5638 ac_save_CC=$CC
5639 while :; do
5640 # IRIX 6.2 and later do not support large files by default,
5641 # so use the C compiler's -n32 option if that helps.
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <sys/types.h>
5645 /* Check that off_t can represent 2**63 - 1 correctly.
5646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5647 since some C++ compilers masquerading as C compilers
5648 incorrectly reject 9223372036854775807. */
5649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5651 && LARGE_OFF_T % 2147483647 == 1)
5652 ? 1 : -1];
5653 int
5654 main ()
5655 {
5656
5657 ;
5658 return 0;
5659 }
5660 _ACEOF
5661 if ac_fn_c_try_compile "$LINENO"; then :
5662 break
5663 fi
5664 rm -f core conftest.err conftest.$ac_objext
5665 CC="$CC -n32"
5666 if ac_fn_c_try_compile "$LINENO"; then :
5667 ac_cv_sys_largefile_CC=' -n32'; break
5668 fi
5669 rm -f core conftest.err conftest.$ac_objext
5670 break
5671 done
5672 CC=$ac_save_CC
5673 rm -f conftest.$ac_ext
5674 fi
5675 fi
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5677 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5678 if test "$ac_cv_sys_largefile_CC" != no; then
5679 CC=$CC$ac_cv_sys_largefile_CC
5680 fi
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5683 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5684 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 while :; do
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 #include <sys/types.h>
5691 /* Check that off_t can represent 2**63 - 1 correctly.
5692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5693 since some C++ compilers masquerading as C compilers
5694 incorrectly reject 9223372036854775807. */
5695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5697 && LARGE_OFF_T % 2147483647 == 1)
5698 ? 1 : -1];
5699 int
5700 main ()
5701 {
5702
5703 ;
5704 return 0;
5705 }
5706 _ACEOF
5707 if ac_fn_c_try_compile "$LINENO"; then :
5708 ac_cv_sys_file_offset_bits=no; break
5709 fi
5710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5713 #define _FILE_OFFSET_BITS 64
5714 #include <sys/types.h>
5715 /* Check that off_t can represent 2**63 - 1 correctly.
5716 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5717 since some C++ compilers masquerading as C compilers
5718 incorrectly reject 9223372036854775807. */
5719 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5720 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5721 && LARGE_OFF_T % 2147483647 == 1)
5722 ? 1 : -1];
5723 int
5724 main ()
5725 {
5726
5727 ;
5728 return 0;
5729 }
5730 _ACEOF
5731 if ac_fn_c_try_compile "$LINENO"; then :
5732 ac_cv_sys_file_offset_bits=64; break
5733 fi
5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735 ac_cv_sys_file_offset_bits=unknown
5736 break
5737 done
5738 fi
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5740 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5741 case $ac_cv_sys_file_offset_bits in #(
5742 no | unknown) ;;
5743 *)
5744 cat >>confdefs.h <<_ACEOF
5745 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5746 _ACEOF
5747 ;;
5748 esac
5749 rm -rf conftest*
5750 if test $ac_cv_sys_file_offset_bits = unknown; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5752 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5753 if test "${ac_cv_sys_large_files+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 while :; do
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 #include <sys/types.h>
5760 /* Check that off_t can represent 2**63 - 1 correctly.
5761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5762 since some C++ compilers masquerading as C compilers
5763 incorrectly reject 9223372036854775807. */
5764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5766 && LARGE_OFF_T % 2147483647 == 1)
5767 ? 1 : -1];
5768 int
5769 main ()
5770 {
5771
5772 ;
5773 return 0;
5774 }
5775 _ACEOF
5776 if ac_fn_c_try_compile "$LINENO"; then :
5777 ac_cv_sys_large_files=no; break
5778 fi
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5782 #define _LARGE_FILES 1
5783 #include <sys/types.h>
5784 /* Check that off_t can represent 2**63 - 1 correctly.
5785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5786 since some C++ compilers masquerading as C compilers
5787 incorrectly reject 9223372036854775807. */
5788 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5790 && LARGE_OFF_T % 2147483647 == 1)
5791 ? 1 : -1];
5792 int
5793 main ()
5794 {
5795
5796 ;
5797 return 0;
5798 }
5799 _ACEOF
5800 if ac_fn_c_try_compile "$LINENO"; then :
5801 ac_cv_sys_large_files=1; break
5802 fi
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 ac_cv_sys_large_files=unknown
5805 break
5806 done
5807 fi
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5809 $as_echo "$ac_cv_sys_large_files" >&6; }
5810 case $ac_cv_sys_large_files in #(
5811 no | unknown) ;;
5812 *)
5813 cat >>confdefs.h <<_ACEOF
5814 #define _LARGE_FILES $ac_cv_sys_large_files
5815 _ACEOF
5816 ;;
5817 esac
5818 rm -rf conftest*
5819 fi
5820 fi
5821
5822
5823
5824 ## If user specified a crt-dir, use that unconditionally.
5825 if test "X$CRT_DIR" = "X"; then
5826
5827 case "$canonical" in
5828 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5829 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5830 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5831 ## For anything else (eg /usr/lib32), it is up the user to specify
5832 ## the location (bug#5655).
5833 ## Test for crtn.o, not just the directory, because sometimes the
5834 ## directory exists but does not have the relevant files (bug#1287).
5835 ## FIXME better to test for binary compatibility somehow.
5836 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5837 ;;
5838
5839 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5840 esac
5841
5842 case "$opsys" in
5843 hpux10-20) CRT_DIR=/lib ;;
5844 esac
5845
5846 ## Default is /usr/lib.
5847 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5848
5849 else
5850
5851 ## Some platforms don't use any of these files, so it is not
5852 ## appropriate to put this test outside the if block.
5853 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5854 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
5855
5856 fi
5857
5858
5859
5860 LIB_MATH=-lm
5861 LIB_STANDARD=
5862 START_FILES=
5863
5864 case $opsys in
5865 cygwin )
5866 LIB_MATH=
5867 START_FILES='ecrt0.o'
5868 ;;
5869 darwin )
5870 ## Adding -lm confuses the dynamic linker, so omit it.
5871 LIB_MATH=
5872 START_FILES='pre-crt0.o'
5873 ;;
5874 freebsd )
5875 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5876 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5877 ;;
5878 gnu-linux | gnu-kfreebsd )
5879 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5880 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5881 ;;
5882 hpux10-20 | hpux11 )
5883 LIB_STANDARD=-lc
5884 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5885 ;;
5886 netbsd | openbsd )
5887 if test -f $CRT_DIR/crti.o; then
5888 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5889 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5890 else
5891 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5892 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5893 fi
5894 ;;
5895 esac
5896
5897
5898
5899
5900
5901
5902
5903 if test "${with_sound}" != "no"; then
5904 # Sound support for GNU/Linux and the free BSDs.
5905 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5906 do :
5907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5908 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5909 eval as_val=\$$as_ac_Header
5910 if test "x$as_val" = x""yes; then :
5911 cat >>confdefs.h <<_ACEOF
5912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5913 _ACEOF
5914
5915 fi
5916
5917 done
5918
5919 # Emulation library used on NetBSD.
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5921 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5922 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 ac_check_lib_save_LIBS=$LIBS
5926 LIBS="-lossaudio $LIBS"
5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h. */
5929
5930 /* Override any GCC internal prototype to avoid an error.
5931 Use char because int might match the return type of a GCC
5932 builtin and then its argument prototype would still apply. */
5933 #ifdef __cplusplus
5934 extern "C"
5935 #endif
5936 char _oss_ioctl ();
5937 int
5938 main ()
5939 {
5940 return _oss_ioctl ();
5941 ;
5942 return 0;
5943 }
5944 _ACEOF
5945 if ac_fn_c_try_link "$LINENO"; then :
5946 ac_cv_lib_ossaudio__oss_ioctl=yes
5947 else
5948 ac_cv_lib_ossaudio__oss_ioctl=no
5949 fi
5950 rm -f core conftest.err conftest.$ac_objext \
5951 conftest$ac_exeext conftest.$ac_ext
5952 LIBS=$ac_check_lib_save_LIBS
5953 fi
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5955 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5956 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5957 LIBSOUND=-lossaudio
5958 else
5959 LIBSOUND=
5960 fi
5961
5962
5963
5964 ALSA_REQUIRED=1.0.0
5965 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5966
5967 succeeded=no
5968
5969 # Extract the first word of "pkg-config", so it can be a program name with args.
5970 set dummy pkg-config; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 case $PKG_CONFIG in
5977 [\\/]* | ?:[\\/]*)
5978 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5979 ;;
5980 *)
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH
5983 do
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5988 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5991 fi
5992 done
5993 done
5994 IFS=$as_save_IFS
5995
5996 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5997 ;;
5998 esac
5999 fi
6000 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6001 if test -n "$PKG_CONFIG"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6003 $as_echo "$PKG_CONFIG" >&6; }
6004 else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6007 fi
6008
6009
6010
6011 if test "$PKG_CONFIG" = "no" ; then
6012 HAVE_ALSA=no
6013 else
6014 PKG_CONFIG_MIN_VERSION=0.9.0
6015 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6017 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6018
6019 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6021 $as_echo "yes" >&6; }
6022 succeeded=yes
6023
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6025 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6026 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6028 $as_echo "$ALSA_CFLAGS" >&6; }
6029
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6031 $as_echo_n "checking ALSA_LIBS... " >&6; }
6032 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6034 $as_echo "$ALSA_LIBS" >&6; }
6035 else
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6038 ALSA_CFLAGS=""
6039 ALSA_LIBS=""
6040 ## If we have a custom action on failure, don't print errors, but
6041 ## do set a variable so people can do so.
6042 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6043
6044 fi
6045
6046
6047
6048 else
6049 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6050 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6051 fi
6052 fi
6053
6054 if test $succeeded = yes; then
6055 HAVE_ALSA=yes
6056 else
6057 HAVE_ALSA=no
6058 fi
6059
6060 if test $HAVE_ALSA = yes; then
6061 SAVE_CFLAGS="$CFLAGS"
6062 SAVE_LDFLAGS="$LDFLAGS"
6063 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6064 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6067 #include <asoundlib.h>
6068 int
6069 main ()
6070 {
6071 snd_lib_error_set_handler (0);
6072 ;
6073 return 0;
6074 }
6075 _ACEOF
6076 if ac_fn_c_try_compile "$LINENO"; then :
6077 emacs_alsa_normal=yes
6078 else
6079 emacs_alsa_normal=no
6080 fi
6081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082 if test "$emacs_alsa_normal" != yes; then
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6085 #include <alsa/asoundlib.h>
6086 int
6087 main ()
6088 {
6089 snd_lib_error_set_handler (0);
6090 ;
6091 return 0;
6092 }
6093 _ACEOF
6094 if ac_fn_c_try_compile "$LINENO"; then :
6095 emacs_alsa_subdir=yes
6096 else
6097 emacs_alsa_subdir=no
6098 fi
6099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100 if test "$emacs_alsa_subdir" != yes; then
6101 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6102 fi
6103 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6104 fi
6105
6106 CFLAGS="$SAVE_CFLAGS"
6107 LDFLAGS="$SAVE_LDFLAGS"
6108 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6109 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6110
6111 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6112
6113 fi
6114
6115 fi
6116
6117 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6118 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6119 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6120 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6121 sys/utsname.h pwd.h utmp.h
6122 do :
6123 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6124 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6125 eval as_val=\$$as_ac_Header
6126 if test "x$as_val" = x""yes; then :
6127 cat >>confdefs.h <<_ACEOF
6128 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6129 _ACEOF
6130
6131 fi
6132
6133 done
6134
6135
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6137 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6140 #include <sys/personality.h>
6141 int
6142 main ()
6143 {
6144 personality (PER_LINUX32)
6145 ;
6146 return 0;
6147 }
6148 _ACEOF
6149 if ac_fn_c_try_compile "$LINENO"; then :
6150 emacs_cv_personality_linux32=yes
6151 else
6152 emacs_cv_personality_linux32=no
6153 fi
6154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6156 $as_echo "$emacs_cv_personality_linux32" >&6; }
6157
6158 if test $emacs_cv_personality_linux32 = yes; then
6159
6160 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6161
6162 fi
6163
6164 for ac_header in term.h
6165 do :
6166 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6167 if test "x$ac_cv_header_term_h" = x""yes; then :
6168 cat >>confdefs.h <<_ACEOF
6169 #define HAVE_TERM_H 1
6170 _ACEOF
6171
6172 fi
6173
6174 done
6175
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6177 $as_echo_n "checking for ANSI C header files... " >&6; }
6178 if test "${ac_cv_header_stdc+set}" = set; then :
6179 $as_echo_n "(cached) " >&6
6180 else
6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182 /* end confdefs.h. */
6183 #include <stdlib.h>
6184 #include <stdarg.h>
6185 #include <string.h>
6186 #include <float.h>
6187
6188 int
6189 main ()
6190 {
6191
6192 ;
6193 return 0;
6194 }
6195 _ACEOF
6196 if ac_fn_c_try_compile "$LINENO"; then :
6197 ac_cv_header_stdc=yes
6198 else
6199 ac_cv_header_stdc=no
6200 fi
6201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202
6203 if test $ac_cv_header_stdc = yes; then
6204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6207 #include <string.h>
6208
6209 _ACEOF
6210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6211 $EGREP "memchr" >/dev/null 2>&1; then :
6212
6213 else
6214 ac_cv_header_stdc=no
6215 fi
6216 rm -f conftest*
6217
6218 fi
6219
6220 if test $ac_cv_header_stdc = yes; then
6221 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6224 #include <stdlib.h>
6225
6226 _ACEOF
6227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6228 $EGREP "free" >/dev/null 2>&1; then :
6229
6230 else
6231 ac_cv_header_stdc=no
6232 fi
6233 rm -f conftest*
6234
6235 fi
6236
6237 if test $ac_cv_header_stdc = yes; then
6238 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6239 if test "$cross_compiling" = yes; then :
6240 :
6241 else
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6244 #include <ctype.h>
6245 #include <stdlib.h>
6246 #if ((' ' & 0x0FF) == 0x020)
6247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6249 #else
6250 # define ISLOWER(c) \
6251 (('a' <= (c) && (c) <= 'i') \
6252 || ('j' <= (c) && (c) <= 'r') \
6253 || ('s' <= (c) && (c) <= 'z'))
6254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6255 #endif
6256
6257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6258 int
6259 main ()
6260 {
6261 int i;
6262 for (i = 0; i < 256; i++)
6263 if (XOR (islower (i), ISLOWER (i))
6264 || toupper (i) != TOUPPER (i))
6265 return 2;
6266 return 0;
6267 }
6268 _ACEOF
6269 if ac_fn_c_try_run "$LINENO"; then :
6270
6271 else
6272 ac_cv_header_stdc=no
6273 fi
6274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6275 conftest.$ac_objext conftest.beam conftest.$ac_ext
6276 fi
6277
6278 fi
6279 fi
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6281 $as_echo "$ac_cv_header_stdc" >&6; }
6282 if test $ac_cv_header_stdc = yes; then
6283
6284 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6285
6286 fi
6287
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6289 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6290 if test "${ac_cv_header_time+set}" = set; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6295 #include <sys/types.h>
6296 #include <sys/time.h>
6297 #include <time.h>
6298
6299 int
6300 main ()
6301 {
6302 if ((struct tm *) 0)
6303 return 0;
6304 ;
6305 return 0;
6306 }
6307 _ACEOF
6308 if ac_fn_c_try_compile "$LINENO"; then :
6309 ac_cv_header_time=yes
6310 else
6311 ac_cv_header_time=no
6312 fi
6313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314 fi
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6316 $as_echo "$ac_cv_header_time" >&6; }
6317 if test $ac_cv_header_time = yes; then
6318
6319 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6320
6321 fi
6322
6323 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6324 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6325 ac_have_decl=1
6326 else
6327 ac_have_decl=0
6328 fi
6329
6330 cat >>confdefs.h <<_ACEOF
6331 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6332 _ACEOF
6333
6334 if test $ac_cv_have_decl_sys_siglist != yes; then
6335 # For Tru64, at least:
6336 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6337 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6338 ac_have_decl=1
6339 else
6340 ac_have_decl=0
6341 fi
6342
6343 cat >>confdefs.h <<_ACEOF
6344 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6345 _ACEOF
6346
6347 if test $ac_cv_have_decl___sys_siglist = yes; then
6348
6349 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6350
6351 fi
6352 fi
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6354 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6355 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6360 #include <sys/types.h>
6361 #include <sys/wait.h>
6362 #ifndef WEXITSTATUS
6363 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6364 #endif
6365 #ifndef WIFEXITED
6366 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6367 #endif
6368
6369 int
6370 main ()
6371 {
6372 int s;
6373 wait (&s);
6374 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6375 ;
6376 return 0;
6377 }
6378 _ACEOF
6379 if ac_fn_c_try_compile "$LINENO"; then :
6380 ac_cv_header_sys_wait_h=yes
6381 else
6382 ac_cv_header_sys_wait_h=no
6383 fi
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385 fi
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6387 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6388 if test $ac_cv_header_sys_wait_h = yes; then
6389
6390 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6391
6392 fi
6393
6394
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6396 $as_echo_n "checking for struct utimbuf... " >&6; }
6397 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6402 #ifdef TIME_WITH_SYS_TIME
6403 #include <sys/time.h>
6404 #include <time.h>
6405 #else
6406 #ifdef HAVE_SYS_TIME_H
6407 #include <sys/time.h>
6408 #else
6409 #include <time.h>
6410 #endif
6411 #endif
6412 #ifdef HAVE_UTIME_H
6413 #include <utime.h>
6414 #endif
6415 int
6416 main ()
6417 {
6418 static struct utimbuf x; x.actime = x.modtime;
6419 ;
6420 return 0;
6421 }
6422 _ACEOF
6423 if ac_fn_c_try_compile "$LINENO"; then :
6424 emacs_cv_struct_utimbuf=yes
6425 else
6426 emacs_cv_struct_utimbuf=no
6427 fi
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 fi
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6431 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6432 if test $emacs_cv_struct_utimbuf = yes; then
6433
6434 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6435
6436 fi
6437
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6439 $as_echo_n "checking return type of signal handlers... " >&6; }
6440 if test "${ac_cv_type_signal+set}" = set; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h. */
6445 #include <sys/types.h>
6446 #include <signal.h>
6447
6448 int
6449 main ()
6450 {
6451 return *(signal (0, 0)) (0) == 1;
6452 ;
6453 return 0;
6454 }
6455 _ACEOF
6456 if ac_fn_c_try_compile "$LINENO"; then :
6457 ac_cv_type_signal=int
6458 else
6459 ac_cv_type_signal=void
6460 fi
6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462 fi
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6464 $as_echo "$ac_cv_type_signal" >&6; }
6465
6466 cat >>confdefs.h <<_ACEOF
6467 #define RETSIGTYPE $ac_cv_type_signal
6468 _ACEOF
6469
6470
6471
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6473 $as_echo_n "checking for speed_t... " >&6; }
6474 if test "${emacs_cv_speed_t+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6479 #include <termios.h>
6480 int
6481 main ()
6482 {
6483 speed_t x = 1;
6484 ;
6485 return 0;
6486 }
6487 _ACEOF
6488 if ac_fn_c_try_compile "$LINENO"; then :
6489 emacs_cv_speed_t=yes
6490 else
6491 emacs_cv_speed_t=no
6492 fi
6493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494 fi
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6496 $as_echo "$emacs_cv_speed_t" >&6; }
6497 if test $emacs_cv_speed_t = yes; then
6498
6499 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6500
6501 fi
6502
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6504 $as_echo_n "checking for struct timeval... " >&6; }
6505 if test "${emacs_cv_struct_timeval+set}" = set; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 #ifdef TIME_WITH_SYS_TIME
6511 #include <sys/time.h>
6512 #include <time.h>
6513 #else
6514 #ifdef HAVE_SYS_TIME_H
6515 #include <sys/time.h>
6516 #else
6517 #include <time.h>
6518 #endif
6519 #endif
6520 int
6521 main ()
6522 {
6523 static struct timeval x; x.tv_sec = x.tv_usec;
6524 ;
6525 return 0;
6526 }
6527 _ACEOF
6528 if ac_fn_c_try_compile "$LINENO"; then :
6529 emacs_cv_struct_timeval=yes
6530 else
6531 emacs_cv_struct_timeval=no
6532 fi
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 fi
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6536 $as_echo "$emacs_cv_struct_timeval" >&6; }
6537 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6538 if test $emacs_cv_struct_timeval = yes; then
6539
6540 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6541
6542 fi
6543
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6545 $as_echo_n "checking for struct exception... " >&6; }
6546 if test "${emacs_cv_struct_exception+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551 #include <math.h>
6552 int
6553 main ()
6554 {
6555 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6556 ;
6557 return 0;
6558 }
6559 _ACEOF
6560 if ac_fn_c_try_compile "$LINENO"; then :
6561 emacs_cv_struct_exception=yes
6562 else
6563 emacs_cv_struct_exception=no
6564 fi
6565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566 fi
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6568 $as_echo "$emacs_cv_struct_exception" >&6; }
6569 HAVE_EXCEPTION=$emacs_cv_struct_exception
6570 if test $emacs_cv_struct_exception != yes; then
6571
6572 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6573
6574 fi
6575
6576 for ac_header in sys/socket.h
6577 do :
6578 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6579 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6580 cat >>confdefs.h <<_ACEOF
6581 #define HAVE_SYS_SOCKET_H 1
6582 _ACEOF
6583
6584 fi
6585
6586 done
6587
6588 for ac_header in net/if.h
6589 do :
6590 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6591 #if HAVE_SYS_SOCKET_H
6592 #include <sys/socket.h>
6593 #endif
6594 "
6595 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6596 cat >>confdefs.h <<_ACEOF
6597 #define HAVE_NET_IF_H 1
6598 _ACEOF
6599
6600 fi
6601
6602 done
6603
6604
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6606 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6607 if test "${ac_cv_struct_tm+set}" = set; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6612 #include <sys/types.h>
6613 #include <time.h>
6614
6615 int
6616 main ()
6617 {
6618 struct tm tm;
6619 int *p = &tm.tm_sec;
6620 return !p;
6621 ;
6622 return 0;
6623 }
6624 _ACEOF
6625 if ac_fn_c_try_compile "$LINENO"; then :
6626 ac_cv_struct_tm=time.h
6627 else
6628 ac_cv_struct_tm=sys/time.h
6629 fi
6630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6631 fi
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6633 $as_echo "$ac_cv_struct_tm" >&6; }
6634 if test $ac_cv_struct_tm = sys/time.h; then
6635
6636 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6637
6638 fi
6639
6640 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6641 #include <$ac_cv_struct_tm>
6642
6643 "
6644 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6645
6646 cat >>confdefs.h <<_ACEOF
6647 #define HAVE_STRUCT_TM_TM_ZONE 1
6648 _ACEOF
6649
6650
6651 fi
6652
6653 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6654
6655 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6656
6657 else
6658 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6659 "
6660 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6661 ac_have_decl=1
6662 else
6663 ac_have_decl=0
6664 fi
6665
6666 cat >>confdefs.h <<_ACEOF
6667 #define HAVE_DECL_TZNAME $ac_have_decl
6668 _ACEOF
6669
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6671 $as_echo_n "checking for tzname... " >&6; }
6672 if test "${ac_cv_var_tzname+set}" = set; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6677 #include <time.h>
6678 #if !HAVE_DECL_TZNAME
6679 extern char *tzname[];
6680 #endif
6681
6682 int
6683 main ()
6684 {
6685 return tzname[0][0];
6686 ;
6687 return 0;
6688 }
6689 _ACEOF
6690 if ac_fn_c_try_link "$LINENO"; then :
6691 ac_cv_var_tzname=yes
6692 else
6693 ac_cv_var_tzname=no
6694 fi
6695 rm -f core conftest.err conftest.$ac_objext \
6696 conftest$ac_exeext conftest.$ac_ext
6697 fi
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6699 $as_echo "$ac_cv_var_tzname" >&6; }
6700 if test $ac_cv_var_tzname = yes; then
6701
6702 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6703
6704 fi
6705 fi
6706
6707 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6708 "
6709 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6710
6711 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6712
6713 fi
6714
6715 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6716 #if HAVE_SYS_SOCKET_H
6717 #include <sys/socket.h>
6718 #endif
6719 #if HAVE_NET_IF_H
6720 #include <net/if.h>
6721 #endif
6722 "
6723 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6724
6725 cat >>confdefs.h <<_ACEOF
6726 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6727 _ACEOF
6728
6729
6730 fi
6731 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6732 #if HAVE_SYS_SOCKET_H
6733 #include <sys/socket.h>
6734 #endif
6735 #if HAVE_NET_IF_H
6736 #include <net/if.h>
6737 #endif
6738 "
6739 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6740
6741 cat >>confdefs.h <<_ACEOF
6742 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6743 _ACEOF
6744
6745
6746 fi
6747 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6748 #if HAVE_SYS_SOCKET_H
6749 #include <sys/socket.h>
6750 #endif
6751 #if HAVE_NET_IF_H
6752 #include <net/if.h>
6753 #endif
6754 "
6755 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6756
6757 cat >>confdefs.h <<_ACEOF
6758 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6759 _ACEOF
6760
6761
6762 fi
6763 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6764 #if HAVE_SYS_SOCKET_H
6765 #include <sys/socket.h>
6766 #endif
6767 #if HAVE_NET_IF_H
6768 #include <net/if.h>
6769 #endif
6770 "
6771 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6772
6773 cat >>confdefs.h <<_ACEOF
6774 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6775 _ACEOF
6776
6777
6778 fi
6779 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6780 #if HAVE_SYS_SOCKET_H
6781 #include <sys/socket.h>
6782 #endif
6783 #if HAVE_NET_IF_H
6784 #include <net/if.h>
6785 #endif
6786 "
6787 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6788
6789 cat >>confdefs.h <<_ACEOF
6790 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6791 _ACEOF
6792
6793
6794 fi
6795
6796
6797
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6799 $as_echo_n "checking for function prototypes... " >&6; }
6800 if test "$ac_cv_prog_cc_c89" != no; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6802 $as_echo "yes" >&6; }
6803
6804 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6805
6806
6807 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6808
6809 else
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6812 fi
6813
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6815 $as_echo_n "checking for working volatile... " >&6; }
6816 if test "${ac_cv_c_volatile+set}" = set; then :
6817 $as_echo_n "(cached) " >&6
6818 else
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h. */
6821
6822 int
6823 main ()
6824 {
6825
6826 volatile int x;
6827 int * volatile y = (int *) 0;
6828 return !x && !y;
6829 ;
6830 return 0;
6831 }
6832 _ACEOF
6833 if ac_fn_c_try_compile "$LINENO"; then :
6834 ac_cv_c_volatile=yes
6835 else
6836 ac_cv_c_volatile=no
6837 fi
6838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839 fi
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6841 $as_echo "$ac_cv_c_volatile" >&6; }
6842 if test $ac_cv_c_volatile = no; then
6843
6844 $as_echo "#define volatile /**/" >>confdefs.h
6845
6846 fi
6847
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6849 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6850 if test "${ac_cv_c_const+set}" = set; then :
6851 $as_echo_n "(cached) " >&6
6852 else
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6855
6856 int
6857 main ()
6858 {
6859 /* FIXME: Include the comments suggested by Paul. */
6860 #ifndef __cplusplus
6861 /* Ultrix mips cc rejects this. */
6862 typedef int charset[2];
6863 const charset cs;
6864 /* SunOS 4.1.1 cc rejects this. */
6865 char const *const *pcpcc;
6866 char **ppc;
6867 /* NEC SVR4.0.2 mips cc rejects this. */
6868 struct point {int x, y;};
6869 static struct point const zero = {0,0};
6870 /* AIX XL C 1.02.0.0 rejects this.
6871 It does not let you subtract one const X* pointer from another in
6872 an arm of an if-expression whose if-part is not a constant
6873 expression */
6874 const char *g = "string";
6875 pcpcc = &g + (g ? g-g : 0);
6876 /* HPUX 7.0 cc rejects these. */
6877 ++pcpcc;
6878 ppc = (char**) pcpcc;
6879 pcpcc = (char const *const *) ppc;
6880 { /* SCO 3.2v4 cc rejects this. */
6881 char *t;
6882 char const *s = 0 ? (char *) 0 : (char const *) 0;
6883
6884 *t++ = 0;
6885 if (s) return 0;
6886 }
6887 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6888 int x[] = {25, 17};
6889 const int *foo = &x[0];
6890 ++foo;
6891 }
6892 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6893 typedef const int *iptr;
6894 iptr p = 0;
6895 ++p;
6896 }
6897 { /* AIX XL C 1.02.0.0 rejects this saying
6898 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6899 struct s { int j; const int *ap[3]; };
6900 struct s *b; b->j = 5;
6901 }
6902 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6903 const int foo = 10;
6904 if (!foo) return 0;
6905 }
6906 return !cs[0] && !zero.x;
6907 #endif
6908
6909 ;
6910 return 0;
6911 }
6912 _ACEOF
6913 if ac_fn_c_try_compile "$LINENO"; then :
6914 ac_cv_c_const=yes
6915 else
6916 ac_cv_c_const=no
6917 fi
6918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919 fi
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6921 $as_echo "$ac_cv_c_const" >&6; }
6922 if test $ac_cv_c_const = no; then
6923
6924 $as_echo "#define const /**/" >>confdefs.h
6925
6926 fi
6927
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6929 $as_echo_n "checking for void * support... " >&6; }
6930 if test "${emacs_cv_void_star+set}" = set; then :
6931 $as_echo_n "(cached) " >&6
6932 else
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6935
6936 int
6937 main ()
6938 {
6939 void * foo;
6940 ;
6941 return 0;
6942 }
6943 _ACEOF
6944 if ac_fn_c_try_compile "$LINENO"; then :
6945 emacs_cv_void_star=yes
6946 else
6947 emacs_cv_void_star=no
6948 fi
6949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6950 fi
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6952 $as_echo "$emacs_cv_void_star" >&6; }
6953 if test $emacs_cv_void_star = yes; then
6954 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6955
6956 else
6957 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6958
6959 fi
6960
6961
6962
6963
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6965 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6966 set x ${MAKE-make}
6967 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6968 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 cat >conftest.make <<\_ACEOF
6972 SHELL = /bin/sh
6973 all:
6974 @echo '@@@%%%=$(MAKE)=@@@%%%'
6975 _ACEOF
6976 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6977 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6978 *@@@%%%=?*=@@@%%%*)
6979 eval ac_cv_prog_make_${ac_make}_set=yes;;
6980 *)
6981 eval ac_cv_prog_make_${ac_make}_set=no;;
6982 esac
6983 rm -f conftest.make
6984 fi
6985 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6987 $as_echo "yes" >&6; }
6988 SET_MAKE=
6989 else
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6992 SET_MAKE="MAKE=${MAKE-make}"
6993 fi
6994
6995
6996 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
6998 $as_echo_n "checking whether we are using GNU Make... " >&6; }
6999 HAVE_GNU_MAKE=no
7000 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7001 if test "x$testval" != x; then
7002 HAVE_GNU_MAKE=yes
7003 else
7004 ac_enable_autodepend=no
7005 fi
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7007 $as_echo "$HAVE_GNU_MAKE" >&6; }
7008 if test $HAVE_GNU_MAKE = yes; then
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7010 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7011 SAVE_CFLAGS="$CFLAGS"
7012 CFLAGS="$CFLAGS -MMD -MF deps.d"
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7015
7016 int
7017 main ()
7018 {
7019
7020 ;
7021 return 0;
7022 }
7023 _ACEOF
7024 if ac_fn_c_try_compile "$LINENO"; then :
7025
7026 else
7027 ac_enable_autodepend=no
7028 fi
7029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030 CFLAGS="$SAVE_CFLAGS"
7031 test -f deps.d || ac_enable_autodepend=no
7032 rm -rf deps.d
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7034 $as_echo "$ac_enable_autodepend" >&6; }
7035 fi
7036 if test $ac_enable_autodepend = yes; then
7037
7038 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h
7039
7040 fi
7041 fi
7042
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7044 $as_echo_n "checking for long file names... " >&6; }
7045 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7046 $as_echo_n "(cached) " >&6
7047 else
7048 ac_cv_sys_long_file_names=yes
7049 # Test for long file names in all the places we know might matter:
7050 # . the current directory, where building will happen
7051 # $prefix/lib where we will be installing things
7052 # $exec_prefix/lib likewise
7053 # $TMPDIR if set, where it might want to write temporary files
7054 # /tmp where it might want to write temporary files
7055 # /var/tmp likewise
7056 # /usr/tmp likewise
7057 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7058 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7059 # in the usual case where exec_prefix is '${prefix}'.
7060 case $ac_dir in #(
7061 . | /* | ?:[\\/]*) ;; #(
7062 *) continue;;
7063 esac
7064 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7065 ac_xdir=$ac_dir/cf$$
7066 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7067 ac_tf1=$ac_xdir/conftest9012345
7068 ac_tf2=$ac_xdir/conftest9012346
7069 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7070 ac_cv_sys_long_file_names=no
7071 rm -f -r "$ac_xdir" 2>/dev/null
7072 test $ac_cv_sys_long_file_names = no && break
7073 done
7074 fi
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7076 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7077 if test $ac_cv_sys_long_file_names = yes; then
7078
7079 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7080
7081 fi
7082
7083
7084 #### Choose a window system.
7085
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7087 $as_echo_n "checking for X... " >&6; }
7088
7089
7090 # Check whether --with-x was given.
7091 if test "${with_x+set}" = set; then :
7092 withval=$with_x;
7093 fi
7094
7095 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7096 if test "x$with_x" = xno; then
7097 # The user explicitly disabled X.
7098 have_x=disabled
7099 else
7100 case $x_includes,$x_libraries in #(
7101 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7102 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 # One or both of the vars are not set, and there is no cached value.
7106 ac_x_includes=no ac_x_libraries=no
7107 rm -f -r conftest.dir
7108 if mkdir conftest.dir; then
7109 cd conftest.dir
7110 cat >Imakefile <<'_ACEOF'
7111 incroot:
7112 @echo incroot='${INCROOT}'
7113 usrlibdir:
7114 @echo usrlibdir='${USRLIBDIR}'
7115 libdir:
7116 @echo libdir='${LIBDIR}'
7117 _ACEOF
7118 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7119 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7120 for ac_var in incroot usrlibdir libdir; do
7121 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7122 done
7123 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7124 for ac_extension in a so sl dylib la dll; do
7125 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7126 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7127 ac_im_usrlibdir=$ac_im_libdir; break
7128 fi
7129 done
7130 # Screen out bogus values from the imake configuration. They are
7131 # bogus both because they are the default anyway, and because
7132 # using them would break gcc on systems where it needs fixed includes.
7133 case $ac_im_incroot in
7134 /usr/include) ac_x_includes= ;;
7135 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7136 esac
7137 case $ac_im_usrlibdir in
7138 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7139 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7140 esac
7141 fi
7142 cd ..
7143 rm -f -r conftest.dir
7144 fi
7145
7146 # Standard set of common directories for X headers.
7147 # Check X11 before X11Rn because it is often a symlink to the current release.
7148 ac_x_header_dirs='
7149 /usr/X11/include
7150 /usr/X11R7/include
7151 /usr/X11R6/include
7152 /usr/X11R5/include
7153 /usr/X11R4/include
7154
7155 /usr/include/X11
7156 /usr/include/X11R7
7157 /usr/include/X11R6
7158 /usr/include/X11R5
7159 /usr/include/X11R4
7160
7161 /usr/local/X11/include
7162 /usr/local/X11R7/include
7163 /usr/local/X11R6/include
7164 /usr/local/X11R5/include
7165 /usr/local/X11R4/include
7166
7167 /usr/local/include/X11
7168 /usr/local/include/X11R7
7169 /usr/local/include/X11R6
7170 /usr/local/include/X11R5
7171 /usr/local/include/X11R4
7172
7173 /usr/X386/include
7174 /usr/x386/include
7175 /usr/XFree86/include/X11
7176
7177 /usr/include
7178 /usr/local/include
7179 /usr/unsupported/include
7180 /usr/athena/include
7181 /usr/local/x11r5/include
7182 /usr/lpp/Xamples/include
7183
7184 /usr/openwin/include
7185 /usr/openwin/share/include'
7186
7187 if test "$ac_x_includes" = no; then
7188 # Guess where to find include files, by looking for Xlib.h.
7189 # First, try using that file with no special directory specified.
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #include <X11/Xlib.h>
7193 _ACEOF
7194 if ac_fn_c_try_cpp "$LINENO"; then :
7195 # We can compile using X headers with no special include directory.
7196 ac_x_includes=
7197 else
7198 for ac_dir in $ac_x_header_dirs; do
7199 if test -r "$ac_dir/X11/Xlib.h"; then
7200 ac_x_includes=$ac_dir
7201 break
7202 fi
7203 done
7204 fi
7205 rm -f conftest.err conftest.$ac_ext
7206 fi # $ac_x_includes = no
7207
7208 if test "$ac_x_libraries" = no; then
7209 # Check for the libraries.
7210 # See if we find them without any special options.
7211 # Don't add to $LIBS permanently.
7212 ac_save_LIBS=$LIBS
7213 LIBS="-lX11 $LIBS"
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7216 #include <X11/Xlib.h>
7217 int
7218 main ()
7219 {
7220 XrmInitialize ()
7221 ;
7222 return 0;
7223 }
7224 _ACEOF
7225 if ac_fn_c_try_link "$LINENO"; then :
7226 LIBS=$ac_save_LIBS
7227 # We can link X programs with no special library path.
7228 ac_x_libraries=
7229 else
7230 LIBS=$ac_save_LIBS
7231 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7232 do
7233 # Don't even attempt the hair of trying to link an X program!
7234 for ac_extension in a so sl dylib la dll; do
7235 if test -r "$ac_dir/libX11.$ac_extension"; then
7236 ac_x_libraries=$ac_dir
7237 break 2
7238 fi
7239 done
7240 done
7241 fi
7242 rm -f core conftest.err conftest.$ac_objext \
7243 conftest$ac_exeext conftest.$ac_ext
7244 fi # $ac_x_libraries = no
7245
7246 case $ac_x_includes,$ac_x_libraries in #(
7247 no,* | *,no | *\'*)
7248 # Didn't find X, or a directory has "'" in its name.
7249 ac_cv_have_x="have_x=no";; #(
7250 *)
7251 # Record where we found X for the cache.
7252 ac_cv_have_x="have_x=yes\
7253 ac_x_includes='$ac_x_includes'\
7254 ac_x_libraries='$ac_x_libraries'"
7255 esac
7256 fi
7257 ;; #(
7258 *) have_x=yes;;
7259 esac
7260 eval "$ac_cv_have_x"
7261 fi # $with_x != no
7262
7263 if test "$have_x" != yes; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7265 $as_echo "$have_x" >&6; }
7266 no_x=yes
7267 else
7268 # If each of the values was on the command line, it overrides each guess.
7269 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7270 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7271 # Update the cache value to reflect the command line values.
7272 ac_cv_have_x="have_x=yes\
7273 ac_x_includes='$x_includes'\
7274 ac_x_libraries='$x_libraries'"
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7276 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7277 fi
7278
7279 if test "$no_x" = yes; then
7280 window_system=none
7281 else
7282 window_system=x11
7283 fi
7284
7285 ## Workaround for bug in autoconf <= 2.62.
7286 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7287 ## No need to do anything special for these standard directories.
7288 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7289
7290 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7291
7292 fi
7293
7294 LD_SWITCH_X_SITE_AUX=
7295 LD_SWITCH_X_SITE_AUX_RPATH=
7296 if test "${x_libraries}" != NONE; then
7297 if test -n "${x_libraries}"; then
7298 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7299 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7300 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7301 fi
7302 x_default_search_path=""
7303 x_search_path=${x_libraries}
7304 if test -z "${x_search_path}"; then
7305 x_search_path=/usr/lib
7306 fi
7307 for x_library in `echo ${x_search_path}: | \
7308 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7309 x_search_path="\
7310 ${x_library}/X11/%L/%T/%N%C%S:\
7311 ${x_library}/X11/%l/%T/%N%C%S:\
7312 ${x_library}/X11/%T/%N%C%S:\
7313 ${x_library}/X11/%L/%T/%N%S:\
7314 ${x_library}/X11/%l/%T/%N%S:\
7315 ${x_library}/X11/%T/%N%S"
7316 if test x"${x_default_search_path}" = x; then
7317 x_default_search_path=${x_search_path}
7318 else
7319 x_default_search_path="${x_search_path}:${x_default_search_path}"
7320 fi
7321 done
7322 fi
7323
7324
7325
7326 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7327 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7328 fi
7329
7330 if test x"${x_includes}" = x; then
7331 bitmapdir=/usr/include/X11/bitmaps
7332 else
7333 # accumulate include directories that have X11 bitmap subdirectories
7334 bmd_acc="dummyval"
7335 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7336 if test -d "${bmd}/X11/bitmaps"; then
7337 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7338 fi
7339 if test -d "${bmd}/bitmaps"; then
7340 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7341 fi
7342 done
7343 if test ${bmd_acc} != "dummyval"; then
7344 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7345 fi
7346 fi
7347
7348 HAVE_NS=no
7349 NS_IMPL_COCOA=no
7350 NS_IMPL_GNUSTEP=no
7351 NS_IMPL_GNUSTEP_INC=
7352 tmp_CPPFLAGS="$CPPFLAGS"
7353 tmp_CFLAGS="$CFLAGS"
7354 CPPFLAGS="$CPPFLAGS -x objective-c"
7355 CFLAGS="$CFLAGS -x objective-c"
7356 if test "${with_ns}" != no; then
7357 if test "${opsys}" = darwin; then
7358 NS_IMPL_COCOA=yes
7359 ns_appdir=`pwd`/nextstep/Emacs.app
7360 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
7361 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
7362 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7363 elif test -f $GNUSTEP_CONFIG_FILE; then
7364 NS_IMPL_GNUSTEP=yes
7365 ns_appdir=`pwd`/nextstep/Emacs.app
7366 ns_appbindir=`pwd`/nextstep/Emacs.app
7367 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
7368 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7369 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
7370 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7371 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7372 ## Pull in stuff from GNUstep-make.
7373 NS_IMPL_GNUSTEP_INC="FOUNDATION_LIB=gnu
7374 GUI_LIB=gnu
7375 include $GNUSTEP_MAKEFILES/Additional/base.make
7376 include $GNUSTEP_MAKEFILES/Additional/gui.make
7377 shared=no
7378 "
7379 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7380 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7381 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7382 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7383 LIB_STANDARD=
7384 fi
7385 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7386 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7387 HAVE_NS=yes
7388 else
7389 as_fn_error "\`--with-ns' was specified, but the include
7390 files are missing or cannot be compiled." "$LINENO" 5
7391 fi
7392
7393
7394 NS_HAVE_NSINTEGER=yes
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7397 #include <Foundation/NSObjCRuntime.h>
7398 int
7399 main ()
7400 {
7401 NSInteger i;
7402 ;
7403 return 0;
7404 }
7405 _ACEOF
7406 if ac_fn_c_try_compile "$LINENO"; then :
7407 ns_have_nsinteger=yes
7408 else
7409 ns_have_nsinteger=no
7410 fi
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412 if test $ns_have_nsinteger = no; then
7413 NS_HAVE_NSINTEGER=no
7414 fi
7415 fi
7416
7417
7418 NS_OBJ=
7419 NS_SUPPORT=
7420 if test "${HAVE_NS}" = yes; then
7421 window_system=nextstep
7422 with_xft=no
7423 # set up packaging dirs
7424 exec_prefix=${ns_appbindir}
7425 libexecdir=${ns_appbindir}/libexec
7426 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7427 prefix=${ns_appresdir}
7428 fi
7429 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7430 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7431 fi
7432 CFLAGS="$tmp_CFLAGS"
7433 CPPFLAGS="$tmp_CPPFLAGS"
7434
7435
7436
7437
7438 case "${window_system}" in
7439 x11 )
7440 HAVE_X_WINDOWS=yes
7441 HAVE_X11=yes
7442 case "${with_x_toolkit}" in
7443 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7444 motif ) USE_X_TOOLKIT=MOTIF ;;
7445 gtk ) with_gtk=yes
7446 USE_X_TOOLKIT=none ;;
7447 no ) USE_X_TOOLKIT=none ;;
7448 * ) USE_X_TOOLKIT=maybe ;;
7449 esac
7450 ;;
7451 nextstep | none )
7452 HAVE_X_WINDOWS=no
7453 HAVE_X11=no
7454 USE_X_TOOLKIT=none
7455 ;;
7456 esac
7457
7458 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7459 # Extract the first word of "X", so it can be a program name with args.
7460 set dummy X; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 if test -n "$HAVE_XSERVER"; then
7467 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_prog_HAVE_XSERVER="true"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7479 fi
7480 done
7481 done
7482 IFS=$as_save_IFS
7483
7484 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7485 fi
7486 fi
7487 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7488 if test -n "$HAVE_XSERVER"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7490 $as_echo "$HAVE_XSERVER" >&6; }
7491 else
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7494 fi
7495
7496
7497 if test "$HAVE_XSERVER" = true ||
7498 test -n "$DISPLAY" ||
7499 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7500 as_fn_error "You seem to be running X, but no X development libraries
7501 were found. You should install the relevant development files for X
7502 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7503 sure you have development files for image handling, i.e.
7504 tiff, gif, jpeg, png and xpm.
7505 If you are sure you want Emacs compiled without X window support, pass
7506 --without-x
7507 to configure." "$LINENO" 5
7508 fi
7509 fi
7510
7511 ### If we're using X11, we should use the X menu package.
7512 HAVE_MENUS=no
7513 case ${HAVE_X11} in
7514 yes ) HAVE_MENUS=yes ;;
7515 esac
7516
7517 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7518 # Assume not, until told otherwise.
7519 GNU_MALLOC=yes
7520 doug_lea_malloc=yes
7521 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7522 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7523
7524 else
7525 doug_lea_malloc=no
7526 fi
7527
7528 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7529 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7530
7531 else
7532 doug_lea_malloc=no
7533 fi
7534
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7536 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7537 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h. */
7542 extern void (* __after_morecore_hook)();
7543 int
7544 main ()
7545 {
7546 __after_morecore_hook = 0
7547 ;
7548 return 0;
7549 }
7550 _ACEOF
7551 if ac_fn_c_try_link "$LINENO"; then :
7552 emacs_cv_var___after_morecore_hook=yes
7553 else
7554 emacs_cv_var___after_morecore_hook=no
7555 fi
7556 rm -f core conftest.err conftest.$ac_objext \
7557 conftest$ac_exeext conftest.$ac_ext
7558 fi
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7560 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7561 if test $emacs_cv_var___after_morecore_hook = no; then
7562 doug_lea_malloc=no
7563 fi
7564 if test "${system_malloc}" = "yes"; then
7565 GNU_MALLOC=no
7566 GNU_MALLOC_reason="
7567 (The GNU allocators don't work with this system configuration.)"
7568 fi
7569 if test "$doug_lea_malloc" = "yes" ; then
7570 if test "$GNU_MALLOC" = yes ; then
7571 GNU_MALLOC_reason="
7572 (Using Doug Lea's new malloc from the GNU C Library.)"
7573 fi
7574
7575 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7576
7577 fi
7578
7579 if test x"${REL_ALLOC}" = x; then
7580 REL_ALLOC=${GNU_MALLOC}
7581 fi
7582
7583
7584
7585
7586
7587 for ac_header in $ac_header_list
7588 do :
7589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7590 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7591 "
7592 eval as_val=\$$as_ac_Header
7593 if test "x$as_val" = x""yes; then :
7594 cat >>confdefs.h <<_ACEOF
7595 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7596 _ACEOF
7597
7598 fi
7599
7600 done
7601
7602
7603
7604
7605
7606
7607
7608
7609 for ac_func in getpagesize
7610 do :
7611 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7612 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7613 cat >>confdefs.h <<_ACEOF
7614 #define HAVE_GETPAGESIZE 1
7615 _ACEOF
7616
7617 fi
7618 done
7619
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7621 $as_echo_n "checking for working mmap... " >&6; }
7622 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625 if test "$cross_compiling" = yes; then :
7626 ac_cv_func_mmap_fixed_mapped=no
7627 else
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630 $ac_includes_default
7631 /* malloc might have been renamed as rpl_malloc. */
7632 #undef malloc
7633
7634 /* Thanks to Mike Haertel and Jim Avera for this test.
7635 Here is a matrix of mmap possibilities:
7636 mmap private not fixed
7637 mmap private fixed at somewhere currently unmapped
7638 mmap private fixed at somewhere already mapped
7639 mmap shared not fixed
7640 mmap shared fixed at somewhere currently unmapped
7641 mmap shared fixed at somewhere already mapped
7642 For private mappings, we should verify that changes cannot be read()
7643 back from the file, nor mmap's back from the file at a different
7644 address. (There have been systems where private was not correctly
7645 implemented like the infamous i386 svr4.0, and systems where the
7646 VM page cache was not coherent with the file system buffer cache
7647 like early versions of FreeBSD and possibly contemporary NetBSD.)
7648 For shared mappings, we should conversely verify that changes get
7649 propagated back to all the places they're supposed to be.
7650
7651 Grep wants private fixed already mapped.
7652 The main things grep needs to know about mmap are:
7653 * does it exist and is it safe to write into the mmap'd area
7654 * how to use it (BSD variants) */
7655
7656 #include <fcntl.h>
7657 #include <sys/mman.h>
7658
7659 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7660 char *malloc ();
7661 #endif
7662
7663 /* This mess was copied from the GNU getpagesize.h. */
7664 #ifndef HAVE_GETPAGESIZE
7665 # ifdef _SC_PAGESIZE
7666 # define getpagesize() sysconf(_SC_PAGESIZE)
7667 # else /* no _SC_PAGESIZE */
7668 # ifdef HAVE_SYS_PARAM_H
7669 # include <sys/param.h>
7670 # ifdef EXEC_PAGESIZE
7671 # define getpagesize() EXEC_PAGESIZE
7672 # else /* no EXEC_PAGESIZE */
7673 # ifdef NBPG
7674 # define getpagesize() NBPG * CLSIZE
7675 # ifndef CLSIZE
7676 # define CLSIZE 1
7677 # endif /* no CLSIZE */
7678 # else /* no NBPG */
7679 # ifdef NBPC
7680 # define getpagesize() NBPC
7681 # else /* no NBPC */
7682 # ifdef PAGESIZE
7683 # define getpagesize() PAGESIZE
7684 # endif /* PAGESIZE */
7685 # endif /* no NBPC */
7686 # endif /* no NBPG */
7687 # endif /* no EXEC_PAGESIZE */
7688 # else /* no HAVE_SYS_PARAM_H */
7689 # define getpagesize() 8192 /* punt totally */
7690 # endif /* no HAVE_SYS_PARAM_H */
7691 # endif /* no _SC_PAGESIZE */
7692
7693 #endif /* no HAVE_GETPAGESIZE */
7694
7695 int
7696 main ()
7697 {
7698 char *data, *data2, *data3;
7699 const char *cdata2;
7700 int i, pagesize;
7701 int fd, fd2;
7702
7703 pagesize = getpagesize ();
7704
7705 /* First, make a file with some known garbage in it. */
7706 data = (char *) malloc (pagesize);
7707 if (!data)
7708 return 1;
7709 for (i = 0; i < pagesize; ++i)
7710 *(data + i) = rand ();
7711 umask (0);
7712 fd = creat ("conftest.mmap", 0600);
7713 if (fd < 0)
7714 return 2;
7715 if (write (fd, data, pagesize) != pagesize)
7716 return 3;
7717 close (fd);
7718
7719 /* Next, check that the tail of a page is zero-filled. File must have
7720 non-zero length, otherwise we risk SIGBUS for entire page. */
7721 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7722 if (fd2 < 0)
7723 return 4;
7724 cdata2 = "";
7725 if (write (fd2, cdata2, 1) != 1)
7726 return 5;
7727 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7728 if (data2 == MAP_FAILED)
7729 return 6;
7730 for (i = 0; i < pagesize; ++i)
7731 if (*(data2 + i))
7732 return 7;
7733 close (fd2);
7734 if (munmap (data2, pagesize))
7735 return 8;
7736
7737 /* Next, try to mmap the file at a fixed address which already has
7738 something else allocated at it. If we can, also make sure that
7739 we see the same garbage. */
7740 fd = open ("conftest.mmap", O_RDWR);
7741 if (fd < 0)
7742 return 9;
7743 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7744 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7745 return 10;
7746 for (i = 0; i < pagesize; ++i)
7747 if (*(data + i) != *(data2 + i))
7748 return 11;
7749
7750 /* Finally, make sure that changes to the mapped area do not
7751 percolate back to the file as seen by read(). (This is a bug on
7752 some variants of i386 svr4.0.) */
7753 for (i = 0; i < pagesize; ++i)
7754 *(data2 + i) = *(data2 + i) + 1;
7755 data3 = (char *) malloc (pagesize);
7756 if (!data3)
7757 return 12;
7758 if (read (fd, data3, pagesize) != pagesize)
7759 return 13;
7760 for (i = 0; i < pagesize; ++i)
7761 if (*(data + i) != *(data3 + i))
7762 return 14;
7763 close (fd);
7764 return 0;
7765 }
7766 _ACEOF
7767 if ac_fn_c_try_run "$LINENO"; then :
7768 ac_cv_func_mmap_fixed_mapped=yes
7769 else
7770 ac_cv_func_mmap_fixed_mapped=no
7771 fi
7772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7773 conftest.$ac_objext conftest.beam conftest.$ac_ext
7774 fi
7775
7776 fi
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7778 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7779 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7780
7781 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7782
7783 fi
7784 rm -f conftest.mmap conftest.txt
7785
7786 if test $use_mmap_for_buffers = yes; then
7787 REL_ALLOC=no
7788 fi
7789
7790 LIBS="$LIBS_SYSTEM $LIBS"
7791
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7793 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7794 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 ac_check_lib_save_LIBS=$LIBS
7798 LIBS="-ldnet $LIBS"
7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7801
7802 /* Override any GCC internal prototype to avoid an error.
7803 Use char because int might match the return type of a GCC
7804 builtin and then its argument prototype would still apply. */
7805 #ifdef __cplusplus
7806 extern "C"
7807 #endif
7808 char dnet_ntoa ();
7809 int
7810 main ()
7811 {
7812 return dnet_ntoa ();
7813 ;
7814 return 0;
7815 }
7816 _ACEOF
7817 if ac_fn_c_try_link "$LINENO"; then :
7818 ac_cv_lib_dnet_dnet_ntoa=yes
7819 else
7820 ac_cv_lib_dnet_dnet_ntoa=no
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext \
7823 conftest$ac_exeext conftest.$ac_ext
7824 LIBS=$ac_check_lib_save_LIBS
7825 fi
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7827 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7828 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7829 cat >>confdefs.h <<_ACEOF
7830 #define HAVE_LIBDNET 1
7831 _ACEOF
7832
7833 LIBS="-ldnet $LIBS"
7834
7835 fi
7836
7837
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7839 $as_echo_n "checking for main in -lXbsd... " >&6; }
7840 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
7842 else
7843 ac_check_lib_save_LIBS=$LIBS
7844 LIBS="-lXbsd $LIBS"
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7847
7848
7849 int
7850 main ()
7851 {
7852 return main ();
7853 ;
7854 return 0;
7855 }
7856 _ACEOF
7857 if ac_fn_c_try_link "$LINENO"; then :
7858 ac_cv_lib_Xbsd_main=yes
7859 else
7860 ac_cv_lib_Xbsd_main=no
7861 fi
7862 rm -f core conftest.err conftest.$ac_objext \
7863 conftest$ac_exeext conftest.$ac_ext
7864 LIBS=$ac_check_lib_save_LIBS
7865 fi
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7867 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7868 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
7869 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7870 fi
7871
7872
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7874 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7875 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7878 ac_check_lib_save_LIBS=$LIBS
7879 LIBS="-lpthreads $LIBS"
7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7881 /* end confdefs.h. */
7882
7883 /* Override any GCC internal prototype to avoid an error.
7884 Use char because int might match the return type of a GCC
7885 builtin and then its argument prototype would still apply. */
7886 #ifdef __cplusplus
7887 extern "C"
7888 #endif
7889 char cma_open ();
7890 int
7891 main ()
7892 {
7893 return cma_open ();
7894 ;
7895 return 0;
7896 }
7897 _ACEOF
7898 if ac_fn_c_try_link "$LINENO"; then :
7899 ac_cv_lib_pthreads_cma_open=yes
7900 else
7901 ac_cv_lib_pthreads_cma_open=no
7902 fi
7903 rm -f core conftest.err conftest.$ac_objext \
7904 conftest$ac_exeext conftest.$ac_ext
7905 LIBS=$ac_check_lib_save_LIBS
7906 fi
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7908 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7909 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
7910 cat >>confdefs.h <<_ACEOF
7911 #define HAVE_LIBPTHREADS 1
7912 _ACEOF
7913
7914 LIBS="-lpthreads $LIBS"
7915
7916 fi
7917
7918
7919 ## Note: when using cpp in s/aix4.2.h, this definition depended on
7920 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
7921 ## the system file was sourced. Hence the value of LIBS_SYSTEM
7922 ## added to LIBS in configure would never contain the pthreads part,
7923 ## but the value used in Makefiles might. FIXME?
7924 ##
7925 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
7926 ## be harmless on older versions of X where it happens to exist.
7927 test "$opsys" = "aix4-2" && \
7928 test $ac_cv_lib_pthreads_cma_open = yes && \
7929 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
7930
7931
7932 case ${host_os} in
7933 aix*)
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
7935 $as_echo_n "checking for -bbigtoc option... " >&6; }
7936 if test "${gdb_cv_bigtoc+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7939
7940 case $GCC in
7941 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7942 *) gdb_cv_bigtoc=-bbigtoc ;;
7943 esac
7944
7945 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h. */
7948
7949 int
7950 main ()
7951 {
7952 int i;
7953 ;
7954 return 0;
7955 }
7956 _ACEOF
7957 if ac_fn_c_try_link "$LINENO"; then :
7958
7959 else
7960 gdb_cv_bigtoc=
7961 fi
7962 rm -f core conftest.err conftest.$ac_objext \
7963 conftest$ac_exeext conftest.$ac_ext
7964
7965 fi
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
7967 $as_echo "$gdb_cv_bigtoc" >&6; }
7968 ;;
7969 esac
7970
7971 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7972 # used for the tests that follow. We set them back to REAL_CFLAGS and
7973 # REAL_CPPFLAGS later on.
7974
7975 REAL_CPPFLAGS="$CPPFLAGS"
7976
7977 if test "${HAVE_X11}" = "yes"; then
7978 DEFS="$C_SWITCH_X_SITE $DEFS"
7979 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7980 LIBS="$LIBX $LIBS"
7981 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7982 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7983
7984 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7985 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7986 # but it's more convenient here to set LD_RUN_PATH
7987 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7988 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7989 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7990 export LD_RUN_PATH
7991 fi
7992
7993 if test "${opsys}" = "gnu-linux"; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
7995 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997 /* end confdefs.h. */
7998
7999 int
8000 main ()
8001 {
8002 XOpenDisplay ("foo");
8003 ;
8004 return 0;
8005 }
8006 _ACEOF
8007 if ac_fn_c_try_link "$LINENO"; then :
8008 xlinux_first_failure=no
8009 else
8010 xlinux_first_failure=yes
8011 fi
8012 rm -f core conftest.err conftest.$ac_objext \
8013 conftest$ac_exeext conftest.$ac_ext
8014 if test "${xlinux_first_failure}" = "yes"; then
8015 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8016 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8017 OLD_CPPFLAGS="$CPPFLAGS"
8018 OLD_LIBS="$LIBS"
8019 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8020 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8021 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8022 LIBS="$LIBS -b i486-linuxaout"
8023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8024 /* end confdefs.h. */
8025
8026 int
8027 main ()
8028 {
8029 XOpenDisplay ("foo");
8030 ;
8031 return 0;
8032 }
8033 _ACEOF
8034 if ac_fn_c_try_link "$LINENO"; then :
8035 xlinux_second_failure=no
8036 else
8037 xlinux_second_failure=yes
8038 fi
8039 rm -f core conftest.err conftest.$ac_objext \
8040 conftest$ac_exeext conftest.$ac_ext
8041 if test "${xlinux_second_failure}" = "yes"; then
8042 # If we get the same failure with -b, there is no use adding -b.
8043 # So take it out. This plays safe.
8044 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8045 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8046 CPPFLAGS="$OLD_CPPFLAGS"
8047 LIBS="$OLD_LIBS"
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8050 else
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8052 $as_echo "yes" >&6; }
8053 fi
8054 else
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8057 fi
8058 fi
8059
8060 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8061 # header files included from there.
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8063 $as_echo_n "checking for Xkb... " >&6; }
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8066 #include <X11/Xlib.h>
8067 #include <X11/XKBlib.h>
8068 int
8069 main ()
8070 {
8071 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8072 ;
8073 return 0;
8074 }
8075 _ACEOF
8076 if ac_fn_c_try_link "$LINENO"; then :
8077 emacs_xkb=yes
8078 else
8079 emacs_xkb=no
8080 fi
8081 rm -f core conftest.err conftest.$ac_objext \
8082 conftest$ac_exeext conftest.$ac_ext
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8084 $as_echo "$emacs_xkb" >&6; }
8085 if test $emacs_xkb = yes; then
8086
8087 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8088
8089 fi
8090
8091 for ac_func in XrmSetDatabase XScreenResourceString \
8092 XScreenNumberOfScreen XSetWMProtocols
8093 do :
8094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8095 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8096 eval as_val=\$$as_ac_var
8097 if test "x$as_val" = x""yes; then :
8098 cat >>confdefs.h <<_ACEOF
8099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8100 _ACEOF
8101
8102 fi
8103 done
8104
8105 fi
8106
8107 if test "${window_system}" = "x11"; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8109 $as_echo_n "checking X11 version 6... " >&6; }
8110 if test "${emacs_cv_x11_version_6+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 #include <X11/Xlib.h>
8116 int
8117 main ()
8118 {
8119 #if XlibSpecificationRelease < 6
8120 fail;
8121 #endif
8122
8123 ;
8124 return 0;
8125 }
8126 _ACEOF
8127 if ac_fn_c_try_link "$LINENO"; then :
8128 emacs_cv_x11_version_6=yes
8129 else
8130 emacs_cv_x11_version_6=no
8131 fi
8132 rm -f core conftest.err conftest.$ac_objext \
8133 conftest$ac_exeext conftest.$ac_ext
8134 fi
8135
8136 if test $emacs_cv_x11_version_6 = yes; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8138 $as_echo "6 or newer" >&6; }
8139
8140 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8141
8142 else
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8144 $as_echo "before 6" >&6; }
8145 fi
8146 fi
8147
8148
8149 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8150 HAVE_RSVG=no
8151 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8152 if test "${with_rsvg}" != "no"; then
8153 RSVG_REQUIRED=2.11.0
8154 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8155
8156
8157 succeeded=no
8158
8159 # Extract the first word of "pkg-config", so it can be a program name with args.
8160 set dummy pkg-config; ac_word=$2
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162 $as_echo_n "checking for $ac_word... " >&6; }
8163 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 case $PKG_CONFIG in
8167 [\\/]* | ?:[\\/]*)
8168 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8169 ;;
8170 *)
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH
8173 do
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8178 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 break 2
8181 fi
8182 done
8183 done
8184 IFS=$as_save_IFS
8185
8186 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8187 ;;
8188 esac
8189 fi
8190 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8191 if test -n "$PKG_CONFIG"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8193 $as_echo "$PKG_CONFIG" >&6; }
8194 else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8197 fi
8198
8199
8200
8201 if test "$PKG_CONFIG" = "no" ; then
8202 :
8203 else
8204 PKG_CONFIG_MIN_VERSION=0.9.0
8205 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8207 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8208
8209 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8211 $as_echo "yes" >&6; }
8212 succeeded=yes
8213
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8215 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8216 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8218 $as_echo "$RSVG_CFLAGS" >&6; }
8219
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8221 $as_echo_n "checking RSVG_LIBS... " >&6; }
8222 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8224 $as_echo "$RSVG_LIBS" >&6; }
8225 else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8228 RSVG_CFLAGS=""
8229 RSVG_LIBS=""
8230 ## If we have a custom action on failure, don't print errors, but
8231 ## do set a variable so people can do so.
8232 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8233
8234 fi
8235
8236
8237
8238 else
8239 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8240 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8241 fi
8242 fi
8243
8244 if test $succeeded = yes; then
8245 :
8246 else
8247 :
8248 fi
8249
8250
8251
8252
8253 if test ".${RSVG_CFLAGS}" != "."; then
8254 HAVE_RSVG=yes
8255
8256 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8257
8258 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8259 LIBS="$RSVG_LIBS $LIBS"
8260 fi
8261 fi
8262 fi
8263
8264
8265 HAVE_GTK=no
8266 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8267 GLIB_REQUIRED=2.6
8268 GTK_REQUIRED=2.6
8269 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8270
8271
8272 succeeded=no
8273
8274 # Extract the first word of "pkg-config", so it can be a program name with args.
8275 set dummy pkg-config; ac_word=$2
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 $as_echo_n "checking for $ac_word... " >&6; }
8278 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 case $PKG_CONFIG in
8282 [\\/]* | ?:[\\/]*)
8283 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8284 ;;
8285 *)
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 for as_dir in $PATH
8288 do
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8293 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2
8296 fi
8297 done
8298 done
8299 IFS=$as_save_IFS
8300
8301 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8302 ;;
8303 esac
8304 fi
8305 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8306 if test -n "$PKG_CONFIG"; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8308 $as_echo "$PKG_CONFIG" >&6; }
8309 else
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8311 $as_echo "no" >&6; }
8312 fi
8313
8314
8315
8316 if test "$PKG_CONFIG" = "no" ; then
8317 pkg_check_gtk=no
8318 else
8319 PKG_CONFIG_MIN_VERSION=0.9.0
8320 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8322 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8323
8324 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8326 $as_echo "yes" >&6; }
8327 succeeded=yes
8328
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8330 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8331 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8333 $as_echo "$GTK_CFLAGS" >&6; }
8334
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8336 $as_echo_n "checking GTK_LIBS... " >&6; }
8337 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8339 $as_echo "$GTK_LIBS" >&6; }
8340 else
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8343 GTK_CFLAGS=""
8344 GTK_LIBS=""
8345 ## If we have a custom action on failure, don't print errors, but
8346 ## do set a variable so people can do so.
8347 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8348
8349 fi
8350
8351
8352
8353 else
8354 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8355 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8356 fi
8357 fi
8358
8359 if test $succeeded = yes; then
8360 pkg_check_gtk=yes
8361 else
8362 pkg_check_gtk=no
8363 fi
8364
8365 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8366 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8367 fi
8368 fi
8369
8370
8371 GTK_OBJ=
8372 if test x"$pkg_check_gtk" = xyes; then
8373
8374
8375
8376 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8377 CFLAGS="$CFLAGS $GTK_CFLAGS"
8378 LIBS="$GTK_LIBS $LIBS"
8379 GTK_COMPILES=no
8380 for ac_func in gtk_main
8381 do :
8382 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8383 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8384 cat >>confdefs.h <<_ACEOF
8385 #define HAVE_GTK_MAIN 1
8386 _ACEOF
8387 GTK_COMPILES=yes
8388 fi
8389 done
8390
8391 if test "${GTK_COMPILES}" != "yes"; then
8392 if test "$USE_X_TOOLKIT" != "maybe"; then
8393 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8394 fi
8395 else
8396 HAVE_GTK=yes
8397
8398 $as_echo "#define USE_GTK 1" >>confdefs.h
8399
8400 GTK_OBJ=gtkutil.o
8401 USE_X_TOOLKIT=none
8402 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8403 :
8404 else
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8406 closing open displays. This is no problem if you just use
8407 one display, but if you use more than one and close one of them
8408 Emacs may crash." >&5
8409 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8410 closing open displays. This is no problem if you just use
8411 one display, but if you use more than one and close one of them
8412 Emacs may crash." >&2;}
8413 sleep 3
8414 fi
8415 fi
8416
8417 fi
8418
8419
8420
8421 if test "${HAVE_GTK}" = "yes"; then
8422
8423 if test "$with_toolkit_scroll_bars" != no; then
8424 with_toolkit_scroll_bars=yes
8425 fi
8426
8427 HAVE_GTK_MULTIDISPLAY=no
8428 for ac_func in gdk_display_open
8429 do :
8430 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8431 if test "x$ac_cv_func_gdk_display_open" = x""yes; then :
8432 cat >>confdefs.h <<_ACEOF
8433 #define HAVE_GDK_DISPLAY_OPEN 1
8434 _ACEOF
8435 HAVE_GTK_MULTIDISPLAY=yes
8436 fi
8437 done
8438
8439 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8440
8441 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8442
8443 fi
8444
8445 HAVE_GTK_FILE_SELECTION=no
8446 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8447 #include <gtk/gtk.h>
8448 "
8449 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
8450 HAVE_GTK_FILE_SELECTION=yes
8451 else
8452 HAVE_GTK_FILE_SELECTION=no
8453 fi
8454
8455 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8456 for ac_func in gtk_file_selection_new
8457 do :
8458 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8459 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
8460 cat >>confdefs.h <<_ACEOF
8461 #define HAVE_GTK_FILE_SELECTION_NEW 1
8462 _ACEOF
8463 HAVE_GTK_FILE_SELECTION=yes
8464 else
8465 HAVE_GTK_FILE_SELECTION=no
8466 fi
8467 done
8468
8469 fi
8470
8471 HAVE_GTK_FILE_CHOOSER=no
8472 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8473 #include <gtk/gtk.h>
8474 "
8475 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then :
8476 HAVE_GTK_FILE_CHOOSER=yes
8477 else
8478 HAVE_GTK_FILE_CHOOSER=no
8479 fi
8480
8481 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8482 for ac_func in gtk_file_chooser_dialog_new
8483 do :
8484 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8485 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then :
8486 cat >>confdefs.h <<_ACEOF
8487 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8488 _ACEOF
8489 HAVE_GTK_FILE_CHOOSER=yes
8490 else
8491 HAVE_GTK_FILE_CHOOSER=no
8492 fi
8493 done
8494
8495 fi
8496
8497 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8498 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8499
8500 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8501
8502 fi
8503
8504 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8505 HAVE_GTK_AND_PTHREAD=no
8506 for ac_header in pthread.h
8507 do :
8508 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8509 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8510 cat >>confdefs.h <<_ACEOF
8511 #define HAVE_PTHREAD_H 1
8512 _ACEOF
8513
8514 fi
8515
8516 done
8517
8518 if test "$ac_cv_header_pthread_h"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8520 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8521 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8522 $as_echo_n "(cached) " >&6
8523 else
8524 ac_check_lib_save_LIBS=$LIBS
8525 LIBS="-lpthread $LIBS"
8526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h. */
8528
8529 /* Override any GCC internal prototype to avoid an error.
8530 Use char because int might match the return type of a GCC
8531 builtin and then its argument prototype would still apply. */
8532 #ifdef __cplusplus
8533 extern "C"
8534 #endif
8535 char pthread_self ();
8536 int
8537 main ()
8538 {
8539 return pthread_self ();
8540 ;
8541 return 0;
8542 }
8543 _ACEOF
8544 if ac_fn_c_try_link "$LINENO"; then :
8545 ac_cv_lib_pthread_pthread_self=yes
8546 else
8547 ac_cv_lib_pthread_pthread_self=no
8548 fi
8549 rm -f core conftest.err conftest.$ac_objext \
8550 conftest$ac_exeext conftest.$ac_ext
8551 LIBS=$ac_check_lib_save_LIBS
8552 fi
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8554 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8555 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
8556 HAVE_GTK_AND_PTHREAD=yes
8557 fi
8558
8559 fi
8560 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8561 case "${canonical}" in
8562 *-hpux*) ;;
8563 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8564 esac
8565
8566 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8567
8568 fi
8569 fi
8570 fi
8571
8572 HAVE_DBUS=no
8573 DBUS_OBJ=
8574 if test "${with_dbus}" = "yes"; then
8575
8576 succeeded=no
8577
8578 # Extract the first word of "pkg-config", so it can be a program name with args.
8579 set dummy pkg-config; ac_word=$2
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581 $as_echo_n "checking for $ac_word... " >&6; }
8582 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8584 else
8585 case $PKG_CONFIG in
8586 [\\/]* | ?:[\\/]*)
8587 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8588 ;;
8589 *)
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 for as_dir in $PATH
8592 do
8593 IFS=$as_save_IFS
8594 test -z "$as_dir" && as_dir=.
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8597 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599 break 2
8600 fi
8601 done
8602 done
8603 IFS=$as_save_IFS
8604
8605 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8606 ;;
8607 esac
8608 fi
8609 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8610 if test -n "$PKG_CONFIG"; then
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8612 $as_echo "$PKG_CONFIG" >&6; }
8613 else
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 $as_echo "no" >&6; }
8616 fi
8617
8618
8619
8620 if test "$PKG_CONFIG" = "no" ; then
8621 HAVE_DBUS=no
8622 else
8623 PKG_CONFIG_MIN_VERSION=0.9.0
8624 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8626 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8627
8628 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8630 $as_echo "yes" >&6; }
8631 succeeded=yes
8632
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8634 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8635 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8637 $as_echo "$DBUS_CFLAGS" >&6; }
8638
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8640 $as_echo_n "checking DBUS_LIBS... " >&6; }
8641 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8643 $as_echo "$DBUS_LIBS" >&6; }
8644 else
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8647 DBUS_CFLAGS=""
8648 DBUS_LIBS=""
8649 ## If we have a custom action on failure, don't print errors, but
8650 ## do set a variable so people can do so.
8651 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8652
8653 fi
8654
8655
8656
8657 else
8658 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8659 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8660 fi
8661 fi
8662
8663 if test $succeeded = yes; then
8664 HAVE_DBUS=yes
8665 else
8666 HAVE_DBUS=no
8667 fi
8668
8669 if test "$HAVE_DBUS" = yes; then
8670 LIBS="$LIBS $DBUS_LIBS"
8671
8672 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8673
8674 for ac_func in dbus_watch_get_unix_fd
8675 do :
8676 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8677 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
8678 cat >>confdefs.h <<_ACEOF
8679 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8680 _ACEOF
8681
8682 fi
8683 done
8684
8685 DBUS_OBJ=dbusbind.o
8686 fi
8687 fi
8688
8689
8690 HAVE_GCONF=no
8691 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8692
8693 succeeded=no
8694
8695 # Extract the first word of "pkg-config", so it can be a program name with args.
8696 set dummy pkg-config; ac_word=$2
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698 $as_echo_n "checking for $ac_word... " >&6; }
8699 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8700 $as_echo_n "(cached) " >&6
8701 else
8702 case $PKG_CONFIG in
8703 [\\/]* | ?:[\\/]*)
8704 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8705 ;;
8706 *)
8707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 for as_dir in $PATH
8709 do
8710 IFS=$as_save_IFS
8711 test -z "$as_dir" && as_dir=.
8712 for ac_exec_ext in '' $ac_executable_extensions; do
8713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8714 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8716 break 2
8717 fi
8718 done
8719 done
8720 IFS=$as_save_IFS
8721
8722 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8723 ;;
8724 esac
8725 fi
8726 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8727 if test -n "$PKG_CONFIG"; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8729 $as_echo "$PKG_CONFIG" >&6; }
8730 else
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8732 $as_echo "no" >&6; }
8733 fi
8734
8735
8736
8737 if test "$PKG_CONFIG" = "no" ; then
8738 HAVE_GCONF=no
8739 else
8740 PKG_CONFIG_MIN_VERSION=0.9.0
8741 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8743 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8744
8745 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8747 $as_echo "yes" >&6; }
8748 succeeded=yes
8749
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8751 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8752 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8754 $as_echo "$GCONF_CFLAGS" >&6; }
8755
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8757 $as_echo_n "checking GCONF_LIBS... " >&6; }
8758 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8760 $as_echo "$GCONF_LIBS" >&6; }
8761 else
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8764 GCONF_CFLAGS=""
8765 GCONF_LIBS=""
8766 ## If we have a custom action on failure, don't print errors, but
8767 ## do set a variable so people can do so.
8768 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8769
8770 fi
8771
8772
8773
8774 else
8775 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8776 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8777 fi
8778 fi
8779
8780 if test $succeeded = yes; then
8781 HAVE_GCONF=yes
8782 else
8783 HAVE_GCONF=no
8784 fi
8785
8786 if test "$HAVE_GCONF" = yes; then
8787
8788 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8789
8790 fi
8791 fi
8792
8793 HAVE_LIBSELINUX=no
8794 LIBSELINUX_LIBS=
8795 if test "${with_selinux}" = "yes"; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
8797 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
8798 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
8799 $as_echo_n "(cached) " >&6
8800 else
8801 ac_check_lib_save_LIBS=$LIBS
8802 LIBS="-lselinux $LIBS"
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8805
8806 /* Override any GCC internal prototype to avoid an error.
8807 Use char because int might match the return type of a GCC
8808 builtin and then its argument prototype would still apply. */
8809 #ifdef __cplusplus
8810 extern "C"
8811 #endif
8812 char lgetfilecon ();
8813 int
8814 main ()
8815 {
8816 return lgetfilecon ();
8817 ;
8818 return 0;
8819 }
8820 _ACEOF
8821 if ac_fn_c_try_link "$LINENO"; then :
8822 ac_cv_lib_selinux_lgetfilecon=yes
8823 else
8824 ac_cv_lib_selinux_lgetfilecon=no
8825 fi
8826 rm -f core conftest.err conftest.$ac_objext \
8827 conftest$ac_exeext conftest.$ac_ext
8828 LIBS=$ac_check_lib_save_LIBS
8829 fi
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
8831 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
8832 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
8833 HAVE_LIBSELINUX=yes
8834 else
8835 HAVE_LIBSELINUX=no
8836 fi
8837
8838 if test "$HAVE_LIBSELINUX" = yes; then
8839
8840 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
8841
8842 LIBSELINUX_LIBS=-lselinux
8843 fi
8844 fi
8845
8846
8847 HAVE_XAW3D=no
8848 LUCID_LIBW=
8849 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
8850 if test "$with_xaw3d" != no; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
8852 $as_echo_n "checking for xaw3d... " >&6; }
8853 if test "${emacs_cv_xaw3d+set}" = set; then :
8854 $as_echo_n "(cached) " >&6
8855 else
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858
8859 #include <X11/Intrinsic.h>
8860 #include <X11/Xaw3d/Simple.h>
8861 int
8862 main ()
8863 {
8864
8865 ;
8866 return 0;
8867 }
8868 _ACEOF
8869 if ac_fn_c_try_link "$LINENO"; then :
8870 emacs_cv_xaw3d=yes
8871 else
8872 emacs_cv_xaw3d=no
8873 fi
8874 rm -f core conftest.err conftest.$ac_objext \
8875 conftest$ac_exeext conftest.$ac_ext
8876 fi
8877
8878 else
8879 emacs_cv_xaw3d=no
8880 fi
8881 if test $emacs_cv_xaw3d = yes; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8883 $as_echo "yes; using Lucid toolkit" >&6; }
8884 USE_X_TOOLKIT=LUCID
8885 HAVE_XAW3D=yes
8886 LUCID_LIBW=-lXaw3d
8887
8888 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
8889
8890 else
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892 $as_echo "no" >&6; }
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
8894 $as_echo_n "checking for libXaw... " >&6; }
8895 if test "${emacs_cv_xaw+set}" = set; then :
8896 $as_echo_n "(cached) " >&6
8897 else
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8900
8901 #include <X11/Intrinsic.h>
8902 #include <X11/Xaw/Simple.h>
8903 int
8904 main ()
8905 {
8906
8907 ;
8908 return 0;
8909 }
8910 _ACEOF
8911 if ac_fn_c_try_link "$LINENO"; then :
8912 emacs_cv_xaw=yes
8913 else
8914 emacs_cv_xaw=no
8915 fi
8916 rm -f core conftest.err conftest.$ac_objext \
8917 conftest$ac_exeext conftest.$ac_ext
8918 fi
8919
8920 if test $emacs_cv_xaw = yes; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8922 $as_echo "yes; using Lucid toolkit" >&6; }
8923 USE_X_TOOLKIT=LUCID
8924 LUCID_LIBW=-lXaw
8925 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
8926 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
8927 else
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
8929 $as_echo "no; do not use toolkit by default" >&6; }
8930 USE_X_TOOLKIT=none
8931 fi
8932 fi
8933 fi
8934
8935 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8936
8937 LIBXTR6=
8938 if test "${USE_X_TOOLKIT}" != "none"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
8940 $as_echo_n "checking X11 toolkit version... " >&6; }
8941 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
8942 $as_echo_n "(cached) " >&6
8943 else
8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h. */
8946 #include <X11/Intrinsic.h>
8947 int
8948 main ()
8949 {
8950 #if XtSpecificationRelease < 6
8951 fail;
8952 #endif
8953
8954 ;
8955 return 0;
8956 }
8957 _ACEOF
8958 if ac_fn_c_try_link "$LINENO"; then :
8959 emacs_cv_x11_toolkit_version_6=yes
8960 else
8961 emacs_cv_x11_toolkit_version_6=no
8962 fi
8963 rm -f core conftest.err conftest.$ac_objext \
8964 conftest$ac_exeext conftest.$ac_ext
8965 fi
8966
8967 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8968 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8970 $as_echo "6 or newer" >&6; }
8971
8972 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
8973
8974 LIBXTR6="-lSM -lICE"
8975 case "$opsys" in
8976 ## Use libw.a along with X11R6 Xt.
8977 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
8978 esac
8979 else
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8981 $as_echo "before 6" >&6; }
8982 fi
8983
8984 OLDLIBS="$LIBS"
8985 if test x$HAVE_X11XTR6 = xyes; then
8986 LIBS="-lXt -lSM -lICE $LIBS"
8987 else
8988 LIBS="-lXt $LIBS"
8989 fi
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
8991 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8992 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
8993 $as_echo_n "(cached) " >&6
8994 else
8995 ac_check_lib_save_LIBS=$LIBS
8996 LIBS="-lXmu $LIBS"
8997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h. */
8999
9000 /* Override any GCC internal prototype to avoid an error.
9001 Use char because int might match the return type of a GCC
9002 builtin and then its argument prototype would still apply. */
9003 #ifdef __cplusplus
9004 extern "C"
9005 #endif
9006 char XmuConvertStandardSelection ();
9007 int
9008 main ()
9009 {
9010 return XmuConvertStandardSelection ();
9011 ;
9012 return 0;
9013 }
9014 _ACEOF
9015 if ac_fn_c_try_link "$LINENO"; then :
9016 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9017 else
9018 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9019 fi
9020 rm -f core conftest.err conftest.$ac_objext \
9021 conftest$ac_exeext conftest.$ac_ext
9022 LIBS=$ac_check_lib_save_LIBS
9023 fi
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9025 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9026 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9027 cat >>confdefs.h <<_ACEOF
9028 #define HAVE_LIBXMU 1
9029 _ACEOF
9030
9031 LIBS="-lXmu $LIBS"
9032
9033 fi
9034
9035 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9036 fi
9037
9038
9039 LIBXMU=-lXmu
9040 case "$machine" in
9041 ## These machines don't supply Xmu.
9042 hpux* | aix4-2 )
9043 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9044 ;;
9045 esac
9046
9047
9048 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9049 if test "${HAVE_X11}" = "yes"; then
9050 if test "${USE_X_TOOLKIT}" != "none"; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9052 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9053 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9054 $as_echo_n "(cached) " >&6
9055 else
9056 ac_check_lib_save_LIBS=$LIBS
9057 LIBS="-lXext $LIBS"
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9060
9061 /* Override any GCC internal prototype to avoid an error.
9062 Use char because int might match the return type of a GCC
9063 builtin and then its argument prototype would still apply. */
9064 #ifdef __cplusplus
9065 extern "C"
9066 #endif
9067 char XShapeQueryExtension ();
9068 int
9069 main ()
9070 {
9071 return XShapeQueryExtension ();
9072 ;
9073 return 0;
9074 }
9075 _ACEOF
9076 if ac_fn_c_try_link "$LINENO"; then :
9077 ac_cv_lib_Xext_XShapeQueryExtension=yes
9078 else
9079 ac_cv_lib_Xext_XShapeQueryExtension=no
9080 fi
9081 rm -f core conftest.err conftest.$ac_objext \
9082 conftest$ac_exeext conftest.$ac_ext
9083 LIBS=$ac_check_lib_save_LIBS
9084 fi
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9086 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9087 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9088 cat >>confdefs.h <<_ACEOF
9089 #define HAVE_LIBXEXT 1
9090 _ACEOF
9091
9092 LIBS="-lXext $LIBS"
9093
9094 fi
9095
9096 fi
9097 fi
9098
9099 LIBXP=
9100 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9102 $as_echo_n "checking for Motif version 2.1... " >&6; }
9103 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9104 $as_echo_n "(cached) " >&6
9105 else
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9108 #include <Xm/Xm.h>
9109 int
9110 main ()
9111 {
9112 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9113 int x = 5;
9114 #else
9115 Motif version prior to 2.1.
9116 #endif
9117 ;
9118 return 0;
9119 }
9120 _ACEOF
9121 if ac_fn_c_try_compile "$LINENO"; then :
9122 emacs_cv_motif_version_2_1=yes
9123 else
9124 emacs_cv_motif_version_2_1=no
9125 fi
9126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9127 fi
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9129 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9130 if test $emacs_cv_motif_version_2_1 = yes; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9132 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9133 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9134 $as_echo_n "(cached) " >&6
9135 else
9136 ac_check_lib_save_LIBS=$LIBS
9137 LIBS="-lXp $LIBS"
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9140
9141 /* Override any GCC internal prototype to avoid an error.
9142 Use char because int might match the return type of a GCC
9143 builtin and then its argument prototype would still apply. */
9144 #ifdef __cplusplus
9145 extern "C"
9146 #endif
9147 char XpCreateContext ();
9148 int
9149 main ()
9150 {
9151 return XpCreateContext ();
9152 ;
9153 return 0;
9154 }
9155 _ACEOF
9156 if ac_fn_c_try_link "$LINENO"; then :
9157 ac_cv_lib_Xp_XpCreateContext=yes
9158 else
9159 ac_cv_lib_Xp_XpCreateContext=no
9160 fi
9161 rm -f core conftest.err conftest.$ac_objext \
9162 conftest$ac_exeext conftest.$ac_ext
9163 LIBS=$ac_check_lib_save_LIBS
9164 fi
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9166 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9167 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9168 LIBXP=-lXp
9169 fi
9170
9171 else
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9173 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9174 if test "${emacs_cv_lesstif+set}" = set; then :
9175 $as_echo_n "(cached) " >&6
9176 else
9177 # We put this in CFLAGS temporarily to precede other -I options
9178 # that might be in CFLAGS temporarily.
9179 # We put this in CPPFLAGS where it precedes the other -I options.
9180 OLD_CPPFLAGS=$CPPFLAGS
9181 OLD_CFLAGS=$CFLAGS
9182 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9183 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9186 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9187 int
9188 main ()
9189 {
9190 int x = 5;
9191 ;
9192 return 0;
9193 }
9194 _ACEOF
9195 if ac_fn_c_try_compile "$LINENO"; then :
9196 emacs_cv_lesstif=yes
9197 else
9198 emacs_cv_lesstif=no
9199 fi
9200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201 fi
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9203 $as_echo "$emacs_cv_lesstif" >&6; }
9204 if test $emacs_cv_lesstif = yes; then
9205 # Make sure this -I option remains in CPPFLAGS after it is set
9206 # back to REAL_CPPFLAGS.
9207 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9208 # have those other -I options anyway. Ultimately, having this
9209 # directory ultimately in CPPFLAGS will be enough.
9210 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9211 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9212 else
9213 CFLAGS=$OLD_CFLAGS
9214 CPPFLAGS=$OLD_CPPFLAGS
9215 fi
9216 fi
9217 fi
9218
9219
9220 USE_TOOLKIT_SCROLL_BARS=no
9221 if test "${with_toolkit_scroll_bars}" != "no"; then
9222 if test "${USE_X_TOOLKIT}" != "none"; then
9223 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9224 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9225
9226 HAVE_XAW3D=no
9227 USE_TOOLKIT_SCROLL_BARS=yes
9228 elif test "${HAVE_XAW3D}" = "yes"; then
9229 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9230
9231 USE_TOOLKIT_SCROLL_BARS=yes
9232 fi
9233 elif test "${HAVE_GTK}" = "yes"; then
9234 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9235
9236 USE_TOOLKIT_SCROLL_BARS=yes
9237 elif test "${HAVE_NS}" = "yes"; then
9238 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9239
9240 USE_TOOLKIT_SCROLL_BARS=yes
9241 fi
9242 fi
9243
9244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9245 /* end confdefs.h. */
9246
9247 #include <X11/Xlib.h>
9248 #include <X11/Xresource.h>
9249 int
9250 main ()
9251 {
9252 XIMProc callback;
9253 ;
9254 return 0;
9255 }
9256 _ACEOF
9257 if ac_fn_c_try_compile "$LINENO"; then :
9258 HAVE_XIM=yes
9259
9260 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9261
9262 else
9263 HAVE_XIM=no
9264 fi
9265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9266
9267
9268 if test "${with_xim}" != "no"; then
9269
9270 $as_echo "#define USE_XIM 1" >>confdefs.h
9271
9272 fi
9273
9274
9275 if test "${HAVE_XIM}" != "no"; then
9276 late_CFLAGS=$CFLAGS
9277 if test "$GCC" = yes; then
9278 CFLAGS="$CFLAGS --pedantic-errors"
9279 fi
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9282
9283 #include <X11/Xlib.h>
9284 #include <X11/Xresource.h>
9285 int
9286 main ()
9287 {
9288 Display *display;
9289 XrmDatabase db;
9290 char *res_name;
9291 char *res_class;
9292 XIMProc callback;
9293 XPointer *client_data;
9294 #ifndef __GNUC__
9295 /* If we're not using GCC, it's probably not XFree86, and this is
9296 probably right, but we can't use something like --pedantic-errors. */
9297 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9298 char*, XIMProc, XPointer*);
9299 #endif
9300 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9301 client_data);
9302 ;
9303 return 0;
9304 }
9305 _ACEOF
9306 if ac_fn_c_try_compile "$LINENO"; then :
9307 emacs_cv_arg6_star=yes
9308 fi
9309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9310 if test "$emacs_cv_arg6_star" = yes; then
9311 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9312
9313 else
9314 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9315
9316 fi
9317 CFLAGS=$late_CFLAGS
9318 fi
9319
9320 ### Start of font-backend (under any platform) section.
9321 # (nothing here yet -- this is a placeholder)
9322 ### End of font-backend (under any platform) section.
9323
9324 ### Start of font-backend (under X11) section.
9325 if test "${HAVE_X11}" = "yes"; then
9326
9327 succeeded=no
9328
9329 # Extract the first word of "pkg-config", so it can be a program name with args.
9330 set dummy pkg-config; ac_word=$2
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332 $as_echo_n "checking for $ac_word... " >&6; }
9333 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9336 case $PKG_CONFIG in
9337 [\\/]* | ?:[\\/]*)
9338 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9339 ;;
9340 *)
9341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342 for as_dir in $PATH
9343 do
9344 IFS=$as_save_IFS
9345 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9348 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9350 break 2
9351 fi
9352 done
9353 done
9354 IFS=$as_save_IFS
9355
9356 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9357 ;;
9358 esac
9359 fi
9360 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9361 if test -n "$PKG_CONFIG"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9363 $as_echo "$PKG_CONFIG" >&6; }
9364 else
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9367 fi
9368
9369
9370
9371 if test "$PKG_CONFIG" = "no" ; then
9372 HAVE_FC=no
9373 else
9374 PKG_CONFIG_MIN_VERSION=0.9.0
9375 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9377 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9378
9379 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9381 $as_echo "yes" >&6; }
9382 succeeded=yes
9383
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9385 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9386 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9388 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9389
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9391 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9392 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9394 $as_echo "$FONTCONFIG_LIBS" >&6; }
9395 else
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 $as_echo "no" >&6; }
9398 FONTCONFIG_CFLAGS=""
9399 FONTCONFIG_LIBS=""
9400 ## If we have a custom action on failure, don't print errors, but
9401 ## do set a variable so people can do so.
9402 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9403
9404 fi
9405
9406
9407
9408 else
9409 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9410 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9411 fi
9412 fi
9413
9414 if test $succeeded = yes; then
9415 HAVE_FC=yes
9416 else
9417 HAVE_FC=no
9418 fi
9419
9420
9421 ## Use -lXft if available, unless `--with-xft=no'.
9422 HAVE_XFT=maybe
9423 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
9424 with_xft="no";
9425 fi
9426 if test "x${with_xft}" != "xno"; then
9427
9428
9429 succeeded=no
9430
9431 # Extract the first word of "pkg-config", so it can be a program name with args.
9432 set dummy pkg-config; ac_word=$2
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9434 $as_echo_n "checking for $ac_word... " >&6; }
9435 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9436 $as_echo_n "(cached) " >&6
9437 else
9438 case $PKG_CONFIG in
9439 [\\/]* | ?:[\\/]*)
9440 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9441 ;;
9442 *)
9443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9444 for as_dir in $PATH
9445 do
9446 IFS=$as_save_IFS
9447 test -z "$as_dir" && as_dir=.
9448 for ac_exec_ext in '' $ac_executable_extensions; do
9449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9450 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9452 break 2
9453 fi
9454 done
9455 done
9456 IFS=$as_save_IFS
9457
9458 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9459 ;;
9460 esac
9461 fi
9462 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9463 if test -n "$PKG_CONFIG"; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9465 $as_echo "$PKG_CONFIG" >&6; }
9466 else
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468 $as_echo "no" >&6; }
9469 fi
9470
9471
9472
9473 if test "$PKG_CONFIG" = "no" ; then
9474 HAVE_XFT=no
9475 else
9476 PKG_CONFIG_MIN_VERSION=0.9.0
9477 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9479 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9480
9481 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9483 $as_echo "yes" >&6; }
9484 succeeded=yes
9485
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9487 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9488 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9490 $as_echo "$XFT_CFLAGS" >&6; }
9491
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9493 $as_echo_n "checking XFT_LIBS... " >&6; }
9494 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9496 $as_echo "$XFT_LIBS" >&6; }
9497 else
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9500 XFT_CFLAGS=""
9501 XFT_LIBS=""
9502 ## If we have a custom action on failure, don't print errors, but
9503 ## do set a variable so people can do so.
9504 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9505
9506 fi
9507
9508
9509
9510 else
9511 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9512 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9513 fi
9514 fi
9515
9516 if test $succeeded = yes; then
9517 :
9518 else
9519 HAVE_XFT=no
9520 fi
9521
9522 ## Because xftfont.c uses XRenderQueryExtension, we also
9523 ## need to link to -lXrender.
9524 HAVE_XRENDER=no
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9526 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9527 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9528 $as_echo_n "(cached) " >&6
9529 else
9530 ac_check_lib_save_LIBS=$LIBS
9531 LIBS="-lXrender $LIBS"
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534
9535 /* Override any GCC internal prototype to avoid an error.
9536 Use char because int might match the return type of a GCC
9537 builtin and then its argument prototype would still apply. */
9538 #ifdef __cplusplus
9539 extern "C"
9540 #endif
9541 char XRenderQueryExtension ();
9542 int
9543 main ()
9544 {
9545 return XRenderQueryExtension ();
9546 ;
9547 return 0;
9548 }
9549 _ACEOF
9550 if ac_fn_c_try_link "$LINENO"; then :
9551 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9552 else
9553 ac_cv_lib_Xrender_XRenderQueryExtension=no
9554 fi
9555 rm -f core conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
9557 LIBS=$ac_check_lib_save_LIBS
9558 fi
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9560 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9561 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
9562 HAVE_XRENDER=yes
9563 fi
9564
9565 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
9566 OLD_CPPFLAGS="$CPPFLAGS"
9567 OLD_CFLAGS="$CFLAGS"
9568 OLD_LIBS="$LIBS"
9569 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
9570 CFLAGS="$CFLAGS $XFT_CFLAGS"
9571 XFT_LIBS="-lXrender $XFT_LIBS"
9572 LIBS="$XFT_LIBS $LIBS"
9573 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9574 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9576 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9577 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 ac_check_lib_save_LIBS=$LIBS
9581 LIBS="-lXft $XFT_LIBS $LIBS"
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9584
9585 /* Override any GCC internal prototype to avoid an error.
9586 Use char because int might match the return type of a GCC
9587 builtin and then its argument prototype would still apply. */
9588 #ifdef __cplusplus
9589 extern "C"
9590 #endif
9591 char XftFontOpen ();
9592 int
9593 main ()
9594 {
9595 return XftFontOpen ();
9596 ;
9597 return 0;
9598 }
9599 _ACEOF
9600 if ac_fn_c_try_link "$LINENO"; then :
9601 ac_cv_lib_Xft_XftFontOpen=yes
9602 else
9603 ac_cv_lib_Xft_XftFontOpen=no
9604 fi
9605 rm -f core conftest.err conftest.$ac_objext \
9606 conftest$ac_exeext conftest.$ac_ext
9607 LIBS=$ac_check_lib_save_LIBS
9608 fi
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9610 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9611 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
9612 HAVE_XFT=yes
9613 fi
9614
9615 fi
9616
9617
9618
9619 if test "${HAVE_XFT}" = "yes"; then
9620
9621 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9622
9623
9624 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
9625 else
9626 CPPFLAGS="$OLD_CPPFLAGS"
9627 CFLAGS="$OLD_CFLAGS"
9628 LIBS="$OLD_LIBS"
9629 fi # "${HAVE_XFT}" = "yes"
9630 fi # "$HAVE_XFT" != no
9631 fi # "x${with_xft}" != "xno"
9632
9633 if test "$HAVE_XFT" != "yes"; then
9634 HAVE_XFT=no
9635 fi
9636
9637
9638 HAVE_FREETYPE=no
9639 ## We used to allow building with FreeType and without Xft.
9640 ## However, the ftx font backend driver is not in good shape.
9641 if test "${HAVE_XFT}" = "yes"; then
9642 HAVE_FREETYPE=yes
9643 FONTCONFIG_CFLAGS=
9644 FONTCONFIG_LIBS=
9645 fi
9646
9647 HAVE_LIBOTF=no
9648 if test "${HAVE_FREETYPE}" = "yes"; then
9649
9650 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9651
9652 if test "${with_libotf}" != "no"; then
9653
9654 succeeded=no
9655
9656 # Extract the first word of "pkg-config", so it can be a program name with args.
9657 set dummy pkg-config; ac_word=$2
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9659 $as_echo_n "checking for $ac_word... " >&6; }
9660 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9661 $as_echo_n "(cached) " >&6
9662 else
9663 case $PKG_CONFIG in
9664 [\\/]* | ?:[\\/]*)
9665 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9666 ;;
9667 *)
9668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9669 for as_dir in $PATH
9670 do
9671 IFS=$as_save_IFS
9672 test -z "$as_dir" && as_dir=.
9673 for ac_exec_ext in '' $ac_executable_extensions; do
9674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9675 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9677 break 2
9678 fi
9679 done
9680 done
9681 IFS=$as_save_IFS
9682
9683 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9684 ;;
9685 esac
9686 fi
9687 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9688 if test -n "$PKG_CONFIG"; then
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9690 $as_echo "$PKG_CONFIG" >&6; }
9691 else
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693 $as_echo "no" >&6; }
9694 fi
9695
9696
9697
9698 if test "$PKG_CONFIG" = "no" ; then
9699 HAVE_LIBOTF=no
9700 else
9701 PKG_CONFIG_MIN_VERSION=0.9.0
9702 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9704 $as_echo_n "checking for libotf... " >&6; }
9705
9706 if $PKG_CONFIG --exists "libotf" 2>&5; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9708 $as_echo "yes" >&6; }
9709 succeeded=yes
9710
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9712 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9713 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9715 $as_echo "$LIBOTF_CFLAGS" >&6; }
9716
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9718 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9719 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9721 $as_echo "$LIBOTF_LIBS" >&6; }
9722 else
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724 $as_echo "no" >&6; }
9725 LIBOTF_CFLAGS=""
9726 LIBOTF_LIBS=""
9727 ## If we have a custom action on failure, don't print errors, but
9728 ## do set a variable so people can do so.
9729 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9730
9731 fi
9732
9733
9734
9735 else
9736 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9737 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9738 fi
9739 fi
9740
9741 if test $succeeded = yes; then
9742 HAVE_LIBOTF=yes
9743 else
9744 HAVE_LIBOTF=no
9745 fi
9746
9747 if test "$HAVE_LIBOTF" = "yes"; then
9748
9749 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9750
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9752 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9753 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9754 $as_echo_n "(cached) " >&6
9755 else
9756 ac_check_lib_save_LIBS=$LIBS
9757 LIBS="-lotf $LIBS"
9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9760
9761 /* Override any GCC internal prototype to avoid an error.
9762 Use char because int might match the return type of a GCC
9763 builtin and then its argument prototype would still apply. */
9764 #ifdef __cplusplus
9765 extern "C"
9766 #endif
9767 char OTF_get_variation_glyphs ();
9768 int
9769 main ()
9770 {
9771 return OTF_get_variation_glyphs ();
9772 ;
9773 return 0;
9774 }
9775 _ACEOF
9776 if ac_fn_c_try_link "$LINENO"; then :
9777 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9778 else
9779 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9780 fi
9781 rm -f core conftest.err conftest.$ac_objext \
9782 conftest$ac_exeext conftest.$ac_ext
9783 LIBS=$ac_check_lib_save_LIBS
9784 fi
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9786 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9787 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
9788 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9789 else
9790 HAVE_OTF_GET_VARIATION_GLYPHS=no
9791 fi
9792
9793 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9794
9795 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9796
9797 fi
9798 fi
9799 fi
9800 fi
9801
9802 HAVE_M17N_FLT=no
9803 if test "${HAVE_LIBOTF}" = yes; then
9804 if test "${with_m17n_flt}" != "no"; then
9805
9806 succeeded=no
9807
9808 # Extract the first word of "pkg-config", so it can be a program name with args.
9809 set dummy pkg-config; ac_word=$2
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9811 $as_echo_n "checking for $ac_word... " >&6; }
9812 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9813 $as_echo_n "(cached) " >&6
9814 else
9815 case $PKG_CONFIG in
9816 [\\/]* | ?:[\\/]*)
9817 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9818 ;;
9819 *)
9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821 for as_dir in $PATH
9822 do
9823 IFS=$as_save_IFS
9824 test -z "$as_dir" && as_dir=.
9825 for ac_exec_ext in '' $ac_executable_extensions; do
9826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9827 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9829 break 2
9830 fi
9831 done
9832 done
9833 IFS=$as_save_IFS
9834
9835 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9836 ;;
9837 esac
9838 fi
9839 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9840 if test -n "$PKG_CONFIG"; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9842 $as_echo "$PKG_CONFIG" >&6; }
9843 else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845 $as_echo "no" >&6; }
9846 fi
9847
9848
9849
9850 if test "$PKG_CONFIG" = "no" ; then
9851 HAVE_M17N_FLT=no
9852 else
9853 PKG_CONFIG_MIN_VERSION=0.9.0
9854 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
9856 $as_echo_n "checking for m17n-flt... " >&6; }
9857
9858 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9860 $as_echo "yes" >&6; }
9861 succeeded=yes
9862
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
9864 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9865 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
9867 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9868
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
9870 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9871 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
9873 $as_echo "$M17N_FLT_LIBS" >&6; }
9874 else
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9877 M17N_FLT_CFLAGS=""
9878 M17N_FLT_LIBS=""
9879 ## If we have a custom action on failure, don't print errors, but
9880 ## do set a variable so people can do so.
9881 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
9882
9883 fi
9884
9885
9886
9887 else
9888 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9889 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9890 fi
9891 fi
9892
9893 if test $succeeded = yes; then
9894 HAVE_M17N_FLT=yes
9895 else
9896 HAVE_M17N_FLT=no
9897 fi
9898
9899 if test "$HAVE_M17N_FLT" = "yes"; then
9900
9901 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
9902
9903 fi
9904 fi
9905 fi
9906 else
9907 HAVE_XFT=no
9908 HAVE_FREETYPE=no
9909 HAVE_LIBOTF=no
9910 HAVE_M17N_FLT=no
9911 fi
9912
9913 FONT_OBJ=xfont.o
9914 if test "$HAVE_XFT" = "yes"; then
9915 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
9916 elif test "$HAVE_FREETYPE" = "yes"; then
9917 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
9918 fi
9919
9920
9921 ### End of font-backend (under X11) section.
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932 ### Use -lXpm if available, unless `--with-xpm=no'.
9933 HAVE_XPM=no
9934 LIBXPM=
9935 if test "${HAVE_X11}" = "yes"; then
9936 if test "${with_xpm}" != "no"; then
9937 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
9938 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
9940 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9941 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
9942 $as_echo_n "(cached) " >&6
9943 else
9944 ac_check_lib_save_LIBS=$LIBS
9945 LIBS="-lXpm -lX11 $LIBS"
9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9948
9949 /* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
9952 #ifdef __cplusplus
9953 extern "C"
9954 #endif
9955 char XpmReadFileToPixmap ();
9956 int
9957 main ()
9958 {
9959 return XpmReadFileToPixmap ();
9960 ;
9961 return 0;
9962 }
9963 _ACEOF
9964 if ac_fn_c_try_link "$LINENO"; then :
9965 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9966 else
9967 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9968 fi
9969 rm -f core conftest.err conftest.$ac_objext \
9970 conftest$ac_exeext conftest.$ac_ext
9971 LIBS=$ac_check_lib_save_LIBS
9972 fi
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9974 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9975 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
9976 HAVE_XPM=yes
9977 fi
9978
9979 fi
9980
9981
9982 if test "${HAVE_XPM}" = "yes"; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
9984 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986 /* end confdefs.h. */
9987 #include "X11/xpm.h"
9988 #ifndef XpmReturnAllocPixels
9989 no_return_alloc_pixels
9990 #endif
9991
9992 _ACEOF
9993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9994 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
9995 HAVE_XPM=no
9996 else
9997 HAVE_XPM=yes
9998 fi
9999 rm -f conftest*
10000
10001
10002 if test "${HAVE_XPM}" = "yes"; then
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10004 $as_echo "yes" >&6; }
10005 else
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10007 $as_echo "no" >&6; }
10008 fi
10009 fi
10010 fi
10011
10012 if test "${HAVE_XPM}" = "yes"; then
10013
10014 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10015
10016 LIBXPM=-lXpm
10017 fi
10018 fi
10019
10020
10021 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10022 HAVE_JPEG=no
10023 LIBJPEG=
10024 if test "${HAVE_X11}" = "yes"; then
10025 if test "${with_jpeg}" != "no"; then
10026 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10027 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10029 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10030 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10031 $as_echo_n "(cached) " >&6
10032 else
10033 ac_check_lib_save_LIBS=$LIBS
10034 LIBS="-ljpeg $LIBS"
10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10037
10038 /* Override any GCC internal prototype to avoid an error.
10039 Use char because int might match the return type of a GCC
10040 builtin and then its argument prototype would still apply. */
10041 #ifdef __cplusplus
10042 extern "C"
10043 #endif
10044 char jpeg_destroy_compress ();
10045 int
10046 main ()
10047 {
10048 return jpeg_destroy_compress ();
10049 ;
10050 return 0;
10051 }
10052 _ACEOF
10053 if ac_fn_c_try_link "$LINENO"; then :
10054 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10055 else
10056 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10057 fi
10058 rm -f core conftest.err conftest.$ac_objext \
10059 conftest$ac_exeext conftest.$ac_ext
10060 LIBS=$ac_check_lib_save_LIBS
10061 fi
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10063 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10064 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10065 HAVE_JPEG=yes
10066 fi
10067
10068 fi
10069
10070
10071 fi
10072
10073 if test "${HAVE_JPEG}" = "yes"; then
10074 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10075
10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h. */
10078 #include <jpeglib.h>
10079 version=JPEG_LIB_VERSION
10080
10081 _ACEOF
10082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10083 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10084 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10085
10086 else
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10088 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10089 HAVE_JPEG=no
10090 fi
10091 rm -f conftest*
10092
10093 fi
10094 if test "${HAVE_JPEG}" = "yes"; then
10095 LIBJPEG=-ljpeg
10096 fi
10097 fi
10098
10099
10100 ### Use -lpng if available, unless `--with-png=no'.
10101 HAVE_PNG=no
10102 LIBPNG=
10103 if test "${HAVE_X11}" = "yes"; then
10104 if test "${with_png}" != "no"; then
10105 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10106 # in /usr/include/libpng.
10107 for ac_header in png.h libpng/png.h
10108 do :
10109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10110 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10111 eval as_val=\$$as_ac_Header
10112 if test "x$as_val" = x""yes; then :
10113 cat >>confdefs.h <<_ACEOF
10114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10115 _ACEOF
10116
10117 fi
10118
10119 done
10120
10121 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10123 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10124 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10125 $as_echo_n "(cached) " >&6
10126 else
10127 ac_check_lib_save_LIBS=$LIBS
10128 LIBS="-lpng -lz -lm $LIBS"
10129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10130 /* end confdefs.h. */
10131
10132 /* Override any GCC internal prototype to avoid an error.
10133 Use char because int might match the return type of a GCC
10134 builtin and then its argument prototype would still apply. */
10135 #ifdef __cplusplus
10136 extern "C"
10137 #endif
10138 char png_get_channels ();
10139 int
10140 main ()
10141 {
10142 return png_get_channels ();
10143 ;
10144 return 0;
10145 }
10146 _ACEOF
10147 if ac_fn_c_try_link "$LINENO"; then :
10148 ac_cv_lib_png_png_get_channels=yes
10149 else
10150 ac_cv_lib_png_png_get_channels=no
10151 fi
10152 rm -f core conftest.err conftest.$ac_objext \
10153 conftest$ac_exeext conftest.$ac_ext
10154 LIBS=$ac_check_lib_save_LIBS
10155 fi
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10157 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10158 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10159 HAVE_PNG=yes
10160 fi
10161
10162 fi
10163 fi
10164
10165 if test "${HAVE_PNG}" = "yes"; then
10166
10167 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10168
10169 LIBPNG="-lpng -lz -lm"
10170 fi
10171 fi
10172
10173
10174 ### Use -ltiff if available, unless `--with-tiff=no'.
10175 HAVE_TIFF=no
10176 LIBTIFF=
10177 if test "${HAVE_X11}" = "yes"; then
10178 if test "${with_tiff}" != "no"; then
10179 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10180 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10181 tifflibs="-lz -lm"
10182 # At least one tiff package requires the jpeg library.
10183 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10185 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10186 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 ac_check_lib_save_LIBS=$LIBS
10190 LIBS="-ltiff $tifflibs $LIBS"
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10193
10194 /* Override any GCC internal prototype to avoid an error.
10195 Use char because int might match the return type of a GCC
10196 builtin and then its argument prototype would still apply. */
10197 #ifdef __cplusplus
10198 extern "C"
10199 #endif
10200 char TIFFGetVersion ();
10201 int
10202 main ()
10203 {
10204 return TIFFGetVersion ();
10205 ;
10206 return 0;
10207 }
10208 _ACEOF
10209 if ac_fn_c_try_link "$LINENO"; then :
10210 ac_cv_lib_tiff_TIFFGetVersion=yes
10211 else
10212 ac_cv_lib_tiff_TIFFGetVersion=no
10213 fi
10214 rm -f core conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10216 LIBS=$ac_check_lib_save_LIBS
10217 fi
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10219 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10220 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10221 HAVE_TIFF=yes
10222 fi
10223
10224 fi
10225
10226
10227 fi
10228
10229 if test "${HAVE_TIFF}" = "yes"; then
10230
10231 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10232
10233 LIBTIFF=-ltiff
10234 fi
10235 fi
10236
10237
10238 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10239 HAVE_GIF=no
10240 LIBGIF=
10241 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10242 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10243 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10244 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10245 # Earlier versions can crash Emacs.
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10247 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10248 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10249 $as_echo_n "(cached) " >&6
10250 else
10251 ac_check_lib_save_LIBS=$LIBS
10252 LIBS="-lgif $LIBS"
10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10255
10256 /* Override any GCC internal prototype to avoid an error.
10257 Use char because int might match the return type of a GCC
10258 builtin and then its argument prototype would still apply. */
10259 #ifdef __cplusplus
10260 extern "C"
10261 #endif
10262 char EGifPutExtensionLast ();
10263 int
10264 main ()
10265 {
10266 return EGifPutExtensionLast ();
10267 ;
10268 return 0;
10269 }
10270 _ACEOF
10271 if ac_fn_c_try_link "$LINENO"; then :
10272 ac_cv_lib_gif_EGifPutExtensionLast=yes
10273 else
10274 ac_cv_lib_gif_EGifPutExtensionLast=no
10275 fi
10276 rm -f core conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext conftest.$ac_ext
10278 LIBS=$ac_check_lib_save_LIBS
10279 fi
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10281 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10282 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10283 HAVE_GIF=yes
10284 else
10285 HAVE_GIF=maybe
10286 fi
10287
10288 fi
10289
10290
10291
10292 if test "$HAVE_GIF" = yes; then
10293 LIBGIF=-lgif
10294 elif test "$HAVE_GIF" = maybe; then
10295 # If gif_lib.h but no libgif, try libungif.
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10297 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10298 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10299 $as_echo_n "(cached) " >&6
10300 else
10301 ac_check_lib_save_LIBS=$LIBS
10302 LIBS="-lungif $LIBS"
10303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10304 /* end confdefs.h. */
10305
10306 /* Override any GCC internal prototype to avoid an error.
10307 Use char because int might match the return type of a GCC
10308 builtin and then its argument prototype would still apply. */
10309 #ifdef __cplusplus
10310 extern "C"
10311 #endif
10312 char EGifPutExtensionLast ();
10313 int
10314 main ()
10315 {
10316 return EGifPutExtensionLast ();
10317 ;
10318 return 0;
10319 }
10320 _ACEOF
10321 if ac_fn_c_try_link "$LINENO"; then :
10322 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10323 else
10324 ac_cv_lib_ungif_EGifPutExtensionLast=no
10325 fi
10326 rm -f core conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10328 LIBS=$ac_check_lib_save_LIBS
10329 fi
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10331 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10332 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10333 HAVE_GIF=yes
10334 else
10335 HAVE_GIF=no
10336 fi
10337
10338 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10339 fi
10340
10341 if test "${HAVE_GIF}" = "yes"; then
10342
10343 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10344
10345 fi
10346 fi
10347
10348
10349 if test "${HAVE_X11}" = "yes"; then
10350 MISSING=""
10351 WITH_NO=""
10352 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10353 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10354 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10355 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
10356 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10357 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
10358 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10359 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10360 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10361 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10362
10363 if test "X${MISSING}" != X; then
10364 as_fn_error "The following required libraries were not found:
10365 $MISSING
10366 Maybe some development libraries/packages are missing?
10367 If you don't want to link with them give
10368 $WITH_NO
10369 as options to configure" "$LINENO" 5
10370 fi
10371 fi
10372
10373 ### Use -lgpm if available, unless `--with-gpm=no'.
10374 HAVE_GPM=no
10375 LIBGPM=
10376 MOUSE_SUPPORT=
10377 if test "${with_gpm}" != "no"; then
10378 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10379 if test "x$ac_cv_header_gpm_h" = x""yes; then :
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10381 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10382 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10383 $as_echo_n "(cached) " >&6
10384 else
10385 ac_check_lib_save_LIBS=$LIBS
10386 LIBS="-lgpm $LIBS"
10387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h. */
10389
10390 /* Override any GCC internal prototype to avoid an error.
10391 Use char because int might match the return type of a GCC
10392 builtin and then its argument prototype would still apply. */
10393 #ifdef __cplusplus
10394 extern "C"
10395 #endif
10396 char Gpm_Open ();
10397 int
10398 main ()
10399 {
10400 return Gpm_Open ();
10401 ;
10402 return 0;
10403 }
10404 _ACEOF
10405 if ac_fn_c_try_link "$LINENO"; then :
10406 ac_cv_lib_gpm_Gpm_Open=yes
10407 else
10408 ac_cv_lib_gpm_Gpm_Open=no
10409 fi
10410 rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10412 LIBS=$ac_check_lib_save_LIBS
10413 fi
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10415 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10416 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
10417 HAVE_GPM=yes
10418 fi
10419
10420 fi
10421
10422
10423
10424 if test "${HAVE_GPM}" = "yes"; then
10425
10426 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10427
10428 LIBGPM=-lgpm
10429 ## May be reset below.
10430 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
10431 fi
10432 fi
10433
10434
10435 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10436 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
10437
10438 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10439
10440 fi
10441
10442
10443
10444 C_SWITCH_X_SYSTEM=
10445 ### Use NeXTstep API to implement GUI.
10446 if test "${HAVE_NS}" = "yes"; then
10447
10448 $as_echo "#define HAVE_NS 1" >>confdefs.h
10449
10450 if test "${NS_IMPL_COCOA}" = "yes"; then
10451
10452 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10453
10454 GNU_OBJC_CFLAGS=
10455 fi
10456 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10457
10458 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10459
10460 # See also .m.o rule in Makefile.in */
10461 # FIXME: are all these flags really needed? Document here why. */
10462 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
10463 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10464 fi
10465 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10466
10467 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10468
10469 fi
10470 # We also have mouse menus.
10471 HAVE_MENUS=yes
10472 OTHER_FILES=ns-app
10473 fi
10474
10475
10476 ### Use session management (-lSM -lICE) if available
10477 HAVE_X_SM=no
10478 LIBXSM=
10479 if test "${HAVE_X11}" = "yes"; then
10480 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10481 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10483 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10484 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10485 $as_echo_n "(cached) " >&6
10486 else
10487 ac_check_lib_save_LIBS=$LIBS
10488 LIBS="-lSM -lICE $LIBS"
10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10491
10492 /* Override any GCC internal prototype to avoid an error.
10493 Use char because int might match the return type of a GCC
10494 builtin and then its argument prototype would still apply. */
10495 #ifdef __cplusplus
10496 extern "C"
10497 #endif
10498 char SmcOpenConnection ();
10499 int
10500 main ()
10501 {
10502 return SmcOpenConnection ();
10503 ;
10504 return 0;
10505 }
10506 _ACEOF
10507 if ac_fn_c_try_link "$LINENO"; then :
10508 ac_cv_lib_SM_SmcOpenConnection=yes
10509 else
10510 ac_cv_lib_SM_SmcOpenConnection=no
10511 fi
10512 rm -f core conftest.err conftest.$ac_objext \
10513 conftest$ac_exeext conftest.$ac_ext
10514 LIBS=$ac_check_lib_save_LIBS
10515 fi
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10517 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10518 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
10519 HAVE_X_SM=yes
10520 fi
10521
10522 fi
10523
10524
10525
10526 if test "${HAVE_X_SM}" = "yes"; then
10527
10528 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10529
10530 LIBXSM="-lSM -lICE"
10531 case "$LIBS" in
10532 *-lSM*) ;;
10533 *) LIBS="$LIBXSM $LIBS" ;;
10534 esac
10535 fi
10536 fi
10537
10538
10539 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10541 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10542 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10543 $as_echo_n "(cached) " >&6
10544 else
10545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546 /* end confdefs.h. */
10547 #include <netdb.h>
10548 int
10549 main ()
10550 {
10551 return h_errno;
10552 ;
10553 return 0;
10554 }
10555 _ACEOF
10556 if ac_fn_c_try_link "$LINENO"; then :
10557 emacs_cv_netdb_declares_h_errno=yes
10558 else
10559 emacs_cv_netdb_declares_h_errno=no
10560 fi
10561 rm -f core conftest.err conftest.$ac_objext \
10562 conftest$ac_exeext conftest.$ac_ext
10563 fi
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10565 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10566 if test $emacs_cv_netdb_declares_h_errno = yes; then
10567
10568 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10569
10570 fi
10571
10572 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10573 # for constant arguments. Useless!
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10575 $as_echo_n "checking for working alloca.h... " >&6; }
10576 if test "${ac_cv_working_alloca_h+set}" = set; then :
10577 $as_echo_n "(cached) " >&6
10578 else
10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h. */
10581 #include <alloca.h>
10582 int
10583 main ()
10584 {
10585 char *p = (char *) alloca (2 * sizeof (int));
10586 if (p) return 0;
10587 ;
10588 return 0;
10589 }
10590 _ACEOF
10591 if ac_fn_c_try_link "$LINENO"; then :
10592 ac_cv_working_alloca_h=yes
10593 else
10594 ac_cv_working_alloca_h=no
10595 fi
10596 rm -f core conftest.err conftest.$ac_objext \
10597 conftest$ac_exeext conftest.$ac_ext
10598 fi
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10600 $as_echo "$ac_cv_working_alloca_h" >&6; }
10601 if test $ac_cv_working_alloca_h = yes; then
10602
10603 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10604
10605 fi
10606
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10608 $as_echo_n "checking for alloca... " >&6; }
10609 if test "${ac_cv_func_alloca_works+set}" = set; then :
10610 $as_echo_n "(cached) " >&6
10611 else
10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10613 /* end confdefs.h. */
10614 #ifdef __GNUC__
10615 # define alloca __builtin_alloca
10616 #else
10617 # ifdef _MSC_VER
10618 # include <malloc.h>
10619 # define alloca _alloca
10620 # else
10621 # ifdef HAVE_ALLOCA_H
10622 # include <alloca.h>
10623 # else
10624 # ifdef _AIX
10625 #pragma alloca
10626 # else
10627 # ifndef alloca /* predefined by HP cc +Olibcalls */
10628 char *alloca ();
10629 # endif
10630 # endif
10631 # endif
10632 # endif
10633 #endif
10634
10635 int
10636 main ()
10637 {
10638 char *p = (char *) alloca (1);
10639 if (p) return 0;
10640 ;
10641 return 0;
10642 }
10643 _ACEOF
10644 if ac_fn_c_try_link "$LINENO"; then :
10645 ac_cv_func_alloca_works=yes
10646 else
10647 ac_cv_func_alloca_works=no
10648 fi
10649 rm -f core conftest.err conftest.$ac_objext \
10650 conftest$ac_exeext conftest.$ac_ext
10651 fi
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10653 $as_echo "$ac_cv_func_alloca_works" >&6; }
10654
10655 if test $ac_cv_func_alloca_works = yes; then
10656
10657 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10658
10659 else
10660 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10661 # that cause trouble. Some versions do not even contain alloca or
10662 # contain a buggy version. If you still want to use their alloca,
10663 # use ar to extract alloca.o from them instead of compiling alloca.c.
10664
10665 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10666
10667 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10668
10669
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10671 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10672 if test "${ac_cv_os_cray+set}" = set; then :
10673 $as_echo_n "(cached) " >&6
10674 else
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 #if defined CRAY && ! defined CRAY2
10678 webecray
10679 #else
10680 wenotbecray
10681 #endif
10682
10683 _ACEOF
10684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10685 $EGREP "webecray" >/dev/null 2>&1; then :
10686 ac_cv_os_cray=yes
10687 else
10688 ac_cv_os_cray=no
10689 fi
10690 rm -f conftest*
10691
10692 fi
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10694 $as_echo "$ac_cv_os_cray" >&6; }
10695 if test $ac_cv_os_cray = yes; then
10696 for ac_func in _getb67 GETB67 getb67; do
10697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10699 eval as_val=\$$as_ac_var
10700 if test "x$as_val" = x""yes; then :
10701
10702 cat >>confdefs.h <<_ACEOF
10703 #define CRAY_STACKSEG_END $ac_func
10704 _ACEOF
10705
10706 break
10707 fi
10708
10709 done
10710 fi
10711
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10713 $as_echo_n "checking stack direction for C alloca... " >&6; }
10714 if test "${ac_cv_c_stack_direction+set}" = set; then :
10715 $as_echo_n "(cached) " >&6
10716 else
10717 if test "$cross_compiling" = yes; then :
10718 ac_cv_c_stack_direction=0
10719 else
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10722 $ac_includes_default
10723 int
10724 find_stack_direction ()
10725 {
10726 static char *addr = 0;
10727 auto char dummy;
10728 if (addr == 0)
10729 {
10730 addr = &dummy;
10731 return find_stack_direction ();
10732 }
10733 else
10734 return (&dummy > addr) ? 1 : -1;
10735 }
10736
10737 int
10738 main ()
10739 {
10740 return find_stack_direction () < 0;
10741 }
10742 _ACEOF
10743 if ac_fn_c_try_run "$LINENO"; then :
10744 ac_cv_c_stack_direction=1
10745 else
10746 ac_cv_c_stack_direction=-1
10747 fi
10748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10749 conftest.$ac_objext conftest.beam conftest.$ac_ext
10750 fi
10751
10752 fi
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10754 $as_echo "$ac_cv_c_stack_direction" >&6; }
10755 cat >>confdefs.h <<_ACEOF
10756 #define STACK_DIRECTION $ac_cv_c_stack_direction
10757 _ACEOF
10758
10759
10760 fi
10761
10762
10763 if test x"$ac_cv_func_alloca_works" != xyes; then
10764 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
10765 fi
10766
10767 # fmod, logb, and frexp are found in -lm on most systems.
10768 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10770 $as_echo_n "checking for sqrt in -lm... " >&6; }
10771 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10772 $as_echo_n "(cached) " >&6
10773 else
10774 ac_check_lib_save_LIBS=$LIBS
10775 LIBS="-lm $LIBS"
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10778
10779 /* Override any GCC internal prototype to avoid an error.
10780 Use char because int might match the return type of a GCC
10781 builtin and then its argument prototype would still apply. */
10782 #ifdef __cplusplus
10783 extern "C"
10784 #endif
10785 char sqrt ();
10786 int
10787 main ()
10788 {
10789 return sqrt ();
10790 ;
10791 return 0;
10792 }
10793 _ACEOF
10794 if ac_fn_c_try_link "$LINENO"; then :
10795 ac_cv_lib_m_sqrt=yes
10796 else
10797 ac_cv_lib_m_sqrt=no
10798 fi
10799 rm -f core conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10801 LIBS=$ac_check_lib_save_LIBS
10802 fi
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10804 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10805 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
10806 cat >>confdefs.h <<_ACEOF
10807 #define HAVE_LIBM 1
10808 _ACEOF
10809
10810 LIBS="-lm $LIBS"
10811
10812 fi
10813
10814
10815 # Check for mail-locking functions in a "mail" library. Probably this should
10816 # have the same check as for liblockfile below.
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10818 $as_echo_n "checking for maillock in -lmail... " >&6; }
10819 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822 ac_check_lib_save_LIBS=$LIBS
10823 LIBS="-lmail $LIBS"
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10826
10827 /* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
10830 #ifdef __cplusplus
10831 extern "C"
10832 #endif
10833 char maillock ();
10834 int
10835 main ()
10836 {
10837 return maillock ();
10838 ;
10839 return 0;
10840 }
10841 _ACEOF
10842 if ac_fn_c_try_link "$LINENO"; then :
10843 ac_cv_lib_mail_maillock=yes
10844 else
10845 ac_cv_lib_mail_maillock=no
10846 fi
10847 rm -f core conftest.err conftest.$ac_objext \
10848 conftest$ac_exeext conftest.$ac_ext
10849 LIBS=$ac_check_lib_save_LIBS
10850 fi
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10852 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10853 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
10854 have_mail=yes
10855 else
10856 have_mail=no
10857 fi
10858
10859 if test $have_mail = yes; then
10860 LIBS_MAIL=-lmail
10861 LIBS="$LIBS_MAIL $LIBS"
10862
10863 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
10864
10865 else
10866 LIBS_MAIL=
10867 fi
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10869 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10870 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
10871 $as_echo_n "(cached) " >&6
10872 else
10873 ac_check_lib_save_LIBS=$LIBS
10874 LIBS="-llockfile $LIBS"
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10877
10878 /* Override any GCC internal prototype to avoid an error.
10879 Use char because int might match the return type of a GCC
10880 builtin and then its argument prototype would still apply. */
10881 #ifdef __cplusplus
10882 extern "C"
10883 #endif
10884 char maillock ();
10885 int
10886 main ()
10887 {
10888 return maillock ();
10889 ;
10890 return 0;
10891 }
10892 _ACEOF
10893 if ac_fn_c_try_link "$LINENO"; then :
10894 ac_cv_lib_lockfile_maillock=yes
10895 else
10896 ac_cv_lib_lockfile_maillock=no
10897 fi
10898 rm -f core conftest.err conftest.$ac_objext \
10899 conftest$ac_exeext conftest.$ac_ext
10900 LIBS=$ac_check_lib_save_LIBS
10901 fi
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
10903 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10904 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
10905 have_lockfile=yes
10906 else
10907 have_lockfile=no
10908 fi
10909
10910 if test $have_lockfile = yes; then
10911 LIBS_MAIL=-llockfile
10912 LIBS="$LIBS_MAIL $LIBS"
10913
10914 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
10915
10916 else
10917 # If we have the shared liblockfile, assume we must use it for mail
10918 # locking (e.g. Debian). If we couldn't link against liblockfile
10919 # (no liblockfile.a installed), ensure that we don't need to.
10920 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10921 set dummy liblockfile.so; ac_word=$2
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10923 $as_echo_n "checking for $ac_word... " >&6; }
10924 if test "${ac_cv_prog_liblockfile+set}" = set; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 if test -n "$liblockfile"; then
10928 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10929 else
10930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10932 for as_dir in $as_dummy
10933 do
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10938 ac_cv_prog_liblockfile="yes"
10939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10940 break 2
10941 fi
10942 done
10943 done
10944 IFS=$as_save_IFS
10945
10946 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10947 fi
10948 fi
10949 liblockfile=$ac_cv_prog_liblockfile
10950 if test -n "$liblockfile"; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
10952 $as_echo "$liblockfile" >&6; }
10953 else
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955 $as_echo "no" >&6; }
10956 fi
10957
10958
10959 if test $ac_cv_prog_liblockfile = yes; then
10960 as_fn_error "Shared liblockfile found but can't link against it.
10961 This probably means that movemail could lose mail.
10962 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
10963 fi
10964 fi
10965 for ac_func in touchlock
10966 do :
10967 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
10968 if test "x$ac_cv_func_touchlock" = x""yes; then :
10969 cat >>confdefs.h <<_ACEOF
10970 #define HAVE_TOUCHLOCK 1
10971 _ACEOF
10972
10973 fi
10974 done
10975
10976 for ac_header in maillock.h
10977 do :
10978 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
10979 if test "x$ac_cv_header_maillock_h" = x""yes; then :
10980 cat >>confdefs.h <<_ACEOF
10981 #define HAVE_MAILLOCK_H 1
10982 _ACEOF
10983
10984 fi
10985
10986 done
10987
10988
10989
10990 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
10991 ## interlock access to the mail spool. The alternative is a lock file named
10992 ## /usr/spool/mail/$USER.lock.
10993 mail_lock=no
10994 case "$opsys" in
10995 aix4-2) mail_lock="lockf" ;;
10996
10997 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
10998
10999 ## On GNU/Linux systems, both methods are used by various mail programs.
11000 ## I assume most people are using newer mailers that have heard of flock.
11001 ## Change this if you need to.
11002 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11003 ## configure gets the right answers, and that means *NOT* using flock.
11004 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11005 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11006 ## Debian maintainer hasn't provided a clean fix for Emacs.
11007 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11008 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11009 ## correct logic. -- fx
11010 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11011 ## liblockfile is a Free Software replacement for libmail, used on
11012 ## Debian systems and elsewhere. -rfr.
11013 gnu-*)
11014 mail_lock="flock"
11015 if test $have_mail = yes || test $have_lockfile = yes; then
11016 test $ac_cv_header_maillock_h = yes && mail_lock=no
11017 fi
11018 ;;
11019 esac
11020
11021 BLESSMAIL_TARGET=
11022 case "$mail_lock" in
11023 flock)
11024 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11025 ;;
11026
11027 lockf)
11028 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11029 ;;
11030
11031 *) BLESSMAIL_TARGET="need-blessmail" ;;
11032 esac
11033
11034
11035
11036 for ac_func in gethostname getdomainname dup2 \
11037 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11038 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
11039 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11040 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11041 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11042 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11043 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
11044 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11045 cfmakeraw cfsetspeed isnan copysign
11046 do :
11047 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11048 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11049 eval as_val=\$$as_ac_var
11050 if test "x$as_val" = x""yes; then :
11051 cat >>confdefs.h <<_ACEOF
11052 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11053 _ACEOF
11054
11055 fi
11056 done
11057
11058
11059 for ac_header in sys/un.h
11060 do :
11061 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11062 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11063 cat >>confdefs.h <<_ACEOF
11064 #define HAVE_SYS_UN_H 1
11065 _ACEOF
11066
11067 fi
11068
11069 done
11070
11071
11072
11073
11074
11075
11076
11077 for ac_func in $ac_func_list
11078 do :
11079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11080 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11081 eval as_val=\$$as_ac_var
11082 if test "x$as_val" = x""yes; then :
11083 cat >>confdefs.h <<_ACEOF
11084 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11085 _ACEOF
11086
11087 fi
11088 done
11089
11090
11091
11092
11093
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11095 $as_echo_n "checking for working mktime... " >&6; }
11096 if test "${ac_cv_func_working_mktime+set}" = set; then :
11097 $as_echo_n "(cached) " >&6
11098 else
11099 if test "$cross_compiling" = yes; then :
11100 ac_cv_func_working_mktime=no
11101 else
11102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h. */
11104 /* Test program from Paul Eggert and Tony Leneis. */
11105 #ifdef TIME_WITH_SYS_TIME
11106 # include <sys/time.h>
11107 # include <time.h>
11108 #else
11109 # ifdef HAVE_SYS_TIME_H
11110 # include <sys/time.h>
11111 # else
11112 # include <time.h>
11113 # endif
11114 #endif
11115
11116 #include <limits.h>
11117 #include <stdlib.h>
11118
11119 #ifdef HAVE_UNISTD_H
11120 # include <unistd.h>
11121 #endif
11122
11123 #ifndef HAVE_ALARM
11124 # define alarm(X) /* empty */
11125 #endif
11126
11127 /* Work around redefinition to rpl_putenv by other config tests. */
11128 #undef putenv
11129
11130 static time_t time_t_max;
11131 static time_t time_t_min;
11132
11133 /* Values we'll use to set the TZ environment variable. */
11134 static char *tz_strings[] = {
11135 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11136 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11137 };
11138 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11139
11140 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11141 Based on a problem report from Andreas Jaeger. */
11142 static int
11143 spring_forward_gap ()
11144 {
11145 /* glibc (up to about 1998-10-07) failed this test. */
11146 struct tm tm;
11147
11148 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11149 instead of "TZ=America/Vancouver" in order to detect the bug even
11150 on systems that don't support the Olson extension, or don't have the
11151 full zoneinfo tables installed. */
11152 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11153
11154 tm.tm_year = 98;
11155 tm.tm_mon = 3;
11156 tm.tm_mday = 5;
11157 tm.tm_hour = 2;
11158 tm.tm_min = 0;
11159 tm.tm_sec = 0;
11160 tm.tm_isdst = -1;
11161 return mktime (&tm) != (time_t) -1;
11162 }
11163
11164 static int
11165 mktime_test1 (now)
11166 time_t now;
11167 {
11168 struct tm *lt;
11169 return ! (lt = localtime (&now)) || mktime (lt) == now;
11170 }
11171
11172 static int
11173 mktime_test (now)
11174 time_t now;
11175 {
11176 return (mktime_test1 (now)
11177 && mktime_test1 ((time_t) (time_t_max - now))
11178 && mktime_test1 ((time_t) (time_t_min + now)));
11179 }
11180
11181 static int
11182 irix_6_4_bug ()
11183 {
11184 /* Based on code from Ariel Faigon. */
11185 struct tm tm;
11186 tm.tm_year = 96;
11187 tm.tm_mon = 3;
11188 tm.tm_mday = 0;
11189 tm.tm_hour = 0;
11190 tm.tm_min = 0;
11191 tm.tm_sec = 0;
11192 tm.tm_isdst = -1;
11193 mktime (&tm);
11194 return tm.tm_mon == 2 && tm.tm_mday == 31;
11195 }
11196
11197 static int
11198 bigtime_test (j)
11199 int j;
11200 {
11201 struct tm tm;
11202 time_t now;
11203 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11204 now = mktime (&tm);
11205 if (now != (time_t) -1)
11206 {
11207 struct tm *lt = localtime (&now);
11208 if (! (lt
11209 && lt->tm_year == tm.tm_year
11210 && lt->tm_mon == tm.tm_mon
11211 && lt->tm_mday == tm.tm_mday
11212 && lt->tm_hour == tm.tm_hour
11213 && lt->tm_min == tm.tm_min
11214 && lt->tm_sec == tm.tm_sec
11215 && lt->tm_yday == tm.tm_yday
11216 && lt->tm_wday == tm.tm_wday
11217 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11218 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11219 return 0;
11220 }
11221 return 1;
11222 }
11223
11224 static int
11225 year_2050_test ()
11226 {
11227 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11228 ignoring leap seconds. */
11229 unsigned long int answer = 2527315200UL;
11230
11231 struct tm tm;
11232 time_t t;
11233 tm.tm_year = 2050 - 1900;
11234 tm.tm_mon = 2 - 1;
11235 tm.tm_mday = 1;
11236 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11237 tm.tm_isdst = -1;
11238
11239 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11240 instead of "TZ=America/Vancouver" in order to detect the bug even
11241 on systems that don't support the Olson extension, or don't have the
11242 full zoneinfo tables installed. */
11243 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11244
11245 t = mktime (&tm);
11246
11247 /* Check that the result is either a failure, or close enough
11248 to the correct answer that we can assume the discrepancy is
11249 due to leap seconds. */
11250 return (t == (time_t) -1
11251 || (0 < t && answer - 120 <= t && t <= answer + 120));
11252 }
11253
11254 int
11255 main ()
11256 {
11257 time_t t, delta;
11258 int i, j;
11259
11260 /* This test makes some buggy mktime implementations loop.
11261 Give up after 60 seconds; a mktime slower than that
11262 isn't worth using anyway. */
11263 alarm (60);
11264
11265 for (;;)
11266 {
11267 t = (time_t_max << 1) + 1;
11268 if (t <= time_t_max)
11269 break;
11270 time_t_max = t;
11271 }
11272 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11273
11274 delta = time_t_max / 997; /* a suitable prime number */
11275 for (i = 0; i < N_STRINGS; i++)
11276 {
11277 if (tz_strings[i])
11278 putenv (tz_strings[i]);
11279
11280 for (t = 0; t <= time_t_max - delta; t += delta)
11281 if (! mktime_test (t))
11282 return 1;
11283 if (! (mktime_test ((time_t) 1)
11284 && mktime_test ((time_t) (60 * 60))
11285 && mktime_test ((time_t) (60 * 60 * 24))))
11286 return 1;
11287
11288 for (j = 1; ; j <<= 1)
11289 if (! bigtime_test (j))
11290 return 1;
11291 else if (INT_MAX / 2 < j)
11292 break;
11293 if (! bigtime_test (INT_MAX))
11294 return 1;
11295 }
11296 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11297 }
11298 _ACEOF
11299 if ac_fn_c_try_run "$LINENO"; then :
11300 ac_cv_func_working_mktime=yes
11301 else
11302 ac_cv_func_working_mktime=no
11303 fi
11304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11305 conftest.$ac_objext conftest.beam conftest.$ac_ext
11306 fi
11307
11308 fi
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11310 $as_echo "$ac_cv_func_working_mktime" >&6; }
11311 if test $ac_cv_func_working_mktime = no; then
11312 case " $LIBOBJS " in
11313 *" mktime.$ac_objext "* ) ;;
11314 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
11315 ;;
11316 esac
11317
11318 fi
11319
11320 if test "$ac_cv_func_working_mktime" = no; then
11321
11322 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
11323
11324 fi
11325
11326 ac_have_func=no # yes means we've found a way to get the load average.
11327
11328 # Make sure getloadavg.c is where it belongs, at configure-time.
11329 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11330 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11331
11332 ac_save_LIBS=$LIBS
11333
11334 # Check for getloadavg, but be sure not to touch the cache variable.
11335 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11336 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11337 exit 0
11338 else
11339 exit 1
11340 fi
11341 ) && ac_have_func=yes
11342
11343 # On HPUX9, an unprivileged user can get load averages through this function.
11344 for ac_func in pstat_getdynamic
11345 do :
11346 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11347 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
11348 cat >>confdefs.h <<_ACEOF
11349 #define HAVE_PSTAT_GETDYNAMIC 1
11350 _ACEOF
11351
11352 fi
11353 done
11354
11355
11356 # Solaris has libkstat which does not require root.
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11358 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11359 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11362 ac_check_lib_save_LIBS=$LIBS
11363 LIBS="-lkstat $LIBS"
11364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h. */
11366
11367 /* Override any GCC internal prototype to avoid an error.
11368 Use char because int might match the return type of a GCC
11369 builtin and then its argument prototype would still apply. */
11370 #ifdef __cplusplus
11371 extern "C"
11372 #endif
11373 char kstat_open ();
11374 int
11375 main ()
11376 {
11377 return kstat_open ();
11378 ;
11379 return 0;
11380 }
11381 _ACEOF
11382 if ac_fn_c_try_link "$LINENO"; then :
11383 ac_cv_lib_kstat_kstat_open=yes
11384 else
11385 ac_cv_lib_kstat_kstat_open=no
11386 fi
11387 rm -f core conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11389 LIBS=$ac_check_lib_save_LIBS
11390 fi
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11392 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11393 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11394 cat >>confdefs.h <<_ACEOF
11395 #define HAVE_LIBKSTAT 1
11396 _ACEOF
11397
11398 LIBS="-lkstat $LIBS"
11399
11400 fi
11401
11402 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11403
11404 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11405 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11406 # to get the right answer into the cache.
11407 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11408 if test $ac_have_func = no; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11410 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11411 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11412 $as_echo_n "(cached) " >&6
11413 else
11414 ac_check_lib_save_LIBS=$LIBS
11415 LIBS="-lelf $LIBS"
11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11418
11419 /* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11422 #ifdef __cplusplus
11423 extern "C"
11424 #endif
11425 char elf_begin ();
11426 int
11427 main ()
11428 {
11429 return elf_begin ();
11430 ;
11431 return 0;
11432 }
11433 _ACEOF
11434 if ac_fn_c_try_link "$LINENO"; then :
11435 ac_cv_lib_elf_elf_begin=yes
11436 else
11437 ac_cv_lib_elf_elf_begin=no
11438 fi
11439 rm -f core conftest.err conftest.$ac_objext \
11440 conftest$ac_exeext conftest.$ac_ext
11441 LIBS=$ac_check_lib_save_LIBS
11442 fi
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11444 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11445 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
11446 LIBS="-lelf $LIBS"
11447 fi
11448
11449 fi
11450 if test $ac_have_func = no; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11452 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11453 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11454 $as_echo_n "(cached) " >&6
11455 else
11456 ac_check_lib_save_LIBS=$LIBS
11457 LIBS="-lkvm $LIBS"
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11460
11461 /* Override any GCC internal prototype to avoid an error.
11462 Use char because int might match the return type of a GCC
11463 builtin and then its argument prototype would still apply. */
11464 #ifdef __cplusplus
11465 extern "C"
11466 #endif
11467 char kvm_open ();
11468 int
11469 main ()
11470 {
11471 return kvm_open ();
11472 ;
11473 return 0;
11474 }
11475 _ACEOF
11476 if ac_fn_c_try_link "$LINENO"; then :
11477 ac_cv_lib_kvm_kvm_open=yes
11478 else
11479 ac_cv_lib_kvm_kvm_open=no
11480 fi
11481 rm -f core conftest.err conftest.$ac_objext \
11482 conftest$ac_exeext conftest.$ac_ext
11483 LIBS=$ac_check_lib_save_LIBS
11484 fi
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11486 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11487 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
11488 LIBS="-lkvm $LIBS"
11489 fi
11490
11491 # Check for the 4.4BSD definition of getloadavg.
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11493 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11494 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11497 ac_check_lib_save_LIBS=$LIBS
11498 LIBS="-lutil $LIBS"
11499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11500 /* end confdefs.h. */
11501
11502 /* Override any GCC internal prototype to avoid an error.
11503 Use char because int might match the return type of a GCC
11504 builtin and then its argument prototype would still apply. */
11505 #ifdef __cplusplus
11506 extern "C"
11507 #endif
11508 char getloadavg ();
11509 int
11510 main ()
11511 {
11512 return getloadavg ();
11513 ;
11514 return 0;
11515 }
11516 _ACEOF
11517 if ac_fn_c_try_link "$LINENO"; then :
11518 ac_cv_lib_util_getloadavg=yes
11519 else
11520 ac_cv_lib_util_getloadavg=no
11521 fi
11522 rm -f core conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11525 fi
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11527 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11528 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
11529 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11530 fi
11531
11532 fi
11533
11534 if test $ac_have_func = no; then
11535 # There is a commonly available library for RS/6000 AIX.
11536 # Since it is not a standard part of AIX, it might be installed locally.
11537 ac_getloadavg_LIBS=$LIBS
11538 LIBS="-L/usr/local/lib $LIBS"
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11540 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11541 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11542 $as_echo_n "(cached) " >&6
11543 else
11544 ac_check_lib_save_LIBS=$LIBS
11545 LIBS="-lgetloadavg $LIBS"
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h. */
11548
11549 /* Override any GCC internal prototype to avoid an error.
11550 Use char because int might match the return type of a GCC
11551 builtin and then its argument prototype would still apply. */
11552 #ifdef __cplusplus
11553 extern "C"
11554 #endif
11555 char getloadavg ();
11556 int
11557 main ()
11558 {
11559 return getloadavg ();
11560 ;
11561 return 0;
11562 }
11563 _ACEOF
11564 if ac_fn_c_try_link "$LINENO"; then :
11565 ac_cv_lib_getloadavg_getloadavg=yes
11566 else
11567 ac_cv_lib_getloadavg_getloadavg=no
11568 fi
11569 rm -f core conftest.err conftest.$ac_objext \
11570 conftest$ac_exeext conftest.$ac_ext
11571 LIBS=$ac_check_lib_save_LIBS
11572 fi
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11574 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11575 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
11576 LIBS="-lgetloadavg $LIBS"
11577 else
11578 LIBS=$ac_getloadavg_LIBS
11579 fi
11580
11581 fi
11582
11583 # Make sure it is really in the library, if we think we found it,
11584 # otherwise set up the replacement function.
11585 for ac_func in getloadavg
11586 do :
11587 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11588 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11589 cat >>confdefs.h <<_ACEOF
11590 #define HAVE_GETLOADAVG 1
11591 _ACEOF
11592
11593 else
11594 case " $LIBOBJS " in
11595 *" getloadavg.$ac_objext "* ) ;;
11596 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11597 ;;
11598 esac
11599
11600
11601 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11602
11603 # Figure out what our getloadavg.c needs.
11604 ac_have_func=no
11605 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11606 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
11607 ac_have_func=yes
11608
11609 $as_echo "#define DGUX 1" >>confdefs.h
11610
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11612 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11613 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 ac_check_lib_save_LIBS=$LIBS
11617 LIBS="-ldgc $LIBS"
11618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619 /* end confdefs.h. */
11620
11621 /* Override any GCC internal prototype to avoid an error.
11622 Use char because int might match the return type of a GCC
11623 builtin and then its argument prototype would still apply. */
11624 #ifdef __cplusplus
11625 extern "C"
11626 #endif
11627 char dg_sys_info ();
11628 int
11629 main ()
11630 {
11631 return dg_sys_info ();
11632 ;
11633 return 0;
11634 }
11635 _ACEOF
11636 if ac_fn_c_try_link "$LINENO"; then :
11637 ac_cv_lib_dgc_dg_sys_info=yes
11638 else
11639 ac_cv_lib_dgc_dg_sys_info=no
11640 fi
11641 rm -f core conftest.err conftest.$ac_objext \
11642 conftest$ac_exeext conftest.$ac_ext
11643 LIBS=$ac_check_lib_save_LIBS
11644 fi
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11646 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11647 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
11648 cat >>confdefs.h <<_ACEOF
11649 #define HAVE_LIBDGC 1
11650 _ACEOF
11651
11652 LIBS="-ldgc $LIBS"
11653
11654 fi
11655
11656 fi
11657
11658
11659
11660 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11661 if test "x$ac_cv_header_locale_h" = x""yes; then :
11662
11663 fi
11664
11665
11666 for ac_func in setlocale
11667 do :
11668 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
11669 if test "x$ac_cv_func_setlocale" = x""yes; then :
11670 cat >>confdefs.h <<_ACEOF
11671 #define HAVE_SETLOCALE 1
11672 _ACEOF
11673
11674 fi
11675 done
11676
11677
11678 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11679 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11680 # Irix 4.0.5F has the header but not the library.
11681 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11682 ac_have_func=yes
11683
11684 $as_echo "#define SVR4 1" >>confdefs.h
11685
11686 fi
11687
11688 if test $ac_have_func = no; then
11689 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11690 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
11691 ac_have_func=yes
11692
11693 $as_echo "#define UMAX 1" >>confdefs.h
11694
11695
11696 $as_echo "#define UMAX4_3 1" >>confdefs.h
11697
11698 fi
11699
11700
11701 fi
11702
11703 if test $ac_have_func = no; then
11704 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11705 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
11706 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
11707
11708 fi
11709
11710
11711 fi
11712
11713 if test $ac_have_func = no; then
11714 for ac_header in mach/mach.h
11715 do :
11716 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11717 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
11718 cat >>confdefs.h <<_ACEOF
11719 #define HAVE_MACH_MACH_H 1
11720 _ACEOF
11721
11722 fi
11723
11724 done
11725
11726 fi
11727
11728 for ac_header in nlist.h
11729 do :
11730 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11731 if test "x$ac_cv_header_nlist_h" = x""yes; then :
11732 cat >>confdefs.h <<_ACEOF
11733 #define HAVE_NLIST_H 1
11734 _ACEOF
11735 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11736 "
11737 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
11738
11739 cat >>confdefs.h <<_ACEOF
11740 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11741 _ACEOF
11742
11743
11744 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11745
11746 fi
11747
11748
11749 fi
11750
11751 done
11752
11753 fi
11754 done
11755
11756
11757 # Some definitions of getloadavg require that the program be installed setgid.
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11759 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11760 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11761 $as_echo_n "(cached) " >&6
11762 else
11763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764 /* end confdefs.h. */
11765 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11766 #ifdef LDAV_PRIVILEGED
11767 Yowza Am I SETGID yet
11768 #endif
11769 _ACEOF
11770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11771 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
11772 ac_cv_func_getloadavg_setgid=yes
11773 else
11774 ac_cv_func_getloadavg_setgid=no
11775 fi
11776 rm -f conftest*
11777
11778 fi
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11780 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11781 if test $ac_cv_func_getloadavg_setgid = yes; then
11782 NEED_SETGID=true
11783
11784 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11785
11786 else
11787 NEED_SETGID=false
11788 fi
11789
11790 if test $ac_cv_func_getloadavg_setgid = yes; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11792 $as_echo_n "checking group of /dev/kmem... " >&6; }
11793 if test "${ac_cv_group_kmem+set}" = set; then :
11794 $as_echo_n "(cached) " >&6
11795 else
11796 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11797 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11798 # If we got an error (system does not support symlinks), try without -L.
11799 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11800 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
11801 | sed -ne 's/[ ][ ]*/ /g;
11802 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11803 / /s/.* //;p;'`
11804
11805 fi
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11807 $as_echo "$ac_cv_group_kmem" >&6; }
11808 KMEM_GROUP=$ac_cv_group_kmem
11809 fi
11810 if test "x$ac_save_LIBS" = x; then
11811 GETLOADAVG_LIBS=$LIBS
11812 else
11813 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11814 fi
11815 LIBS=$ac_save_LIBS
11816
11817
11818
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11820 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11821 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 while :; do
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11827 #include <sys/types.h> /* for off_t */
11828 #include <stdio.h>
11829 int
11830 main ()
11831 {
11832 int (*fp) (FILE *, off_t, int) = fseeko;
11833 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11834 ;
11835 return 0;
11836 }
11837 _ACEOF
11838 if ac_fn_c_try_link "$LINENO"; then :
11839 ac_cv_sys_largefile_source=no; break
11840 fi
11841 rm -f core conftest.err conftest.$ac_objext \
11842 conftest$ac_exeext conftest.$ac_ext
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11845 #define _LARGEFILE_SOURCE 1
11846 #include <sys/types.h> /* for off_t */
11847 #include <stdio.h>
11848 int
11849 main ()
11850 {
11851 int (*fp) (FILE *, off_t, int) = fseeko;
11852 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11853 ;
11854 return 0;
11855 }
11856 _ACEOF
11857 if ac_fn_c_try_link "$LINENO"; then :
11858 ac_cv_sys_largefile_source=1; break
11859 fi
11860 rm -f core conftest.err conftest.$ac_objext \
11861 conftest$ac_exeext conftest.$ac_ext
11862 ac_cv_sys_largefile_source=unknown
11863 break
11864 done
11865 fi
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11867 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11868 case $ac_cv_sys_largefile_source in #(
11869 no | unknown) ;;
11870 *)
11871 cat >>confdefs.h <<_ACEOF
11872 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11873 _ACEOF
11874 ;;
11875 esac
11876 rm -rf conftest*
11877
11878 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11879 # in glibc 2.1.3, but that breaks too many other things.
11880 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11881 if test $ac_cv_sys_largefile_source != unknown; then
11882
11883 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11884
11885 fi
11886
11887
11888 # Configure getopt.
11889 # getopt.m4 serial 10
11890
11891 # The getopt module assume you want GNU getopt, with getopt_long etc,
11892 # rather than vanilla POSIX getopt. This means your your code should
11893 # always include <getopt.h> for the getopt prototypes.
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905 # Prerequisites of lib/getopt*.
11906
11907
11908
11909
11910 GETOPT_H=
11911 for ac_header in getopt.h
11912 do :
11913 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11914 if test "x$ac_cv_header_getopt_h" = x""yes; then :
11915 cat >>confdefs.h <<_ACEOF
11916 #define HAVE_GETOPT_H 1
11917 _ACEOF
11918
11919 else
11920 GETOPT_H=getopt.h
11921 fi
11922
11923 done
11924
11925 if test -z "$GETOPT_H"; then
11926 for ac_func in getopt_long_only
11927 do :
11928 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11929 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
11930 cat >>confdefs.h <<_ACEOF
11931 #define HAVE_GETOPT_LONG_ONLY 1
11932 _ACEOF
11933
11934 else
11935 GETOPT_H=getopt.h
11936 fi
11937 done
11938
11939 fi
11940
11941 if test -z "$GETOPT_H"; then
11942 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11943 "
11944 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
11945 GETOPT_H=getopt.h
11946 fi
11947
11948 fi
11949
11950 if test -z "$GETOPT_H"; then
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11952 $as_echo_n "checking for working GNU getopt function... " >&6; }
11953 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
11954 $as_echo_n "(cached) " >&6
11955 else
11956 if test "$cross_compiling" = yes; then :
11957 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11958 "
11959 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
11960 gl_cv_func_gnu_getopt=no
11961 else
11962 gl_cv_func_gnu_getopt=yes
11963 fi
11964
11965 else
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11968 #include <getopt.h>
11969 int
11970 main ()
11971 {
11972
11973 char *myargv[3];
11974 myargv[0] = "conftest";
11975 myargv[1] = "-+";
11976 myargv[2] = 0;
11977 return getopt (2, myargv, "+a") != '?';
11978
11979 ;
11980 return 0;
11981 }
11982 _ACEOF
11983 if ac_fn_c_try_run "$LINENO"; then :
11984 gl_cv_func_gnu_getopt=yes
11985 else
11986 gl_cv_func_gnu_getopt=no
11987 fi
11988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11989 conftest.$ac_objext conftest.beam conftest.$ac_ext
11990 fi
11991
11992 fi
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
11994 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11995 if test "$gl_cv_func_gnu_getopt" = "no"; then
11996 GETOPT_H=getopt.h
11997 fi
11998 fi
11999
12000
12001
12002 if test -n "$GETOPT_H"; then :
12003
12004
12005 GETOPT_H=getopt.h
12006
12007 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12008
12009
12010
12011 :
12012 GETOPTOBJS='getopt.o getopt1.o'
12013
12014 fi
12015
12016
12017
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12019 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12020 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12021 $as_echo_n "(cached) " >&6
12022 else
12023 # Use it with a single arg.
12024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h. */
12026 $ac_includes_default
12027 int
12028 main ()
12029 {
12030 getpgrp (0);
12031 ;
12032 return 0;
12033 }
12034 _ACEOF
12035 if ac_fn_c_try_compile "$LINENO"; then :
12036 ac_cv_func_getpgrp_void=no
12037 else
12038 ac_cv_func_getpgrp_void=yes
12039 fi
12040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041
12042 fi
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12044 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12045 if test $ac_cv_func_getpgrp_void = yes; then
12046
12047 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12048
12049 fi
12050
12051
12052 for ac_func in strftime
12053 do :
12054 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12055 if test "x$ac_cv_func_strftime" = x""yes; then :
12056 cat >>confdefs.h <<_ACEOF
12057 #define HAVE_STRFTIME 1
12058 _ACEOF
12059
12060 else
12061 # strftime is in -lintl on SCO UNIX.
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12063 $as_echo_n "checking for strftime in -lintl... " >&6; }
12064 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12065 $as_echo_n "(cached) " >&6
12066 else
12067 ac_check_lib_save_LIBS=$LIBS
12068 LIBS="-lintl $LIBS"
12069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070 /* end confdefs.h. */
12071
12072 /* Override any GCC internal prototype to avoid an error.
12073 Use char because int might match the return type of a GCC
12074 builtin and then its argument prototype would still apply. */
12075 #ifdef __cplusplus
12076 extern "C"
12077 #endif
12078 char strftime ();
12079 int
12080 main ()
12081 {
12082 return strftime ();
12083 ;
12084 return 0;
12085 }
12086 _ACEOF
12087 if ac_fn_c_try_link "$LINENO"; then :
12088 ac_cv_lib_intl_strftime=yes
12089 else
12090 ac_cv_lib_intl_strftime=no
12091 fi
12092 rm -f core conftest.err conftest.$ac_objext \
12093 conftest$ac_exeext conftest.$ac_ext
12094 LIBS=$ac_check_lib_save_LIBS
12095 fi
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12097 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12098 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12099 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12100
12101 LIBS="-lintl $LIBS"
12102 fi
12103
12104 fi
12105 done
12106
12107
12108 # UNIX98 PTYs.
12109 for ac_func in grantpt
12110 do :
12111 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12112 if test "x$ac_cv_func_grantpt" = x""yes; then :
12113 cat >>confdefs.h <<_ACEOF
12114 #define HAVE_GRANTPT 1
12115 _ACEOF
12116
12117 fi
12118 done
12119
12120
12121 # PTY-related GNU extensions.
12122 for ac_func in getpt
12123 do :
12124 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12125 if test "x$ac_cv_func_getpt" = x""yes; then :
12126 cat >>confdefs.h <<_ACEOF
12127 #define HAVE_GETPT 1
12128 _ACEOF
12129
12130 fi
12131 done
12132
12133
12134 # Check this now, so that we will NOT find the above functions in ncurses.
12135 # That is because we have not set up to link ncurses in lib-src.
12136 # It's better to believe a function is not available
12137 # than to expect to find it in ncurses.
12138 # Also we need tputs and friends to be able to build at all.
12139 have_tputs_et_al=true
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12141 $as_echo_n "checking for library containing tputs... " >&6; }
12142 if test "${ac_cv_search_tputs+set}" = set; then :
12143 $as_echo_n "(cached) " >&6
12144 else
12145 ac_func_search_save_LIBS=$LIBS
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12148
12149 /* Override any GCC internal prototype to avoid an error.
12150 Use char because int might match the return type of a GCC
12151 builtin and then its argument prototype would still apply. */
12152 #ifdef __cplusplus
12153 extern "C"
12154 #endif
12155 char tputs ();
12156 int
12157 main ()
12158 {
12159 return tputs ();
12160 ;
12161 return 0;
12162 }
12163 _ACEOF
12164 for ac_lib in '' ncurses terminfo termcap; do
12165 if test -z "$ac_lib"; then
12166 ac_res="none required"
12167 else
12168 ac_res=-l$ac_lib
12169 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12170 fi
12171 if ac_fn_c_try_link "$LINENO"; then :
12172 ac_cv_search_tputs=$ac_res
12173 fi
12174 rm -f core conftest.err conftest.$ac_objext \
12175 conftest$ac_exeext
12176 if test "${ac_cv_search_tputs+set}" = set; then :
12177 break
12178 fi
12179 done
12180 if test "${ac_cv_search_tputs+set}" = set; then :
12181
12182 else
12183 ac_cv_search_tputs=no
12184 fi
12185 rm conftest.$ac_ext
12186 LIBS=$ac_func_search_save_LIBS
12187 fi
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12189 $as_echo "$ac_cv_search_tputs" >&6; }
12190 ac_res=$ac_cv_search_tputs
12191 if test "$ac_res" != no; then :
12192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12193
12194 else
12195 have_tputs_et_al=false
12196 fi
12197
12198 if test "$have_tputs_et_al" != true; then
12199 as_fn_error "I couldn't find termcap functions (tputs and friends).
12200 Maybe some development libraries/packages are missing? Try installing
12201 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12202 fi
12203 # Must define this when any termcap library is found.
12204
12205 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12206
12207 ## FIXME This was the cpp logic, but I am not sure it is right.
12208 ## The above test has not necessarily found libncurses.
12209 HAVE_LIBNCURSES=yes
12210
12211 ## Use terminfo instead of termcap?
12212 ## Note only system files NOT using terminfo are:
12213 ## bsd-common, freebsd < 40000, ms-w32, msdos, netbsd, and
12214 ## darwin|gnu without ncurses.
12215 TERMINFO=no
12216 LIBS_TERMCAP=
12217 case "$opsys" in
12218 ## cygwin: Fewer environment variables to go wrong, more terminal types.
12219 ## hpux10-20: Use the system provided termcap(3) library.
12220 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
12221 ## is necessary. Otherwise Emacs dumps core when run -nw.
12222 aix4-2|cygwin|hpux*|irix6-5|openbsd|usg5-4|sol2*|unixware) TERMINFO=yes ;;
12223
12224 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
12225 ## The ncurses library has been moved out of the System framework in
12226 ## Mac OS X 10.2. So if configure detects it, set the command-line
12227 ## option to use it.
12228 darwin|gnu*)
12229 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
12230 if test "x$HAVE_LIBNCURSES" = "xyes"; then
12231 TERMINFO=yes
12232 LIBS_TERMCAP="-lncurses"
12233 fi
12234 ;;
12235
12236 freebsd)
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
12238 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
12239 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
12240 $as_echo_n "(cached) " >&6
12241 else
12242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12243 /* end confdefs.h. */
12244 #include <osreldate.h>
12245 int
12246 main ()
12247 {
12248 #if __FreeBSD_version < 400000
12249 fail;
12250 #endif
12251
12252 ;
12253 return 0;
12254 }
12255 _ACEOF
12256 if ac_fn_c_try_link "$LINENO"; then :
12257 emacs_cv_freebsd_terminfo=yes
12258 else
12259 emacs_cv_freebsd_terminfo=no
12260 fi
12261 rm -f core conftest.err conftest.$ac_objext \
12262 conftest$ac_exeext conftest.$ac_ext
12263 fi
12264
12265
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
12267 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
12268
12269 if test $emacs_cv_freebsd_terminfo = yes; then
12270 TERMINFO=yes
12271 LIBS_TERMCAP="-lncurses"
12272 else
12273 LIBS_TERMCAP="-ltermcap"
12274 fi
12275 ;;
12276
12277 esac
12278
12279 case "$opsys" in
12280 ## hpux: Make sure we get select from libc rather than from libcurses
12281 ## because libcurses on HPUX 10.10 has a broken version of select.
12282 ## We used to use -lc -lcurses, but this may be cleaner.
12283 hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;;
12284
12285 openbsd) LIBS_TERMCAP="-lncurses" ;;
12286
12287 ## Must use system termcap, if we use any termcap. It does special things.
12288 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
12289 esac
12290
12291 TERMCAP_OBJ=tparam.o
12292 if test $TERMINFO = yes; then
12293
12294 $as_echo "#define TERMINFO 1" >>confdefs.h
12295
12296
12297 ## Default used to be -ltermcap. Add a case above if need something else.
12298 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
12299
12300 TERMCAP_OBJ=terminfo.o
12301 fi
12302
12303
12304
12305
12306 # Do we have res_init, for detecting changes in /etc/resolv.conf?
12307 resolv=no
12308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h. */
12310 #include <netinet/in.h>
12311 #include <arpa/nameser.h>
12312 #include <resolv.h>
12313 int
12314 main ()
12315 {
12316 return res_init();
12317 ;
12318 return 0;
12319 }
12320 _ACEOF
12321 if ac_fn_c_try_link "$LINENO"; then :
12322 have_res_init=yes
12323 else
12324 have_res_init=no
12325 fi
12326 rm -f core conftest.err conftest.$ac_objext \
12327 conftest$ac_exeext conftest.$ac_ext
12328 if test "$have_res_init" = no; then
12329 OLIBS="$LIBS"
12330 LIBS="$LIBS -lresolv"
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
12332 $as_echo_n "checking for res_init with -lresolv... " >&6; }
12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334 /* end confdefs.h. */
12335 #include <netinet/in.h>
12336 #include <arpa/nameser.h>
12337 #include <resolv.h>
12338 int
12339 main ()
12340 {
12341 return res_init();
12342 ;
12343 return 0;
12344 }
12345 _ACEOF
12346 if ac_fn_c_try_link "$LINENO"; then :
12347 have_res_init=yes
12348 else
12349 have_res_init=no
12350 fi
12351 rm -f core conftest.err conftest.$ac_objext \
12352 conftest$ac_exeext conftest.$ac_ext
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
12354 $as_echo "$have_res_init" >&6; }
12355 if test "$have_res_init" = yes ; then
12356 resolv=yes
12357 fi
12358 LIBS="$OLIBS"
12359 fi
12360
12361 if test "$have_res_init" = yes; then
12362
12363 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
12364
12365 fi
12366
12367 # Do we need the Hesiod library to provide the support routines?
12368 LIBHESIOD=
12369 if test "$with_hesiod" != no ; then
12370 # Don't set $LIBS here -- see comments above. FIXME which comments?
12371 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
12372 if test "x$ac_cv_func_res_send" = x""yes; then :
12373
12374 else
12375 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
12376 if test "x$ac_cv_func___res_send" = x""yes; then :
12377
12378 else
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
12380 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12381 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
12382 $as_echo_n "(cached) " >&6
12383 else
12384 ac_check_lib_save_LIBS=$LIBS
12385 LIBS="-lresolv $LIBS"
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12388
12389 /* Override any GCC internal prototype to avoid an error.
12390 Use char because int might match the return type of a GCC
12391 builtin and then its argument prototype would still apply. */
12392 #ifdef __cplusplus
12393 extern "C"
12394 #endif
12395 char res_send ();
12396 int
12397 main ()
12398 {
12399 return res_send ();
12400 ;
12401 return 0;
12402 }
12403 _ACEOF
12404 if ac_fn_c_try_link "$LINENO"; then :
12405 ac_cv_lib_resolv_res_send=yes
12406 else
12407 ac_cv_lib_resolv_res_send=no
12408 fi
12409 rm -f core conftest.err conftest.$ac_objext \
12410 conftest$ac_exeext conftest.$ac_ext
12411 LIBS=$ac_check_lib_save_LIBS
12412 fi
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12414 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12415 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
12416 resolv=yes
12417 else
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12419 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12420 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12421 $as_echo_n "(cached) " >&6
12422 else
12423 ac_check_lib_save_LIBS=$LIBS
12424 LIBS="-lresolv $LIBS"
12425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h. */
12427
12428 /* Override any GCC internal prototype to avoid an error.
12429 Use char because int might match the return type of a GCC
12430 builtin and then its argument prototype would still apply. */
12431 #ifdef __cplusplus
12432 extern "C"
12433 #endif
12434 char __res_send ();
12435 int
12436 main ()
12437 {
12438 return __res_send ();
12439 ;
12440 return 0;
12441 }
12442 _ACEOF
12443 if ac_fn_c_try_link "$LINENO"; then :
12444 ac_cv_lib_resolv___res_send=yes
12445 else
12446 ac_cv_lib_resolv___res_send=no
12447 fi
12448 rm -f core conftest.err conftest.$ac_objext \
12449 conftest$ac_exeext conftest.$ac_ext
12450 LIBS=$ac_check_lib_save_LIBS
12451 fi
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12453 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12454 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
12455 resolv=yes
12456 fi
12457
12458 fi
12459
12460 fi
12461
12462 fi
12463
12464 if test "$resolv" = yes ; then
12465 RESOLVLIB=-lresolv
12466 else
12467 RESOLVLIB=
12468 fi
12469 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
12470 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
12471
12472 else
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12474 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12475 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12476 $as_echo_n "(cached) " >&6
12477 else
12478 ac_check_lib_save_LIBS=$LIBS
12479 LIBS="-lhesiod $RESOLVLIB $LIBS"
12480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h. */
12482
12483 /* Override any GCC internal prototype to avoid an error.
12484 Use char because int might match the return type of a GCC
12485 builtin and then its argument prototype would still apply. */
12486 #ifdef __cplusplus
12487 extern "C"
12488 #endif
12489 char hes_getmailhost ();
12490 int
12491 main ()
12492 {
12493 return hes_getmailhost ();
12494 ;
12495 return 0;
12496 }
12497 _ACEOF
12498 if ac_fn_c_try_link "$LINENO"; then :
12499 ac_cv_lib_hesiod_hes_getmailhost=yes
12500 else
12501 ac_cv_lib_hesiod_hes_getmailhost=no
12502 fi
12503 rm -f core conftest.err conftest.$ac_objext \
12504 conftest$ac_exeext conftest.$ac_ext
12505 LIBS=$ac_check_lib_save_LIBS
12506 fi
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12508 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12509 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
12510 hesiod=yes
12511 else
12512 :
12513 fi
12514
12515 fi
12516
12517
12518 if test x"$hesiod" = xyes; then
12519
12520 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12521
12522 LIBHESIOD=-lhesiod
12523 fi
12524 fi
12525
12526
12527 # Do we need libresolv (due to res_init or Hesiod)?
12528 if test "$resolv" = yes ; then
12529
12530 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12531
12532 LIBRESOLV=-lresolv
12533 else
12534 LIBRESOLV=
12535 fi
12536
12537
12538 # These tell us which Kerberos-related libraries to use.
12539 COM_ERRLIB=
12540 CRYPTOLIB=
12541 KRB5LIB=
12542 DESLIB=
12543 KRB4LIB=
12544
12545 if test "${with_kerberos}" != no; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12547 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12548 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12549 $as_echo_n "(cached) " >&6
12550 else
12551 ac_check_lib_save_LIBS=$LIBS
12552 LIBS="-lcom_err $LIBS"
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12555
12556 /* Override any GCC internal prototype to avoid an error.
12557 Use char because int might match the return type of a GCC
12558 builtin and then its argument prototype would still apply. */
12559 #ifdef __cplusplus
12560 extern "C"
12561 #endif
12562 char com_err ();
12563 int
12564 main ()
12565 {
12566 return com_err ();
12567 ;
12568 return 0;
12569 }
12570 _ACEOF
12571 if ac_fn_c_try_link "$LINENO"; then :
12572 ac_cv_lib_com_err_com_err=yes
12573 else
12574 ac_cv_lib_com_err_com_err=no
12575 fi
12576 rm -f core conftest.err conftest.$ac_objext \
12577 conftest$ac_exeext conftest.$ac_ext
12578 LIBS=$ac_check_lib_save_LIBS
12579 fi
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12581 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12582 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
12583 have_com_err=yes
12584 else
12585 have_com_err=no
12586 fi
12587
12588 if test $have_com_err = yes; then
12589 COM_ERRLIB=-lcom_err
12590 LIBS="$COM_ERRLIB $LIBS"
12591
12592 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
12593
12594 fi
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12596 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12597 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12598 $as_echo_n "(cached) " >&6
12599 else
12600 ac_check_lib_save_LIBS=$LIBS
12601 LIBS="-lcrypto $LIBS"
12602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h. */
12604
12605 /* Override any GCC internal prototype to avoid an error.
12606 Use char because int might match the return type of a GCC
12607 builtin and then its argument prototype would still apply. */
12608 #ifdef __cplusplus
12609 extern "C"
12610 #endif
12611 char mit_des_cbc_encrypt ();
12612 int
12613 main ()
12614 {
12615 return mit_des_cbc_encrypt ();
12616 ;
12617 return 0;
12618 }
12619 _ACEOF
12620 if ac_fn_c_try_link "$LINENO"; then :
12621 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12622 else
12623 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12624 fi
12625 rm -f core conftest.err conftest.$ac_objext \
12626 conftest$ac_exeext conftest.$ac_ext
12627 LIBS=$ac_check_lib_save_LIBS
12628 fi
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12630 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12631 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
12632 have_crypto=yes
12633 else
12634 have_crypto=no
12635 fi
12636
12637 if test $have_crypto = yes; then
12638 CRYPTOLIB=-lcrypto
12639 LIBS="$CRYPTOLIB $LIBS"
12640
12641 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12642
12643 fi
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12645 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12646 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12647 $as_echo_n "(cached) " >&6
12648 else
12649 ac_check_lib_save_LIBS=$LIBS
12650 LIBS="-lk5crypto $LIBS"
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12653
12654 /* Override any GCC internal prototype to avoid an error.
12655 Use char because int might match the return type of a GCC
12656 builtin and then its argument prototype would still apply. */
12657 #ifdef __cplusplus
12658 extern "C"
12659 #endif
12660 char mit_des_cbc_encrypt ();
12661 int
12662 main ()
12663 {
12664 return mit_des_cbc_encrypt ();
12665 ;
12666 return 0;
12667 }
12668 _ACEOF
12669 if ac_fn_c_try_link "$LINENO"; then :
12670 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12671 else
12672 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12673 fi
12674 rm -f core conftest.err conftest.$ac_objext \
12675 conftest$ac_exeext conftest.$ac_ext
12676 LIBS=$ac_check_lib_save_LIBS
12677 fi
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12679 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12680 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
12681 have_k5crypto=yes
12682 else
12683 have_k5crypto=no
12684 fi
12685
12686 if test $have_k5crypto = yes; then
12687 CRYPTOLIB=-lk5crypto
12688 LIBS="$CRYPTOLIB $LIBS"
12689
12690 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
12691
12692 fi
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12694 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12695 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12696 $as_echo_n "(cached) " >&6
12697 else
12698 ac_check_lib_save_LIBS=$LIBS
12699 LIBS="-lkrb5 $LIBS"
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h. */
12702
12703 /* Override any GCC internal prototype to avoid an error.
12704 Use char because int might match the return type of a GCC
12705 builtin and then its argument prototype would still apply. */
12706 #ifdef __cplusplus
12707 extern "C"
12708 #endif
12709 char krb5_init_context ();
12710 int
12711 main ()
12712 {
12713 return krb5_init_context ();
12714 ;
12715 return 0;
12716 }
12717 _ACEOF
12718 if ac_fn_c_try_link "$LINENO"; then :
12719 ac_cv_lib_krb5_krb5_init_context=yes
12720 else
12721 ac_cv_lib_krb5_krb5_init_context=no
12722 fi
12723 rm -f core conftest.err conftest.$ac_objext \
12724 conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12726 fi
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12728 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12729 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
12730 have_krb5=yes
12731 else
12732 have_krb5=no
12733 fi
12734
12735 if test $have_krb5=yes; then
12736 KRB5LIB=-lkrb5
12737 LIBS="$KRB5LIB $LIBS"
12738
12739 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
12740
12741 fi
12742 if test "${with_kerberos5}" = no; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12744 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12745 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12746 $as_echo_n "(cached) " >&6
12747 else
12748 ac_check_lib_save_LIBS=$LIBS
12749 LIBS="-ldes425 $LIBS"
12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h. */
12752
12753 /* Override any GCC internal prototype to avoid an error.
12754 Use char because int might match the return type of a GCC
12755 builtin and then its argument prototype would still apply. */
12756 #ifdef __cplusplus
12757 extern "C"
12758 #endif
12759 char des_cbc_encrypt ();
12760 int
12761 main ()
12762 {
12763 return des_cbc_encrypt ();
12764 ;
12765 return 0;
12766 }
12767 _ACEOF
12768 if ac_fn_c_try_link "$LINENO"; then :
12769 ac_cv_lib_des425_des_cbc_encrypt=yes
12770 else
12771 ac_cv_lib_des425_des_cbc_encrypt=no
12772 fi
12773 rm -f core conftest.err conftest.$ac_objext \
12774 conftest$ac_exeext conftest.$ac_ext
12775 LIBS=$ac_check_lib_save_LIBS
12776 fi
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12778 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12779 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
12780 have_des425=yes
12781 else
12782 have_des425=no
12783 fi
12784
12785 if test $have_des425 = yes; then
12786 DESLIB=-ldes425
12787 LIBS="$DESLIB $LIBS"
12788
12789 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
12790
12791 else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12793 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12794 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12795 $as_echo_n "(cached) " >&6
12796 else
12797 ac_check_lib_save_LIBS=$LIBS
12798 LIBS="-ldes $LIBS"
12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12801
12802 /* Override any GCC internal prototype to avoid an error.
12803 Use char because int might match the return type of a GCC
12804 builtin and then its argument prototype would still apply. */
12805 #ifdef __cplusplus
12806 extern "C"
12807 #endif
12808 char des_cbc_encrypt ();
12809 int
12810 main ()
12811 {
12812 return des_cbc_encrypt ();
12813 ;
12814 return 0;
12815 }
12816 _ACEOF
12817 if ac_fn_c_try_link "$LINENO"; then :
12818 ac_cv_lib_des_des_cbc_encrypt=yes
12819 else
12820 ac_cv_lib_des_des_cbc_encrypt=no
12821 fi
12822 rm -f core conftest.err conftest.$ac_objext \
12823 conftest$ac_exeext conftest.$ac_ext
12824 LIBS=$ac_check_lib_save_LIBS
12825 fi
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12827 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12828 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
12829 have_des=yes
12830 else
12831 have_des=no
12832 fi
12833
12834 if test $have_des = yes; then
12835 DESLIB=-ldes
12836 LIBS="$DESLIB $LIBS"
12837
12838 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
12839
12840 fi
12841 fi
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12843 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12844 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12845 $as_echo_n "(cached) " >&6
12846 else
12847 ac_check_lib_save_LIBS=$LIBS
12848 LIBS="-lkrb4 $LIBS"
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12851
12852 /* Override any GCC internal prototype to avoid an error.
12853 Use char because int might match the return type of a GCC
12854 builtin and then its argument prototype would still apply. */
12855 #ifdef __cplusplus
12856 extern "C"
12857 #endif
12858 char krb_get_cred ();
12859 int
12860 main ()
12861 {
12862 return krb_get_cred ();
12863 ;
12864 return 0;
12865 }
12866 _ACEOF
12867 if ac_fn_c_try_link "$LINENO"; then :
12868 ac_cv_lib_krb4_krb_get_cred=yes
12869 else
12870 ac_cv_lib_krb4_krb_get_cred=no
12871 fi
12872 rm -f core conftest.err conftest.$ac_objext \
12873 conftest$ac_exeext conftest.$ac_ext
12874 LIBS=$ac_check_lib_save_LIBS
12875 fi
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12877 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12878 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
12879 have_krb4=yes
12880 else
12881 have_krb4=no
12882 fi
12883
12884 if test $have_krb4 = yes; then
12885 KRB4LIB=-lkrb4
12886 LIBS="$KRB4LIB $LIBS"
12887
12888 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
12889
12890 else
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12892 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12893 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
12894 $as_echo_n "(cached) " >&6
12895 else
12896 ac_check_lib_save_LIBS=$LIBS
12897 LIBS="-lkrb $LIBS"
12898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h. */
12900
12901 /* Override any GCC internal prototype to avoid an error.
12902 Use char because int might match the return type of a GCC
12903 builtin and then its argument prototype would still apply. */
12904 #ifdef __cplusplus
12905 extern "C"
12906 #endif
12907 char krb_get_cred ();
12908 int
12909 main ()
12910 {
12911 return krb_get_cred ();
12912 ;
12913 return 0;
12914 }
12915 _ACEOF
12916 if ac_fn_c_try_link "$LINENO"; then :
12917 ac_cv_lib_krb_krb_get_cred=yes
12918 else
12919 ac_cv_lib_krb_krb_get_cred=no
12920 fi
12921 rm -f core conftest.err conftest.$ac_objext \
12922 conftest$ac_exeext conftest.$ac_ext
12923 LIBS=$ac_check_lib_save_LIBS
12924 fi
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
12926 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12927 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
12928 have_krb=yes
12929 else
12930 have_krb=no
12931 fi
12932
12933 if test $have_krb = yes; then
12934 KRB4LIB=-lkrb
12935 LIBS="$KRB4LIB $LIBS"
12936
12937 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
12938
12939 fi
12940 fi
12941 fi
12942
12943 if test "${with_kerberos5}" != no; then
12944 for ac_header in krb5.h
12945 do :
12946 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
12947 if test "x$ac_cv_header_krb5_h" = x""yes; then :
12948 cat >>confdefs.h <<_ACEOF
12949 #define HAVE_KRB5_H 1
12950 _ACEOF
12951 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
12952 "
12953 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
12954
12955 cat >>confdefs.h <<_ACEOF
12956 #define HAVE_KRB5_ERROR_TEXT 1
12957 _ACEOF
12958
12959
12960 fi
12961 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
12962 "
12963 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
12964
12965 cat >>confdefs.h <<_ACEOF
12966 #define HAVE_KRB5_ERROR_E_TEXT 1
12967 _ACEOF
12968
12969
12970 fi
12971
12972 fi
12973
12974 done
12975
12976 else
12977 for ac_header in des.h
12978 do :
12979 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
12980 if test "x$ac_cv_header_des_h" = x""yes; then :
12981 cat >>confdefs.h <<_ACEOF
12982 #define HAVE_DES_H 1
12983 _ACEOF
12984
12985 else
12986 for ac_header in kerberosIV/des.h
12987 do :
12988 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
12989 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
12990 cat >>confdefs.h <<_ACEOF
12991 #define HAVE_KERBEROSIV_DES_H 1
12992 _ACEOF
12993
12994 else
12995 for ac_header in kerberos/des.h
12996 do :
12997 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
12998 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
12999 cat >>confdefs.h <<_ACEOF
13000 #define HAVE_KERBEROS_DES_H 1
13001 _ACEOF
13002
13003 fi
13004
13005 done
13006
13007 fi
13008
13009 done
13010
13011 fi
13012
13013 done
13014
13015 for ac_header in krb.h
13016 do :
13017 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13018 if test "x$ac_cv_header_krb_h" = x""yes; then :
13019 cat >>confdefs.h <<_ACEOF
13020 #define HAVE_KRB_H 1
13021 _ACEOF
13022
13023 else
13024 for ac_header in kerberosIV/krb.h
13025 do :
13026 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13027 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13028 cat >>confdefs.h <<_ACEOF
13029 #define HAVE_KERBEROSIV_KRB_H 1
13030 _ACEOF
13031
13032 else
13033 for ac_header in kerberos/krb.h
13034 do :
13035 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13036 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13037 cat >>confdefs.h <<_ACEOF
13038 #define HAVE_KERBEROS_KRB_H 1
13039 _ACEOF
13040
13041 fi
13042
13043 done
13044
13045 fi
13046
13047 done
13048
13049 fi
13050
13051 done
13052
13053 fi
13054 for ac_header in com_err.h
13055 do :
13056 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13057 if test "x$ac_cv_header_com_err_h" = x""yes; then :
13058 cat >>confdefs.h <<_ACEOF
13059 #define HAVE_COM_ERR_H 1
13060 _ACEOF
13061
13062 fi
13063
13064 done
13065
13066 fi
13067
13068
13069
13070
13071
13072
13073
13074 # Solaris requires -lintl if you want strerror (which calls dgettext)
13075 # to return localized messages.
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13077 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13078 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13079 $as_echo_n "(cached) " >&6
13080 else
13081 ac_check_lib_save_LIBS=$LIBS
13082 LIBS="-lintl $LIBS"
13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h. */
13085
13086 /* Override any GCC internal prototype to avoid an error.
13087 Use char because int might match the return type of a GCC
13088 builtin and then its argument prototype would still apply. */
13089 #ifdef __cplusplus
13090 extern "C"
13091 #endif
13092 char dgettext ();
13093 int
13094 main ()
13095 {
13096 return dgettext ();
13097 ;
13098 return 0;
13099 }
13100 _ACEOF
13101 if ac_fn_c_try_link "$LINENO"; then :
13102 ac_cv_lib_intl_dgettext=yes
13103 else
13104 ac_cv_lib_intl_dgettext=no
13105 fi
13106 rm -f core conftest.err conftest.$ac_objext \
13107 conftest$ac_exeext conftest.$ac_ext
13108 LIBS=$ac_check_lib_save_LIBS
13109 fi
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13111 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13112 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13113 cat >>confdefs.h <<_ACEOF
13114 #define HAVE_LIBINTL 1
13115 _ACEOF
13116
13117 LIBS="-lintl $LIBS"
13118
13119 fi
13120
13121
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13123 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13124 if test "${emacs_cv_localtime_cache+set}" = set; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13127 if test x$ac_cv_func_tzset = xyes; then
13128 if test "$cross_compiling" = yes; then :
13129 # If we have tzset, assume the worst when cross-compiling.
13130 emacs_cv_localtime_cache=yes
13131 else
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13134 #include <time.h>
13135 extern char **environ;
13136 unset_TZ ()
13137 {
13138 char **from, **to;
13139 for (to = from = environ; (*to = *from); from++)
13140 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13141 to++;
13142 }
13143 char TZ_GMT0[] = "TZ=GMT0";
13144 char TZ_PST8[] = "TZ=PST8";
13145 main()
13146 {
13147 time_t now = time ((time_t *) 0);
13148 int hour_GMT0, hour_unset;
13149 if (putenv (TZ_GMT0) != 0)
13150 exit (1);
13151 hour_GMT0 = localtime (&now)->tm_hour;
13152 unset_TZ ();
13153 hour_unset = localtime (&now)->tm_hour;
13154 if (putenv (TZ_PST8) != 0)
13155 exit (1);
13156 if (localtime (&now)->tm_hour == hour_GMT0)
13157 exit (1);
13158 unset_TZ ();
13159 if (localtime (&now)->tm_hour != hour_unset)
13160 exit (1);
13161 exit (0);
13162 }
13163 _ACEOF
13164 if ac_fn_c_try_run "$LINENO"; then :
13165 emacs_cv_localtime_cache=no
13166 else
13167 emacs_cv_localtime_cache=yes
13168 fi
13169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13170 conftest.$ac_objext conftest.beam conftest.$ac_ext
13171 fi
13172
13173 else
13174 # If we lack tzset, report that localtime does not cache TZ,
13175 # since we can't invalidate the cache if we don't have tzset.
13176 emacs_cv_localtime_cache=no
13177 fi
13178 fi
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13180 $as_echo "$emacs_cv_localtime_cache" >&6; }
13181 if test $emacs_cv_localtime_cache = yes; then
13182
13183 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13184
13185 fi
13186
13187 if test "x$HAVE_TIMEVAL" = xyes; then
13188 for ac_func in gettimeofday
13189 do :
13190 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13191 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
13192 cat >>confdefs.h <<_ACEOF
13193 #define HAVE_GETTIMEOFDAY 1
13194 _ACEOF
13195
13196 fi
13197 done
13198
13199 if test $ac_cv_func_gettimeofday = yes; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
13201 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13202 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
13203 $as_echo_n "(cached) " >&6
13204 else
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13207
13208 #ifdef TIME_WITH_SYS_TIME
13209 #include <sys/time.h>
13210 #include <time.h>
13211 #else
13212 #ifdef HAVE_SYS_TIME_H
13213 #include <sys/time.h>
13214 #else
13215 #include <time.h>
13216 #endif
13217 #endif
13218 int
13219 main ()
13220 {
13221 struct timeval time;
13222 gettimeofday (&time, 0);
13223 ;
13224 return 0;
13225 }
13226 _ACEOF
13227 if ac_fn_c_try_compile "$LINENO"; then :
13228 emacs_cv_gettimeofday_two_arguments=yes
13229 else
13230 emacs_cv_gettimeofday_two_arguments=no
13231 fi
13232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13233 fi
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
13235 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13236 if test $emacs_cv_gettimeofday_two_arguments = no; then
13237
13238 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
13239
13240 fi
13241 fi
13242 fi
13243
13244 ok_so_far=yes
13245 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13246 if test "x$ac_cv_func_socket" = x""yes; then :
13247
13248 else
13249 ok_so_far=no
13250 fi
13251
13252 if test $ok_so_far = yes; then
13253 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13254 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
13255
13256 else
13257 ok_so_far=no
13258 fi
13259
13260
13261 fi
13262 if test $ok_so_far = yes; then
13263 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13264 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
13265
13266 else
13267 ok_so_far=no
13268 fi
13269
13270
13271 fi
13272 if test $ok_so_far = yes; then
13273
13274 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
13275
13276 fi
13277
13278 for ac_header in sys/ioctl.h
13279 do :
13280 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13281 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
13282 cat >>confdefs.h <<_ACEOF
13283 #define HAVE_SYS_IOCTL_H 1
13284 _ACEOF
13285
13286 fi
13287
13288 done
13289
13290
13291 if test -f /usr/lpp/X11/bin/smt.exp; then
13292
13293 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
13294
13295 fi
13296
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
13298 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
13299 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13301 $as_echo "yes" >&6; }
13302
13303 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
13304
13305 else
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307 $as_echo "no" >&6; }
13308 fi
13309
13310 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13311 if test "x$ac_cv_type_pid_t" = x""yes; then :
13312
13313 else
13314
13315 cat >>confdefs.h <<_ACEOF
13316 #define pid_t int
13317 _ACEOF
13318
13319 fi
13320
13321 for ac_header in vfork.h
13322 do :
13323 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13324 if test "x$ac_cv_header_vfork_h" = x""yes; then :
13325 cat >>confdefs.h <<_ACEOF
13326 #define HAVE_VFORK_H 1
13327 _ACEOF
13328
13329 fi
13330
13331 done
13332
13333 for ac_func in fork vfork
13334 do :
13335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13336 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13337 eval as_val=\$$as_ac_var
13338 if test "x$as_val" = x""yes; then :
13339 cat >>confdefs.h <<_ACEOF
13340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13341 _ACEOF
13342
13343 fi
13344 done
13345
13346 if test "x$ac_cv_func_fork" = xyes; then
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13348 $as_echo_n "checking for working fork... " >&6; }
13349 if test "${ac_cv_func_fork_works+set}" = set; then :
13350 $as_echo_n "(cached) " >&6
13351 else
13352 if test "$cross_compiling" = yes; then :
13353 ac_cv_func_fork_works=cross
13354 else
13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h. */
13357 $ac_includes_default
13358 int
13359 main ()
13360 {
13361
13362 /* By Ruediger Kuhlmann. */
13363 return fork () < 0;
13364
13365 ;
13366 return 0;
13367 }
13368 _ACEOF
13369 if ac_fn_c_try_run "$LINENO"; then :
13370 ac_cv_func_fork_works=yes
13371 else
13372 ac_cv_func_fork_works=no
13373 fi
13374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13375 conftest.$ac_objext conftest.beam conftest.$ac_ext
13376 fi
13377
13378 fi
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13380 $as_echo "$ac_cv_func_fork_works" >&6; }
13381
13382 else
13383 ac_cv_func_fork_works=$ac_cv_func_fork
13384 fi
13385 if test "x$ac_cv_func_fork_works" = xcross; then
13386 case $host in
13387 *-*-amigaos* | *-*-msdosdjgpp*)
13388 # Override, as these systems have only a dummy fork() stub
13389 ac_cv_func_fork_works=no
13390 ;;
13391 *)
13392 ac_cv_func_fork_works=yes
13393 ;;
13394 esac
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13396 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13397 fi
13398 ac_cv_func_vfork_works=$ac_cv_func_vfork
13399 if test "x$ac_cv_func_vfork" = xyes; then
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13401 $as_echo_n "checking for working vfork... " >&6; }
13402 if test "${ac_cv_func_vfork_works+set}" = set; then :
13403 $as_echo_n "(cached) " >&6
13404 else
13405 if test "$cross_compiling" = yes; then :
13406 ac_cv_func_vfork_works=cross
13407 else
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13410 /* Thanks to Paul Eggert for this test. */
13411 $ac_includes_default
13412 #include <sys/wait.h>
13413 #ifdef HAVE_VFORK_H
13414 # include <vfork.h>
13415 #endif
13416 /* On some sparc systems, changes by the child to local and incoming
13417 argument registers are propagated back to the parent. The compiler
13418 is told about this with #include <vfork.h>, but some compilers
13419 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13420 static variable whose address is put into a register that is
13421 clobbered by the vfork. */
13422 static void
13423 #ifdef __cplusplus
13424 sparc_address_test (int arg)
13425 # else
13426 sparc_address_test (arg) int arg;
13427 #endif
13428 {
13429 static pid_t child;
13430 if (!child) {
13431 child = vfork ();
13432 if (child < 0) {
13433 perror ("vfork");
13434 _exit(2);
13435 }
13436 if (!child) {
13437 arg = getpid();
13438 write(-1, "", 0);
13439 _exit (arg);
13440 }
13441 }
13442 }
13443
13444 int
13445 main ()
13446 {
13447 pid_t parent = getpid ();
13448 pid_t child;
13449
13450 sparc_address_test (0);
13451
13452 child = vfork ();
13453
13454 if (child == 0) {
13455 /* Here is another test for sparc vfork register problems. This
13456 test uses lots of local variables, at least as many local
13457 variables as main has allocated so far including compiler
13458 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13459 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13460 reuse the register of parent for one of the local variables,
13461 since it will think that parent can't possibly be used any more
13462 in this routine. Assigning to the local variable will thus
13463 munge parent in the parent process. */
13464 pid_t
13465 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13466 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13467 /* Convince the compiler that p..p7 are live; otherwise, it might
13468 use the same hardware register for all 8 local variables. */
13469 if (p != p1 || p != p2 || p != p3 || p != p4
13470 || p != p5 || p != p6 || p != p7)
13471 _exit(1);
13472
13473 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13474 from child file descriptors. If the child closes a descriptor
13475 before it execs or exits, this munges the parent's descriptor
13476 as well. Test for this by closing stdout in the child. */
13477 _exit(close(fileno(stdout)) != 0);
13478 } else {
13479 int status;
13480 struct stat st;
13481
13482 while (wait(&status) != child)
13483 ;
13484 return (
13485 /* Was there some problem with vforking? */
13486 child < 0
13487
13488 /* Did the child fail? (This shouldn't happen.) */
13489 || status
13490
13491 /* Did the vfork/compiler bug occur? */
13492 || parent != getpid()
13493
13494 /* Did the file descriptor bug occur? */
13495 || fstat(fileno(stdout), &st) != 0
13496 );
13497 }
13498 }
13499 _ACEOF
13500 if ac_fn_c_try_run "$LINENO"; then :
13501 ac_cv_func_vfork_works=yes
13502 else
13503 ac_cv_func_vfork_works=no
13504 fi
13505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13506 conftest.$ac_objext conftest.beam conftest.$ac_ext
13507 fi
13508
13509 fi
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13511 $as_echo "$ac_cv_func_vfork_works" >&6; }
13512
13513 fi;
13514 if test "x$ac_cv_func_fork_works" = xcross; then
13515 ac_cv_func_vfork_works=$ac_cv_func_vfork
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13517 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13518 fi
13519
13520 if test "x$ac_cv_func_vfork_works" = xyes; then
13521
13522 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13523
13524 else
13525
13526 $as_echo "#define vfork fork" >>confdefs.h
13527
13528 fi
13529 if test "x$ac_cv_func_fork_works" = xyes; then
13530
13531 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13532
13533 fi
13534
13535
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13537 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13538 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13539 $as_echo_n "(cached) " >&6
13540 else
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13543 #include <langinfo.h>
13544 int
13545 main ()
13546 {
13547 char* cs = nl_langinfo(CODESET);
13548 ;
13549 return 0;
13550 }
13551 _ACEOF
13552 if ac_fn_c_try_link "$LINENO"; then :
13553 emacs_cv_langinfo_codeset=yes
13554 else
13555 emacs_cv_langinfo_codeset=no
13556 fi
13557 rm -f core conftest.err conftest.$ac_objext \
13558 conftest$ac_exeext conftest.$ac_ext
13559
13560 fi
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13562 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13563 if test $emacs_cv_langinfo_codeset = yes; then
13564
13565 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13566
13567 fi
13568
13569 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13570 if test "x$ac_cv_type_size_t" = x""yes; then :
13571
13572 cat >>confdefs.h <<_ACEOF
13573 #define HAVE_SIZE_T 1
13574 _ACEOF
13575
13576
13577 fi
13578
13579
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13581 $as_echo_n "checking for mbstate_t... " >&6; }
13582 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13583 $as_echo_n "(cached) " >&6
13584 else
13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13586 /* end confdefs.h. */
13587 $ac_includes_default
13588 # include <wchar.h>
13589 int
13590 main ()
13591 {
13592 mbstate_t x; return sizeof x;
13593 ;
13594 return 0;
13595 }
13596 _ACEOF
13597 if ac_fn_c_try_compile "$LINENO"; then :
13598 ac_cv_type_mbstate_t=yes
13599 else
13600 ac_cv_type_mbstate_t=no
13601 fi
13602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603 fi
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13605 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13606 if test $ac_cv_type_mbstate_t = yes; then
13607
13608 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13609
13610 else
13611
13612 $as_echo "#define mbstate_t int" >>confdefs.h
13613
13614 fi
13615
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13617 $as_echo_n "checking for C restrict keyword... " >&6; }
13618 if test "${emacs_cv_c_restrict+set}" = set; then :
13619 $as_echo_n "(cached) " >&6
13620 else
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13623 void fred (int *restrict x);
13624 int
13625 main ()
13626 {
13627
13628 ;
13629 return 0;
13630 }
13631 _ACEOF
13632 if ac_fn_c_try_compile "$LINENO"; then :
13633 emacs_cv_c_restrict=yes
13634 else
13635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h. */
13637 void fred (int *__restrict x);
13638 int
13639 main ()
13640 {
13641
13642 ;
13643 return 0;
13644 }
13645 _ACEOF
13646 if ac_fn_c_try_compile "$LINENO"; then :
13647 emacs_cv_c_restrict=__restrict
13648 else
13649 emacs_cv_c_restrict=no
13650 fi
13651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13652 fi
13653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654 fi
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13656 $as_echo "$emacs_cv_c_restrict" >&6; }
13657 case "$emacs_cv_c_restrict" in
13658 yes) emacs_restrict=restrict;;
13659 no) emacs_restrict="";;
13660 *) emacs_restrict="$emacs_cv_c_restrict";;
13661 esac
13662 if test "$emacs_restrict" != __restrict; then
13663
13664 cat >>confdefs.h <<_ACEOF
13665 #define __restrict $emacs_restrict
13666 _ACEOF
13667
13668 fi
13669
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13671 $as_echo_n "checking for C restricted array declarations... " >&6; }
13672 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13673 $as_echo_n "(cached) " >&6
13674 else
13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13677 void fred (int x[__restrict]);
13678 int
13679 main ()
13680 {
13681
13682 ;
13683 return 0;
13684 }
13685 _ACEOF
13686 if ac_fn_c_try_compile "$LINENO"; then :
13687 emacs_cv_c_restrict_arr=yes
13688 else
13689 emacs_cv_c_restrict_arr=no
13690 fi
13691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13692 fi
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13694 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13695 if test "$emacs_cv_c_restrict_arr" = yes; then
13696
13697 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13698
13699 fi
13700
13701
13702
13703 # Set up the CFLAGS for real compilation, so we can substitute it.
13704 CFLAGS="$REAL_CFLAGS"
13705 CPPFLAGS="$REAL_CPPFLAGS"
13706
13707 ## Hack to detect a buggy GCC version.
13708 if test "x$GCC" = xyes \
13709 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13710 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
13711 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
13712 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
13713 fi
13714
13715 #### Find out which version of Emacs this is.
13716 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
13717 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13718 if test x"${version}" = x; then
13719 as_fn_error "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
13720 fi
13721 if test x"${version}" != x"$PACKAGE_VERSION"; then
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
13723 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
13724 fi
13725
13726 ### Specify what sort of things we'll be editing into Makefile and config.h.
13727 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13728
13729
13730 ## Unused?
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
13753 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
13754 ## end of LIBX_BASE, but nothing ever set it.
13755
13756
13757
13758
13759 ## Used in lwlib/Makefile.in.
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774 cat >>confdefs.h <<_ACEOF
13775 #define EMACS_CONFIGURATION "${canonical}"
13776 _ACEOF
13777
13778
13779 cat >>confdefs.h <<_ACEOF
13780 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13781 _ACEOF
13782
13783
13784 cat >>confdefs.h <<_ACEOF
13785 #define config_machfile "${machfile}"
13786 _ACEOF
13787
13788
13789 cat >>confdefs.h <<_ACEOF
13790 #define config_opsysfile "${opsysfile}"
13791 _ACEOF
13792
13793
13794 XMENU_OBJ=
13795 XOBJ=
13796 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13797
13798 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13799
13800 XMENU_OBJ=xmenu.o
13801 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
13802 fi
13803
13804
13805
13806 WIDGET_OBJ=
13807 MOTIF_LIBW=
13808 if test "${USE_X_TOOLKIT}" != "none" ; then
13809 WIDGET_OBJ=widget.o
13810
13811 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13812
13813 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13814
13815 $as_echo "#define USE_LUCID 1" >>confdefs.h
13816
13817 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13818
13819 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13820
13821 MOTIF_LIBW=-lXm
13822 case "$opsys" in
13823 gnu-linux)
13824 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
13825 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
13826 ;;
13827
13828 unixware)
13829 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
13830 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
13831 MOTIF_LIBW="MOTIF_LIBW -lXimp"
13832 ;;
13833
13834 aix4-2)
13835 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
13836 MOTIF_LIBW="$MOTIF_LIBW -li18n"
13837 ;;
13838 esac
13839 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
13840 fi
13841 fi
13842
13843
13844 TOOLKIT_LIBW=
13845 case "$USE_X_TOOLKIT" in
13846 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
13847 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
13848 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
13849 esac
13850
13851
13852 if test "$USE_X_TOOLKIT" = "none"; then
13853 LIBXT_OTHER="\$(LIBXSM)"
13854 OLDXMENU_TARGET="really-oldXMenu"
13855 else
13856 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
13857 OLDXMENU_TARGET="really-lwlib"
13858 fi
13859
13860
13861
13862 ## The X Menu stuff is present in the X10 distribution, but missing
13863 ## from X11. If we have X10, just use the installed library;
13864 ## otherwise, use our own copy.
13865 if test "${HAVE_X11}" = "yes" ; then
13866
13867 $as_echo "#define HAVE_X11 1" >>confdefs.h
13868
13869
13870 if test "$USE_X_TOOLKIT" = "none"; then
13871 OLDXMENU="\${oldXMenudir}libXMenu11.a"
13872 else
13873 OLDXMENU="\${lwlibdir}liblw.a"
13874 fi
13875 LIBXMENU="\$(OLDXMENU)"
13876 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
13877 else
13878 OLDXMENU=
13879 LIBXMENU="-lXMenu"
13880 LIBX_OTHER=
13881 fi
13882
13883 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
13884 OLDXMENU=
13885 LIBXMENU=
13886 fi
13887
13888
13889
13890
13891
13892 if test "${HAVE_MENUS}" = "yes" ; then
13893
13894 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
13895
13896 fi
13897 if test "${GNU_MALLOC}" = "yes" ; then
13898
13899 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
13900
13901 fi
13902 if test "${REL_ALLOC}" = "yes" ; then
13903
13904 $as_echo "#define REL_ALLOC 1" >>confdefs.h
13905
13906 fi
13907
13908
13909 if test "$opsys" = "cygwin"; then
13910 CYGWIN_OBJ="sheap.o"
13911 ## Cygwin differs because of its unexec().
13912 PRE_ALLOC_OBJ=
13913 POST_ALLOC_OBJ="lastfile.o vm-limit.o"
13914 else
13915 CYGWIN_OBJ=
13916 PRE_ALLOC_OBJ=lastfile.o
13917 POST_ALLOC_OBJ="\$(vmlimitobj)"
13918 fi
13919
13920
13921
13922
13923
13924 case "$opsys" in
13925 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
13926
13927 darwin)
13928 ## The -headerpad option tells ld (see man page) to leave room at the
13929 ## end of the header for adding load commands. Needed for dumping.
13930 ## 0x690 is the total size of 30 segment load commands (at 56
13931 ## each); under Cocoa 31 commands are required.
13932 if test "$HAVE_NS" = "yes"; then
13933 libs_nsgui="-framework AppKit"
13934 headerpad_extra=6C8
13935 else
13936 libs_nsgui=
13937 headerpad_extra=690
13938 fi
13939 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
13940 ;;
13941
13942 *) LD_SWITCH_SYSTEM_TEMACS= ;;
13943 esac
13944
13945
13946
13947 ## This exists because src/Makefile.in did some extra fiddling around
13948 ## with LD_SWITCH_SYSTEM. The cpp logic was:
13949 ## #ifndef LD_SWITCH_SYSTEM
13950 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
13951 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
13952 ## not using gcc, darwin system not on an alpha (ie darwin, since
13953 ## darwin + alpha does not occur).
13954 ## Note that unlike L_S_S, this is not used in ac_link.
13955 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
13956 test "$opsys" = "darwin"; then
13957 LD_SWITCH_SYSTEM_EXTRA="-X"
13958 else
13959 LD_SWITCH_SYSTEM_EXTRA=
13960 fi
13961
13962
13963
13964 LIB_GCC=
13965 if test "x$GCC" = "xyes"; then
13966
13967 case "$opsys" in
13968 ## cygwin: don't link against static libgcc.
13969 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;;
13970
13971 gnu-*)
13972 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
13973 ## build on ARM EABI under GNU/Linux. (Bug#5518)
13974 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
13975 if test "$machine" = "arm"; then
13976 LIB_GCC="-lgcc_s"
13977 else
13978 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
13979 ## immediately undefine it again and redefine it to empty.
13980 ## Was the C_SWITCH_X_SITE part really necessary?
13981 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
13982 LIB_GCC=
13983 fi
13984 ;;
13985
13986 ## Ask GCC where to find libgcc.a.
13987 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
13988 esac
13989 fi
13990
13991
13992 TOOLTIP_SUPPORT=
13993 WINDOW_SUPPORT=
13994 ## If we're using X11/GNUstep, define some consequences.
13995 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
13996
13997 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
13998
13999
14000 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14001
14002 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14003 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
14004
14005 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14006 test "$HAVE_X_WINDOWS" = "yes" && \
14007 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14008
14009 fi
14010
14011
14012
14013
14014
14015
14016
14017 #### Report on what we decided to do.
14018 #### Report GTK as a toolkit, even if it doesn't use Xt.
14019 #### It makes printing result more understandable as using GTK sets
14020 #### toolkit_scroll_bars to yes by default.
14021 if test "${HAVE_GTK}" = "yes"; then
14022 USE_X_TOOLKIT=GTK
14023 fi
14024
14025 echo "
14026 Configured for \`${canonical}'.
14027
14028 Where should the build process find the source code? ${srcdir}
14029 What operating system and machine description files should Emacs use?
14030 \`${opsysfile}' and \`${machfile}'
14031 What compiler should emacs be built with? ${CC} ${CFLAGS}
14032 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14033 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14034 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14035 What window system should Emacs use? ${window_system}
14036 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14037
14038 if test -n "${x_includes}"; then
14039 echo " Where do we find X Windows header files? ${x_includes}"
14040 else
14041 echo " Where do we find X Windows header files? Standard dirs"
14042 fi
14043 if test -n "${x_libraries}"; then
14044 echo " Where do we find X Windows libraries? ${x_libraries}"
14045 else
14046 echo " Where do we find X Windows libraries? Standard dirs"
14047 fi
14048
14049 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14050 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14051 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14052 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14053 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14054 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14055 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14056 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14057 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14058 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14059 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14060
14061 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14062 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14063 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14064 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14065
14066 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14067 echo
14068
14069 if test $USE_XASSERTS = yes; then
14070 echo " Compiling with asserts turned on."
14071 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14072 fi
14073
14074 echo
14075
14076 if test "$HAVE_NS" = "yes"; then
14077 echo
14078 echo "You must run \"make install\" in order to test the built application.
14079 The installed application will go to nextstep/Emacs.app and can be
14080 run or moved from there."
14081 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14082 echo "The application will be fully self-contained."
14083 else
14084 echo "The lisp resources for the application will be installed under ${prefix}.
14085 You may need to run \"make install\" with sudo. The application will fail
14086 to run if these resources are not installed."
14087 fi
14088 echo
14089 fi
14090
14091 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
14092 echo "D-Bus integration has been tested for GNU/Linux only."
14093 echo
14094 fi
14095
14096
14097 # Remove any trailing slashes in these variables.
14098 test "${prefix}" != NONE &&
14099 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14100 test "${exec_prefix}" != NONE &&
14101 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14102
14103 # Now get this: Some word that is part of the ${srcdir} directory name
14104 # or the ${configuration} value might, just might, happen to be an
14105 # identifier like `sun4' or `i386' or something, and be predefined by
14106 # the C preprocessor to some helpful value like 1, or maybe the empty
14107 # string. Needless to say consequent macro substitutions are less
14108 # than conducive to the makefile finding the correct directory.
14109 # src/Makefile.in used to treat X11 as equivalent to HAVE_X11.
14110 # But nothing in Emacs defines X11, and everywhere else uses HAVE_X11,
14111 # so that cannot have been doing anything.
14112 cpp_undefs="`echo $srcdir $configuration $canonical unix mktime register X11 |
14113 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
14114 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
14115
14116 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
14117 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
14118 ## from Makefile.c can correctly provide the arg `-traditional' to the
14119 ## C preprocessor.
14120
14121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122 /* end confdefs.h. */
14123 yes..yes
14124 _ACEOF
14125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14126 $EGREP "yes..yes" >/dev/null 2>&1; then :
14127 CPP_NEED_TRADITIONAL=no
14128 else
14129 CPP_NEED_TRADITIONAL=yes
14130 fi
14131 rm -f conftest*
14132
14133
14134 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.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
14135
14136 ac_config_commands="$ac_config_commands default"
14137
14138 cat >confcache <<\_ACEOF
14139 # This file is a shell script that caches the results of configure
14140 # tests run on this system so they can be shared between configure
14141 # scripts and configure runs, see configure's option --config-cache.
14142 # It is not useful on other systems. If it contains results you don't
14143 # want to keep, you may remove or edit it.
14144 #
14145 # config.status only pays attention to the cache file if you give it
14146 # the --recheck option to rerun configure.
14147 #
14148 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14149 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14150 # following values.
14151
14152 _ACEOF
14153
14154 # The following way of writing the cache mishandles newlines in values,
14155 # but we know of no workaround that is simple, portable, and efficient.
14156 # So, we kill variables containing newlines.
14157 # Ultrix sh set writes to stderr and can't be redirected directly,
14158 # and sets the high bit in the cache file unless we assign to the vars.
14159 (
14160 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14161 eval ac_val=\$$ac_var
14162 case $ac_val in #(
14163 *${as_nl}*)
14164 case $ac_var in #(
14165 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14166 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14167 esac
14168 case $ac_var in #(
14169 _ | IFS | as_nl) ;; #(
14170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14171 *) { eval $ac_var=; unset $ac_var;} ;;
14172 esac ;;
14173 esac
14174 done
14175
14176 (set) 2>&1 |
14177 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14178 *${as_nl}ac_space=\ *)
14179 # `set' does not quote correctly, so add quotes: double-quote
14180 # substitution turns \\\\ into \\, and sed turns \\ into \.
14181 sed -n \
14182 "s/'/'\\\\''/g;
14183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14184 ;; #(
14185 *)
14186 # `set' quotes correctly as required by POSIX, so do not add quotes.
14187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14188 ;;
14189 esac |
14190 sort
14191 ) |
14192 sed '
14193 /^ac_cv_env_/b end
14194 t clear
14195 :clear
14196 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14197 t end
14198 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14199 :end' >>confcache
14200 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14201 if test -w "$cache_file"; then
14202 test "x$cache_file" != "x/dev/null" &&
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14204 $as_echo "$as_me: updating cache $cache_file" >&6;}
14205 cat confcache >$cache_file
14206 else
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14208 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14209 fi
14210 fi
14211 rm -f confcache
14212
14213 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14214 # Let make expand exec_prefix.
14215 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14216
14217 DEFS=-DHAVE_CONFIG_H
14218
14219 ac_libobjs=
14220 ac_ltlibobjs=
14221 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14222 # 1. Remove the extension, and $U if already installed.
14223 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14224 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14225 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14226 # will be set to the directory where LIBOBJS objects are built.
14227 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14228 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14229 done
14230 LIBOBJS=$ac_libobjs
14231
14232 LTLIBOBJS=$ac_ltlibobjs
14233
14234
14235
14236 : ${CONFIG_STATUS=./config.status}
14237 ac_write_fail=0
14238 ac_clean_files_save=$ac_clean_files
14239 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14241 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14242 as_write_fail=0
14243 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14244 #! $SHELL
14245 # Generated by $as_me.
14246 # Run this file to recreate the current configuration.
14247 # Compiler output produced by configure, useful for debugging
14248 # configure, is in config.log if it exists.
14249
14250 debug=false
14251 ac_cs_recheck=false
14252 ac_cs_silent=false
14253
14254 SHELL=\${CONFIG_SHELL-$SHELL}
14255 export SHELL
14256 _ASEOF
14257 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14258 ## -------------------- ##
14259 ## M4sh Initialization. ##
14260 ## -------------------- ##
14261
14262 # Be more Bourne compatible
14263 DUALCASE=1; export DUALCASE # for MKS sh
14264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14265 emulate sh
14266 NULLCMD=:
14267 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14268 # is contrary to our usage. Disable this feature.
14269 alias -g '${1+"$@"}'='"$@"'
14270 setopt NO_GLOB_SUBST
14271 else
14272 case `(set -o) 2>/dev/null` in #(
14273 *posix*) :
14274 set -o posix ;; #(
14275 *) :
14276 ;;
14277 esac
14278 fi
14279
14280
14281 as_nl='
14282 '
14283 export as_nl
14284 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14285 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14286 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14288 # Prefer a ksh shell builtin over an external printf program on Solaris,
14289 # but without wasting forks for bash or zsh.
14290 if test -z "$BASH_VERSION$ZSH_VERSION" \
14291 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14292 as_echo='print -r --'
14293 as_echo_n='print -rn --'
14294 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14295 as_echo='printf %s\n'
14296 as_echo_n='printf %s'
14297 else
14298 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14299 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14300 as_echo_n='/usr/ucb/echo -n'
14301 else
14302 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14303 as_echo_n_body='eval
14304 arg=$1;
14305 case $arg in #(
14306 *"$as_nl"*)
14307 expr "X$arg" : "X\\(.*\\)$as_nl";
14308 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14309 esac;
14310 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14311 '
14312 export as_echo_n_body
14313 as_echo_n='sh -c $as_echo_n_body as_echo'
14314 fi
14315 export as_echo_body
14316 as_echo='sh -c $as_echo_body as_echo'
14317 fi
14318
14319 # The user is always right.
14320 if test "${PATH_SEPARATOR+set}" != set; then
14321 PATH_SEPARATOR=:
14322 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14323 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14324 PATH_SEPARATOR=';'
14325 }
14326 fi
14327
14328
14329 # IFS
14330 # We need space, tab and new line, in precisely that order. Quoting is
14331 # there to prevent editors from complaining about space-tab.
14332 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14333 # splitting by setting IFS to empty value.)
14334 IFS=" "" $as_nl"
14335
14336 # Find who we are. Look in the path if we contain no directory separator.
14337 case $0 in #((
14338 *[\\/]* ) as_myself=$0 ;;
14339 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14340 for as_dir in $PATH
14341 do
14342 IFS=$as_save_IFS
14343 test -z "$as_dir" && as_dir=.
14344 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14345 done
14346 IFS=$as_save_IFS
14347
14348 ;;
14349 esac
14350 # We did not find ourselves, most probably we were run as `sh COMMAND'
14351 # in which case we are not to be found in the path.
14352 if test "x$as_myself" = x; then
14353 as_myself=$0
14354 fi
14355 if test ! -f "$as_myself"; then
14356 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14357 exit 1
14358 fi
14359
14360 # Unset variables that we do not need and which cause bugs (e.g. in
14361 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14362 # suppresses any "Segmentation fault" message there. '((' could
14363 # trigger a bug in pdksh 5.2.14.
14364 for as_var in BASH_ENV ENV MAIL MAILPATH
14365 do eval test x\${$as_var+set} = xset \
14366 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14367 done
14368 PS1='$ '
14369 PS2='> '
14370 PS4='+ '
14371
14372 # NLS nuisances.
14373 LC_ALL=C
14374 export LC_ALL
14375 LANGUAGE=C
14376 export LANGUAGE
14377
14378 # CDPATH.
14379 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14380
14381
14382 # as_fn_error ERROR [LINENO LOG_FD]
14383 # ---------------------------------
14384 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14385 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14386 # script with status $?, using 1 if that was 0.
14387 as_fn_error ()
14388 {
14389 as_status=$?; test $as_status -eq 0 && as_status=1
14390 if test "$3"; then
14391 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14392 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14393 fi
14394 $as_echo "$as_me: error: $1" >&2
14395 as_fn_exit $as_status
14396 } # as_fn_error
14397
14398
14399 # as_fn_set_status STATUS
14400 # -----------------------
14401 # Set $? to STATUS, without forking.
14402 as_fn_set_status ()
14403 {
14404 return $1
14405 } # as_fn_set_status
14406
14407 # as_fn_exit STATUS
14408 # -----------------
14409 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14410 as_fn_exit ()
14411 {
14412 set +e
14413 as_fn_set_status $1
14414 exit $1
14415 } # as_fn_exit
14416
14417 # as_fn_unset VAR
14418 # ---------------
14419 # Portably unset VAR.
14420 as_fn_unset ()
14421 {
14422 { eval $1=; unset $1;}
14423 }
14424 as_unset=as_fn_unset
14425 # as_fn_append VAR VALUE
14426 # ----------------------
14427 # Append the text in VALUE to the end of the definition contained in VAR. Take
14428 # advantage of any shell optimizations that allow amortized linear growth over
14429 # repeated appends, instead of the typical quadratic growth present in naive
14430 # implementations.
14431 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14432 eval 'as_fn_append ()
14433 {
14434 eval $1+=\$2
14435 }'
14436 else
14437 as_fn_append ()
14438 {
14439 eval $1=\$$1\$2
14440 }
14441 fi # as_fn_append
14442
14443 # as_fn_arith ARG...
14444 # ------------------
14445 # Perform arithmetic evaluation on the ARGs, and store the result in the
14446 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14447 # must be portable across $(()) and expr.
14448 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14449 eval 'as_fn_arith ()
14450 {
14451 as_val=$(( $* ))
14452 }'
14453 else
14454 as_fn_arith ()
14455 {
14456 as_val=`expr "$@" || test $? -eq 1`
14457 }
14458 fi # as_fn_arith
14459
14460
14461 if expr a : '\(a\)' >/dev/null 2>&1 &&
14462 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14463 as_expr=expr
14464 else
14465 as_expr=false
14466 fi
14467
14468 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14469 as_basename=basename
14470 else
14471 as_basename=false
14472 fi
14473
14474 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14475 as_dirname=dirname
14476 else
14477 as_dirname=false
14478 fi
14479
14480 as_me=`$as_basename -- "$0" ||
14481 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14482 X"$0" : 'X\(//\)$' \| \
14483 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14484 $as_echo X/"$0" |
14485 sed '/^.*\/\([^/][^/]*\)\/*$/{
14486 s//\1/
14487 q
14488 }
14489 /^X\/\(\/\/\)$/{
14490 s//\1/
14491 q
14492 }
14493 /^X\/\(\/\).*/{
14494 s//\1/
14495 q
14496 }
14497 s/.*/./; q'`
14498
14499 # Avoid depending upon Character Ranges.
14500 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14501 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14502 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14503 as_cr_digits='0123456789'
14504 as_cr_alnum=$as_cr_Letters$as_cr_digits
14505
14506 ECHO_C= ECHO_N= ECHO_T=
14507 case `echo -n x` in #(((((
14508 -n*)
14509 case `echo 'xy\c'` in
14510 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14511 xy) ECHO_C='\c';;
14512 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14513 ECHO_T=' ';;
14514 esac;;
14515 *)
14516 ECHO_N='-n';;
14517 esac
14518
14519 rm -f conf$$ conf$$.exe conf$$.file
14520 if test -d conf$$.dir; then
14521 rm -f conf$$.dir/conf$$.file
14522 else
14523 rm -f conf$$.dir
14524 mkdir conf$$.dir 2>/dev/null
14525 fi
14526 if (echo >conf$$.file) 2>/dev/null; then
14527 if ln -s conf$$.file conf$$ 2>/dev/null; then
14528 as_ln_s='ln -s'
14529 # ... but there are two gotchas:
14530 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14531 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14532 # In both cases, we have to default to `cp -p'.
14533 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14534 as_ln_s='cp -p'
14535 elif ln conf$$.file conf$$ 2>/dev/null; then
14536 as_ln_s=ln
14537 else
14538 as_ln_s='cp -p'
14539 fi
14540 else
14541 as_ln_s='cp -p'
14542 fi
14543 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14544 rmdir conf$$.dir 2>/dev/null
14545
14546
14547 # as_fn_mkdir_p
14548 # -------------
14549 # Create "$as_dir" as a directory, including parents if necessary.
14550 as_fn_mkdir_p ()
14551 {
14552
14553 case $as_dir in #(
14554 -*) as_dir=./$as_dir;;
14555 esac
14556 test -d "$as_dir" || eval $as_mkdir_p || {
14557 as_dirs=
14558 while :; do
14559 case $as_dir in #(
14560 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14561 *) as_qdir=$as_dir;;
14562 esac
14563 as_dirs="'$as_qdir' $as_dirs"
14564 as_dir=`$as_dirname -- "$as_dir" ||
14565 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14566 X"$as_dir" : 'X\(//\)[^/]' \| \
14567 X"$as_dir" : 'X\(//\)$' \| \
14568 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14569 $as_echo X"$as_dir" |
14570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14571 s//\1/
14572 q
14573 }
14574 /^X\(\/\/\)[^/].*/{
14575 s//\1/
14576 q
14577 }
14578 /^X\(\/\/\)$/{
14579 s//\1/
14580 q
14581 }
14582 /^X\(\/\).*/{
14583 s//\1/
14584 q
14585 }
14586 s/.*/./; q'`
14587 test -d "$as_dir" && break
14588 done
14589 test -z "$as_dirs" || eval "mkdir $as_dirs"
14590 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14591
14592
14593 } # as_fn_mkdir_p
14594 if mkdir -p . 2>/dev/null; then
14595 as_mkdir_p='mkdir -p "$as_dir"'
14596 else
14597 test -d ./-p && rmdir ./-p
14598 as_mkdir_p=false
14599 fi
14600
14601 if test -x / >/dev/null 2>&1; then
14602 as_test_x='test -x'
14603 else
14604 if ls -dL / >/dev/null 2>&1; then
14605 as_ls_L_option=L
14606 else
14607 as_ls_L_option=
14608 fi
14609 as_test_x='
14610 eval sh -c '\''
14611 if test -d "$1"; then
14612 test -d "$1/.";
14613 else
14614 case $1 in #(
14615 -*)set "./$1";;
14616 esac;
14617 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14618 ???[sx]*):;;*)false;;esac;fi
14619 '\'' sh
14620 '
14621 fi
14622 as_executable_p=$as_test_x
14623
14624 # Sed expression to map a string onto a valid CPP name.
14625 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14626
14627 # Sed expression to map a string onto a valid variable name.
14628 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14629
14630
14631 exec 6>&1
14632 ## ----------------------------------- ##
14633 ## Main body of $CONFIG_STATUS script. ##
14634 ## ----------------------------------- ##
14635 _ASEOF
14636 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14637
14638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14639 # Save the log message, to keep $0 and so on meaningful, and to
14640 # report actual input values of CONFIG_FILES etc. instead of their
14641 # values after options handling.
14642 ac_log="
14643 This file was extended by emacs $as_me 24.0.50, which was
14644 generated by GNU Autoconf 2.65. Invocation command line was
14645
14646 CONFIG_FILES = $CONFIG_FILES
14647 CONFIG_HEADERS = $CONFIG_HEADERS
14648 CONFIG_LINKS = $CONFIG_LINKS
14649 CONFIG_COMMANDS = $CONFIG_COMMANDS
14650 $ $0 $@
14651
14652 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14653 "
14654
14655 _ACEOF
14656
14657 case $ac_config_files in *"
14658 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14659 esac
14660
14661 case $ac_config_headers in *"
14662 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14663 esac
14664
14665
14666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14667 # Files that config.status was made for.
14668 config_files="$ac_config_files"
14669 config_headers="$ac_config_headers"
14670 config_commands="$ac_config_commands"
14671
14672 _ACEOF
14673
14674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14675 ac_cs_usage="\
14676 \`$as_me' instantiates files and other configuration actions
14677 from templates according to the current configuration. Unless the files
14678 and actions are specified as TAGs, all are instantiated by default.
14679
14680 Usage: $0 [OPTION]... [TAG]...
14681
14682 -h, --help print this help, then exit
14683 -V, --version print version number and configuration settings, then exit
14684 --config print configuration, then exit
14685 -q, --quiet, --silent
14686 do not print progress messages
14687 -d, --debug don't remove temporary files
14688 --recheck update $as_me by reconfiguring in the same conditions
14689 --file=FILE[:TEMPLATE]
14690 instantiate the configuration file FILE
14691 --header=FILE[:TEMPLATE]
14692 instantiate the configuration header FILE
14693
14694 Configuration files:
14695 $config_files
14696
14697 Configuration headers:
14698 $config_headers
14699
14700 Configuration commands:
14701 $config_commands
14702
14703 Report bugs to the package provider."
14704
14705 _ACEOF
14706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14707 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14708 ac_cs_version="\\
14709 emacs config.status 24.0.50
14710 configured by $0, generated by GNU Autoconf 2.65,
14711 with options \\"\$ac_cs_config\\"
14712
14713 Copyright (C) 2009 Free Software Foundation, Inc.
14714 This config.status script is free software; the Free Software Foundation
14715 gives unlimited permission to copy, distribute and modify it."
14716
14717 ac_pwd='$ac_pwd'
14718 srcdir='$srcdir'
14719 INSTALL='$INSTALL'
14720 test -n "\$AWK" || AWK=awk
14721 _ACEOF
14722
14723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14724 # The default lists apply if the user does not specify any file.
14725 ac_need_defaults=:
14726 while test $# != 0
14727 do
14728 case $1 in
14729 --*=*)
14730 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14731 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14732 ac_shift=:
14733 ;;
14734 *)
14735 ac_option=$1
14736 ac_optarg=$2
14737 ac_shift=shift
14738 ;;
14739 esac
14740
14741 case $ac_option in
14742 # Handling of the options.
14743 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14744 ac_cs_recheck=: ;;
14745 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14746 $as_echo "$ac_cs_version"; exit ;;
14747 --config | --confi | --conf | --con | --co | --c )
14748 $as_echo "$ac_cs_config"; exit ;;
14749 --debug | --debu | --deb | --de | --d | -d )
14750 debug=: ;;
14751 --file | --fil | --fi | --f )
14752 $ac_shift
14753 case $ac_optarg in
14754 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14755 esac
14756 as_fn_append CONFIG_FILES " '$ac_optarg'"
14757 ac_need_defaults=false;;
14758 --header | --heade | --head | --hea )
14759 $ac_shift
14760 case $ac_optarg in
14761 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14762 esac
14763 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14764 ac_need_defaults=false;;
14765 --he | --h)
14766 # Conflict between --help and --header
14767 as_fn_error "ambiguous option: \`$1'
14768 Try \`$0 --help' for more information.";;
14769 --help | --hel | -h )
14770 $as_echo "$ac_cs_usage"; exit ;;
14771 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14772 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14773 ac_cs_silent=: ;;
14774
14775 # This is an error.
14776 -*) as_fn_error "unrecognized option: \`$1'
14777 Try \`$0 --help' for more information." ;;
14778
14779 *) as_fn_append ac_config_targets " $1"
14780 ac_need_defaults=false ;;
14781
14782 esac
14783 shift
14784 done
14785
14786 ac_configure_extra_args=
14787
14788 if $ac_cs_silent; then
14789 exec 6>/dev/null
14790 ac_configure_extra_args="$ac_configure_extra_args --silent"
14791 fi
14792
14793 _ACEOF
14794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14795 if \$ac_cs_recheck; then
14796 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14797 shift
14798 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14799 CONFIG_SHELL='$SHELL'
14800 export CONFIG_SHELL
14801 exec "\$@"
14802 fi
14803
14804 _ACEOF
14805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14806 exec 5>>config.log
14807 {
14808 echo
14809 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14810 ## Running $as_me. ##
14811 _ASBOX
14812 $as_echo "$ac_log"
14813 } >&5
14814
14815 _ACEOF
14816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14817 #
14818 # INIT-COMMANDS
14819 #
14820 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
14821
14822 _ACEOF
14823
14824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14825
14826 # Handling of arguments.
14827 for ac_config_target in $ac_config_targets
14828 do
14829 case $ac_config_target in
14830 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
14831 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14832 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
14833 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
14834 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
14835 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
14836 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
14837 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
14838 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
14839 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
14840 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
14841 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
14842 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14843
14844 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14845 esac
14846 done
14847
14848
14849 # If the user did not use the arguments to specify the items to instantiate,
14850 # then the envvar interface is used. Set only those that are not.
14851 # We use the long form for the default assignment because of an extremely
14852 # bizarre bug on SunOS 4.1.3.
14853 if $ac_need_defaults; then
14854 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14855 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14856 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14857 fi
14858
14859 # Have a temporary directory for convenience. Make it in the build tree
14860 # simply because there is no reason against having it here, and in addition,
14861 # creating and moving files from /tmp can sometimes cause problems.
14862 # Hook for its removal unless debugging.
14863 # Note that there is a small window in which the directory will not be cleaned:
14864 # after its creation but before its name has been assigned to `$tmp'.
14865 $debug ||
14866 {
14867 tmp=
14868 trap 'exit_status=$?
14869 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14870 ' 0
14871 trap 'as_fn_exit 1' 1 2 13 15
14872 }
14873 # Create a (secure) tmp directory for tmp files.
14874
14875 {
14876 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14877 test -n "$tmp" && test -d "$tmp"
14878 } ||
14879 {
14880 tmp=./conf$$-$RANDOM
14881 (umask 077 && mkdir "$tmp")
14882 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14883
14884 # Set up the scripts for CONFIG_FILES section.
14885 # No need to generate them if there are no CONFIG_FILES.
14886 # This happens for instance with `./config.status config.h'.
14887 if test -n "$CONFIG_FILES"; then
14888
14889
14890 ac_cr=`echo X | tr X '\015'`
14891 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14892 # But we know of no other shell where ac_cr would be empty at this
14893 # point, so we can use a bashism as a fallback.
14894 if test "x$ac_cr" = x; then
14895 eval ac_cr=\$\'\\r\'
14896 fi
14897 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14898 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14899 ac_cs_awk_cr='\r'
14900 else
14901 ac_cs_awk_cr=$ac_cr
14902 fi
14903
14904 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14905 _ACEOF
14906
14907
14908 {
14909 echo "cat >conf$$subs.awk <<_ACEOF" &&
14910 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14911 echo "_ACEOF"
14912 } >conf$$subs.sh ||
14913 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14914 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14915 ac_delim='%!_!# '
14916 for ac_last_try in false false false false false :; do
14917 . ./conf$$subs.sh ||
14918 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14919
14920 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14921 if test $ac_delim_n = $ac_delim_num; then
14922 break
14923 elif $ac_last_try; then
14924 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14925 else
14926 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14927 fi
14928 done
14929 rm -f conf$$subs.sh
14930
14931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14932 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14933 _ACEOF
14934 sed -n '
14935 h
14936 s/^/S["/; s/!.*/"]=/
14937 p
14938 g
14939 s/^[^!]*!//
14940 :repl
14941 t repl
14942 s/'"$ac_delim"'$//
14943 t delim
14944 :nl
14945 h
14946 s/\(.\{148\}\)..*/\1/
14947 t more1
14948 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14949 p
14950 n
14951 b repl
14952 :more1
14953 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14954 p
14955 g
14956 s/.\{148\}//
14957 t nl
14958 :delim
14959 h
14960 s/\(.\{148\}\)..*/\1/
14961 t more2
14962 s/["\\]/\\&/g; s/^/"/; s/$/"/
14963 p
14964 b
14965 :more2
14966 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14967 p
14968 g
14969 s/.\{148\}//
14970 t delim
14971 ' <conf$$subs.awk | sed '
14972 /^[^""]/{
14973 N
14974 s/\n//
14975 }
14976 ' >>$CONFIG_STATUS || ac_write_fail=1
14977 rm -f conf$$subs.awk
14978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14979 _ACAWK
14980 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14981 for (key in S) S_is_set[key] = 1
14982 FS = "\a"
14983
14984 }
14985 {
14986 line = $ 0
14987 nfields = split(line, field, "@")
14988 substed = 0
14989 len = length(field[1])
14990 for (i = 2; i < nfields; i++) {
14991 key = field[i]
14992 keylen = length(key)
14993 if (S_is_set[key]) {
14994 value = S[key]
14995 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14996 len += length(value) + length(field[++i])
14997 substed = 1
14998 } else
14999 len += 1 + keylen
15000 }
15001
15002 print line
15003 }
15004
15005 _ACAWK
15006 _ACEOF
15007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15008 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15009 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15010 else
15011 cat
15012 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15013 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15014 _ACEOF
15015
15016 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15017 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15018 # trailing colons and then remove the whole line if VPATH becomes empty
15019 # (actually we leave an empty line to preserve line numbers).
15020 if test "x$srcdir" = x.; then
15021 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15022 s/:*\$(srcdir):*/:/
15023 s/:*\${srcdir}:*/:/
15024 s/:*@srcdir@:*/:/
15025 s/^\([^=]*=[ ]*\):*/\1/
15026 s/:*$//
15027 s/^[^=]*=[ ]*$//
15028 }'
15029 fi
15030
15031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15032 fi # test -n "$CONFIG_FILES"
15033
15034 # Set up the scripts for CONFIG_HEADERS section.
15035 # No need to generate them if there are no CONFIG_HEADERS.
15036 # This happens for instance with `./config.status Makefile'.
15037 if test -n "$CONFIG_HEADERS"; then
15038 cat >"$tmp/defines.awk" <<\_ACAWK ||
15039 BEGIN {
15040 _ACEOF
15041
15042 # Transform confdefs.h into an awk script `defines.awk', embedded as
15043 # here-document in config.status, that substitutes the proper values into
15044 # config.h.in to produce config.h.
15045
15046 # Create a delimiter string that does not exist in confdefs.h, to ease
15047 # handling of long lines.
15048 ac_delim='%!_!# '
15049 for ac_last_try in false false :; do
15050 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15051 if test -z "$ac_t"; then
15052 break
15053 elif $ac_last_try; then
15054 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15055 else
15056 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15057 fi
15058 done
15059
15060 # For the awk script, D is an array of macro values keyed by name,
15061 # likewise P contains macro parameters if any. Preserve backslash
15062 # newline sequences.
15063
15064 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15065 sed -n '
15066 s/.\{148\}/&'"$ac_delim"'/g
15067 t rset
15068 :rset
15069 s/^[ ]*#[ ]*define[ ][ ]*/ /
15070 t def
15071 d
15072 :def
15073 s/\\$//
15074 t bsnl
15075 s/["\\]/\\&/g
15076 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15077 D["\1"]=" \3"/p
15078 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15079 d
15080 :bsnl
15081 s/["\\]/\\&/g
15082 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15083 D["\1"]=" \3\\\\\\n"\\/p
15084 t cont
15085 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15086 t cont
15087 d
15088 :cont
15089 n
15090 s/.\{148\}/&'"$ac_delim"'/g
15091 t clear
15092 :clear
15093 s/\\$//
15094 t bsnlc
15095 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15096 d
15097 :bsnlc
15098 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15099 b cont
15100 ' <confdefs.h | sed '
15101 s/'"$ac_delim"'/"\\\
15102 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15103
15104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15105 for (key in D) D_is_set[key] = 1
15106 FS = "\a"
15107 }
15108 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15109 line = \$ 0
15110 split(line, arg, " ")
15111 if (arg[1] == "#") {
15112 defundef = arg[2]
15113 mac1 = arg[3]
15114 } else {
15115 defundef = substr(arg[1], 2)
15116 mac1 = arg[2]
15117 }
15118 split(mac1, mac2, "(") #)
15119 macro = mac2[1]
15120 prefix = substr(line, 1, index(line, defundef) - 1)
15121 if (D_is_set[macro]) {
15122 # Preserve the white space surrounding the "#".
15123 print prefix "define", macro P[macro] D[macro]
15124 next
15125 } else {
15126 # Replace #undef with comments. This is necessary, for example,
15127 # in the case of _POSIX_SOURCE, which is predefined and required
15128 # on some systems where configure will not decide to define it.
15129 if (defundef == "undef") {
15130 print "/*", prefix defundef, macro, "*/"
15131 next
15132 }
15133 }
15134 }
15135 { print }
15136 _ACAWK
15137 _ACEOF
15138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15139 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15140 fi # test -n "$CONFIG_HEADERS"
15141
15142
15143 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15144 shift
15145 for ac_tag
15146 do
15147 case $ac_tag in
15148 :[FHLC]) ac_mode=$ac_tag; continue;;
15149 esac
15150 case $ac_mode$ac_tag in
15151 :[FHL]*:*);;
15152 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15153 :[FH]-) ac_tag=-:-;;
15154 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15155 esac
15156 ac_save_IFS=$IFS
15157 IFS=:
15158 set x $ac_tag
15159 IFS=$ac_save_IFS
15160 shift
15161 ac_file=$1
15162 shift
15163
15164 case $ac_mode in
15165 :L) ac_source=$1;;
15166 :[FH])
15167 ac_file_inputs=
15168 for ac_f
15169 do
15170 case $ac_f in
15171 -) ac_f="$tmp/stdin";;
15172 *) # Look for the file first in the build tree, then in the source tree
15173 # (if the path is not absolute). The absolute path cannot be DOS-style,
15174 # because $ac_f cannot contain `:'.
15175 test -f "$ac_f" ||
15176 case $ac_f in
15177 [\\/$]*) false;;
15178 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15179 esac ||
15180 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15181 esac
15182 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15183 as_fn_append ac_file_inputs " '$ac_f'"
15184 done
15185
15186 # Let's still pretend it is `configure' which instantiates (i.e., don't
15187 # use $as_me), people would be surprised to read:
15188 # /* config.h. Generated by config.status. */
15189 configure_input='Generated from '`
15190 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15191 `' by configure.'
15192 if test x"$ac_file" != x-; then
15193 configure_input="$ac_file. $configure_input"
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15195 $as_echo "$as_me: creating $ac_file" >&6;}
15196 fi
15197 # Neutralize special characters interpreted by sed in replacement strings.
15198 case $configure_input in #(
15199 *\&* | *\|* | *\\* )
15200 ac_sed_conf_input=`$as_echo "$configure_input" |
15201 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15202 *) ac_sed_conf_input=$configure_input;;
15203 esac
15204
15205 case $ac_tag in
15206 *:-:* | *:-) cat >"$tmp/stdin" \
15207 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15208 esac
15209 ;;
15210 esac
15211
15212 ac_dir=`$as_dirname -- "$ac_file" ||
15213 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15214 X"$ac_file" : 'X\(//\)[^/]' \| \
15215 X"$ac_file" : 'X\(//\)$' \| \
15216 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15217 $as_echo X"$ac_file" |
15218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15219 s//\1/
15220 q
15221 }
15222 /^X\(\/\/\)[^/].*/{
15223 s//\1/
15224 q
15225 }
15226 /^X\(\/\/\)$/{
15227 s//\1/
15228 q
15229 }
15230 /^X\(\/\).*/{
15231 s//\1/
15232 q
15233 }
15234 s/.*/./; q'`
15235 as_dir="$ac_dir"; as_fn_mkdir_p
15236 ac_builddir=.
15237
15238 case "$ac_dir" in
15239 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15240 *)
15241 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15242 # A ".." for each directory in $ac_dir_suffix.
15243 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15244 case $ac_top_builddir_sub in
15245 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15246 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15247 esac ;;
15248 esac
15249 ac_abs_top_builddir=$ac_pwd
15250 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15251 # for backward compatibility:
15252 ac_top_builddir=$ac_top_build_prefix
15253
15254 case $srcdir in
15255 .) # We are building in place.
15256 ac_srcdir=.
15257 ac_top_srcdir=$ac_top_builddir_sub
15258 ac_abs_top_srcdir=$ac_pwd ;;
15259 [\\/]* | ?:[\\/]* ) # Absolute name.
15260 ac_srcdir=$srcdir$ac_dir_suffix;
15261 ac_top_srcdir=$srcdir
15262 ac_abs_top_srcdir=$srcdir ;;
15263 *) # Relative name.
15264 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15265 ac_top_srcdir=$ac_top_build_prefix$srcdir
15266 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15267 esac
15268 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15269
15270
15271 case $ac_mode in
15272 :F)
15273 #
15274 # CONFIG_FILE
15275 #
15276
15277 case $INSTALL in
15278 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15279 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15280 esac
15281 _ACEOF
15282
15283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15284 # If the template does not know about datarootdir, expand it.
15285 # FIXME: This hack should be removed a few years after 2.60.
15286 ac_datarootdir_hack=; ac_datarootdir_seen=
15287 ac_sed_dataroot='
15288 /datarootdir/ {
15289 p
15290 q
15291 }
15292 /@datadir@/p
15293 /@docdir@/p
15294 /@infodir@/p
15295 /@localedir@/p
15296 /@mandir@/p'
15297 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15298 *datarootdir*) ac_datarootdir_seen=yes;;
15299 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15301 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15302 _ACEOF
15303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15304 ac_datarootdir_hack='
15305 s&@datadir@&$datadir&g
15306 s&@docdir@&$docdir&g
15307 s&@infodir@&$infodir&g
15308 s&@localedir@&$localedir&g
15309 s&@mandir@&$mandir&g
15310 s&\\\${datarootdir}&$datarootdir&g' ;;
15311 esac
15312 _ACEOF
15313
15314 # Neutralize VPATH when `$srcdir' = `.'.
15315 # Shell code in configure.ac might set extrasub.
15316 # FIXME: do we really want to maintain this feature?
15317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15318 ac_sed_extra="$ac_vpsub
15319 $extrasub
15320 _ACEOF
15321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15322 :t
15323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15324 s|@configure_input@|$ac_sed_conf_input|;t t
15325 s&@top_builddir@&$ac_top_builddir_sub&;t t
15326 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15327 s&@srcdir@&$ac_srcdir&;t t
15328 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15329 s&@top_srcdir@&$ac_top_srcdir&;t t
15330 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15331 s&@builddir@&$ac_builddir&;t t
15332 s&@abs_builddir@&$ac_abs_builddir&;t t
15333 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15334 s&@INSTALL@&$ac_INSTALL&;t t
15335 $ac_datarootdir_hack
15336 "
15337 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15338 || as_fn_error "could not create $ac_file" "$LINENO" 5
15339
15340 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15341 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15342 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15344 which seems to be undefined. Please make sure it is defined." >&5
15345 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15346 which seems to be undefined. Please make sure it is defined." >&2;}
15347
15348 rm -f "$tmp/stdin"
15349 case $ac_file in
15350 -) cat "$tmp/out" && rm -f "$tmp/out";;
15351 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15352 esac \
15353 || as_fn_error "could not create $ac_file" "$LINENO" 5
15354 ;;
15355 :H)
15356 #
15357 # CONFIG_HEADER
15358 #
15359 if test x"$ac_file" != x-; then
15360 {
15361 $as_echo "/* $configure_input */" \
15362 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15363 } >"$tmp/config.h" \
15364 || as_fn_error "could not create $ac_file" "$LINENO" 5
15365 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15367 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15368 else
15369 rm -f "$ac_file"
15370 mv "$tmp/config.h" "$ac_file" \
15371 || as_fn_error "could not create $ac_file" "$LINENO" 5
15372 fi
15373 else
15374 $as_echo "/* $configure_input */" \
15375 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15376 || as_fn_error "could not create -" "$LINENO" 5
15377 fi
15378 ;;
15379
15380 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15381 $as_echo "$as_me: executing $ac_file commands" >&6;}
15382 ;;
15383 esac
15384
15385
15386 case $ac_file$ac_mode in
15387 "default":C)
15388
15389 ### Make the necessary directories, if they don't exist.
15390 for dir in etc lisp ; do
15391 test -d ${dir} || mkdir ${dir}
15392 done
15393
15394 # Build src/Makefile from ${srcdir}/src/Makefile.c
15395 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
15396 # This must be done after src/config.h is built, since we rely on that file.
15397
15398 echo creating src/epaths.h
15399 ${MAKE-make} epaths-force
15400
15401 # As of 2000-11-19, newest development versions of GNU cpp preprocess
15402 # `..' to `. .' unless invoked with -traditional
15403
15404 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
15405 CPPFLAGS="$CPPFLAGS -traditional"
15406 fi
15407
15408 echo creating src/Makefile
15409 ( cd src
15410 rm -f junk.c junk1.c junk2.c
15411 sed -e '/start of cpp stuff/q' \
15412 < Makefile.c > junk1.c
15413 sed -e '1,/start of cpp stuff/d'\
15414 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
15415 < Makefile.c > junk.c
15416 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
15417 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
15418 cat junk1.c junk2.c > Makefile.new
15419 rm -f junk.c junk1.c junk2.c
15420 chmod 444 Makefile.new
15421 mv -f Makefile.new Makefile
15422 )
15423
15424 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
15425 echo creating src/.gdbinit
15426 echo source $srcdir/src/.gdbinit > src/.gdbinit
15427 fi
15428
15429 ;;
15430
15431 esac
15432 done # for ac_tag
15433
15434
15435 as_fn_exit 0
15436 _ACEOF
15437 ac_clean_files=$ac_clean_files_save
15438
15439 test $ac_write_fail = 0 ||
15440 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15441
15442
15443 # configure is writing to config.log, and then calls config.status.
15444 # config.status does its own redirection, appending to config.log.
15445 # Unfortunately, on DOS this fails, as config.log is still kept open
15446 # by configure, so config.status won't be able to write to it; its
15447 # output is simply discarded. So we exec the FD to /dev/null,
15448 # effectively closing config.log, so it can be properly (re)opened and
15449 # appended to by config.status. When coming back to configure, we
15450 # need to make the FD available again.
15451 if test "$no_create" != yes; then
15452 ac_cs_success=:
15453 ac_config_status_args=
15454 test "$silent" = yes &&
15455 ac_config_status_args="$ac_config_status_args --quiet"
15456 exec 5>/dev/null
15457 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15458 exec 5>>config.log
15459 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15460 # would make configure fail if this is the last instruction.
15461 $ac_cs_success || as_fn_exit $?
15462 fi
15463 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15465 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15466 fi
15467
15468