]> code.delx.au - gnu-emacs/blob - configure
* minibuffer.el (comps): Declare for byte-compiler.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_config_libobj_dir=src
595 ac_header_list=
596 ac_func_list=
597 ac_subst_vars='LTLIBOBJS
598 LD_SWITCH_SYSTEM_TEMACS
599 POST_ALLOC_OBJ
600 PRE_ALLOC_OBJ
601 CYGWIN_OBJ
602 LIBX_OTHER
603 LIBXMENU
604 OLDXMENU
605 LIBXT_OTHER
606 TOOLKIT_LIBW
607 WIDGET_OBJ
608 XOBJ
609 XMENU_OBJ
610 OTHER_FILES
611 LIB_SRC_EXTRA_INSTALLABLES
612 GNU_OBJC_CFLAGS
613 GNUSTEP_SYSTEM_LIBRARIES
614 GNUSTEP_SYSTEM_HEADERS
615 GNUSTEP_MAKEFILES
616 ns_appsrc
617 ns_appresdir
618 ns_appbindir
619 ns_appdir
620 opsysfile
621 machfile
622 X_TOOLKIT_TYPE
623 C_SWITCH_X_SYSTEM
624 C_SWITCH_X_SITE
625 LD_SWITCH_X_SITE
626 unexec
627 gameuser
628 gamedir
629 bitmapdir
630 archlibdir
631 etcdir
632 x_default_search_path
633 lisppath
634 locallisppath
635 lispdir
636 srcdir
637 canonical
638 configuration
639 version
640 KRB4LIB
641 DESLIB
642 KRB5LIB
643 CRYPTOLIB
644 COM_ERRLIB
645 LIBRESOLV
646 LIBHESIOD
647 GETOPTOBJS
648 GETOPT_H
649 GETLOADAVG_LIBS
650 KMEM_GROUP
651 NEED_SETGID
652 LIBOBJS
653 LIBS_MAIL
654 liblockfile
655 ALLOCA
656 LIBXSM
657 GPM_MOUSE_SUPPORT
658 LIBGPM
659 LIBGIF
660 LIBTIFF
661 LIBPNG
662 LIBJPEG
663 LIBXPM
664 FREETYPE_LIBS
665 FREETYPE_CFLAGS
666 FONT_OBJ
667 M17N_FLT_LIBS
668 M17N_FLT_CFLAGS
669 LIBOTF_LIBS
670 LIBOTF_CFLAGS
671 XFT_LIBS
672 XFT_CFLAGS
673 FONTCONFIG_LIBS
674 FONTCONFIG_CFLAGS
675 LIBXMU
676 LIBXTR6
677 LIBSELINUX_LIBS
678 GCONF_LIBS
679 GCONF_CFLAGS
680 DBUS_OBJ
681 DBUS_LIBS
682 DBUS_CFLAGS
683 GTK_OBJ
684 GTK_LIBS
685 GTK_CFLAGS
686 RSVG_LIBS
687 RSVG_CFLAGS
688 HAVE_XSERVER
689 LIB_STANDARD
690 NS_SUPPORT
691 NS_OBJ
692 LD_SWITCH_X_SITE_AUX_RPATH
693 LD_SWITCH_X_SITE_AUX
694 XMKMF
695 SET_MAKE
696 CFLAGS_SOUND
697 ALSA_LIBS
698 ALSA_CFLAGS
699 PKG_CONFIG
700 LIBSOUND
701 START_FILES
702 LIB_MATH
703 CRT_DIR
704 C_SWITCH_SYSTEM
705 C_SWITCH_MACHINE
706 MAKEINFO
707 GZIP_PROG
708 INSTALL_INFO
709 RANLIB
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 EGREP
714 GREP
715 CPP
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 CC
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 MAINT
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL'
770 ac_subst_files=''
771 ac_user_opts='
772 enable_option_checking
773 with_pop
774 with_kerberos
775 with_kerberos5
776 with_hesiod
777 with_mmdf
778 with_mail_unlink
779 with_mailhost
780 with_sound
781 with_sync_input
782 with_x_toolkit
783 with_xpm
784 with_jpeg
785 with_tiff
786 with_gif
787 with_png
788 with_rsvg
789 with_xft
790 with_libotf
791 with_m17n_flt
792 with_toolkit_scroll_bars
793 with_xaw3d
794 with_xim
795 with_ns
796 with_gpm
797 with_dbus
798 with_gconf
799 with_selinux
800 with_makeinfo
801 with_gtk
802 with_gcc
803 with_pkg_config_prog
804 with_crt_dir
805 with_gnustep_conf
806 enable_ns_self_contained
807 enable_asserts
808 enable_maintainer_mode
809 enable_locallisppath
810 enable_checking
811 enable_profiling
812 enable_autodepend
813 enable_largefile
814 with_x
815 '
816 ac_precious_vars='build_alias
817 host_alias
818 target_alias
819 CC
820 CFLAGS
821 LDFLAGS
822 LIBS
823 CPPFLAGS
824 CPP
825 XMKMF'
826
827
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
875
876 ac_prev=
877 ac_dashdash=
878 for ac_option
879 do
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
883 ac_prev=
884 continue
885 fi
886
887 case $ac_option in
888 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 *) ac_optarg=yes ;;
890 esac
891
892 # Accept the important Cygnus configure options, so we can diagnose typos.
893
894 case $ac_dashdash$ac_option in
895 --)
896 ac_dashdash=yes ;;
897
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 ac_prev=bindir ;;
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901 bindir=$ac_optarg ;;
902
903 -build | --build | --buil | --bui | --bu)
904 ac_prev=build_alias ;;
905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906 build_alias=$ac_optarg ;;
907
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913 cache_file=$ac_optarg ;;
914
915 --config-cache | -C)
916 cache_file=config.cache ;;
917
918 -datadir | --datadir | --datadi | --datad)
919 ac_prev=datadir ;;
920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
921 datadir=$ac_optarg ;;
922
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
929
930 -disable-* | --disable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error "invalid feature name: $ac_useropt"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939 "enable_$ac_useropt"
940 "*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=no ;;
945
946 -docdir | --docdir | --docdi | --doc | --do)
947 ac_prev=docdir ;;
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 docdir=$ac_optarg ;;
950
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 ac_prev=dvidir ;;
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 dvidir=$ac_optarg ;;
955
956 -enable-* | --enable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error "invalid feature name: $ac_useropt"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
964 *"
965 "enable_$ac_useropt"
966 "*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=\$ac_optarg ;;
971
972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974 | --exec | --exe | --ex)
975 ac_prev=exec_prefix ;;
976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978 | --exec=* | --exe=* | --ex=*)
979 exec_prefix=$ac_optarg ;;
980
981 -gas | --gas | --ga | --g)
982 # Obsolete; use --with-gas.
983 with_gas=yes ;;
984
985 -help | --help | --hel | --he | -h)
986 ac_init_help=long ;;
987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988 ac_init_help=recursive ;;
989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990 ac_init_help=short ;;
991
992 -host | --host | --hos | --ho)
993 ac_prev=host_alias ;;
994 -host=* | --host=* | --hos=* | --ho=*)
995 host_alias=$ac_optarg ;;
996
997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998 ac_prev=htmldir ;;
999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000 | --ht=*)
1001 htmldir=$ac_optarg ;;
1002
1003 -includedir | --includedir | --includedi | --included | --include \
1004 | --includ | --inclu | --incl | --inc)
1005 ac_prev=includedir ;;
1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007 | --includ=* | --inclu=* | --incl=* | --inc=*)
1008 includedir=$ac_optarg ;;
1009
1010 -infodir | --infodir | --infodi | --infod | --info | --inf)
1011 ac_prev=infodir ;;
1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013 infodir=$ac_optarg ;;
1014
1015 -libdir | --libdir | --libdi | --libd)
1016 ac_prev=libdir ;;
1017 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018 libdir=$ac_optarg ;;
1019
1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021 | --libexe | --libex | --libe)
1022 ac_prev=libexecdir ;;
1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024 | --libexe=* | --libex=* | --libe=*)
1025 libexecdir=$ac_optarg ;;
1026
1027 -localedir | --localedir | --localedi | --localed | --locale)
1028 ac_prev=localedir ;;
1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030 localedir=$ac_optarg ;;
1031
1032 -localstatedir | --localstatedir | --localstatedi | --localstated \
1033 | --localstate | --localstat | --localsta | --localst | --locals)
1034 ac_prev=localstatedir ;;
1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037 localstatedir=$ac_optarg ;;
1038
1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040 ac_prev=mandir ;;
1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042 mandir=$ac_optarg ;;
1043
1044 -nfp | --nfp | --nf)
1045 # Obsolete; use --without-fp.
1046 with_fp=no ;;
1047
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049 | --no-cr | --no-c | -n)
1050 no_create=yes ;;
1051
1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 no_recursion=yes ;;
1055
1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058 | --oldin | --oldi | --old | --ol | --o)
1059 ac_prev=oldincludedir ;;
1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063 oldincludedir=$ac_optarg ;;
1064
1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066 ac_prev=prefix ;;
1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068 prefix=$ac_optarg ;;
1069
1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071 | --program-pre | --program-pr | --program-p)
1072 ac_prev=program_prefix ;;
1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075 program_prefix=$ac_optarg ;;
1076
1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078 | --program-suf | --program-su | --program-s)
1079 ac_prev=program_suffix ;;
1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082 program_suffix=$ac_optarg ;;
1083
1084 -program-transform-name | --program-transform-name \
1085 | --program-transform-nam | --program-transform-na \
1086 | --program-transform-n | --program-transform- \
1087 | --program-transform | --program-transfor \
1088 | --program-transfo | --program-transf \
1089 | --program-trans | --program-tran \
1090 | --progr-tra | --program-tr | --program-t)
1091 ac_prev=program_transform_name ;;
1092 -program-transform-name=* | --program-transform-name=* \
1093 | --program-transform-nam=* | --program-transform-na=* \
1094 | --program-transform-n=* | --program-transform-=* \
1095 | --program-transform=* | --program-transfor=* \
1096 | --program-transfo=* | --program-transf=* \
1097 | --program-trans=* | --program-tran=* \
1098 | --progr-tra=* | --program-tr=* | --program-t=*)
1099 program_transform_name=$ac_optarg ;;
1100
1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102 ac_prev=pdfdir ;;
1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104 pdfdir=$ac_optarg ;;
1105
1106 -psdir | --psdir | --psdi | --psd | --ps)
1107 ac_prev=psdir ;;
1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 psdir=$ac_optarg ;;
1110
1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112 | -silent | --silent | --silen | --sile | --sil)
1113 silent=yes ;;
1114
1115 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116 ac_prev=sbindir ;;
1117 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118 | --sbi=* | --sb=*)
1119 sbindir=$ac_optarg ;;
1120
1121 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123 | --sharedst | --shareds | --shared | --share | --shar \
1124 | --sha | --sh)
1125 ac_prev=sharedstatedir ;;
1126 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129 | --sha=* | --sh=*)
1130 sharedstatedir=$ac_optarg ;;
1131
1132 -site | --site | --sit)
1133 ac_prev=site ;;
1134 -site=* | --site=* | --sit=*)
1135 site=$ac_optarg ;;
1136
1137 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138 ac_prev=srcdir ;;
1139 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1140 srcdir=$ac_optarg ;;
1141
1142 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143 | --syscon | --sysco | --sysc | --sys | --sy)
1144 ac_prev=sysconfdir ;;
1145 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1147 sysconfdir=$ac_optarg ;;
1148
1149 -target | --target | --targe | --targ | --tar | --ta | --t)
1150 ac_prev=target_alias ;;
1151 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1152 target_alias=$ac_optarg ;;
1153
1154 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155 verbose=yes ;;
1156
1157 -version | --version | --versio | --versi | --vers | -V)
1158 ac_init_version=: ;;
1159
1160 -with-* | --with-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error "invalid package name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169 "with_$ac_useropt"
1170 "*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=\$ac_optarg ;;
1175
1176 -without-* | --without-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=no ;;
1191
1192 --x)
1193 # Obsolete; use --with-x.
1194 with_x=yes ;;
1195
1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197 | --x-incl | --x-inc | --x-in | --x-i)
1198 ac_prev=x_includes ;;
1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201 x_includes=$ac_optarg ;;
1202
1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205 ac_prev=x_libraries ;;
1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208 x_libraries=$ac_optarg ;;
1209
1210 -*) as_fn_error "unrecognized option: \`$ac_option'
1211 Try \`$0 --help' for more information."
1212 ;;
1213
1214 *=*)
1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216 # Reject names that are not valid shell variable names.
1217 case $ac_envvar in #(
1218 '' | [0-9]* | *[!_$as_cr_alnum]* )
1219 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1220 esac
1221 eval $ac_envvar=\$ac_optarg
1222 export $ac_envvar ;;
1223
1224 *)
1225 # FIXME: should be removed in autoconf 3.0.
1226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1230 ;;
1231
1232 esac
1233 done
1234
1235 if test -n "$ac_prev"; then
1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237 as_fn_error "missing argument to $ac_option"
1238 fi
1239
1240 if test -n "$ac_unrecognized_opts"; then
1241 case $enable_option_checking in
1242 no) ;;
1243 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245 esac
1246 fi
1247
1248 # Check all directory arguments for consistency.
1249 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250 datadir sysconfdir sharedstatedir localstatedir includedir \
1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252 libdir localedir mandir
1253 do
1254 eval ac_val=\$$ac_var
1255 # Remove trailing slashes.
1256 case $ac_val in
1257 */ )
1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259 eval $ac_var=\$ac_val;;
1260 esac
1261 # Be sure to have absolute directory names.
1262 case $ac_val in
1263 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265 esac
1266 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1267 done
1268
1269 # There might be people who depend on the old broken behavior: `$host'
1270 # used to hold the argument of --host etc.
1271 # FIXME: To remove some day.
1272 build=$build_alias
1273 host=$host_alias
1274 target=$target_alias
1275
1276 # FIXME: To remove some day.
1277 if test "x$host_alias" != x; then
1278 if test "x$build_alias" = x; then
1279 cross_compiling=maybe
1280 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1281 If a cross compiler is detected then cross compile mode will be used." >&2
1282 elif test "x$build_alias" != "x$host_alias"; then
1283 cross_compiling=yes
1284 fi
1285 fi
1286
1287 ac_tool_prefix=
1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289
1290 test "$silent" = yes && exec 6>/dev/null
1291
1292
1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di=`ls -di .` &&
1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296 as_fn_error "working directory cannot be determined"
1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298 as_fn_error "pwd does not report name of working directory"
1299
1300
1301 # Find the source files, if location was not specified.
1302 if test -z "$srcdir"; then
1303 ac_srcdir_defaulted=yes
1304 # Try the directory containing this script, then the parent directory.
1305 ac_confdir=`$as_dirname -- "$as_myself" ||
1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310 $as_echo X"$as_myself" |
1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\/\)[^/].*/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\).*/{
1324 s//\1/
1325 q
1326 }
1327 s/.*/./; q'`
1328 srcdir=$ac_confdir
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 srcdir=..
1331 fi
1332 else
1333 ac_srcdir_defaulted=no
1334 fi
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1338 fi
1339 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340 ac_abs_confdir=`(
1341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1342 pwd)`
1343 # When building in place, set srcdir=.
1344 if test "$ac_abs_confdir" = "$ac_pwd"; then
1345 srcdir=.
1346 fi
1347 # Remove unnecessary trailing slashes from srcdir.
1348 # Double slashes in file names in object file debugging info
1349 # mess up M-x gdb in Emacs.
1350 case $srcdir in
1351 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352 esac
1353 for ac_var in $ac_precious_vars; do
1354 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_env_${ac_var}_value=\$${ac_var}
1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358 done
1359
1360 #
1361 # Report the --help message.
1362 #
1363 if test "$ac_init_help" = "long"; then
1364 # Omit some internal or obsolete options to make the list less imposing.
1365 # This message is too long to be a string in the A/UX 3.1 sh.
1366 cat <<_ACEOF
1367 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1368
1369 Usage: $0 [OPTION]... [VAR=VALUE]...
1370
1371 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372 VAR=VALUE. See below for descriptions of some of the useful variables.
1373
1374 Defaults for the options are specified in brackets.
1375
1376 Configuration:
1377 -h, --help display this help and exit
1378 --help=short display options specific to this package
1379 --help=recursive display the short help of all the included packages
1380 -V, --version display version information and exit
1381 -q, --quiet, --silent do not print \`checking...' messages
1382 --cache-file=FILE cache test results in FILE [disabled]
1383 -C, --config-cache alias for \`--cache-file=config.cache'
1384 -n, --no-create do not create output files
1385 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1386
1387 Installation directories:
1388 --prefix=PREFIX install architecture-independent files in PREFIX
1389 [$ac_default_prefix]
1390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1391 [PREFIX]
1392
1393 By default, \`make install' will install all the files in
1394 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1395 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396 for instance \`--prefix=\$HOME'.
1397
1398 For better control, use the options below.
1399
1400 Fine tuning of the installation directories:
1401 --bindir=DIR user executables [EPREFIX/bin]
1402 --sbindir=DIR system admin executables [EPREFIX/sbin]
1403 --libexecdir=DIR program executables [EPREFIX/libexec]
1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1407 --libdir=DIR object code libraries [EPREFIX/lib]
1408 --includedir=DIR C header files [PREFIX/include]
1409 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1412 --infodir=DIR info documentation [DATAROOTDIR/info]
1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1414 --mandir=DIR man documentation [DATAROOTDIR/man]
1415 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1416 --htmldir=DIR html documentation [DOCDIR]
1417 --dvidir=DIR dvi documentation [DOCDIR]
1418 --pdfdir=DIR pdf documentation [DOCDIR]
1419 --psdir=DIR ps documentation [DOCDIR]
1420 _ACEOF
1421
1422 cat <<\_ACEOF
1423
1424 Program names:
1425 --program-prefix=PREFIX prepend PREFIX to installed program names
1426 --program-suffix=SUFFIX append SUFFIX to installed program names
1427 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1428
1429 X features:
1430 --x-includes=DIR X include files are in DIR
1431 --x-libraries=DIR X library files are in DIR
1432
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 _ACEOF
1437 fi
1438
1439 if test -n "$ac_init_help"; then
1440 case $ac_init_help in
1441 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1442 esac
1443 cat <<\_ACEOF
1444
1445 Optional Features:
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --disable-ns-self-contained
1450 disable self contained build under NeXTstep
1451 --enable-asserts compile code with asserts enabled
1452 --enable-maintainer-mode
1453 enable make rules and dependencies not useful (and
1454 sometimes confusing) to the casual installer
1455 --enable-locallisppath=PATH
1456 directories Emacs should search for lisp files
1457 specific to this site
1458 --enable-checking[=LIST]
1459 enable expensive run-time checks. With LIST, enable
1460 only specific categories of checks. Categories are:
1461 all,yes,no. Flags are: stringbytes, stringoverrun,
1462 stringfreelist, xmallocoverrun, conslist
1463 --enable-profiling build emacs with profiling support. This might not
1464 work on all platforms
1465 --enable-autodepend automatically generate dependencies to .h-files.
1466 Requires GNU Make and Gcc. Enabled if GNU Make and
1467 Gcc is found
1468 --disable-largefile omit support for large files
1469
1470 Optional Packages:
1471 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1472 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1473 --without-pop don't support POP mail retrieval with movemail
1474 --with-kerberos support Kerberos-authenticated POP
1475 --with-kerberos5 support Kerberos version 5 authenticated POP
1476 --with-hesiod support Hesiod to get the POP server host
1477 --with-mmdf support MMDF mailboxes
1478 --with-mail-unlink unlink, rather than empty, mail spool after reading
1479 --with-mailhost=HOSTNAME
1480 string giving default POP mail host
1481 --without-sound don't compile with sound support
1482 --without-sync-input process async input synchronously
1483 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1484 athena, motif, no)
1485 --without-xpm don't compile with XPM image support
1486 --without-jpeg don't compile with JPEG image support
1487 --without-tiff don't compile with TIFF image support
1488 --without-gif don't compile with GIF image support
1489 --without-png don't compile with PNG image support
1490 --without-rsvg don't compile with SVG image support
1491 --without-xft don't use XFT for anti aliased fonts
1492 --without-libotf don't use libotf for OpenType font support
1493 --without-m17n-flt don't use m17n-flt for text shaping
1494 --without-toolkit-scroll-bars
1495 don't use Motif or Xaw3d scroll bars
1496 --without-xaw3d don't use Xaw3d
1497 --without-xim don't use X11 XIM
1498 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1499 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1500 console
1501 --without-dbus don't compile with D-Bus support
1502 --without-gconf don't compile with GConf support
1503 --without-selinux don't compile with SELinux support
1504 --without-makeinfo don't require makeinfo for building manuals
1505
1506 --with-pkg-config-prog=PATH
1507 path to pkg-config for finding GTK and librsvg
1508 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1509 /usr/lib, or /usr/lib64 on some platforms.
1510 --with-gnustep-conf=PATH
1511 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1512 or /etc/GNUstep/GNUstep.conf
1513 --with-x use the X Window System
1514
1515 Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 CPP C preprocessor
1524 XMKMF Path to xmkmf, Makefile generator for X Window System
1525
1526 Use these variables to override the choices made by `configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1528
1529 Report bugs to the package provider.
1530 _ACEOF
1531 ac_status=$?
1532 fi
1533
1534 if test "$ac_init_help" = "recursive"; then
1535 # If there are subdirs, report their specific --help.
1536 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537 test -d "$ac_dir" ||
1538 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1539 continue
1540 ac_builddir=.
1541
1542 case "$ac_dir" in
1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *)
1545 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1546 # A ".." for each directory in $ac_dir_suffix.
1547 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1548 case $ac_top_builddir_sub in
1549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551 esac ;;
1552 esac
1553 ac_abs_top_builddir=$ac_pwd
1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir=$ac_top_build_prefix
1557
1558 case $srcdir in
1559 .) # We are building in place.
1560 ac_srcdir=.
1561 ac_top_srcdir=$ac_top_builddir_sub
1562 ac_abs_top_srcdir=$ac_pwd ;;
1563 [\\/]* | ?:[\\/]* ) # Absolute name.
1564 ac_srcdir=$srcdir$ac_dir_suffix;
1565 ac_top_srcdir=$srcdir
1566 ac_abs_top_srcdir=$srcdir ;;
1567 *) # Relative name.
1568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569 ac_top_srcdir=$ac_top_build_prefix$srcdir
1570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 esac
1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573
1574 cd "$ac_dir" || { ac_status=$?; continue; }
1575 # Check for guested configure.
1576 if test -f "$ac_srcdir/configure.gnu"; then
1577 echo &&
1578 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579 elif test -f "$ac_srcdir/configure"; then
1580 echo &&
1581 $SHELL "$ac_srcdir/configure" --help=recursive
1582 else
1583 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584 fi || ac_status=$?
1585 cd "$ac_pwd" || { ac_status=$?; break; }
1586 done
1587 fi
1588
1589 test -n "$ac_init_help" && exit $ac_status
1590 if $ac_init_version; then
1591 cat <<\_ACEOF
1592 emacs configure 24.0.50
1593 generated by GNU Autoconf 2.65
1594
1595 Copyright (C) 2009 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1598 _ACEOF
1599 exit
1600 fi
1601
1602 ## ------------------------ ##
1603 ## Autoconf initialization. ##
1604 ## ------------------------ ##
1605
1606 # ac_fn_c_try_compile LINENO
1607 # --------------------------
1608 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1609 ac_fn_c_try_compile ()
1610 {
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext
1613 if { { ac_try="$ac_compile"
1614 case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_compile") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest.$ac_objext; then :
1632 ac_retval=0
1633 else
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637 ac_retval=1
1638 fi
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_compile
1643
1644 # ac_fn_c_try_link LINENO
1645 # -----------------------
1646 # Try to link conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_c_try_link ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext conftest$ac_exeext
1651 if { { ac_try="$ac_link"
1652 case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_link") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1664 fi
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest$ac_exeext && {
1670 test "$cross_compiling" = yes ||
1671 $as_test_x conftest$ac_exeext
1672 }; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679 fi
1680 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1681 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1682 # interfere with the next link command; also delete a directory that is
1683 # left behind by Apple's compiler. We do this before executing the actions.
1684 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686 as_fn_set_status $ac_retval
1687
1688 } # ac_fn_c_try_link
1689
1690 # ac_fn_c_try_cpp LINENO
1691 # ----------------------
1692 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_cpp ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_cpp conftest.$ac_ext"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1709 fi
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } >/dev/null && {
1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 }; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=1
1721 fi
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 as_fn_set_status $ac_retval
1724
1725 } # ac_fn_c_try_cpp
1726
1727 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1728 # -------------------------------------------------------
1729 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1730 # the include files in INCLUDES and setting the cache variable VAR
1731 # accordingly.
1732 ac_fn_c_check_header_mongrel ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1739 $as_echo_n "(cached) " >&6
1740 fi
1741 eval ac_res=\$$3
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744 else
1745 # Is the header compilable?
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1747 $as_echo_n "checking $2 usability... " >&6; }
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 $4
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 ac_header_compiler=yes
1755 else
1756 ac_header_compiler=no
1757 fi
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1760 $as_echo "$ac_header_compiler" >&6; }
1761
1762 # Is the header present?
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1764 $as_echo_n "checking $2 presence... " >&6; }
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 #include <$2>
1768 _ACEOF
1769 if ac_fn_c_try_cpp "$LINENO"; then :
1770 ac_header_preproc=yes
1771 else
1772 ac_header_preproc=no
1773 fi
1774 rm -f conftest.err conftest.$ac_ext
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1776 $as_echo "$ac_header_preproc" >&6; }
1777
1778 # So? What about this header?
1779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1780 yes:no: )
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1782 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1784 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1785 ;;
1786 no:yes:* )
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1788 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1790 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1792 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1794 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1796 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1797 ;;
1798 esac
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1802 $as_echo_n "(cached) " >&6
1803 else
1804 eval "$3=\$ac_header_compiler"
1805 fi
1806 eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 fi
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811
1812 } # ac_fn_c_check_header_mongrel
1813
1814 # ac_fn_c_try_run LINENO
1815 # ----------------------
1816 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1817 # that executables *can* be run.
1818 ac_fn_c_try_run ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if { { ac_try="$ac_link"
1822 case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_link") 2>&5
1829 ac_status=$?
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1832 { { case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_try") 2>&5
1839 ac_status=$?
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; }; }; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: program exited with status $ac_status" >&5
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1847
1848 ac_retval=$ac_status
1849 fi
1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 as_fn_set_status $ac_retval
1853
1854 } # ac_fn_c_try_run
1855
1856 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1857 # -------------------------------------------------------
1858 # Tests whether HEADER exists and can be compiled using the include files in
1859 # INCLUDES, setting the cache variable VAR accordingly.
1860 ac_fn_c_check_header_compile ()
1861 {
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1866 $as_echo_n "(cached) " >&6
1867 else
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1870 $4
1871 #include <$2>
1872 _ACEOF
1873 if ac_fn_c_try_compile "$LINENO"; then :
1874 eval "$3=yes"
1875 else
1876 eval "$3=no"
1877 fi
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 fi
1880 eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884
1885 } # ac_fn_c_check_header_compile
1886
1887 # ac_fn_c_check_decl LINENO SYMBOL VAR
1888 # ------------------------------------
1889 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1890 ac_fn_c_check_decl ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1894 $as_echo_n "checking whether $2 is declared... " >&6; }
1895 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896 $as_echo_n "(cached) " >&6
1897 else
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 $4
1901 int
1902 main ()
1903 {
1904 #ifndef $2
1905 (void) $2;
1906 #endif
1907
1908 ;
1909 return 0;
1910 }
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913 eval "$3=yes"
1914 else
1915 eval "$3=no"
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 fi
1919 eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923
1924 } # ac_fn_c_check_decl
1925
1926 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1927 # ----------------------------------------------
1928 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1929 ac_fn_c_check_header_preproc ()
1930 {
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1935 $as_echo_n "(cached) " >&6
1936 else
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1939 #include <$2>
1940 _ACEOF
1941 if ac_fn_c_try_cpp "$LINENO"; then :
1942 eval "$3=yes"
1943 else
1944 eval "$3=no"
1945 fi
1946 rm -f conftest.err conftest.$ac_ext
1947 fi
1948 eval ac_res=\$$3
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952
1953 } # ac_fn_c_check_header_preproc
1954
1955 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1956 # ----------------------------------------------------
1957 # Tries to find if the field MEMBER exists in type AGGR, after including
1958 # INCLUDES, setting cache variable VAR accordingly.
1959 ac_fn_c_check_member ()
1960 {
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1963 $as_echo_n "checking for $2.$3... " >&6; }
1964 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1965 $as_echo_n "(cached) " >&6
1966 else
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1969 $5
1970 int
1971 main ()
1972 {
1973 static $2 ac_aggr;
1974 if (ac_aggr.$3)
1975 return 0;
1976 ;
1977 return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981 eval "$4=yes"
1982 else
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1985 $5
1986 int
1987 main ()
1988 {
1989 static $2 ac_aggr;
1990 if (sizeof ac_aggr.$3)
1991 return 0;
1992 ;
1993 return 0;
1994 }
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997 eval "$4=yes"
1998 else
1999 eval "$4=no"
2000 fi
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 fi
2005 eval ac_res=\$$4
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009
2010 } # ac_fn_c_check_member
2011
2012 # ac_fn_c_check_func LINENO FUNC VAR
2013 # ----------------------------------
2014 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2015 ac_fn_c_check_func ()
2016 {
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2021 $as_echo_n "(cached) " >&6
2022 else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2027 #define $2 innocuous_$2
2028
2029 /* System header to define __stub macros and hopefully few prototypes,
2030 which can conflict with char $2 (); below.
2031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2032 <limits.h> exists even on freestanding compilers. */
2033
2034 #ifdef __STDC__
2035 # include <limits.h>
2036 #else
2037 # include <assert.h>
2038 #endif
2039
2040 #undef $2
2041
2042 /* Override any GCC internal prototype to avoid an error.
2043 Use char because int might match the return type of a GCC
2044 builtin and then its argument prototype would still apply. */
2045 #ifdef __cplusplus
2046 extern "C"
2047 #endif
2048 char $2 ();
2049 /* The GNU C library defines this for functions which it implements
2050 to always fail with ENOSYS. Some functions are actually named
2051 something starting with __ and the normal name is an alias. */
2052 #if defined __stub_$2 || defined __stub___$2
2053 choke me
2054 #endif
2055
2056 int
2057 main ()
2058 {
2059 return $2 ();
2060 ;
2061 return 0;
2062 }
2063 _ACEOF
2064 if ac_fn_c_try_link "$LINENO"; then :
2065 eval "$3=yes"
2066 else
2067 eval "$3=no"
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext \
2070 conftest$ac_exeext conftest.$ac_ext
2071 fi
2072 eval ac_res=\$$3
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2076
2077 } # ac_fn_c_check_func
2078
2079 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2080 # -------------------------------------------
2081 # Tests whether TYPE exists after having included INCLUDES, setting cache
2082 # variable VAR accordingly.
2083 ac_fn_c_check_type ()
2084 {
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2089 $as_echo_n "(cached) " >&6
2090 else
2091 eval "$3=no"
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2094 $4
2095 int
2096 main ()
2097 {
2098 if (sizeof ($2))
2099 return 0;
2100 ;
2101 return 0;
2102 }
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2107 $4
2108 int
2109 main ()
2110 {
2111 if (sizeof (($2)))
2112 return 0;
2113 ;
2114 return 0;
2115 }
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"; then :
2118
2119 else
2120 eval "$3=yes"
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 fi
2126 eval ac_res=\$$3
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 $as_echo "$ac_res" >&6; }
2129 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2130
2131 } # ac_fn_c_check_type
2132 cat >config.log <<_ACEOF
2133 This file contains any messages produced by compilers while
2134 running configure, to aid debugging if configure makes a mistake.
2135
2136 It was created by emacs $as_me 24.0.50, which was
2137 generated by GNU Autoconf 2.65. Invocation command line was
2138
2139 $ $0 $@
2140
2141 _ACEOF
2142 exec 5>>config.log
2143 {
2144 cat <<_ASUNAME
2145 ## --------- ##
2146 ## Platform. ##
2147 ## --------- ##
2148
2149 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2150 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2151 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2152 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2153 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2154
2155 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2156 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2157
2158 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2159 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2160 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2161 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2162 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2163 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2164 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2165
2166 _ASUNAME
2167
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 for as_dir in $PATH
2170 do
2171 IFS=$as_save_IFS
2172 test -z "$as_dir" && as_dir=.
2173 $as_echo "PATH: $as_dir"
2174 done
2175 IFS=$as_save_IFS
2176
2177 } >&5
2178
2179 cat >&5 <<_ACEOF
2180
2181
2182 ## ----------- ##
2183 ## Core tests. ##
2184 ## ----------- ##
2185
2186 _ACEOF
2187
2188
2189 # Keep a trace of the command line.
2190 # Strip out --no-create and --no-recursion so they do not pile up.
2191 # Strip out --silent because we don't want to record it for future runs.
2192 # Also quote any args containing shell meta-characters.
2193 # Make two passes to allow for proper duplicate-argument suppression.
2194 ac_configure_args=
2195 ac_configure_args0=
2196 ac_configure_args1=
2197 ac_must_keep_next=false
2198 for ac_pass in 1 2
2199 do
2200 for ac_arg
2201 do
2202 case $ac_arg in
2203 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2205 | -silent | --silent | --silen | --sile | --sil)
2206 continue ;;
2207 *\'*)
2208 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2209 esac
2210 case $ac_pass in
2211 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2212 2)
2213 as_fn_append ac_configure_args1 " '$ac_arg'"
2214 if test $ac_must_keep_next = true; then
2215 ac_must_keep_next=false # Got value, back to normal.
2216 else
2217 case $ac_arg in
2218 *=* | --config-cache | -C | -disable-* | --disable-* \
2219 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2220 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2221 | -with-* | --with-* | -without-* | --without-* | --x)
2222 case "$ac_configure_args0 " in
2223 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2224 esac
2225 ;;
2226 -* ) ac_must_keep_next=true ;;
2227 esac
2228 fi
2229 as_fn_append ac_configure_args " '$ac_arg'"
2230 ;;
2231 esac
2232 done
2233 done
2234 { ac_configure_args0=; unset ac_configure_args0;}
2235 { ac_configure_args1=; unset ac_configure_args1;}
2236
2237 # When interrupted or exit'd, cleanup temporary files, and complete
2238 # config.log. We remove comments because anyway the quotes in there
2239 # would cause problems or look ugly.
2240 # WARNING: Use '\'' to represent an apostrophe within the trap.
2241 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2242 trap 'exit_status=$?
2243 # Save into config.log some information that might help in debugging.
2244 {
2245 echo
2246
2247 cat <<\_ASBOX
2248 ## ---------------- ##
2249 ## Cache variables. ##
2250 ## ---------------- ##
2251 _ASBOX
2252 echo
2253 # The following way of writing the cache mishandles newlines in values,
2254 (
2255 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2256 eval ac_val=\$$ac_var
2257 case $ac_val in #(
2258 *${as_nl}*)
2259 case $ac_var in #(
2260 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2261 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2262 esac
2263 case $ac_var in #(
2264 _ | IFS | as_nl) ;; #(
2265 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2266 *) { eval $ac_var=; unset $ac_var;} ;;
2267 esac ;;
2268 esac
2269 done
2270 (set) 2>&1 |
2271 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2272 *${as_nl}ac_space=\ *)
2273 sed -n \
2274 "s/'\''/'\''\\\\'\'''\''/g;
2275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2276 ;; #(
2277 *)
2278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2279 ;;
2280 esac |
2281 sort
2282 )
2283 echo
2284
2285 cat <<\_ASBOX
2286 ## ----------------- ##
2287 ## Output variables. ##
2288 ## ----------------- ##
2289 _ASBOX
2290 echo
2291 for ac_var in $ac_subst_vars
2292 do
2293 eval ac_val=\$$ac_var
2294 case $ac_val in
2295 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2296 esac
2297 $as_echo "$ac_var='\''$ac_val'\''"
2298 done | sort
2299 echo
2300
2301 if test -n "$ac_subst_files"; then
2302 cat <<\_ASBOX
2303 ## ------------------- ##
2304 ## File substitutions. ##
2305 ## ------------------- ##
2306 _ASBOX
2307 echo
2308 for ac_var in $ac_subst_files
2309 do
2310 eval ac_val=\$$ac_var
2311 case $ac_val in
2312 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2313 esac
2314 $as_echo "$ac_var='\''$ac_val'\''"
2315 done | sort
2316 echo
2317 fi
2318
2319 if test -s confdefs.h; then
2320 cat <<\_ASBOX
2321 ## ----------- ##
2322 ## confdefs.h. ##
2323 ## ----------- ##
2324 _ASBOX
2325 echo
2326 cat confdefs.h
2327 echo
2328 fi
2329 test "$ac_signal" != 0 &&
2330 $as_echo "$as_me: caught signal $ac_signal"
2331 $as_echo "$as_me: exit $exit_status"
2332 } >&5
2333 rm -f core *.core core.conftest.* &&
2334 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2335 exit $exit_status
2336 ' 0
2337 for ac_signal in 1 2 13 15; do
2338 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2339 done
2340 ac_signal=0
2341
2342 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2343 rm -f -r conftest* confdefs.h
2344
2345 $as_echo "/* confdefs.h */" > confdefs.h
2346
2347 # Predefined preprocessor variables.
2348
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_NAME "$PACKAGE_NAME"
2351 _ACEOF
2352
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2355 _ACEOF
2356
2357 cat >>confdefs.h <<_ACEOF
2358 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2359 _ACEOF
2360
2361 cat >>confdefs.h <<_ACEOF
2362 #define PACKAGE_STRING "$PACKAGE_STRING"
2363 _ACEOF
2364
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2367 _ACEOF
2368
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_URL "$PACKAGE_URL"
2371 _ACEOF
2372
2373
2374 # Let the site file select an alternate cache file if it wants to.
2375 # Prefer an explicitly selected file to automatically selected ones.
2376 ac_site_file1=NONE
2377 ac_site_file2=NONE
2378 if test -n "$CONFIG_SITE"; then
2379 ac_site_file1=$CONFIG_SITE
2380 elif test "x$prefix" != xNONE; then
2381 ac_site_file1=$prefix/share/config.site
2382 ac_site_file2=$prefix/etc/config.site
2383 else
2384 ac_site_file1=$ac_default_prefix/share/config.site
2385 ac_site_file2=$ac_default_prefix/etc/config.site
2386 fi
2387 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2388 do
2389 test "x$ac_site_file" = xNONE && continue
2390 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2392 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2393 sed 's/^/| /' "$ac_site_file" >&5
2394 . "$ac_site_file"
2395 fi
2396 done
2397
2398 if test -r "$cache_file"; then
2399 # Some versions of bash will fail to source /dev/null (special files
2400 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2401 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2403 $as_echo "$as_me: loading cache $cache_file" >&6;}
2404 case $cache_file in
2405 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2406 *) . "./$cache_file";;
2407 esac
2408 fi
2409 else
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2411 $as_echo "$as_me: creating cache $cache_file" >&6;}
2412 >$cache_file
2413 fi
2414
2415 as_fn_append ac_header_list " stdlib.h"
2416 as_fn_append ac_header_list " unistd.h"
2417 as_fn_append ac_header_list " sys/param.h"
2418 as_fn_append ac_header_list " sys/time.h"
2419 as_fn_append ac_func_list " alarm"
2420 # Check that the precious variables saved in the cache have kept the same
2421 # value.
2422 ac_cache_corrupted=false
2423 for ac_var in $ac_precious_vars; do
2424 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2425 eval ac_new_set=\$ac_env_${ac_var}_set
2426 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2427 eval ac_new_val=\$ac_env_${ac_var}_value
2428 case $ac_old_set,$ac_new_set in
2429 set,)
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2431 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2432 ac_cache_corrupted=: ;;
2433 ,set)
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2435 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2436 ac_cache_corrupted=: ;;
2437 ,);;
2438 *)
2439 if test "x$ac_old_val" != "x$ac_new_val"; then
2440 # differences in whitespace do not lead to failure.
2441 ac_old_val_w=`echo x $ac_old_val`
2442 ac_new_val_w=`echo x $ac_new_val`
2443 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2445 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2446 ac_cache_corrupted=:
2447 else
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2449 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2450 eval $ac_var=\$ac_old_val
2451 fi
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2453 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2455 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2456 fi;;
2457 esac
2458 # Pass precious variables to config.status.
2459 if test "$ac_new_set" = set; then
2460 case $ac_new_val in
2461 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2462 *) ac_arg=$ac_var=$ac_new_val ;;
2463 esac
2464 case " $ac_configure_args " in
2465 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2466 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2467 esac
2468 fi
2469 done
2470 if $ac_cache_corrupted; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2474 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2475 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2476 fi
2477 ## -------------------- ##
2478 ## Main body of script. ##
2479 ## -------------------- ##
2480
2481 ac_ext=c
2482 ac_cpp='$CPP $CPPFLAGS'
2483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2486
2487
2488 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2489
2490
2491
2492 test "$program_prefix" != NONE &&
2493 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2494 # Use a double $ so make ignores it.
2495 test "$program_suffix" != NONE &&
2496 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2497 # Double any \ or $.
2498 # By default was `s,x,x', remove it if useless.
2499 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2500 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2501
2502
2503 lispdir='${datadir}/emacs/${version}/lisp'
2504 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2505 '${datadir}/emacs/site-lisp'
2506 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2507 etcdir='${datadir}/emacs/${version}/etc'
2508 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2509 docdir='${datadir}/emacs/${version}/etc'
2510 gamedir='${localstatedir}/games/emacs'
2511
2512 gameuser=games
2513
2514
2515
2516
2517 # Check whether --with-pop was given.
2518 if test "${with_pop+set}" = set; then :
2519 withval=$with_pop;
2520 else
2521 with_pop=yes
2522 fi
2523
2524 if test "$with_pop" = yes; then
2525 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2526
2527 fi
2528
2529
2530 # Check whether --with-kerberos was given.
2531 if test "${with_kerberos+set}" = set; then :
2532 withval=$with_kerberos;
2533 else
2534 with_kerberos=no
2535 fi
2536
2537 if test "$with_kerberos" != no; then
2538 $as_echo "#define KERBEROS 1" >>confdefs.h
2539
2540 fi
2541
2542
2543 # Check whether --with-kerberos5 was given.
2544 if test "${with_kerberos5+set}" = set; then :
2545 withval=$with_kerberos5;
2546 else
2547 with_kerberos5=no
2548 fi
2549
2550 if test "${with_kerberos5}" != no; then
2551 if test "${with_kerberos}" = no; then
2552 with_kerberos=yes
2553 $as_echo "#define KERBEROS 1" >>confdefs.h
2554
2555 fi
2556
2557 $as_echo "#define KERBEROS5 1" >>confdefs.h
2558
2559 fi
2560
2561
2562 # Check whether --with-hesiod was given.
2563 if test "${with_hesiod+set}" = set; then :
2564 withval=$with_hesiod;
2565 else
2566 with_hesiod=no
2567 fi
2568
2569 if test "$with_hesiod" != no; then
2570
2571 $as_echo "#define HESIOD 1" >>confdefs.h
2572
2573 fi
2574
2575
2576 # Check whether --with-mmdf was given.
2577 if test "${with_mmdf+set}" = set; then :
2578 withval=$with_mmdf;
2579 else
2580 with_mmdf=no
2581 fi
2582
2583 if test "$with_mmdf" != no; then
2584
2585 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2586
2587 fi
2588
2589
2590 # Check whether --with-mail-unlink was given.
2591 if test "${with_mail_unlink+set}" = set; then :
2592 withval=$with_mail_unlink;
2593 else
2594 with_mail_unlink=no
2595 fi
2596
2597 if test "$with_mail_unlink" != no; then
2598
2599 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2600
2601 fi
2602
2603
2604 # Check whether --with-mailhost was given.
2605 if test "${with_mailhost+set}" = set; then :
2606 withval=$with_mailhost;
2607 cat >>confdefs.h <<_ACEOF
2608 #define MAILHOST "$withval"
2609 _ACEOF
2610
2611 fi
2612
2613
2614
2615 # Check whether --with-sound was given.
2616 if test "${with_sound+set}" = set; then :
2617 withval=$with_sound;
2618 else
2619 with_sound=yes
2620 fi
2621
2622
2623
2624 # Check whether --with-sync-input was given.
2625 if test "${with_sync_input+set}" = set; then :
2626 withval=$with_sync_input;
2627 else
2628 with_sync_input=yes
2629 fi
2630
2631 if test "$with_sync_input" = yes; then
2632
2633 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2634
2635 fi
2636
2637
2638 # Check whether --with-x-toolkit was given.
2639 if test "${with_x_toolkit+set}" = set; then :
2640 withval=$with_x_toolkit; case "${withval}" in
2641 y | ye | yes ) val=gtk ;;
2642 n | no ) val=no ;;
2643 l | lu | luc | luci | lucid ) val=lucid ;;
2644 a | at | ath | athe | athen | athena ) val=athena ;;
2645 m | mo | mot | moti | motif ) val=motif ;;
2646 g | gt | gtk ) val=gtk ;;
2647 * )
2648 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2649 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2650 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2651 ;;
2652 esac
2653 with_x_toolkit=$val
2654
2655 fi
2656
2657
2658
2659 # Check whether --with-xpm was given.
2660 if test "${with_xpm+set}" = set; then :
2661 withval=$with_xpm;
2662 else
2663 with_xpm=yes
2664 fi
2665
2666
2667 # Check whether --with-jpeg was given.
2668 if test "${with_jpeg+set}" = set; then :
2669 withval=$with_jpeg;
2670 else
2671 with_jpeg=yes
2672 fi
2673
2674
2675 # Check whether --with-tiff was given.
2676 if test "${with_tiff+set}" = set; then :
2677 withval=$with_tiff;
2678 else
2679 with_tiff=yes
2680 fi
2681
2682
2683 # Check whether --with-gif was given.
2684 if test "${with_gif+set}" = set; then :
2685 withval=$with_gif;
2686 else
2687 with_gif=yes
2688 fi
2689
2690
2691 # Check whether --with-png was given.
2692 if test "${with_png+set}" = set; then :
2693 withval=$with_png;
2694 else
2695 with_png=yes
2696 fi
2697
2698
2699 # Check whether --with-rsvg was given.
2700 if test "${with_rsvg+set}" = set; then :
2701 withval=$with_rsvg;
2702 else
2703 with_rsvg=yes
2704 fi
2705
2706
2707
2708 # Check whether --with-xft was given.
2709 if test "${with_xft+set}" = set; then :
2710 withval=$with_xft;
2711 else
2712 with_xft=yes
2713 fi
2714
2715
2716 # Check whether --with-libotf was given.
2717 if test "${with_libotf+set}" = set; then :
2718 withval=$with_libotf;
2719 else
2720 with_libotf=yes
2721 fi
2722
2723
2724 # Check whether --with-m17n-flt was given.
2725 if test "${with_m17n_flt+set}" = set; then :
2726 withval=$with_m17n_flt;
2727 else
2728 with_m17n_flt=yes
2729 fi
2730
2731
2732
2733 # Check whether --with-toolkit-scroll-bars was given.
2734 if test "${with_toolkit_scroll_bars+set}" = set; then :
2735 withval=$with_toolkit_scroll_bars;
2736 else
2737 with_toolkit_scroll_bars=yes
2738 fi
2739
2740
2741 # Check whether --with-xaw3d was given.
2742 if test "${with_xaw3d+set}" = set; then :
2743 withval=$with_xaw3d;
2744 else
2745 with_xaw3d=yes
2746 fi
2747
2748
2749 # Check whether --with-xim was given.
2750 if test "${with_xim+set}" = set; then :
2751 withval=$with_xim;
2752 else
2753 with_xim=yes
2754 fi
2755
2756
2757 # Check whether --with-ns was given.
2758 if test "${with_ns+set}" = set; then :
2759 withval=$with_ns;
2760 else
2761 with_ns=no
2762 fi
2763
2764
2765
2766 # Check whether --with-gpm was given.
2767 if test "${with_gpm+set}" = set; then :
2768 withval=$with_gpm;
2769 else
2770 with_gpm=yes
2771 fi
2772
2773
2774 # Check whether --with-dbus was given.
2775 if test "${with_dbus+set}" = set; then :
2776 withval=$with_dbus;
2777 else
2778 with_dbus=yes
2779 fi
2780
2781
2782 # Check whether --with-gconf was given.
2783 if test "${with_gconf+set}" = set; then :
2784 withval=$with_gconf;
2785 else
2786 with_gconf=yes
2787 fi
2788
2789
2790 # Check whether --with-selinux was given.
2791 if test "${with_selinux+set}" = set; then :
2792 withval=$with_selinux;
2793 else
2794 with_selinux=yes
2795 fi
2796
2797
2798 ## For the times when you want to build Emacs but don't have
2799 ## a suitable makeinfo, and can live without the manuals.
2800
2801 # Check whether --with-makeinfo was given.
2802 if test "${with_makeinfo+set}" = set; then :
2803 withval=$with_makeinfo;
2804 else
2805 with_makeinfo=yes
2806 fi
2807
2808
2809
2810 # Check whether --with-gtk was given.
2811 if test "${with_gtk+set}" = set; then :
2812 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use --with-x-toolkit to
2813 specify a toolkit." "$LINENO" 5
2814 fi
2815
2816
2817
2818 # Check whether --with-gcc was given.
2819 if test "${with_gcc+set}" = set; then :
2820 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \`CC' environment
2821 variable to specify a compiler." "$LINENO" 5
2822 fi
2823
2824
2825
2826 # Check whether --with-pkg-config-prog was given.
2827 if test "${with_pkg_config_prog+set}" = set; then :
2828 withval=$with_pkg_config_prog;
2829 fi
2830
2831 if test "X${with_pkg_config_prog}" != X; then
2832 if test "${with_pkg_config_prog}" != yes; then
2833 PKG_CONFIG="${with_pkg_config_prog}"
2834 fi
2835 fi
2836
2837 CRT_DIR=
2838
2839 # Check whether --with-crt-dir was given.
2840 if test "${with_crt_dir+set}" = set; then :
2841 withval=$with_crt_dir;
2842 fi
2843
2844 CRT_DIR="${with_crt_dir}"
2845
2846
2847 # Check whether --with-gnustep-conf was given.
2848 if test "${with_gnustep_conf+set}" = set; then :
2849 withval=$with_gnustep_conf;
2850 fi
2851
2852 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2853 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2854 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2855 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2856
2857 # Check whether --enable-ns-self-contained was given.
2858 if test "${enable_ns_self_contained+set}" = set; then :
2859 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2860 else
2861 EN_NS_SELF_CONTAINED=yes
2862 fi
2863
2864
2865 # Check whether --enable-asserts was given.
2866 if test "${enable_asserts+set}" = set; then :
2867 enableval=$enable_asserts; USE_XASSERTS=$enableval
2868 else
2869 USE_XASSERTS=no
2870 fi
2871
2872
2873 # Check whether --enable-maintainer-mode was given.
2874 if test "${enable_maintainer_mode+set}" = set; then :
2875 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2876 else
2877 USE_MAINTAINER_MODE=no
2878 fi
2879
2880 if test $USE_MAINTAINER_MODE = yes; then
2881 MAINT=
2882 else
2883 MAINT=#
2884 fi
2885
2886
2887 # Check whether --enable-locallisppath was given.
2888 if test "${enable_locallisppath+set}" = set; then :
2889 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2890 locallisppath=
2891 elif test "${enableval}" != "yes"; then
2892 locallisppath=${enableval}
2893 fi
2894 fi
2895
2896
2897 # Check whether --enable-checking was given.
2898 if test "${enable_checking+set}" = set; then :
2899 enableval=$enable_checking; ac_checking_flags="${enableval}"
2900 fi
2901
2902 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2903 for check in $ac_checking_flags
2904 do
2905 case $check in
2906 # these set all the flags to specific states
2907 yes) ac_enable_checking=1 ;;
2908 no) ac_enable_checking= ;
2909 ac_gc_check_stringbytes= ;
2910 ac_gc_check_string_overrun= ;
2911 ac_gc_check_string_free_list= ;
2912 ac_xmalloc_overrun= ;
2913 ac_gc_check_cons_list= ;;
2914 all) ac_enable_checking=1 ;
2915 ac_gc_check_stringbytes=1 ;
2916 ac_gc_check_string_overrun=1 ;
2917 ac_gc_check_string_free_list=1 ;
2918 ac_xmalloc_overrun=1 ;
2919 ac_gc_check_cons_list=1 ;;
2920 # these enable particular checks
2921 stringbytes) ac_gc_check_stringbytes=1 ;;
2922 stringoverrun) ac_gc_check_string_overrun=1 ;;
2923 stringfreelist) ac_gc_check_string_free_list=1 ;;
2924 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2925 conslist) ac_gc_check_cons_list=1 ;;
2926 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2927 esac
2928 done
2929 IFS="$ac_save_IFS"
2930
2931 if test x$ac_enable_checking != x ; then
2932
2933 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2934
2935 fi
2936 if test x$ac_gc_check_stringbytes != x ; then
2937
2938 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2939
2940 fi
2941 if test x$ac_gc_check_stringoverrun != x ; then
2942
2943 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2944
2945 fi
2946 if test x$ac_gc_check_string_free_list != x ; then
2947
2948 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2949
2950 fi
2951 if test x$ac_xmalloc_overrun != x ; then
2952
2953 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2954
2955 fi
2956 if test x$ac_gc_check_cons_list != x ; then
2957
2958 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2959
2960 fi
2961
2962 # Check whether --enable-profiling was given.
2963 if test "${enable_profiling+set}" = set; then :
2964 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2965 fi
2966
2967 if test x$ac_enable_profiling != x ; then
2968 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2969 PROFILING_LDFLAGS="-pg"
2970 else
2971 PROFILING_CFLAGS=
2972 PROFILING_LDFLAGS=
2973 fi
2974
2975 # Check whether --enable-autodepend was given.
2976 if test "${enable_autodepend+set}" = set; then :
2977 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2978 else
2979 ac_enable_autodepend=yes
2980 fi
2981
2982
2983 #### Make srcdir absolute, if it isn't already. It's important to
2984 #### avoid running the path through pwd unnecessarily, since pwd can
2985 #### give you automounter prefixes, which can go away. We do all this
2986 #### so Emacs can find its files when run uninstalled.
2987 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2988 unset CDPATH
2989 case "${srcdir}" in
2990 /* ) ;;
2991 . )
2992 ## We may be able to use the $PWD environment variable to make this
2993 ## absolute. But sometimes PWD is inaccurate.
2994 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2995 ## but that tested only for a well-formed and valid PWD,
2996 ## it did not object when PWD was well-formed and valid but just wrong.
2997 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2998 then
2999 srcdir="$PWD"
3000 else
3001 srcdir="`(cd ${srcdir}; pwd)`"
3002 fi
3003 ;;
3004 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3005 esac
3006
3007 #### Check if the source directory already has a configured system in it.
3008 if test `pwd` != `(cd ${srcdir} && pwd)` \
3009 && test -f "${srcdir}/src/config.h" ; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3011 as a build directory right now; it has been configured in its own
3012 right. To configure in another directory as well, you MUST
3013 use GNU make. If you do not have GNU make, then you must
3014 now do \`make distclean' in ${srcdir},
3015 and then run $0 again." >&5
3016 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3017 as a build directory right now; it has been configured in its own
3018 right. To configure in another directory as well, you MUST
3019 use GNU make. If you do not have GNU make, then you must
3020 now do \`make distclean' in ${srcdir},
3021 and then run $0 again." >&2;}
3022 fi
3023
3024 #### Given the configuration name, set machfile and opsysfile to the
3025 #### names of the m/*.h and s/*.h files we should use.
3026
3027 ### Canonicalize the configuration name.
3028
3029 ac_aux_dir=
3030 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3031 for ac_t in install-sh install.sh shtool; do
3032 if test -f "$ac_dir/$ac_t"; then
3033 ac_aux_dir=$ac_dir
3034 ac_install_sh="$ac_aux_dir/$ac_t -c"
3035 break 2
3036 fi
3037 done
3038 done
3039 if test -z "$ac_aux_dir"; then
3040 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3041 fi
3042
3043 # These three variables are undocumented and unsupported,
3044 # and are intended to be withdrawn in a future Autoconf release.
3045 # They can cause serious problems if a builder's source tree is in a directory
3046 # whose full name contains unusual characters.
3047 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3048 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3049 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3050
3051
3052 # Make sure we can run config.sub.
3053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3054 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3055
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3057 $as_echo_n "checking build system type... " >&6; }
3058 if test "${ac_cv_build+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 ac_build_alias=$build_alias
3062 test "x$ac_build_alias" = x &&
3063 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3064 test "x$ac_build_alias" = x &&
3065 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3066 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3067 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3068
3069 fi
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3071 $as_echo "$ac_cv_build" >&6; }
3072 case $ac_cv_build in
3073 *-*-*) ;;
3074 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3075 esac
3076 build=$ac_cv_build
3077 ac_save_IFS=$IFS; IFS='-'
3078 set x $ac_cv_build
3079 shift
3080 build_cpu=$1
3081 build_vendor=$2
3082 shift; shift
3083 # Remember, the first character of IFS is used to create $*,
3084 # except with old shells:
3085 build_os=$*
3086 IFS=$ac_save_IFS
3087 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3088
3089
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3091 $as_echo_n "checking host system type... " >&6; }
3092 if test "${ac_cv_host+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test "x$host_alias" = x; then
3096 ac_cv_host=$ac_cv_build
3097 else
3098 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3099 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3100 fi
3101
3102 fi
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3104 $as_echo "$ac_cv_host" >&6; }
3105 case $ac_cv_host in
3106 *-*-*) ;;
3107 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3108 esac
3109 host=$ac_cv_host
3110 ac_save_IFS=$IFS; IFS='-'
3111 set x $ac_cv_host
3112 shift
3113 host_cpu=$1
3114 host_vendor=$2
3115 shift; shift
3116 # Remember, the first character of IFS is used to create $*,
3117 # except with old shells:
3118 host_os=$*
3119 IFS=$ac_save_IFS
3120 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3121
3122
3123 canonical=$host
3124 configuration=${host_alias-${build_alias-$host}}
3125
3126
3127
3128 ### If you add support for a new configuration, add code to this
3129 ### switch statement to recognize your configuration name and select
3130 ### the appropriate operating system and machine description files.
3131
3132 ### You would hope that you could choose an m/*.h file pretty much
3133 ### based on the machine portion of the configuration name, and an s-
3134 ### file based on the operating system portion. However, it turns out
3135 ### that each m/*.h file is pretty manufacturer-specific - for
3136 ### example mips.h is MIPS
3137 ### So we basically have to have a special case for each
3138 ### configuration name.
3139 ###
3140 ### As far as handling version numbers on operating systems is
3141 ### concerned, make sure things will fail in a fixable way. If
3142 ### /etc/MACHINES doesn't say anything about version numbers, be
3143 ### prepared to handle anything reasonably. If version numbers
3144 ### matter, be sure /etc/MACHINES says something about it.
3145 ###
3146 ### Eric Raymond says we should accept strings like "sysvr4" to mean
3147 ### "System V Release 4"; he writes, "The old convention encouraged
3148 ### confusion between `system' and `release' levels'."
3149
3150 machine='' opsys='' unported=no
3151 case "${canonical}" in
3152
3153 ## FreeBSD ports
3154 *-*-freebsd* )
3155 opsys=freebsd
3156 case "${canonical}" in
3157 alpha*-*-freebsd*) machine=alpha ;;
3158 arm*-*-freebsd*) machine=arm ;;
3159 ia64-*-freebsd*) machine=ia64 ;;
3160 sparc-*-freebsd*) machine=sparc ;;
3161 sparc64-*-freebsd*) machine=sparc ;;
3162 powerpc-*-freebsd*) machine=macppc ;;
3163 i[3456]86-*-freebsd*) machine=intel386 ;;
3164 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
3165 esac
3166 ;;
3167
3168 ## FreeBSD kernel + glibc based userland
3169 *-*-kfreebsd*gnu* )
3170 opsys=gnu-kfreebsd
3171 case "${canonical}" in
3172 alpha*-*-kfreebsd*) machine=alpha ;;
3173 ia64-*-kfreebsd*) machine=ia64 ;;
3174 sparc-*-kfreebsd*) machine=sparc ;;
3175 sparc64-*-kfreebsd*) machine=sparc ;;
3176 powerpc-*-kfreebsd*) machine=macppc ;;
3177 i[3456]86-*-kfreebsd*) machine=intel386 ;;
3178 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
3179 esac
3180 ;;
3181
3182 ## NetBSD ports
3183 *-*-netbsd* )
3184 opsys=netbsd
3185 case "${canonical}" in
3186 alpha*-*-netbsd*) machine=alpha ;;
3187 i[3456]86-*-netbsd*) machine=intel386 ;;
3188 mips-*-netbsd*) machine=mips ;;
3189 mipsel-*-netbsd*) machine=mips ;;
3190 mipseb-*-netbsd*) machine=mips ;;
3191 powerpc-*-netbsd*) machine=macppc ;;
3192 sparc*-*-netbsd*) machine=sparc ;;
3193 vax-*-netbsd*) machine=vax ;;
3194 arm-*-netbsd*) machine=arm ;;
3195 x86_64-*-netbsd*) machine=amdx86-64 ;;
3196 hppa-*-netbsd*) machine=hp800 ;;
3197 m68k-*-netbsd*) machine=m68k ;;
3198 esac
3199 ;;
3200
3201 ## OpenBSD ports
3202 *-*-openbsd* )
3203 opsys=openbsd
3204 case "${canonical}" in
3205 alpha*-*-openbsd*) machine=alpha ;;
3206 arm-*-openbsd*) machine=arm ;;
3207 i386-*-openbsd*) machine=intel386 ;;
3208 powerpc-*-openbsd*) machine=macppc ;;
3209 sparc*-*-openbsd*) machine=sparc ;;
3210 vax-*-openbsd*) machine=vax ;;
3211 x86_64-*-openbsd*) machine=amdx86-64 ;;
3212 hppa-*-openbsd*) machine=hp800 ;;
3213 esac
3214 ;;
3215
3216 alpha*-*-linux-gnu* )
3217 machine=alpha opsys=gnu-linux
3218 ;;
3219
3220 arm*-*-linux-gnu* )
3221 machine=arm opsys=gnu-linux
3222 ;;
3223
3224 ## Apple Darwin / Mac OS X
3225 *-apple-darwin* )
3226 case "${canonical}" in
3227 i[3456]86-* ) machine=intel386 ;;
3228 powerpc-* ) machine=macppc ;;
3229 x86_64-* ) machine=amdx86-64 ;;
3230 * ) unported=yes ;;
3231 esac
3232 opsys=darwin
3233 # Define CPP as follows to make autoconf work correctly.
3234 CPP="${CC-cc} -E -no-cpp-precomp"
3235 # Use fink packages if available.
3236 if test -d /sw/include && test -d /sw/lib; then
3237 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3238 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3239 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3240 fi
3241 ;;
3242
3243 ## HP 9000 series 700 and 800, running HP/UX
3244 hppa*-hp-hpux10.2* )
3245 machine=hp800 opsys=hpux10-20
3246 ;;
3247 hppa*-hp-hpux1[1-9]* )
3248 machine=hp800 opsys=hpux11
3249 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3250 ;;
3251
3252 hppa*-*-linux-gnu* )
3253 machine=hp800 opsys=gnu-linux
3254 ;;
3255
3256 ## IBM machines
3257 s390-*-linux-gnu* )
3258 machine=ibms390 opsys=gnu-linux
3259 ;;
3260 s390x-*-linux-gnu* )
3261 machine=ibms390x opsys=gnu-linux
3262 ;;
3263 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
3264 machine=ibmrs6000 opsys=aix4-2
3265 ;;
3266 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
3267 machine=ibmrs6000 opsys=aix4-2
3268 ;;
3269 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
3270 machine=ibmrs6000 opsys=aix4-2
3271 ;;
3272 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
3273 machine=ibmrs6000 opsys=aix4-2
3274 ;;
3275
3276 ## Macintosh PowerPC
3277 powerpc*-*-linux-gnu* )
3278 machine=macppc opsys=gnu-linux
3279 ;;
3280
3281 ## Silicon Graphics machines
3282 ## Iris 4D
3283 mips-sgi-irix6.5 )
3284 machine=iris4d opsys=irix6-5
3285 # Without defining _LANGUAGE_C, things get masked out in the headers
3286 # so that, for instance, grepping for `free' in stdlib.h fails and
3287 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3288 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3289 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3290 ;;
3291
3292 ## Suns
3293 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3294 machine=sparc opsys=gnu-linux
3295 ;;
3296
3297 *-sun-solaris* \
3298 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3299 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3300 case "${canonical}" in
3301 i[3456]86-*-* ) machine=intel386 ;;
3302 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3303 sparc* ) machine=sparc ;;
3304 * ) unported=yes ;;
3305 esac
3306 case "${canonical}" in
3307 *-sunos5.6* | *-solaris2.6* )
3308 opsys=sol2-6
3309 NON_GNU_CPP=/usr/ccs/lib/cpp
3310 RANLIB="ar -ts"
3311 ;;
3312 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3313 opsys=sol2-6
3314 emacs_check_sunpro_c=yes
3315 NON_GNU_CPP=/usr/ccs/lib/cpp
3316 ;;
3317 *-sunos5* | *-solaris* )
3318 opsys=sol2-10
3319 emacs_check_sunpro_c=yes
3320 NON_GNU_CPP=/usr/ccs/lib/cpp
3321 ;;
3322 esac
3323 ## Watch out for a compiler that we know will not work.
3324 case "${canonical}" in
3325 *-solaris* | *-sunos5* )
3326 if [ "x$CC" = x/usr/ucb/cc ]; then
3327 ## /usr/ucb/cc doesn't work;
3328 ## we should find some other compiler that does work.
3329 unset CC
3330 fi
3331 ;;
3332 *) ;;
3333 esac
3334 ;;
3335
3336 ## IA-64
3337 ia64*-*-linux* )
3338 machine=ia64 opsys=gnu-linux
3339 ;;
3340
3341 ## Intel 386 machines where we don't care about the manufacturer
3342 i[3456]86-*-* )
3343 machine=intel386
3344 case "${canonical}" in
3345 *-cygwin ) opsys=cygwin ;;
3346 *-darwin* ) opsys=darwin
3347 CPP="${CC-cc} -E -no-cpp-precomp"
3348 ;;
3349 *-linux-gnu* ) opsys=gnu-linux ;;
3350 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3351 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3352 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3353 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3354 esac
3355 ;;
3356
3357 ## m68k Linux-based GNU system
3358 m68k-*-linux-gnu* )
3359 machine=m68k opsys=gnu-linux
3360 ;;
3361
3362 ## Mips Linux-based GNU system
3363 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3364 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3365 machine=mips opsys=gnu-linux
3366 ;;
3367
3368 ## AMD x86-64 Linux-based GNU system
3369 x86_64-*-linux-gnu* )
3370 machine=amdx86-64 opsys=gnu-linux
3371 ;;
3372
3373 ## Tensilica Xtensa Linux-based GNU system
3374 xtensa*-*-linux-gnu* )
3375 machine=xtensa opsys=gnu-linux
3376 ;;
3377
3378 ## SuperH Linux-based GNU system
3379 sh[34]*-*-linux-gnu* )
3380 machine=sh3 opsys=gnu-linux
3381 ;;
3382
3383 * )
3384 unported=yes
3385 ;;
3386 esac
3387
3388 ### If the code above didn't choose an operating system, just choose
3389 ### an operating system based on the configuration name. You really
3390 ### only want to use this when you have no idea what the right
3391 ### operating system is; if you know what operating systems a machine
3392 ### runs, it's cleaner to make it explicit in the case statement
3393 ### above.
3394 if test x"${opsys}" = x; then
3395 case "${canonical}" in
3396 *-gnu* ) opsys=gnu ;;
3397 * )
3398 unported=yes
3399 ;;
3400 esac
3401 fi
3402
3403
3404
3405 if test $unported = yes; then
3406 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
3407 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3408 fi
3409
3410 machfile="m/${machine}.h"
3411 opsysfile="s/${opsys}.h"
3412
3413
3414 #### Choose a compiler.
3415 test -n "$CC" && cc_specified=yes
3416
3417 # Save the value of CFLAGS that the user specified.
3418 SPECIFIED_CFLAGS="$CFLAGS"
3419
3420 ac_ext=c
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425 if test -n "$ac_tool_prefix"; then
3426 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3427 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if test "${ac_cv_prog_CC+set}" = set; then :
3431 $as_echo_n "(cached) " >&6
3432 else
3433 if test -n "$CC"; then
3434 ac_cv_prog_CC="$CC" # Let the user override the test.
3435 else
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439 IFS=$as_save_IFS
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 break 2
3446 fi
3447 done
3448 done
3449 IFS=$as_save_IFS
3450
3451 fi
3452 fi
3453 CC=$ac_cv_prog_CC
3454 if test -n "$CC"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456 $as_echo "$CC" >&6; }
3457 else
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3460 fi
3461
3462
3463 fi
3464 if test -z "$ac_cv_prog_CC"; then
3465 ac_ct_CC=$CC
3466 # Extract the first word of "gcc", so it can be a program name with args.
3467 set dummy gcc; ac_word=$2
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469 $as_echo_n "checking for $ac_word... " >&6; }
3470 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 if test -n "$ac_ct_CC"; then
3474 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3483 ac_cv_prog_ac_ct_CC="gcc"
3484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 break 2
3486 fi
3487 done
3488 done
3489 IFS=$as_save_IFS
3490
3491 fi
3492 fi
3493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3494 if test -n "$ac_ct_CC"; then
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3496 $as_echo "$ac_ct_CC" >&6; }
3497 else
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3500 fi
3501
3502 if test "x$ac_ct_CC" = x; then
3503 CC=""
3504 else
3505 case $cross_compiling:$ac_tool_warned in
3506 yes:)
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3509 ac_tool_warned=yes ;;
3510 esac
3511 CC=$ac_ct_CC
3512 fi
3513 else
3514 CC="$ac_cv_prog_CC"
3515 fi
3516
3517 if test -z "$CC"; then
3518 if test -n "$ac_tool_prefix"; then
3519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3520 set dummy ${ac_tool_prefix}cc; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if test "${ac_cv_prog_CC+set}" = set; then :
3524 $as_echo_n "(cached) " >&6
3525 else
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC="$CC" # Let the user override the test.
3528 else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3531 do
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3536 ac_cv_prog_CC="${ac_tool_prefix}cc"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2
3539 fi
3540 done
3541 done
3542 IFS=$as_save_IFS
3543
3544 fi
3545 fi
3546 CC=$ac_cv_prog_CC
3547 if test -n "$CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3550 else
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 fi
3554
3555
3556 fi
3557 fi
3558 if test -z "$CC"; then
3559 # Extract the first word of "cc", so it can be a program name with args.
3560 set dummy cc; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if test "${ac_cv_prog_CC+set}" = set; then :
3564 $as_echo_n "(cached) " >&6
3565 else
3566 if test -n "$CC"; then
3567 ac_cv_prog_CC="$CC" # Let the user override the test.
3568 else
3569 ac_prog_rejected=no
3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571 for as_dir in $PATH
3572 do
3573 IFS=$as_save_IFS
3574 test -z "$as_dir" && as_dir=.
3575 for ac_exec_ext in '' $ac_executable_extensions; do
3576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3578 ac_prog_rejected=yes
3579 continue
3580 fi
3581 ac_cv_prog_CC="cc"
3582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 break 2
3584 fi
3585 done
3586 done
3587 IFS=$as_save_IFS
3588
3589 if test $ac_prog_rejected = yes; then
3590 # We found a bogon in the path, so make sure we never use it.
3591 set dummy $ac_cv_prog_CC
3592 shift
3593 if test $# != 0; then
3594 # We chose a different compiler from the bogus one.
3595 # However, it has the same basename, so the bogon will be chosen
3596 # first if we set CC to just the basename; use the full file name.
3597 shift
3598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3599 fi
3600 fi
3601 fi
3602 fi
3603 CC=$ac_cv_prog_CC
3604 if test -n "$CC"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3606 $as_echo "$CC" >&6; }
3607 else
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3610 fi
3611
3612
3613 fi
3614 if test -z "$CC"; then
3615 if test -n "$ac_tool_prefix"; then
3616 for ac_prog in cl.exe
3617 do
3618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621 $as_echo_n "checking for $ac_word... " >&6; }
3622 if test "${ac_cv_prog_CC+set}" = set; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 if test -n "$CC"; then
3626 ac_cv_prog_CC="$CC" # Let the user override the test.
3627 else
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH
3630 do
3631 IFS=$as_save_IFS
3632 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 break 2
3638 fi
3639 done
3640 done
3641 IFS=$as_save_IFS
3642
3643 fi
3644 fi
3645 CC=$ac_cv_prog_CC
3646 if test -n "$CC"; then
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3648 $as_echo "$CC" >&6; }
3649 else
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3652 fi
3653
3654
3655 test -n "$CC" && break
3656 done
3657 fi
3658 if test -z "$CC"; then
3659 ac_ct_CC=$CC
3660 for ac_prog in cl.exe
3661 do
3662 # Extract the first word of "$ac_prog", so it can be a program name with args.
3663 set dummy $ac_prog; ac_word=$2
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3665 $as_echo_n "checking for $ac_word... " >&6; }
3666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3667 $as_echo_n "(cached) " >&6
3668 else
3669 if test -n "$ac_ct_CC"; then
3670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3671 else
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3674 do
3675 IFS=$as_save_IFS
3676 test -z "$as_dir" && as_dir=.
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3679 ac_cv_prog_ac_ct_CC="$ac_prog"
3680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3681 break 2
3682 fi
3683 done
3684 done
3685 IFS=$as_save_IFS
3686
3687 fi
3688 fi
3689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3690 if test -n "$ac_ct_CC"; then
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3692 $as_echo "$ac_ct_CC" >&6; }
3693 else
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695 $as_echo "no" >&6; }
3696 fi
3697
3698
3699 test -n "$ac_ct_CC" && break
3700 done
3701
3702 if test "x$ac_ct_CC" = x; then
3703 CC=""
3704 else
3705 case $cross_compiling:$ac_tool_warned in
3706 yes:)
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3709 ac_tool_warned=yes ;;
3710 esac
3711 CC=$ac_ct_CC
3712 fi
3713 fi
3714
3715 fi
3716
3717
3718 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error "no acceptable C compiler found in \$PATH
3721 See \`config.log' for more details." "$LINENO" 5; }
3722
3723 # Provide some information about the compiler.
3724 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3725 set X $ac_compile
3726 ac_compiler=$2
3727 for ac_option in --version -v -V -qversion; do
3728 { { ac_try="$ac_compiler $ac_option >&5"
3729 case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3732 esac
3733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 $as_echo "$ac_try_echo"; } >&5
3735 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3736 ac_status=$?
3737 if test -s conftest.err; then
3738 sed '10a\
3739 ... rest of stderr output deleted ...
3740 10q' conftest.err >conftest.er1
3741 cat conftest.er1 >&5
3742 fi
3743 rm -f conftest.er1 conftest.err
3744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745 test $ac_status = 0; }
3746 done
3747
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3750
3751 int
3752 main ()
3753 {
3754
3755 ;
3756 return 0;
3757 }
3758 _ACEOF
3759 ac_clean_files_save=$ac_clean_files
3760 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3761 # Try to create an executable without -o first, disregard a.out.
3762 # It will help us diagnose broken compilers, and finding out an intuition
3763 # of exeext.
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3765 $as_echo_n "checking whether the C compiler works... " >&6; }
3766 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3767
3768 # The possible output files:
3769 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3770
3771 ac_rmfiles=
3772 for ac_file in $ac_files
3773 do
3774 case $ac_file in
3775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3776 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3777 esac
3778 done
3779 rm -f $ac_rmfiles
3780
3781 if { { ac_try="$ac_link_default"
3782 case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785 esac
3786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3787 $as_echo "$ac_try_echo"; } >&5
3788 (eval "$ac_link_default") 2>&5
3789 ac_status=$?
3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3791 test $ac_status = 0; }; then :
3792 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3793 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3794 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3795 # so that the user can short-circuit this test for compilers unknown to
3796 # Autoconf.
3797 for ac_file in $ac_files ''
3798 do
3799 test -f "$ac_file" || continue
3800 case $ac_file in
3801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3802 ;;
3803 [ab].out )
3804 # We found the default executable, but exeext='' is most
3805 # certainly right.
3806 break;;
3807 *.* )
3808 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3809 then :; else
3810 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3811 fi
3812 # We set ac_cv_exeext here because the later test for it is not
3813 # safe: cross compilers may not add the suffix if given an `-o'
3814 # argument, so we may need to know it at that point already.
3815 # Even if this section looks crufty: it has the advantage of
3816 # actually working.
3817 break;;
3818 * )
3819 break;;
3820 esac
3821 done
3822 test "$ac_cv_exeext" = no && ac_cv_exeext=
3823
3824 else
3825 ac_file=''
3826 fi
3827 if test -z "$ac_file"; then :
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3830 $as_echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3832
3833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835 { as_fn_set_status 77
3836 as_fn_error "C compiler cannot create executables
3837 See \`config.log' for more details." "$LINENO" 5; }; }
3838 else
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3840 $as_echo "yes" >&6; }
3841 fi
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3843 $as_echo_n "checking for C compiler default output file name... " >&6; }
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3845 $as_echo "$ac_file" >&6; }
3846 ac_exeext=$ac_cv_exeext
3847
3848 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3849 ac_clean_files=$ac_clean_files_save
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3851 $as_echo_n "checking for suffix of executables... " >&6; }
3852 if { { ac_try="$ac_link"
3853 case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856 esac
3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858 $as_echo "$ac_try_echo"; } >&5
3859 (eval "$ac_link") 2>&5
3860 ac_status=$?
3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862 test $ac_status = 0; }; then :
3863 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3864 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3865 # work properly (i.e., refer to `conftest.exe'), while it won't with
3866 # `rm'.
3867 for ac_file in conftest.exe conftest conftest.*; do
3868 test -f "$ac_file" || continue
3869 case $ac_file in
3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3871 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3872 break;;
3873 * ) break;;
3874 esac
3875 done
3876 else
3877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3879 as_fn_error "cannot compute suffix of executables: cannot compile and link
3880 See \`config.log' for more details." "$LINENO" 5; }
3881 fi
3882 rm -f conftest conftest$ac_cv_exeext
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3884 $as_echo "$ac_cv_exeext" >&6; }
3885
3886 rm -f conftest.$ac_ext
3887 EXEEXT=$ac_cv_exeext
3888 ac_exeext=$EXEEXT
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3891 #include <stdio.h>
3892 int
3893 main ()
3894 {
3895 FILE *f = fopen ("conftest.out", "w");
3896 return ferror (f) || fclose (f) != 0;
3897
3898 ;
3899 return 0;
3900 }
3901 _ACEOF
3902 ac_clean_files="$ac_clean_files conftest.out"
3903 # Check that the compiler produces executables we can run. If not, either
3904 # the compiler is broken, or we cross compile.
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3906 $as_echo_n "checking whether we are cross compiling... " >&6; }
3907 if test "$cross_compiling" != yes; then
3908 { { ac_try="$ac_link"
3909 case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912 esac
3913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914 $as_echo "$ac_try_echo"; } >&5
3915 (eval "$ac_link") 2>&5
3916 ac_status=$?
3917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918 test $ac_status = 0; }
3919 if { ac_try='./conftest$ac_cv_exeext'
3920 { { case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923 esac
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 $as_echo "$ac_try_echo"; } >&5
3926 (eval "$ac_try") 2>&5
3927 ac_status=$?
3928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }; }; then
3930 cross_compiling=no
3931 else
3932 if test "$cross_compiling" = maybe; then
3933 cross_compiling=yes
3934 else
3935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937 as_fn_error "cannot run C compiled programs.
3938 If you meant to cross compile, use \`--host'.
3939 See \`config.log' for more details." "$LINENO" 5; }
3940 fi
3941 fi
3942 fi
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3944 $as_echo "$cross_compiling" >&6; }
3945
3946 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3947 ac_clean_files=$ac_clean_files_save
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3949 $as_echo_n "checking for suffix of object files... " >&6; }
3950 if test "${ac_cv_objext+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955
3956 int
3957 main ()
3958 {
3959
3960 ;
3961 return 0;
3962 }
3963 _ACEOF
3964 rm -f conftest.o conftest.obj
3965 if { { ac_try="$ac_compile"
3966 case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_compile") 2>&5
3973 ac_status=$?
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; then :
3976 for ac_file in conftest.o conftest.obj conftest.*; do
3977 test -f "$ac_file" || continue;
3978 case $ac_file in
3979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3981 break;;
3982 esac
3983 done
3984 else
3985 $as_echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3987
3988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990 as_fn_error "cannot compute suffix of object files: cannot compile
3991 See \`config.log' for more details." "$LINENO" 5; }
3992 fi
3993 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3996 $as_echo "$ac_cv_objext" >&6; }
3997 OBJEXT=$ac_cv_objext
3998 ac_objext=$OBJEXT
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4000 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4001 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4006
4007 int
4008 main ()
4009 {
4010 #ifndef __GNUC__
4011 choke me
4012 #endif
4013
4014 ;
4015 return 0;
4016 }
4017 _ACEOF
4018 if ac_fn_c_try_compile "$LINENO"; then :
4019 ac_compiler_gnu=yes
4020 else
4021 ac_compiler_gnu=no
4022 fi
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4025
4026 fi
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4028 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4029 if test $ac_compiler_gnu = yes; then
4030 GCC=yes
4031 else
4032 GCC=
4033 fi
4034 ac_test_CFLAGS=${CFLAGS+set}
4035 ac_save_CFLAGS=$CFLAGS
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4037 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4038 if test "${ac_cv_prog_cc_g+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 ac_save_c_werror_flag=$ac_c_werror_flag
4042 ac_c_werror_flag=yes
4043 ac_cv_prog_cc_g=no
4044 CFLAGS="-g"
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047
4048 int
4049 main ()
4050 {
4051
4052 ;
4053 return 0;
4054 }
4055 _ACEOF
4056 if ac_fn_c_try_compile "$LINENO"; then :
4057 ac_cv_prog_cc_g=yes
4058 else
4059 CFLAGS=""
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4062
4063 int
4064 main ()
4065 {
4066
4067 ;
4068 return 0;
4069 }
4070 _ACEOF
4071 if ac_fn_c_try_compile "$LINENO"; then :
4072
4073 else
4074 ac_c_werror_flag=$ac_save_c_werror_flag
4075 CFLAGS="-g"
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4078
4079 int
4080 main ()
4081 {
4082
4083 ;
4084 return 0;
4085 }
4086 _ACEOF
4087 if ac_fn_c_try_compile "$LINENO"; then :
4088 ac_cv_prog_cc_g=yes
4089 fi
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 fi
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 fi
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 ac_c_werror_flag=$ac_save_c_werror_flag
4096 fi
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4098 $as_echo "$ac_cv_prog_cc_g" >&6; }
4099 if test "$ac_test_CFLAGS" = set; then
4100 CFLAGS=$ac_save_CFLAGS
4101 elif test $ac_cv_prog_cc_g = yes; then
4102 if test "$GCC" = yes; then
4103 CFLAGS="-g -O2"
4104 else
4105 CFLAGS="-g"
4106 fi
4107 else
4108 if test "$GCC" = yes; then
4109 CFLAGS="-O2"
4110 else
4111 CFLAGS=
4112 fi
4113 fi
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4115 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4116 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 ac_cv_prog_cc_c89=no
4120 ac_save_CC=$CC
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123 #include <stdarg.h>
4124 #include <stdio.h>
4125 #include <sys/types.h>
4126 #include <sys/stat.h>
4127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4128 struct buf { int x; };
4129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4130 static char *e (p, i)
4131 char **p;
4132 int i;
4133 {
4134 return p[i];
4135 }
4136 static char *f (char * (*g) (char **, int), char **p, ...)
4137 {
4138 char *s;
4139 va_list v;
4140 va_start (v,p);
4141 s = g (p, va_arg (v,int));
4142 va_end (v);
4143 return s;
4144 }
4145
4146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4147 function prototypes and stuff, but not '\xHH' hex character constants.
4148 These don't provoke an error unfortunately, instead are silently treated
4149 as 'x'. The following induces an error, until -std is added to get
4150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4151 array size at least. It's necessary to write '\x00'==0 to get something
4152 that's true only with -std. */
4153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4154
4155 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4156 inside strings and character constants. */
4157 #define FOO(x) 'x'
4158 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4159
4160 int test (int i, double x);
4161 struct s1 {int (*f) (int a);};
4162 struct s2 {int (*f) (double a);};
4163 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4164 int argc;
4165 char **argv;
4166 int
4167 main ()
4168 {
4169 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4175 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4176 do
4177 CC="$ac_save_CC $ac_arg"
4178 if ac_fn_c_try_compile "$LINENO"; then :
4179 ac_cv_prog_cc_c89=$ac_arg
4180 fi
4181 rm -f core conftest.err conftest.$ac_objext
4182 test "x$ac_cv_prog_cc_c89" != "xno" && break
4183 done
4184 rm -f conftest.$ac_ext
4185 CC=$ac_save_CC
4186
4187 fi
4188 # AC_CACHE_VAL
4189 case "x$ac_cv_prog_cc_c89" in
4190 x)
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4192 $as_echo "none needed" >&6; } ;;
4193 xno)
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4195 $as_echo "unsupported" >&6; } ;;
4196 *)
4197 CC="$CC $ac_cv_prog_cc_c89"
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4199 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4200 esac
4201 if test "x$ac_cv_prog_cc_c89" != xno; then :
4202
4203 fi
4204
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210
4211
4212 # On Suns, sometimes $CPP names a directory.
4213 if test -n "$CPP" && test -d "$CPP"; then
4214 CPP=
4215 fi
4216
4217 ## If not using gcc, and on Solaris, and no CPP specified, see if
4218 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4219 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4220 test x"$CPP" = x; then
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4222 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4223
4224 if test "${emacs_cv_sunpro_c+set}" = set; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4229
4230 int
4231 main ()
4232 {
4233 #ifndef __SUNPRO_C
4234 fail;
4235 #endif
4236
4237 ;
4238 return 0;
4239 }
4240 _ACEOF
4241 if ac_fn_c_try_link "$LINENO"; then :
4242 emacs_cv_sunpro_c=yes
4243 else
4244 emacs_cv_sunpro_c=no
4245 fi
4246 rm -f core conftest.err conftest.$ac_objext \
4247 conftest$ac_exeext conftest.$ac_ext
4248 fi
4249
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4251 $as_echo "$emacs_cv_sunpro_c" >&6; }
4252
4253 if test x"$emacs_cv_sunpro_c" = xyes; then
4254 NON_GNU_CPP="$CC -E -Xs"
4255 fi
4256 fi
4257
4258 #### Some systems specify a CPP to use unless we are using GCC.
4259 #### Now that we know whether we are using GCC, we can decide whether
4260 #### to use that one.
4261 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4262 then
4263 CPP="$NON_GNU_CPP"
4264 fi
4265
4266 #### Some systems specify a CC to use unless we are using GCC.
4267 #### Now that we know whether we are using GCC, we can decide whether
4268 #### to use that one.
4269 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4270 test x$cc_specified != xyes
4271 then
4272 CC="$NON_GNU_CC"
4273 fi
4274
4275 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4276 then
4277 CC="$CC $GCC_TEST_OPTIONS"
4278 fi
4279
4280 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4281 then
4282 CC="$CC $NON_GCC_TEST_OPTIONS"
4283 fi
4284
4285 ac_ext=c
4286 ac_cpp='$CPP $CPPFLAGS'
4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4291 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4292 # On Suns, sometimes $CPP names a directory.
4293 if test -n "$CPP" && test -d "$CPP"; then
4294 CPP=
4295 fi
4296 if test -z "$CPP"; then
4297 if test "${ac_cv_prog_CPP+set}" = set; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 # Double quotes because CPP needs to be expanded
4301 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4302 do
4303 ac_preproc_ok=false
4304 for ac_c_preproc_warn_flag in '' yes
4305 do
4306 # Use a header file that comes with gcc, so configuring glibc
4307 # with a fresh cross-compiler works.
4308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4309 # <limits.h> exists even on freestanding compilers.
4310 # On the NeXT, cc -E runs the code through the compiler's parser,
4311 # not just through cpp. "Syntax error" is here to catch this case.
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4314 #ifdef __STDC__
4315 # include <limits.h>
4316 #else
4317 # include <assert.h>
4318 #endif
4319 Syntax error
4320 _ACEOF
4321 if ac_fn_c_try_cpp "$LINENO"; then :
4322
4323 else
4324 # Broken: fails on valid input.
4325 continue
4326 fi
4327 rm -f conftest.err conftest.$ac_ext
4328
4329 # OK, works on sane cases. Now check whether nonexistent headers
4330 # can be detected and how.
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333 #include <ac_nonexistent.h>
4334 _ACEOF
4335 if ac_fn_c_try_cpp "$LINENO"; then :
4336 # Broken: success on invalid input.
4337 continue
4338 else
4339 # Passes both tests.
4340 ac_preproc_ok=:
4341 break
4342 fi
4343 rm -f conftest.err conftest.$ac_ext
4344
4345 done
4346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4347 rm -f conftest.err conftest.$ac_ext
4348 if $ac_preproc_ok; then :
4349 break
4350 fi
4351
4352 done
4353 ac_cv_prog_CPP=$CPP
4354
4355 fi
4356 CPP=$ac_cv_prog_CPP
4357 else
4358 ac_cv_prog_CPP=$CPP
4359 fi
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4361 $as_echo "$CPP" >&6; }
4362 ac_preproc_ok=false
4363 for ac_c_preproc_warn_flag in '' yes
4364 do
4365 # Use a header file that comes with gcc, so configuring glibc
4366 # with a fresh cross-compiler works.
4367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4368 # <limits.h> exists even on freestanding compilers.
4369 # On the NeXT, cc -E runs the code through the compiler's parser,
4370 # not just through cpp. "Syntax error" is here to catch this case.
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373 #ifdef __STDC__
4374 # include <limits.h>
4375 #else
4376 # include <assert.h>
4377 #endif
4378 Syntax error
4379 _ACEOF
4380 if ac_fn_c_try_cpp "$LINENO"; then :
4381
4382 else
4383 # Broken: fails on valid input.
4384 continue
4385 fi
4386 rm -f conftest.err conftest.$ac_ext
4387
4388 # OK, works on sane cases. Now check whether nonexistent headers
4389 # can be detected and how.
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392 #include <ac_nonexistent.h>
4393 _ACEOF
4394 if ac_fn_c_try_cpp "$LINENO"; then :
4395 # Broken: success on invalid input.
4396 continue
4397 else
4398 # Passes both tests.
4399 ac_preproc_ok=:
4400 break
4401 fi
4402 rm -f conftest.err conftest.$ac_ext
4403
4404 done
4405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4406 rm -f conftest.err conftest.$ac_ext
4407 if $ac_preproc_ok; then :
4408
4409 else
4410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4412 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4413 See \`config.log' for more details." "$LINENO" 5; }
4414 fi
4415
4416 ac_ext=c
4417 ac_cpp='$CPP $CPPFLAGS'
4418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421
4422
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4424 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4425 if test "${ac_cv_path_GREP+set}" = set; then :
4426 $as_echo_n "(cached) " >&6
4427 else
4428 if test -z "$GREP"; then
4429 ac_path_GREP_found=false
4430 # Loop through the user's path and test for each of PROGNAME-LIST
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4433 do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_prog in grep ggrep; do
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4439 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4440 # Check for GNU ac_path_GREP and select it if it is found.
4441 # Check for GNU $ac_path_GREP
4442 case `"$ac_path_GREP" --version 2>&1` in
4443 *GNU*)
4444 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4445 *)
4446 ac_count=0
4447 $as_echo_n 0123456789 >"conftest.in"
4448 while :
4449 do
4450 cat "conftest.in" "conftest.in" >"conftest.tmp"
4451 mv "conftest.tmp" "conftest.in"
4452 cp "conftest.in" "conftest.nl"
4453 $as_echo 'GREP' >> "conftest.nl"
4454 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4456 as_fn_arith $ac_count + 1 && ac_count=$as_val
4457 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4458 # Best one so far, save it but keep looking for a better one
4459 ac_cv_path_GREP="$ac_path_GREP"
4460 ac_path_GREP_max=$ac_count
4461 fi
4462 # 10*(2^10) chars as input seems more than enough
4463 test $ac_count -gt 10 && break
4464 done
4465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4466 esac
4467
4468 $ac_path_GREP_found && break 3
4469 done
4470 done
4471 done
4472 IFS=$as_save_IFS
4473 if test -z "$ac_cv_path_GREP"; then
4474 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4475 fi
4476 else
4477 ac_cv_path_GREP=$GREP
4478 fi
4479
4480 fi
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4482 $as_echo "$ac_cv_path_GREP" >&6; }
4483 GREP="$ac_cv_path_GREP"
4484
4485
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4487 $as_echo_n "checking for egrep... " >&6; }
4488 if test "${ac_cv_path_EGREP+set}" = set; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4492 then ac_cv_path_EGREP="$GREP -E"
4493 else
4494 if test -z "$EGREP"; then
4495 ac_path_EGREP_found=false
4496 # Loop through the user's path and test for each of PROGNAME-LIST
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4499 do
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_prog in egrep; do
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4505 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4506 # Check for GNU ac_path_EGREP and select it if it is found.
4507 # Check for GNU $ac_path_EGREP
4508 case `"$ac_path_EGREP" --version 2>&1` in
4509 *GNU*)
4510 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4511 *)
4512 ac_count=0
4513 $as_echo_n 0123456789 >"conftest.in"
4514 while :
4515 do
4516 cat "conftest.in" "conftest.in" >"conftest.tmp"
4517 mv "conftest.tmp" "conftest.in"
4518 cp "conftest.in" "conftest.nl"
4519 $as_echo 'EGREP' >> "conftest.nl"
4520 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4522 as_fn_arith $ac_count + 1 && ac_count=$as_val
4523 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4524 # Best one so far, save it but keep looking for a better one
4525 ac_cv_path_EGREP="$ac_path_EGREP"
4526 ac_path_EGREP_max=$ac_count
4527 fi
4528 # 10*(2^10) chars as input seems more than enough
4529 test $ac_count -gt 10 && break
4530 done
4531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4532 esac
4533
4534 $ac_path_EGREP_found && break 3
4535 done
4536 done
4537 done
4538 IFS=$as_save_IFS
4539 if test -z "$ac_cv_path_EGREP"; then
4540 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4541 fi
4542 else
4543 ac_cv_path_EGREP=$EGREP
4544 fi
4545
4546 fi
4547 fi
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4549 $as_echo "$ac_cv_path_EGREP" >&6; }
4550 EGREP="$ac_cv_path_EGREP"
4551
4552
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4554 $as_echo_n "checking for ANSI C header files... " >&6; }
4555 if test "${ac_cv_header_stdc+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560 #include <stdlib.h>
4561 #include <stdarg.h>
4562 #include <string.h>
4563 #include <float.h>
4564
4565 int
4566 main ()
4567 {
4568
4569 ;
4570 return 0;
4571 }
4572 _ACEOF
4573 if ac_fn_c_try_compile "$LINENO"; then :
4574 ac_cv_header_stdc=yes
4575 else
4576 ac_cv_header_stdc=no
4577 fi
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579
4580 if test $ac_cv_header_stdc = yes; then
4581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4584 #include <string.h>
4585
4586 _ACEOF
4587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4588 $EGREP "memchr" >/dev/null 2>&1; then :
4589
4590 else
4591 ac_cv_header_stdc=no
4592 fi
4593 rm -f conftest*
4594
4595 fi
4596
4597 if test $ac_cv_header_stdc = yes; then
4598 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4601 #include <stdlib.h>
4602
4603 _ACEOF
4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "free" >/dev/null 2>&1; then :
4606
4607 else
4608 ac_cv_header_stdc=no
4609 fi
4610 rm -f conftest*
4611
4612 fi
4613
4614 if test $ac_cv_header_stdc = yes; then
4615 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4616 if test "$cross_compiling" = yes; then :
4617 :
4618 else
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621 #include <ctype.h>
4622 #include <stdlib.h>
4623 #if ((' ' & 0x0FF) == 0x020)
4624 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4625 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4626 #else
4627 # define ISLOWER(c) \
4628 (('a' <= (c) && (c) <= 'i') \
4629 || ('j' <= (c) && (c) <= 'r') \
4630 || ('s' <= (c) && (c) <= 'z'))
4631 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4632 #endif
4633
4634 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4635 int
4636 main ()
4637 {
4638 int i;
4639 for (i = 0; i < 256; i++)
4640 if (XOR (islower (i), ISLOWER (i))
4641 || toupper (i) != TOUPPER (i))
4642 return 2;
4643 return 0;
4644 }
4645 _ACEOF
4646 if ac_fn_c_try_run "$LINENO"; then :
4647
4648 else
4649 ac_cv_header_stdc=no
4650 fi
4651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4652 conftest.$ac_objext conftest.beam conftest.$ac_ext
4653 fi
4654
4655 fi
4656 fi
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4658 $as_echo "$ac_cv_header_stdc" >&6; }
4659 if test $ac_cv_header_stdc = yes; then
4660
4661 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4662
4663 fi
4664
4665 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4666 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4667 inttypes.h stdint.h unistd.h
4668 do :
4669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4670 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4671 "
4672 eval as_val=\$$as_ac_Header
4673 if test "x$as_val" = x""yes; then :
4674 cat >>confdefs.h <<_ACEOF
4675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4676 _ACEOF
4677
4678 fi
4679
4680 done
4681
4682
4683
4684 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4685 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4686 MINIX=yes
4687 else
4688 MINIX=
4689 fi
4690
4691
4692 if test "$MINIX" = yes; then
4693
4694 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4695
4696
4697 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4698
4699
4700 $as_echo "#define _MINIX 1" >>confdefs.h
4701
4702 fi
4703
4704
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4706 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4707 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4708 $as_echo_n "(cached) " >&6
4709 else
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712
4713 # define __EXTENSIONS__ 1
4714 $ac_includes_default
4715 int
4716 main ()
4717 {
4718
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 ac_cv_safe_to_define___extensions__=yes
4725 else
4726 ac_cv_safe_to_define___extensions__=no
4727 fi
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729 fi
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4731 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4732 test $ac_cv_safe_to_define___extensions__ = yes &&
4733 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4734
4735 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4736
4737 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4738
4739 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4740
4741 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4742
4743
4744
4745 ### Use -Wno-pointer-sign if the compiler supports it
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4747 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4748 SAVE_CFLAGS="$CFLAGS"
4749 CFLAGS="$CFLAGS -Wno-pointer-sign"
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4752
4753 int
4754 main ()
4755 {
4756
4757 ;
4758 return 0;
4759 }
4760 _ACEOF
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 has_option=yes
4763 else
4764 has_option=no
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 if test $has_option = yes; then
4768 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4771 $as_echo "$has_option" >&6; }
4772 CFLAGS="$SAVE_CFLAGS"
4773 unset has_option
4774 unset SAVE_CFLAGS
4775
4776 ### Use -Wdeclaration-after-statement if the compiler supports it
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4778 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4779 SAVE_CFLAGS="$CFLAGS"
4780 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4783
4784 int
4785 main ()
4786 {
4787
4788 ;
4789 return 0;
4790 }
4791 _ACEOF
4792 if ac_fn_c_try_compile "$LINENO"; then :
4793 has_option=yes
4794 else
4795 has_option=no
4796 fi
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 if test $has_option = yes; then
4799 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4800 fi
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4802 $as_echo "$has_option" >&6; }
4803 CFLAGS="$SAVE_CFLAGS"
4804 unset has_option
4805 unset SAVE_CFLAGS
4806
4807 #### Some other nice autoconf tests.
4808
4809 ac_ext=c
4810 ac_cpp='$CPP $CPPFLAGS'
4811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4815 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4816 # On Suns, sometimes $CPP names a directory.
4817 if test -n "$CPP" && test -d "$CPP"; then
4818 CPP=
4819 fi
4820 if test -z "$CPP"; then
4821 if test "${ac_cv_prog_CPP+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 # Double quotes because CPP needs to be expanded
4825 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4826 do
4827 ac_preproc_ok=false
4828 for ac_c_preproc_warn_flag in '' yes
4829 do
4830 # Use a header file that comes with gcc, so configuring glibc
4831 # with a fresh cross-compiler works.
4832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4833 # <limits.h> exists even on freestanding compilers.
4834 # On the NeXT, cc -E runs the code through the compiler's parser,
4835 # not just through cpp. "Syntax error" is here to catch this case.
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4838 #ifdef __STDC__
4839 # include <limits.h>
4840 #else
4841 # include <assert.h>
4842 #endif
4843 Syntax error
4844 _ACEOF
4845 if ac_fn_c_try_cpp "$LINENO"; then :
4846
4847 else
4848 # Broken: fails on valid input.
4849 continue
4850 fi
4851 rm -f conftest.err conftest.$ac_ext
4852
4853 # OK, works on sane cases. Now check whether nonexistent headers
4854 # can be detected and how.
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4857 #include <ac_nonexistent.h>
4858 _ACEOF
4859 if ac_fn_c_try_cpp "$LINENO"; then :
4860 # Broken: success on invalid input.
4861 continue
4862 else
4863 # Passes both tests.
4864 ac_preproc_ok=:
4865 break
4866 fi
4867 rm -f conftest.err conftest.$ac_ext
4868
4869 done
4870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4871 rm -f conftest.err conftest.$ac_ext
4872 if $ac_preproc_ok; then :
4873 break
4874 fi
4875
4876 done
4877 ac_cv_prog_CPP=$CPP
4878
4879 fi
4880 CPP=$ac_cv_prog_CPP
4881 else
4882 ac_cv_prog_CPP=$CPP
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4885 $as_echo "$CPP" >&6; }
4886 ac_preproc_ok=false
4887 for ac_c_preproc_warn_flag in '' yes
4888 do
4889 # Use a header file that comes with gcc, so configuring glibc
4890 # with a fresh cross-compiler works.
4891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4892 # <limits.h> exists even on freestanding compilers.
4893 # On the NeXT, cc -E runs the code through the compiler's parser,
4894 # not just through cpp. "Syntax error" is here to catch this case.
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4897 #ifdef __STDC__
4898 # include <limits.h>
4899 #else
4900 # include <assert.h>
4901 #endif
4902 Syntax error
4903 _ACEOF
4904 if ac_fn_c_try_cpp "$LINENO"; then :
4905
4906 else
4907 # Broken: fails on valid input.
4908 continue
4909 fi
4910 rm -f conftest.err conftest.$ac_ext
4911
4912 # OK, works on sane cases. Now check whether nonexistent headers
4913 # can be detected and how.
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916 #include <ac_nonexistent.h>
4917 _ACEOF
4918 if ac_fn_c_try_cpp "$LINENO"; then :
4919 # Broken: success on invalid input.
4920 continue
4921 else
4922 # Passes both tests.
4923 ac_preproc_ok=:
4924 break
4925 fi
4926 rm -f conftest.err conftest.$ac_ext
4927
4928 done
4929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4930 rm -f conftest.err conftest.$ac_ext
4931 if $ac_preproc_ok; then :
4932
4933 else
4934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4936 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4937 See \`config.log' for more details." "$LINENO" 5; }
4938 fi
4939
4940 ac_ext=c
4941 ac_cpp='$CPP $CPPFLAGS'
4942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4945
4946 # Find a good install program. We prefer a C program (faster),
4947 # so one script is as good as another. But avoid the broken or
4948 # incompatible versions:
4949 # SysV /etc/install, /usr/sbin/install
4950 # SunOS /usr/etc/install
4951 # IRIX /sbin/install
4952 # AIX /bin/install
4953 # AmigaOS /C/install, which installs bootblocks on floppy discs
4954 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4955 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4956 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4957 # OS/2's system install, which has a completely different semantic
4958 # ./install, which can be erroneously created by make from ./install.sh.
4959 # Reject install programs that cannot install multiple files.
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4961 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4962 if test -z "$INSTALL"; then
4963 if test "${ac_cv_path_install+set}" = set; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 # Account for people who put trailing slashes in PATH elements.
4972 case $as_dir/ in #((
4973 ./ | .// | /[cC]/* | \
4974 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4975 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4976 /usr/ucb/* ) ;;
4977 *)
4978 # OSF1 and SCO ODT 3.0 have their own names for install.
4979 # Don't use installbsd from OSF since it installs stuff as root
4980 # by default.
4981 for ac_prog in ginstall scoinst install; do
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4984 if test $ac_prog = install &&
4985 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4986 # AIX install. It has an incompatible calling convention.
4987 :
4988 elif test $ac_prog = install &&
4989 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4990 # program-specific install script used by HP pwplus--don't use.
4991 :
4992 else
4993 rm -rf conftest.one conftest.two conftest.dir
4994 echo one > conftest.one
4995 echo two > conftest.two
4996 mkdir conftest.dir
4997 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4998 test -s conftest.one && test -s conftest.two &&
4999 test -s conftest.dir/conftest.one &&
5000 test -s conftest.dir/conftest.two
5001 then
5002 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5003 break 3
5004 fi
5005 fi
5006 fi
5007 done
5008 done
5009 ;;
5010 esac
5011
5012 done
5013 IFS=$as_save_IFS
5014
5015 rm -rf conftest.one conftest.two conftest.dir
5016
5017 fi
5018 if test "${ac_cv_path_install+set}" = set; then
5019 INSTALL=$ac_cv_path_install
5020 else
5021 # As a last resort, use the slow shell script. Don't cache a
5022 # value for INSTALL within a source directory, because that will
5023 # break other packages using the cache if that directory is
5024 # removed, or if the value is a relative name.
5025 INSTALL=$ac_install_sh
5026 fi
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5029 $as_echo "$INSTALL" >&6; }
5030
5031 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5032 # It thinks the first close brace ends the variable substitution.
5033 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5034
5035 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5036
5037 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5038
5039 if test "x$RANLIB" = x; then
5040 if test -n "$ac_tool_prefix"; then
5041 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5042 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$RANLIB"; then
5049 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5053 do
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5061 fi
5062 done
5063 done
5064 IFS=$as_save_IFS
5065
5066 fi
5067 fi
5068 RANLIB=$ac_cv_prog_RANLIB
5069 if test -n "$RANLIB"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5071 $as_echo "$RANLIB" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5075 fi
5076
5077
5078 fi
5079 if test -z "$ac_cv_prog_RANLIB"; then
5080 ac_ct_RANLIB=$RANLIB
5081 # Extract the first word of "ranlib", so it can be a program name with args.
5082 set dummy ranlib; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 if test -n "$ac_ct_RANLIB"; then
5089 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5093 do
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_prog_ac_ct_RANLIB="ranlib"
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 break 2
5101 fi
5102 done
5103 done
5104 IFS=$as_save_IFS
5105
5106 fi
5107 fi
5108 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5109 if test -n "$ac_ct_RANLIB"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5111 $as_echo "$ac_ct_RANLIB" >&6; }
5112 else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5115 fi
5116
5117 if test "x$ac_ct_RANLIB" = x; then
5118 RANLIB=":"
5119 else
5120 case $cross_compiling:$ac_tool_warned in
5121 yes:)
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5124 ac_tool_warned=yes ;;
5125 esac
5126 RANLIB=$ac_ct_RANLIB
5127 fi
5128 else
5129 RANLIB="$ac_cv_prog_RANLIB"
5130 fi
5131
5132 fi
5133
5134 ## Although we're running on an amd64 kernel, we're actually compiling for
5135 ## the x86 architecture. The user should probably have provided an
5136 ## explicit --build to `configure', but if everything else than the kernel
5137 ## is running in i386 mode, we can help them out.
5138 if test "$machine" = "amdx86-64"; then
5139 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5140 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5141
5142 fi
5143
5144 if test "$ac_cv_have_decl_i386" = "yes"; then
5145 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5146 machine=intel386
5147 machfile="m/${machine}.h"
5148 fi
5149 fi
5150
5151 # Extract the first word of "install-info", so it can be a program name with args.
5152 set dummy install-info; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 case $INSTALL_INFO in
5159 [\\/]* | ?:[\\/]*)
5160 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5161 ;;
5162 *)
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5173 fi
5174 done
5175 done
5176 IFS=$as_save_IFS
5177
5178 ;;
5179 esac
5180 fi
5181 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5182 if test -n "$INSTALL_INFO"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5184 $as_echo "$INSTALL_INFO" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5188 fi
5189
5190
5191 # Extract the first word of "install-info", so it can be a program name with args.
5192 set dummy install-info; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 case $INSTALL_INFO in
5199 [\\/]* | ?:[\\/]*)
5200 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5201 ;;
5202 *)
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in /usr/sbin
5205 do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5213 fi
5214 done
5215 done
5216 IFS=$as_save_IFS
5217
5218 ;;
5219 esac
5220 fi
5221 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5222 if test -n "$INSTALL_INFO"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5224 $as_echo "$INSTALL_INFO" >&6; }
5225 else
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5228 fi
5229
5230
5231 # Extract the first word of "install-info", so it can be a program name with args.
5232 set dummy install-info; ac_word=$2
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234 $as_echo_n "checking for $ac_word... " >&6; }
5235 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5236 $as_echo_n "(cached) " >&6
5237 else
5238 case $INSTALL_INFO in
5239 [\\/]* | ?:[\\/]*)
5240 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5241 ;;
5242 *)
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in /sbin
5245 do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5253 fi
5254 done
5255 done
5256 IFS=$as_save_IFS
5257
5258 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5259 ;;
5260 esac
5261 fi
5262 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5263 if test -n "$INSTALL_INFO"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5265 $as_echo "$INSTALL_INFO" >&6; }
5266 else
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5269 fi
5270
5271
5272 # Extract the first word of "gzip", so it can be a program name with args.
5273 set dummy gzip; ac_word=$2
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275 $as_echo_n "checking for $ac_word... " >&6; }
5276 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5277 $as_echo_n "(cached) " >&6
5278 else
5279 case $GZIP_PROG in
5280 [\\/]* | ?:[\\/]*)
5281 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5282 ;;
5283 *)
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5286 do
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 break 2
5294 fi
5295 done
5296 done
5297 IFS=$as_save_IFS
5298
5299 ;;
5300 esac
5301 fi
5302 GZIP_PROG=$ac_cv_path_GZIP_PROG
5303 if test -n "$GZIP_PROG"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5305 $as_echo "$GZIP_PROG" >&6; }
5306 else
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5309 fi
5310
5311
5312
5313
5314 ## Need makeinfo >= 4.6 (?) to build the manuals.
5315 # Extract the first word of "makeinfo", so it can be a program name with args.
5316 set dummy makeinfo; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 case $MAKEINFO in
5323 [\\/]* | ?:[\\/]*)
5324 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5325 ;;
5326 *)
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5329 do
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2
5337 fi
5338 done
5339 done
5340 IFS=$as_save_IFS
5341
5342 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5343 ;;
5344 esac
5345 fi
5346 MAKEINFO=$ac_cv_path_MAKEINFO
5347 if test -n "$MAKEINFO"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5349 $as_echo "$MAKEINFO" >&6; }
5350 else
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5353 fi
5354
5355
5356 if test "$MAKEINFO" != "no" && \
5357 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
5358 MAKEINFO=no
5359 fi
5360
5361 ## Makeinfo is unusual. For a released Emacs, the manuals are
5362 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5363 ## therefore in the category of "special tools" not normally required, which
5364 ## configure does not have to check for (eg autoconf itself).
5365 ## In a Bazaar checkout on the other hand, the manuals are not included.
5366 ## So makeinfo is a requirement to build from Bazaar, and configure
5367 ## should test for it as it does for any other build requirement.
5368 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5369 ## with pre-built manuals, from a Bazaar checkout.
5370 if test "$MAKEINFO" = "no"; then
5371 if test "x${with_makeinfo}" = "xno"; then
5372 MAKEINFO=off
5373 elif test ! -e $srcdir/info/emacs; then
5374 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5375 source tree does not seem to have pre-built manuals in the \`info' directory.
5376 Either install a suitable version of makeinfo, or re-run configure
5377 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5378 fi
5379 fi
5380
5381
5382 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5383 then
5384 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5385 fi
5386
5387 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5388 then
5389 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5390 fi
5391
5392
5393 late_LDFLAGS=$LDFLAGS
5394 if test "$GCC" = yes; then
5395 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5396 else
5397 LDFLAGS="$LDFLAGS -znocombreloc"
5398 fi
5399
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5401 $as_echo_n "checking for -znocombreloc... " >&6; }
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 main(){return 0;}
5405 _ACEOF
5406 if ac_fn_c_try_link "$LINENO"; then :
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5408 $as_echo "yes" >&6; }
5409 else
5410 LDFLAGS=$late_LDFLAGS
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5413 fi
5414 rm -f core conftest.err conftest.$ac_objext \
5415 conftest$ac_exeext conftest.$ac_ext
5416
5417 #### Extract some information from the operating system and machine files.
5418
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5420 - which libraries the lib-src programs will want, and
5421 - whether the GNU malloc routines are usable..." >&5
5422 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5423 - which libraries the lib-src programs will want, and
5424 - whether the GNU malloc routines are usable..." >&6;}
5425
5426 ### First figure out CFLAGS (which we use for running the compiler here)
5427 ### and REAL_CFLAGS (which we use for real compilation).
5428 ### The two are the same except on a few systems, where they are made
5429 ### different to work around various lossages. For example,
5430 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5431 ### as implying static linking.
5432
5433 ### If the CFLAGS env var is specified, we use that value
5434 ### instead of the default.
5435
5436 ### It's not important that this name contain the PID; you can't run
5437 ### two configures in the same directory and have anything work
5438 ### anyway.
5439 tempcname="conftest.c"
5440
5441 echo '
5442 #include "'${srcdir}'/src/'${opsysfile}'"
5443 #include "'${srcdir}'/src/'${machfile}'"
5444 #ifndef LIBS_SYSTEM
5445 #define LIBS_SYSTEM
5446 #endif
5447 configure___ libsrc_libs=LIBS_SYSTEM
5448
5449 configure___ LIBX=-lX11
5450
5451 configure___ unexec=UNEXEC
5452
5453 #ifdef SYSTEM_MALLOC
5454 configure___ system_malloc=yes
5455 #else
5456 configure___ system_malloc=no
5457 #endif
5458
5459 #ifdef USE_MMAP_FOR_BUFFERS
5460 configure___ use_mmap_for_buffers=yes
5461 #else
5462 configure___ use_mmap_for_buffers=no
5463 #endif
5464
5465 #ifndef C_OPTIMIZE_SWITCH
5466 #ifdef __GNUC__
5467 #define C_OPTIMIZE_SWITCH -O2
5468 #else
5469 #define C_OPTIMIZE_SWITCH -O
5470 #endif
5471 #endif
5472
5473 #ifndef C_WARNINGS_SWITCH
5474 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5475 #endif
5476
5477 #ifndef LD_SWITCH_SYSTEM
5478 #define LD_SWITCH_SYSTEM
5479 #endif
5480
5481 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5482
5483 #ifdef THIS_IS_CONFIGURE
5484
5485 /* Get the CFLAGS for tests in configure. */
5486 #ifdef __GNUC__
5487 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5488 #else
5489 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5490 #endif
5491
5492 #else /* not THIS_IS_CONFIGURE */
5493
5494 /* Get the CFLAGS for real compilation. */
5495 #ifdef __GNUC__
5496 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5497 #else
5498 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5499 #endif
5500
5501 #endif /* not THIS_IS_CONFIGURE */
5502 ' > ${tempcname}
5503
5504 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5505
5506 # The value of CPP is a quoted variable reference, so we need to do this
5507 # to get its actual value...
5508 CPP=`eval "echo $CPP"`
5509 eval `${CPP} -Isrc ${tempcname} \
5510 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5511 if test "x$SPECIFIED_CFLAGS" = x; then
5512 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5513 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5514 else
5515 REAL_CFLAGS="$CFLAGS"
5516 fi
5517 rm ${tempcname}
5518
5519 ac_link="$ac_link $ld_switch_system"
5520
5521
5522 C_SWITCH_MACHINE=
5523 if test "$machine" = "alpha"; then
5524 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5525 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5526
5527 fi
5528
5529 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5530 ## With ELF, make sure that all common symbols get allocated to in the
5531 ## data section. Otherwise, the dump of temacs may miss variables in
5532 ## the shared library that have been initialized. For example, with
5533 ## GNU libc, __malloc_initialized would normally be resolved to the
5534 ## shared library's .bss section, which is fatal.
5535 if test "x$GCC" = "xyes"; then
5536 C_SWITCH_MACHINE="-fno-common"
5537 else
5538 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5539 fi
5540 fi
5541 fi
5542
5543
5544
5545 C_SWITCH_SYSTEM=
5546 ## Some programs in src produce warnings saying certain subprograms
5547 ## are too complex and need a MAXMEM value greater than 2000 for
5548 ## additional optimization. --nils@exp-math.uni-essen.de
5549 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5550 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5551 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5552 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5553
5554
5555
5556 ### Make sure subsequent tests use flags consistent with the build flags.
5557
5558 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5559 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5560 else
5561 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5562 fi
5563
5564
5565
5566 # Check whether --enable-largefile was given.
5567 if test "${enable_largefile+set}" = set; then :
5568 enableval=$enable_largefile;
5569 fi
5570
5571 if test "$enable_largefile" != no; then
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5574 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5575 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 ac_cv_sys_largefile_CC=no
5579 if test "$GCC" != yes; then
5580 ac_save_CC=$CC
5581 while :; do
5582 # IRIX 6.2 and later do not support large files by default,
5583 # so use the C compiler's -n32 option if that helps.
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 #include <sys/types.h>
5587 /* Check that off_t can represent 2**63 - 1 correctly.
5588 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5589 since some C++ compilers masquerading as C compilers
5590 incorrectly reject 9223372036854775807. */
5591 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5592 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5593 && LARGE_OFF_T % 2147483647 == 1)
5594 ? 1 : -1];
5595 int
5596 main ()
5597 {
5598
5599 ;
5600 return 0;
5601 }
5602 _ACEOF
5603 if ac_fn_c_try_compile "$LINENO"; then :
5604 break
5605 fi
5606 rm -f core conftest.err conftest.$ac_objext
5607 CC="$CC -n32"
5608 if ac_fn_c_try_compile "$LINENO"; then :
5609 ac_cv_sys_largefile_CC=' -n32'; break
5610 fi
5611 rm -f core conftest.err conftest.$ac_objext
5612 break
5613 done
5614 CC=$ac_save_CC
5615 rm -f conftest.$ac_ext
5616 fi
5617 fi
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5619 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5620 if test "$ac_cv_sys_largefile_CC" != no; then
5621 CC=$CC$ac_cv_sys_largefile_CC
5622 fi
5623
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5625 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5626 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 while :; do
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 #include <sys/types.h>
5633 /* Check that off_t can represent 2**63 - 1 correctly.
5634 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5635 since some C++ compilers masquerading as C compilers
5636 incorrectly reject 9223372036854775807. */
5637 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5638 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5639 && LARGE_OFF_T % 2147483647 == 1)
5640 ? 1 : -1];
5641 int
5642 main ()
5643 {
5644
5645 ;
5646 return 0;
5647 }
5648 _ACEOF
5649 if ac_fn_c_try_compile "$LINENO"; then :
5650 ac_cv_sys_file_offset_bits=no; break
5651 fi
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 #define _FILE_OFFSET_BITS 64
5656 #include <sys/types.h>
5657 /* Check that off_t can represent 2**63 - 1 correctly.
5658 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5659 since some C++ compilers masquerading as C compilers
5660 incorrectly reject 9223372036854775807. */
5661 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5662 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5663 && LARGE_OFF_T % 2147483647 == 1)
5664 ? 1 : -1];
5665 int
5666 main ()
5667 {
5668
5669 ;
5670 return 0;
5671 }
5672 _ACEOF
5673 if ac_fn_c_try_compile "$LINENO"; then :
5674 ac_cv_sys_file_offset_bits=64; break
5675 fi
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 ac_cv_sys_file_offset_bits=unknown
5678 break
5679 done
5680 fi
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5682 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5683 case $ac_cv_sys_file_offset_bits in #(
5684 no | unknown) ;;
5685 *)
5686 cat >>confdefs.h <<_ACEOF
5687 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5688 _ACEOF
5689 ;;
5690 esac
5691 rm -rf conftest*
5692 if test $ac_cv_sys_file_offset_bits = unknown; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5694 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5695 if test "${ac_cv_sys_large_files+set}" = set; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 while :; do
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 #include <sys/types.h>
5702 /* Check that off_t can represent 2**63 - 1 correctly.
5703 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5704 since some C++ compilers masquerading as C compilers
5705 incorrectly reject 9223372036854775807. */
5706 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5707 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5708 && LARGE_OFF_T % 2147483647 == 1)
5709 ? 1 : -1];
5710 int
5711 main ()
5712 {
5713
5714 ;
5715 return 0;
5716 }
5717 _ACEOF
5718 if ac_fn_c_try_compile "$LINENO"; then :
5719 ac_cv_sys_large_files=no; break
5720 fi
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 #define _LARGE_FILES 1
5725 #include <sys/types.h>
5726 /* Check that off_t can represent 2**63 - 1 correctly.
5727 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5728 since some C++ compilers masquerading as C compilers
5729 incorrectly reject 9223372036854775807. */
5730 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5731 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5732 && LARGE_OFF_T % 2147483647 == 1)
5733 ? 1 : -1];
5734 int
5735 main ()
5736 {
5737
5738 ;
5739 return 0;
5740 }
5741 _ACEOF
5742 if ac_fn_c_try_compile "$LINENO"; then :
5743 ac_cv_sys_large_files=1; break
5744 fi
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 ac_cv_sys_large_files=unknown
5747 break
5748 done
5749 fi
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5751 $as_echo "$ac_cv_sys_large_files" >&6; }
5752 case $ac_cv_sys_large_files in #(
5753 no | unknown) ;;
5754 *)
5755 cat >>confdefs.h <<_ACEOF
5756 #define _LARGE_FILES $ac_cv_sys_large_files
5757 _ACEOF
5758 ;;
5759 esac
5760 rm -rf conftest*
5761 fi
5762 fi
5763
5764
5765
5766 ## If user specified a crt-dir, use that unconditionally.
5767 if test "X$CRT_DIR" = "X"; then
5768
5769 case "$canonical" in
5770 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5771 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5772 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5773 ## For anything else (eg /usr/lib32), it is up the user to specify
5774 ## the location (bug#5655).
5775 ## Test for crtn.o, not just the directory, because sometimes the
5776 ## directory exists but does not have the relevant files (bug#1287).
5777 ## FIXME better to test for binary compatibility somehow.
5778 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5779 ;;
5780
5781 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5782 esac
5783
5784 case "$opsys" in
5785 hpux10-20) CRT_DIR=/lib ;;
5786 esac
5787
5788 ## Default is /usr/lib.
5789 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5790
5791 else
5792
5793 ## Some platforms don't use any of these files, so it is not
5794 ## appropriate to put this test outside the if block.
5795 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5796 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
5797
5798 fi
5799
5800
5801
5802 LIB_MATH=-lm
5803 LIB_STANDARD=
5804 START_FILES=
5805
5806 case $opsys in
5807 cygwin )
5808 LIB_MATH=
5809 START_FILES='ecrt0.o'
5810 ;;
5811 darwin )
5812 ## Adding -lm confuses the dynamic linker, so omit it.
5813 LIB_MATH=
5814 START_FILES='pre-crt0.o'
5815 ;;
5816 freebsd )
5817 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5818 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5819 ;;
5820 gnu-linux | gnu-kfreebsd )
5821 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5822 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5823 ;;
5824 hpux10-20 | hpux11 )
5825 LIB_STANDARD=-lc
5826 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5827 ;;
5828 netbsd | openbsd )
5829 if test -f $(CRT_DIR)/crti.o; then
5830 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5831 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5832 else
5833 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5834 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5835 fi
5836 ;;
5837 esac
5838
5839
5840
5841
5842
5843
5844
5845 if test "${with_sound}" != "no"; then
5846 # Sound support for GNU/Linux and the free BSDs.
5847 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5848 do :
5849 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5850 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5851 eval as_val=\$$as_ac_Header
5852 if test "x$as_val" = x""yes; then :
5853 cat >>confdefs.h <<_ACEOF
5854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5855 _ACEOF
5856
5857 fi
5858
5859 done
5860
5861 # Emulation library used on NetBSD.
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5863 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5864 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 ac_check_lib_save_LIBS=$LIBS
5868 LIBS="-lossaudio $LIBS"
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5871
5872 /* Override any GCC internal prototype to avoid an error.
5873 Use char because int might match the return type of a GCC
5874 builtin and then its argument prototype would still apply. */
5875 #ifdef __cplusplus
5876 extern "C"
5877 #endif
5878 char _oss_ioctl ();
5879 int
5880 main ()
5881 {
5882 return _oss_ioctl ();
5883 ;
5884 return 0;
5885 }
5886 _ACEOF
5887 if ac_fn_c_try_link "$LINENO"; then :
5888 ac_cv_lib_ossaudio__oss_ioctl=yes
5889 else
5890 ac_cv_lib_ossaudio__oss_ioctl=no
5891 fi
5892 rm -f core conftest.err conftest.$ac_objext \
5893 conftest$ac_exeext conftest.$ac_ext
5894 LIBS=$ac_check_lib_save_LIBS
5895 fi
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5897 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5898 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5899 LIBSOUND=-lossaudio
5900 else
5901 LIBSOUND=
5902 fi
5903
5904
5905
5906 ALSA_REQUIRED=1.0.0
5907 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5908
5909 succeeded=no
5910
5911 # Extract the first word of "pkg-config", so it can be a program name with args.
5912 set dummy pkg-config; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 case $PKG_CONFIG in
5919 [\\/]* | ?:[\\/]*)
5920 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5921 ;;
5922 *)
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5930 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5933 fi
5934 done
5935 done
5936 IFS=$as_save_IFS
5937
5938 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5939 ;;
5940 esac
5941 fi
5942 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5943 if test -n "$PKG_CONFIG"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5945 $as_echo "$PKG_CONFIG" >&6; }
5946 else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5949 fi
5950
5951
5952
5953 if test "$PKG_CONFIG" = "no" ; then
5954 HAVE_ALSA=no
5955 else
5956 PKG_CONFIG_MIN_VERSION=0.9.0
5957 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
5959 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
5960
5961 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5963 $as_echo "yes" >&6; }
5964 succeeded=yes
5965
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
5967 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
5968 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
5970 $as_echo "$ALSA_CFLAGS" >&6; }
5971
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
5973 $as_echo_n "checking ALSA_LIBS... " >&6; }
5974 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
5976 $as_echo "$ALSA_LIBS" >&6; }
5977 else
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979 $as_echo "no" >&6; }
5980 ALSA_CFLAGS=""
5981 ALSA_LIBS=""
5982 ## If we have a custom action on failure, don't print errors, but
5983 ## do set a variable so people can do so.
5984 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5985
5986 fi
5987
5988
5989
5990 else
5991 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5992 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5993 fi
5994 fi
5995
5996 if test $succeeded = yes; then
5997 HAVE_ALSA=yes
5998 else
5999 HAVE_ALSA=no
6000 fi
6001
6002 if test $HAVE_ALSA = yes; then
6003 SAVE_CFLAGS="$CFLAGS"
6004 SAVE_LDFLAGS="$LDFLAGS"
6005 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6006 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 #include <asoundlib.h>
6010 int
6011 main ()
6012 {
6013 snd_lib_error_set_handler (0);
6014 ;
6015 return 0;
6016 }
6017 _ACEOF
6018 if ac_fn_c_try_compile "$LINENO"; then :
6019 emacs_alsa_normal=yes
6020 else
6021 emacs_alsa_normal=no
6022 fi
6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024 if test "$emacs_alsa_normal" != yes; then
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6027 #include <alsa/asoundlib.h>
6028 int
6029 main ()
6030 {
6031 snd_lib_error_set_handler (0);
6032 ;
6033 return 0;
6034 }
6035 _ACEOF
6036 if ac_fn_c_try_compile "$LINENO"; then :
6037 emacs_alsa_subdir=yes
6038 else
6039 emacs_alsa_subdir=no
6040 fi
6041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 if test "$emacs_alsa_subdir" != yes; then
6043 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6044 fi
6045 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6046 fi
6047
6048 CFLAGS="$SAVE_CFLAGS"
6049 LDFLAGS="$SAVE_LDFLAGS"
6050 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6051 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6052
6053 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6054
6055 fi
6056
6057 fi
6058
6059 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6060 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6061 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6062 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6063 sys/utsname.h pwd.h utmp.h
6064 do :
6065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6066 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6067 eval as_val=\$$as_ac_Header
6068 if test "x$as_val" = x""yes; then :
6069 cat >>confdefs.h <<_ACEOF
6070 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6071 _ACEOF
6072
6073 fi
6074
6075 done
6076
6077
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6079 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6082 #include <sys/personality.h>
6083 int
6084 main ()
6085 {
6086 personality (PER_LINUX32)
6087 ;
6088 return 0;
6089 }
6090 _ACEOF
6091 if ac_fn_c_try_compile "$LINENO"; then :
6092 emacs_cv_personality_linux32=yes
6093 else
6094 emacs_cv_personality_linux32=no
6095 fi
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6098 $as_echo "$emacs_cv_personality_linux32" >&6; }
6099
6100 if test $emacs_cv_personality_linux32 = yes; then
6101
6102 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6103
6104 fi
6105
6106 for ac_header in term.h
6107 do :
6108 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6109 if test "x$ac_cv_header_term_h" = x""yes; then :
6110 cat >>confdefs.h <<_ACEOF
6111 #define HAVE_TERM_H 1
6112 _ACEOF
6113
6114 fi
6115
6116 done
6117
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6119 $as_echo_n "checking for ANSI C header files... " >&6; }
6120 if test "${ac_cv_header_stdc+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125 #include <stdlib.h>
6126 #include <stdarg.h>
6127 #include <string.h>
6128 #include <float.h>
6129
6130 int
6131 main ()
6132 {
6133
6134 ;
6135 return 0;
6136 }
6137 _ACEOF
6138 if ac_fn_c_try_compile "$LINENO"; then :
6139 ac_cv_header_stdc=yes
6140 else
6141 ac_cv_header_stdc=no
6142 fi
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144
6145 if test $ac_cv_header_stdc = yes; then
6146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6149 #include <string.h>
6150
6151 _ACEOF
6152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6153 $EGREP "memchr" >/dev/null 2>&1; then :
6154
6155 else
6156 ac_cv_header_stdc=no
6157 fi
6158 rm -f conftest*
6159
6160 fi
6161
6162 if test $ac_cv_header_stdc = yes; then
6163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166 #include <stdlib.h>
6167
6168 _ACEOF
6169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6170 $EGREP "free" >/dev/null 2>&1; then :
6171
6172 else
6173 ac_cv_header_stdc=no
6174 fi
6175 rm -f conftest*
6176
6177 fi
6178
6179 if test $ac_cv_header_stdc = yes; then
6180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6181 if test "$cross_compiling" = yes; then :
6182 :
6183 else
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186 #include <ctype.h>
6187 #include <stdlib.h>
6188 #if ((' ' & 0x0FF) == 0x020)
6189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6191 #else
6192 # define ISLOWER(c) \
6193 (('a' <= (c) && (c) <= 'i') \
6194 || ('j' <= (c) && (c) <= 'r') \
6195 || ('s' <= (c) && (c) <= 'z'))
6196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6197 #endif
6198
6199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6200 int
6201 main ()
6202 {
6203 int i;
6204 for (i = 0; i < 256; i++)
6205 if (XOR (islower (i), ISLOWER (i))
6206 || toupper (i) != TOUPPER (i))
6207 return 2;
6208 return 0;
6209 }
6210 _ACEOF
6211 if ac_fn_c_try_run "$LINENO"; then :
6212
6213 else
6214 ac_cv_header_stdc=no
6215 fi
6216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6217 conftest.$ac_objext conftest.beam conftest.$ac_ext
6218 fi
6219
6220 fi
6221 fi
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6223 $as_echo "$ac_cv_header_stdc" >&6; }
6224 if test $ac_cv_header_stdc = yes; then
6225
6226 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6227
6228 fi
6229
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6231 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6232 if test "${ac_cv_header_time+set}" = set; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6237 #include <sys/types.h>
6238 #include <sys/time.h>
6239 #include <time.h>
6240
6241 int
6242 main ()
6243 {
6244 if ((struct tm *) 0)
6245 return 0;
6246 ;
6247 return 0;
6248 }
6249 _ACEOF
6250 if ac_fn_c_try_compile "$LINENO"; then :
6251 ac_cv_header_time=yes
6252 else
6253 ac_cv_header_time=no
6254 fi
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 fi
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6258 $as_echo "$ac_cv_header_time" >&6; }
6259 if test $ac_cv_header_time = yes; then
6260
6261 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6262
6263 fi
6264
6265 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6266 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6267 ac_have_decl=1
6268 else
6269 ac_have_decl=0
6270 fi
6271
6272 cat >>confdefs.h <<_ACEOF
6273 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6274 _ACEOF
6275
6276 if test $ac_cv_have_decl_sys_siglist != yes; then
6277 # For Tru64, at least:
6278 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6279 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6280 ac_have_decl=1
6281 else
6282 ac_have_decl=0
6283 fi
6284
6285 cat >>confdefs.h <<_ACEOF
6286 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6287 _ACEOF
6288
6289 if test $ac_cv_have_decl___sys_siglist = yes; then
6290
6291 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6292
6293 fi
6294 fi
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6296 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6297 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6302 #include <sys/types.h>
6303 #include <sys/wait.h>
6304 #ifndef WEXITSTATUS
6305 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6306 #endif
6307 #ifndef WIFEXITED
6308 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6309 #endif
6310
6311 int
6312 main ()
6313 {
6314 int s;
6315 wait (&s);
6316 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6317 ;
6318 return 0;
6319 }
6320 _ACEOF
6321 if ac_fn_c_try_compile "$LINENO"; then :
6322 ac_cv_header_sys_wait_h=yes
6323 else
6324 ac_cv_header_sys_wait_h=no
6325 fi
6326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327 fi
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6329 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6330 if test $ac_cv_header_sys_wait_h = yes; then
6331
6332 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6333
6334 fi
6335
6336
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6338 $as_echo_n "checking for struct utimbuf... " >&6; }
6339 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344 #ifdef TIME_WITH_SYS_TIME
6345 #include <sys/time.h>
6346 #include <time.h>
6347 #else
6348 #ifdef HAVE_SYS_TIME_H
6349 #include <sys/time.h>
6350 #else
6351 #include <time.h>
6352 #endif
6353 #endif
6354 #ifdef HAVE_UTIME_H
6355 #include <utime.h>
6356 #endif
6357 int
6358 main ()
6359 {
6360 static struct utimbuf x; x.actime = x.modtime;
6361 ;
6362 return 0;
6363 }
6364 _ACEOF
6365 if ac_fn_c_try_compile "$LINENO"; then :
6366 emacs_cv_struct_utimbuf=yes
6367 else
6368 emacs_cv_struct_utimbuf=no
6369 fi
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371 fi
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6373 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6374 if test $emacs_cv_struct_utimbuf = yes; then
6375
6376 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6377
6378 fi
6379
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6381 $as_echo_n "checking return type of signal handlers... " >&6; }
6382 if test "${ac_cv_type_signal+set}" = set; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387 #include <sys/types.h>
6388 #include <signal.h>
6389
6390 int
6391 main ()
6392 {
6393 return *(signal (0, 0)) (0) == 1;
6394 ;
6395 return 0;
6396 }
6397 _ACEOF
6398 if ac_fn_c_try_compile "$LINENO"; then :
6399 ac_cv_type_signal=int
6400 else
6401 ac_cv_type_signal=void
6402 fi
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404 fi
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6406 $as_echo "$ac_cv_type_signal" >&6; }
6407
6408 cat >>confdefs.h <<_ACEOF
6409 #define RETSIGTYPE $ac_cv_type_signal
6410 _ACEOF
6411
6412
6413
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6415 $as_echo_n "checking for speed_t... " >&6; }
6416 if test "${emacs_cv_speed_t+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6421 #include <termios.h>
6422 int
6423 main ()
6424 {
6425 speed_t x = 1;
6426 ;
6427 return 0;
6428 }
6429 _ACEOF
6430 if ac_fn_c_try_compile "$LINENO"; then :
6431 emacs_cv_speed_t=yes
6432 else
6433 emacs_cv_speed_t=no
6434 fi
6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436 fi
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6438 $as_echo "$emacs_cv_speed_t" >&6; }
6439 if test $emacs_cv_speed_t = yes; then
6440
6441 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6442
6443 fi
6444
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6446 $as_echo_n "checking for struct timeval... " >&6; }
6447 if test "${emacs_cv_struct_timeval+set}" = set; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452 #ifdef TIME_WITH_SYS_TIME
6453 #include <sys/time.h>
6454 #include <time.h>
6455 #else
6456 #ifdef HAVE_SYS_TIME_H
6457 #include <sys/time.h>
6458 #else
6459 #include <time.h>
6460 #endif
6461 #endif
6462 int
6463 main ()
6464 {
6465 static struct timeval x; x.tv_sec = x.tv_usec;
6466 ;
6467 return 0;
6468 }
6469 _ACEOF
6470 if ac_fn_c_try_compile "$LINENO"; then :
6471 emacs_cv_struct_timeval=yes
6472 else
6473 emacs_cv_struct_timeval=no
6474 fi
6475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476 fi
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6478 $as_echo "$emacs_cv_struct_timeval" >&6; }
6479 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6480 if test $emacs_cv_struct_timeval = yes; then
6481
6482 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6483
6484 fi
6485
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6487 $as_echo_n "checking for struct exception... " >&6; }
6488 if test "${emacs_cv_struct_exception+set}" = set; then :
6489 $as_echo_n "(cached) " >&6
6490 else
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6493 #include <math.h>
6494 int
6495 main ()
6496 {
6497 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6498 ;
6499 return 0;
6500 }
6501 _ACEOF
6502 if ac_fn_c_try_compile "$LINENO"; then :
6503 emacs_cv_struct_exception=yes
6504 else
6505 emacs_cv_struct_exception=no
6506 fi
6507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6508 fi
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6510 $as_echo "$emacs_cv_struct_exception" >&6; }
6511 HAVE_EXCEPTION=$emacs_cv_struct_exception
6512 if test $emacs_cv_struct_exception != yes; then
6513
6514 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6515
6516 fi
6517
6518 for ac_header in sys/socket.h
6519 do :
6520 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6521 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6522 cat >>confdefs.h <<_ACEOF
6523 #define HAVE_SYS_SOCKET_H 1
6524 _ACEOF
6525
6526 fi
6527
6528 done
6529
6530 for ac_header in net/if.h
6531 do :
6532 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6533 #if HAVE_SYS_SOCKET_H
6534 #include <sys/socket.h>
6535 #endif
6536 "
6537 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6538 cat >>confdefs.h <<_ACEOF
6539 #define HAVE_NET_IF_H 1
6540 _ACEOF
6541
6542 fi
6543
6544 done
6545
6546
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6548 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6549 if test "${ac_cv_struct_tm+set}" = set; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6554 #include <sys/types.h>
6555 #include <time.h>
6556
6557 int
6558 main ()
6559 {
6560 struct tm tm;
6561 int *p = &tm.tm_sec;
6562 return !p;
6563 ;
6564 return 0;
6565 }
6566 _ACEOF
6567 if ac_fn_c_try_compile "$LINENO"; then :
6568 ac_cv_struct_tm=time.h
6569 else
6570 ac_cv_struct_tm=sys/time.h
6571 fi
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 fi
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6575 $as_echo "$ac_cv_struct_tm" >&6; }
6576 if test $ac_cv_struct_tm = sys/time.h; then
6577
6578 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6579
6580 fi
6581
6582 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6583 #include <$ac_cv_struct_tm>
6584
6585 "
6586 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6587
6588 cat >>confdefs.h <<_ACEOF
6589 #define HAVE_STRUCT_TM_TM_ZONE 1
6590 _ACEOF
6591
6592
6593 fi
6594
6595 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6596
6597 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6598
6599 else
6600 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6601 "
6602 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6603 ac_have_decl=1
6604 else
6605 ac_have_decl=0
6606 fi
6607
6608 cat >>confdefs.h <<_ACEOF
6609 #define HAVE_DECL_TZNAME $ac_have_decl
6610 _ACEOF
6611
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6613 $as_echo_n "checking for tzname... " >&6; }
6614 if test "${ac_cv_var_tzname+set}" = set; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6619 #include <time.h>
6620 #if !HAVE_DECL_TZNAME
6621 extern char *tzname[];
6622 #endif
6623
6624 int
6625 main ()
6626 {
6627 return tzname[0][0];
6628 ;
6629 return 0;
6630 }
6631 _ACEOF
6632 if ac_fn_c_try_link "$LINENO"; then :
6633 ac_cv_var_tzname=yes
6634 else
6635 ac_cv_var_tzname=no
6636 fi
6637 rm -f core conftest.err conftest.$ac_objext \
6638 conftest$ac_exeext conftest.$ac_ext
6639 fi
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6641 $as_echo "$ac_cv_var_tzname" >&6; }
6642 if test $ac_cv_var_tzname = yes; then
6643
6644 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6645
6646 fi
6647 fi
6648
6649 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6650 "
6651 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6652
6653 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6654
6655 fi
6656
6657 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6658 #if HAVE_SYS_SOCKET_H
6659 #include <sys/socket.h>
6660 #endif
6661 #if HAVE_NET_IF_H
6662 #include <net/if.h>
6663 #endif
6664 "
6665 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6666
6667 cat >>confdefs.h <<_ACEOF
6668 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6669 _ACEOF
6670
6671
6672 fi
6673 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6674 #if HAVE_SYS_SOCKET_H
6675 #include <sys/socket.h>
6676 #endif
6677 #if HAVE_NET_IF_H
6678 #include <net/if.h>
6679 #endif
6680 "
6681 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6682
6683 cat >>confdefs.h <<_ACEOF
6684 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6685 _ACEOF
6686
6687
6688 fi
6689 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6690 #if HAVE_SYS_SOCKET_H
6691 #include <sys/socket.h>
6692 #endif
6693 #if HAVE_NET_IF_H
6694 #include <net/if.h>
6695 #endif
6696 "
6697 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6698
6699 cat >>confdefs.h <<_ACEOF
6700 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6701 _ACEOF
6702
6703
6704 fi
6705 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6706 #if HAVE_SYS_SOCKET_H
6707 #include <sys/socket.h>
6708 #endif
6709 #if HAVE_NET_IF_H
6710 #include <net/if.h>
6711 #endif
6712 "
6713 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6714
6715 cat >>confdefs.h <<_ACEOF
6716 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6717 _ACEOF
6718
6719
6720 fi
6721 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6722 #if HAVE_SYS_SOCKET_H
6723 #include <sys/socket.h>
6724 #endif
6725 #if HAVE_NET_IF_H
6726 #include <net/if.h>
6727 #endif
6728 "
6729 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6730
6731 cat >>confdefs.h <<_ACEOF
6732 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6733 _ACEOF
6734
6735
6736 fi
6737
6738
6739
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6741 $as_echo_n "checking for function prototypes... " >&6; }
6742 if test "$ac_cv_prog_cc_c89" != no; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6744 $as_echo "yes" >&6; }
6745
6746 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6747
6748
6749 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6750
6751 else
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6754 fi
6755
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6757 $as_echo_n "checking for working volatile... " >&6; }
6758 if test "${ac_cv_c_volatile+set}" = set; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6763
6764 int
6765 main ()
6766 {
6767
6768 volatile int x;
6769 int * volatile y = (int *) 0;
6770 return !x && !y;
6771 ;
6772 return 0;
6773 }
6774 _ACEOF
6775 if ac_fn_c_try_compile "$LINENO"; then :
6776 ac_cv_c_volatile=yes
6777 else
6778 ac_cv_c_volatile=no
6779 fi
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781 fi
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6783 $as_echo "$ac_cv_c_volatile" >&6; }
6784 if test $ac_cv_c_volatile = no; then
6785
6786 $as_echo "#define volatile /**/" >>confdefs.h
6787
6788 fi
6789
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6791 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6792 if test "${ac_cv_c_const+set}" = set; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797
6798 int
6799 main ()
6800 {
6801 /* FIXME: Include the comments suggested by Paul. */
6802 #ifndef __cplusplus
6803 /* Ultrix mips cc rejects this. */
6804 typedef int charset[2];
6805 const charset cs;
6806 /* SunOS 4.1.1 cc rejects this. */
6807 char const *const *pcpcc;
6808 char **ppc;
6809 /* NEC SVR4.0.2 mips cc rejects this. */
6810 struct point {int x, y;};
6811 static struct point const zero = {0,0};
6812 /* AIX XL C 1.02.0.0 rejects this.
6813 It does not let you subtract one const X* pointer from another in
6814 an arm of an if-expression whose if-part is not a constant
6815 expression */
6816 const char *g = "string";
6817 pcpcc = &g + (g ? g-g : 0);
6818 /* HPUX 7.0 cc rejects these. */
6819 ++pcpcc;
6820 ppc = (char**) pcpcc;
6821 pcpcc = (char const *const *) ppc;
6822 { /* SCO 3.2v4 cc rejects this. */
6823 char *t;
6824 char const *s = 0 ? (char *) 0 : (char const *) 0;
6825
6826 *t++ = 0;
6827 if (s) return 0;
6828 }
6829 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6830 int x[] = {25, 17};
6831 const int *foo = &x[0];
6832 ++foo;
6833 }
6834 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6835 typedef const int *iptr;
6836 iptr p = 0;
6837 ++p;
6838 }
6839 { /* AIX XL C 1.02.0.0 rejects this saying
6840 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6841 struct s { int j; const int *ap[3]; };
6842 struct s *b; b->j = 5;
6843 }
6844 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6845 const int foo = 10;
6846 if (!foo) return 0;
6847 }
6848 return !cs[0] && !zero.x;
6849 #endif
6850
6851 ;
6852 return 0;
6853 }
6854 _ACEOF
6855 if ac_fn_c_try_compile "$LINENO"; then :
6856 ac_cv_c_const=yes
6857 else
6858 ac_cv_c_const=no
6859 fi
6860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 fi
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6863 $as_echo "$ac_cv_c_const" >&6; }
6864 if test $ac_cv_c_const = no; then
6865
6866 $as_echo "#define const /**/" >>confdefs.h
6867
6868 fi
6869
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6871 $as_echo_n "checking for void * support... " >&6; }
6872 if test "${emacs_cv_void_star+set}" = set; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6877
6878 int
6879 main ()
6880 {
6881 void * foo;
6882 ;
6883 return 0;
6884 }
6885 _ACEOF
6886 if ac_fn_c_try_compile "$LINENO"; then :
6887 emacs_cv_void_star=yes
6888 else
6889 emacs_cv_void_star=no
6890 fi
6891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892 fi
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6894 $as_echo "$emacs_cv_void_star" >&6; }
6895 if test $emacs_cv_void_star = yes; then
6896 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6897
6898 else
6899 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6900
6901 fi
6902
6903
6904
6905
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6907 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6908 set x ${MAKE-make}
6909 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6910 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 cat >conftest.make <<\_ACEOF
6914 SHELL = /bin/sh
6915 all:
6916 @echo '@@@%%%=$(MAKE)=@@@%%%'
6917 _ACEOF
6918 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6919 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6920 *@@@%%%=?*=@@@%%%*)
6921 eval ac_cv_prog_make_${ac_make}_set=yes;;
6922 *)
6923 eval ac_cv_prog_make_${ac_make}_set=no;;
6924 esac
6925 rm -f conftest.make
6926 fi
6927 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6929 $as_echo "yes" >&6; }
6930 SET_MAKE=
6931 else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934 SET_MAKE="MAKE=${MAKE-make}"
6935 fi
6936
6937
6938 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
6940 $as_echo_n "checking whether we are using GNU Make... " >&6; }
6941 HAVE_GNU_MAKE=no
6942 testval=`make --version 2>/dev/null | grep 'GNU Make'`
6943 if test "x$testval" != x; then
6944 HAVE_GNU_MAKE=yes
6945 else
6946 ac_enable_autodepend=no
6947 fi
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
6949 $as_echo "$HAVE_GNU_MAKE" >&6; }
6950 if test $HAVE_GNU_MAKE = yes; then
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
6952 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6953 SAVE_CFLAGS="$CFLAGS"
6954 CFLAGS="$CFLAGS -MMD -MF deps.d"
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6957
6958 int
6959 main ()
6960 {
6961
6962 ;
6963 return 0;
6964 }
6965 _ACEOF
6966 if ac_fn_c_try_compile "$LINENO"; then :
6967
6968 else
6969 ac_enable_autodepend=no
6970 fi
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6972 CFLAGS="$SAVE_CFLAGS"
6973 test -f deps.d || ac_enable_autodepend=no
6974 rm -rf deps.d
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
6976 $as_echo "$ac_enable_autodepend" >&6; }
6977 fi
6978 if test $ac_enable_autodepend = yes; then
6979
6980 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h
6981
6982 fi
6983 fi
6984
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
6986 $as_echo_n "checking for long file names... " >&6; }
6987 if test "${ac_cv_sys_long_file_names+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 ac_cv_sys_long_file_names=yes
6991 # Test for long file names in all the places we know might matter:
6992 # . the current directory, where building will happen
6993 # $prefix/lib where we will be installing things
6994 # $exec_prefix/lib likewise
6995 # $TMPDIR if set, where it might want to write temporary files
6996 # /tmp where it might want to write temporary files
6997 # /var/tmp likewise
6998 # /usr/tmp likewise
6999 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7000 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7001 # in the usual case where exec_prefix is '${prefix}'.
7002 case $ac_dir in #(
7003 . | /* | ?:[\\/]*) ;; #(
7004 *) continue;;
7005 esac
7006 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7007 ac_xdir=$ac_dir/cf$$
7008 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7009 ac_tf1=$ac_xdir/conftest9012345
7010 ac_tf2=$ac_xdir/conftest9012346
7011 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7012 ac_cv_sys_long_file_names=no
7013 rm -f -r "$ac_xdir" 2>/dev/null
7014 test $ac_cv_sys_long_file_names = no && break
7015 done
7016 fi
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7018 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7019 if test $ac_cv_sys_long_file_names = yes; then
7020
7021 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7022
7023 fi
7024
7025
7026 #### Choose a window system.
7027
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7029 $as_echo_n "checking for X... " >&6; }
7030
7031
7032 # Check whether --with-x was given.
7033 if test "${with_x+set}" = set; then :
7034 withval=$with_x;
7035 fi
7036
7037 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7038 if test "x$with_x" = xno; then
7039 # The user explicitly disabled X.
7040 have_x=disabled
7041 else
7042 case $x_includes,$x_libraries in #(
7043 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7044 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7045 $as_echo_n "(cached) " >&6
7046 else
7047 # One or both of the vars are not set, and there is no cached value.
7048 ac_x_includes=no ac_x_libraries=no
7049 rm -f -r conftest.dir
7050 if mkdir conftest.dir; then
7051 cd conftest.dir
7052 cat >Imakefile <<'_ACEOF'
7053 incroot:
7054 @echo incroot='${INCROOT}'
7055 usrlibdir:
7056 @echo usrlibdir='${USRLIBDIR}'
7057 libdir:
7058 @echo libdir='${LIBDIR}'
7059 _ACEOF
7060 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7061 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7062 for ac_var in incroot usrlibdir libdir; do
7063 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7064 done
7065 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7066 for ac_extension in a so sl dylib la dll; do
7067 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7068 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7069 ac_im_usrlibdir=$ac_im_libdir; break
7070 fi
7071 done
7072 # Screen out bogus values from the imake configuration. They are
7073 # bogus both because they are the default anyway, and because
7074 # using them would break gcc on systems where it needs fixed includes.
7075 case $ac_im_incroot in
7076 /usr/include) ac_x_includes= ;;
7077 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7078 esac
7079 case $ac_im_usrlibdir in
7080 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7081 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7082 esac
7083 fi
7084 cd ..
7085 rm -f -r conftest.dir
7086 fi
7087
7088 # Standard set of common directories for X headers.
7089 # Check X11 before X11Rn because it is often a symlink to the current release.
7090 ac_x_header_dirs='
7091 /usr/X11/include
7092 /usr/X11R7/include
7093 /usr/X11R6/include
7094 /usr/X11R5/include
7095 /usr/X11R4/include
7096
7097 /usr/include/X11
7098 /usr/include/X11R7
7099 /usr/include/X11R6
7100 /usr/include/X11R5
7101 /usr/include/X11R4
7102
7103 /usr/local/X11/include
7104 /usr/local/X11R7/include
7105 /usr/local/X11R6/include
7106 /usr/local/X11R5/include
7107 /usr/local/X11R4/include
7108
7109 /usr/local/include/X11
7110 /usr/local/include/X11R7
7111 /usr/local/include/X11R6
7112 /usr/local/include/X11R5
7113 /usr/local/include/X11R4
7114
7115 /usr/X386/include
7116 /usr/x386/include
7117 /usr/XFree86/include/X11
7118
7119 /usr/include
7120 /usr/local/include
7121 /usr/unsupported/include
7122 /usr/athena/include
7123 /usr/local/x11r5/include
7124 /usr/lpp/Xamples/include
7125
7126 /usr/openwin/include
7127 /usr/openwin/share/include'
7128
7129 if test "$ac_x_includes" = no; then
7130 # Guess where to find include files, by looking for Xlib.h.
7131 # First, try using that file with no special directory specified.
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134 #include <X11/Xlib.h>
7135 _ACEOF
7136 if ac_fn_c_try_cpp "$LINENO"; then :
7137 # We can compile using X headers with no special include directory.
7138 ac_x_includes=
7139 else
7140 for ac_dir in $ac_x_header_dirs; do
7141 if test -r "$ac_dir/X11/Xlib.h"; then
7142 ac_x_includes=$ac_dir
7143 break
7144 fi
7145 done
7146 fi
7147 rm -f conftest.err conftest.$ac_ext
7148 fi # $ac_x_includes = no
7149
7150 if test "$ac_x_libraries" = no; then
7151 # Check for the libraries.
7152 # See if we find them without any special options.
7153 # Don't add to $LIBS permanently.
7154 ac_save_LIBS=$LIBS
7155 LIBS="-lX11 $LIBS"
7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7158 #include <X11/Xlib.h>
7159 int
7160 main ()
7161 {
7162 XrmInitialize ()
7163 ;
7164 return 0;
7165 }
7166 _ACEOF
7167 if ac_fn_c_try_link "$LINENO"; then :
7168 LIBS=$ac_save_LIBS
7169 # We can link X programs with no special library path.
7170 ac_x_libraries=
7171 else
7172 LIBS=$ac_save_LIBS
7173 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7174 do
7175 # Don't even attempt the hair of trying to link an X program!
7176 for ac_extension in a so sl dylib la dll; do
7177 if test -r "$ac_dir/libX11.$ac_extension"; then
7178 ac_x_libraries=$ac_dir
7179 break 2
7180 fi
7181 done
7182 done
7183 fi
7184 rm -f core conftest.err conftest.$ac_objext \
7185 conftest$ac_exeext conftest.$ac_ext
7186 fi # $ac_x_libraries = no
7187
7188 case $ac_x_includes,$ac_x_libraries in #(
7189 no,* | *,no | *\'*)
7190 # Didn't find X, or a directory has "'" in its name.
7191 ac_cv_have_x="have_x=no";; #(
7192 *)
7193 # Record where we found X for the cache.
7194 ac_cv_have_x="have_x=yes\
7195 ac_x_includes='$ac_x_includes'\
7196 ac_x_libraries='$ac_x_libraries'"
7197 esac
7198 fi
7199 ;; #(
7200 *) have_x=yes;;
7201 esac
7202 eval "$ac_cv_have_x"
7203 fi # $with_x != no
7204
7205 if test "$have_x" != yes; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7207 $as_echo "$have_x" >&6; }
7208 no_x=yes
7209 else
7210 # If each of the values was on the command line, it overrides each guess.
7211 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7212 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7213 # Update the cache value to reflect the command line values.
7214 ac_cv_have_x="have_x=yes\
7215 ac_x_includes='$x_includes'\
7216 ac_x_libraries='$x_libraries'"
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7218 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7219 fi
7220
7221 if test "$no_x" = yes; then
7222 window_system=none
7223 else
7224 window_system=x11
7225 fi
7226
7227 ## Workaround for bug in autoconf <= 2.62.
7228 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7229 ## No need to do anything special for these standard directories.
7230 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7231
7232 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7233
7234 fi
7235
7236 LD_SWITCH_X_SITE_AUX=
7237 LD_SWITCH_X_SITE_AUX_RPATH=
7238 if test "${x_libraries}" != NONE; then
7239 if test -n "${x_libraries}"; then
7240 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7241 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7242 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7243 fi
7244 x_default_search_path=""
7245 x_search_path=${x_libraries}
7246 if test -z "${x_search_path}"; then
7247 x_search_path=/usr/lib
7248 fi
7249 for x_library in `echo ${x_search_path}: | \
7250 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7251 x_search_path="\
7252 ${x_library}/X11/%L/%T/%N%C%S:\
7253 ${x_library}/X11/%l/%T/%N%C%S:\
7254 ${x_library}/X11/%T/%N%C%S:\
7255 ${x_library}/X11/%L/%T/%N%S:\
7256 ${x_library}/X11/%l/%T/%N%S:\
7257 ${x_library}/X11/%T/%N%S"
7258 if test x"${x_default_search_path}" = x; then
7259 x_default_search_path=${x_search_path}
7260 else
7261 x_default_search_path="${x_search_path}:${x_default_search_path}"
7262 fi
7263 done
7264 fi
7265
7266
7267
7268 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7269 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7270 fi
7271
7272 if test x"${x_includes}" = x; then
7273 bitmapdir=/usr/include/X11/bitmaps
7274 else
7275 # accumulate include directories that have X11 bitmap subdirectories
7276 bmd_acc="dummyval"
7277 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7278 if test -d "${bmd}/X11/bitmaps"; then
7279 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7280 fi
7281 if test -d "${bmd}/bitmaps"; then
7282 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7283 fi
7284 done
7285 if test ${bmd_acc} != "dummyval"; then
7286 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7287 fi
7288 fi
7289
7290 HAVE_NS=no
7291 NS_IMPL_COCOA=no
7292 NS_IMPL_GNUSTEP=no
7293 tmp_CPPFLAGS="$CPPFLAGS"
7294 tmp_CFLAGS="$CFLAGS"
7295 CPPFLAGS="$CPPFLAGS -x objective-c"
7296 CFLAGS="$CFLAGS -x objective-c"
7297 if test "${with_ns}" != no; then
7298 if test "${opsys}" = darwin; then
7299 NS_IMPL_COCOA=yes
7300 ns_appdir=`pwd`/nextstep/Emacs.app
7301 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
7302 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
7303 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7304 elif test -f $GNUSTEP_CONFIG_FILE; then
7305 NS_IMPL_GNUSTEP=yes
7306 ns_appdir=`pwd`/nextstep/Emacs.app
7307 ns_appbindir=`pwd`/nextstep/Emacs.app
7308 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
7309 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7310 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
7311 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7312 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7313 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7314 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7315 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7316 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7317 LIB_STANDARD=
7318 fi
7319 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7320 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7321 HAVE_NS=yes
7322 else
7323 as_fn_error "\`--with-ns' was specified, but the include
7324 files are missing or cannot be compiled." "$LINENO" 5
7325 fi
7326
7327
7328 NS_HAVE_NSINTEGER=yes
7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7331 #include <Foundation/NSObjCRuntime.h>
7332 int
7333 main ()
7334 {
7335 NSInteger i;
7336 ;
7337 return 0;
7338 }
7339 _ACEOF
7340 if ac_fn_c_try_compile "$LINENO"; then :
7341 ns_have_nsinteger=yes
7342 else
7343 ns_have_nsinteger=no
7344 fi
7345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7346 if test $ns_have_nsinteger = no; then
7347 NS_HAVE_NSINTEGER=no
7348 fi
7349 fi
7350
7351 NS_OBJ=
7352 NS_SUPPORT=
7353 if test "${HAVE_NS}" = yes; then
7354 window_system=nextstep
7355 with_xft=no
7356 # set up packaging dirs
7357 exec_prefix=${ns_appbindir}
7358 libexecdir=${ns_appbindir}/libexec
7359 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7360 prefix=${ns_appresdir}
7361 fi
7362 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7363 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7364 fi
7365 CFLAGS="$tmp_CFLAGS"
7366 CPPFLAGS="$tmp_CPPFLAGS"
7367
7368
7369
7370
7371 case "${window_system}" in
7372 x11 )
7373 HAVE_X_WINDOWS=yes
7374 HAVE_X11=yes
7375 case "${with_x_toolkit}" in
7376 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7377 motif ) USE_X_TOOLKIT=MOTIF ;;
7378 gtk ) with_gtk=yes
7379 USE_X_TOOLKIT=none ;;
7380 no ) USE_X_TOOLKIT=none ;;
7381 * ) USE_X_TOOLKIT=maybe ;;
7382 esac
7383 ;;
7384 nextstep | none )
7385 HAVE_X_WINDOWS=no
7386 HAVE_X11=no
7387 USE_X_TOOLKIT=none
7388 ;;
7389 esac
7390
7391 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7392 # Extract the first word of "X", so it can be a program name with args.
7393 set dummy X; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7397 $as_echo_n "(cached) " >&6
7398 else
7399 if test -n "$HAVE_XSERVER"; then
7400 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409 ac_cv_prog_HAVE_XSERVER="true"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 break 2
7412 fi
7413 done
7414 done
7415 IFS=$as_save_IFS
7416
7417 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7418 fi
7419 fi
7420 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7421 if test -n "$HAVE_XSERVER"; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7423 $as_echo "$HAVE_XSERVER" >&6; }
7424 else
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7427 fi
7428
7429
7430 if test "$HAVE_XSERVER" = true ||
7431 test -n "$DISPLAY" ||
7432 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7433 as_fn_error "You seem to be running X, but no X development libraries
7434 were found. You should install the relevant development files for X
7435 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7436 sure you have development files for image handling, i.e.
7437 tiff, gif, jpeg, png and xpm.
7438 If you are sure you want Emacs compiled without X window support, pass
7439 --without-x
7440 to configure." "$LINENO" 5
7441 fi
7442 fi
7443
7444 ### If we're using X11, we should use the X menu package.
7445 HAVE_MENUS=no
7446 case ${HAVE_X11} in
7447 yes ) HAVE_MENUS=yes ;;
7448 esac
7449
7450 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7451 # Assume not, until told otherwise.
7452 GNU_MALLOC=yes
7453 doug_lea_malloc=yes
7454 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7455 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7456
7457 else
7458 doug_lea_malloc=no
7459 fi
7460
7461 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7462 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7463
7464 else
7465 doug_lea_malloc=no
7466 fi
7467
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7469 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7470 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7475 extern void (* __after_morecore_hook)();
7476 int
7477 main ()
7478 {
7479 __after_morecore_hook = 0
7480 ;
7481 return 0;
7482 }
7483 _ACEOF
7484 if ac_fn_c_try_link "$LINENO"; then :
7485 emacs_cv_var___after_morecore_hook=yes
7486 else
7487 emacs_cv_var___after_morecore_hook=no
7488 fi
7489 rm -f core conftest.err conftest.$ac_objext \
7490 conftest$ac_exeext conftest.$ac_ext
7491 fi
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7493 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7494 if test $emacs_cv_var___after_morecore_hook = no; then
7495 doug_lea_malloc=no
7496 fi
7497 if test "${system_malloc}" = "yes"; then
7498 GNU_MALLOC=no
7499 GNU_MALLOC_reason="
7500 (The GNU allocators don't work with this system configuration.)"
7501 fi
7502 if test "$doug_lea_malloc" = "yes" ; then
7503 if test "$GNU_MALLOC" = yes ; then
7504 GNU_MALLOC_reason="
7505 (Using Doug Lea's new malloc from the GNU C Library.)"
7506 fi
7507
7508 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7509
7510 fi
7511
7512 if test x"${REL_ALLOC}" = x; then
7513 REL_ALLOC=${GNU_MALLOC}
7514 fi
7515
7516
7517
7518
7519
7520 for ac_header in $ac_header_list
7521 do :
7522 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7523 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7524 "
7525 eval as_val=\$$as_ac_Header
7526 if test "x$as_val" = x""yes; then :
7527 cat >>confdefs.h <<_ACEOF
7528 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7529 _ACEOF
7530
7531 fi
7532
7533 done
7534
7535
7536
7537
7538
7539
7540
7541
7542 for ac_func in getpagesize
7543 do :
7544 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7545 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7546 cat >>confdefs.h <<_ACEOF
7547 #define HAVE_GETPAGESIZE 1
7548 _ACEOF
7549
7550 fi
7551 done
7552
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7554 $as_echo_n "checking for working mmap... " >&6; }
7555 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 if test "$cross_compiling" = yes; then :
7559 ac_cv_func_mmap_fixed_mapped=no
7560 else
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7563 $ac_includes_default
7564 /* malloc might have been renamed as rpl_malloc. */
7565 #undef malloc
7566
7567 /* Thanks to Mike Haertel and Jim Avera for this test.
7568 Here is a matrix of mmap possibilities:
7569 mmap private not fixed
7570 mmap private fixed at somewhere currently unmapped
7571 mmap private fixed at somewhere already mapped
7572 mmap shared not fixed
7573 mmap shared fixed at somewhere currently unmapped
7574 mmap shared fixed at somewhere already mapped
7575 For private mappings, we should verify that changes cannot be read()
7576 back from the file, nor mmap's back from the file at a different
7577 address. (There have been systems where private was not correctly
7578 implemented like the infamous i386 svr4.0, and systems where the
7579 VM page cache was not coherent with the file system buffer cache
7580 like early versions of FreeBSD and possibly contemporary NetBSD.)
7581 For shared mappings, we should conversely verify that changes get
7582 propagated back to all the places they're supposed to be.
7583
7584 Grep wants private fixed already mapped.
7585 The main things grep needs to know about mmap are:
7586 * does it exist and is it safe to write into the mmap'd area
7587 * how to use it (BSD variants) */
7588
7589 #include <fcntl.h>
7590 #include <sys/mman.h>
7591
7592 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7593 char *malloc ();
7594 #endif
7595
7596 /* This mess was copied from the GNU getpagesize.h. */
7597 #ifndef HAVE_GETPAGESIZE
7598 # ifdef _SC_PAGESIZE
7599 # define getpagesize() sysconf(_SC_PAGESIZE)
7600 # else /* no _SC_PAGESIZE */
7601 # ifdef HAVE_SYS_PARAM_H
7602 # include <sys/param.h>
7603 # ifdef EXEC_PAGESIZE
7604 # define getpagesize() EXEC_PAGESIZE
7605 # else /* no EXEC_PAGESIZE */
7606 # ifdef NBPG
7607 # define getpagesize() NBPG * CLSIZE
7608 # ifndef CLSIZE
7609 # define CLSIZE 1
7610 # endif /* no CLSIZE */
7611 # else /* no NBPG */
7612 # ifdef NBPC
7613 # define getpagesize() NBPC
7614 # else /* no NBPC */
7615 # ifdef PAGESIZE
7616 # define getpagesize() PAGESIZE
7617 # endif /* PAGESIZE */
7618 # endif /* no NBPC */
7619 # endif /* no NBPG */
7620 # endif /* no EXEC_PAGESIZE */
7621 # else /* no HAVE_SYS_PARAM_H */
7622 # define getpagesize() 8192 /* punt totally */
7623 # endif /* no HAVE_SYS_PARAM_H */
7624 # endif /* no _SC_PAGESIZE */
7625
7626 #endif /* no HAVE_GETPAGESIZE */
7627
7628 int
7629 main ()
7630 {
7631 char *data, *data2, *data3;
7632 int i, pagesize;
7633 int fd, fd2;
7634
7635 pagesize = getpagesize ();
7636
7637 /* First, make a file with some known garbage in it. */
7638 data = (char *) malloc (pagesize);
7639 if (!data)
7640 return 1;
7641 for (i = 0; i < pagesize; ++i)
7642 *(data + i) = rand ();
7643 umask (0);
7644 fd = creat ("conftest.mmap", 0600);
7645 if (fd < 0)
7646 return 2;
7647 if (write (fd, data, pagesize) != pagesize)
7648 return 3;
7649 close (fd);
7650
7651 /* Next, check that the tail of a page is zero-filled. File must have
7652 non-zero length, otherwise we risk SIGBUS for entire page. */
7653 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7654 if (fd2 < 0)
7655 return 4;
7656 data2 = "";
7657 if (write (fd2, data2, 1) != 1)
7658 return 5;
7659 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7660 if (data2 == MAP_FAILED)
7661 return 6;
7662 for (i = 0; i < pagesize; ++i)
7663 if (*(data2 + i))
7664 return 7;
7665 close (fd2);
7666 if (munmap (data2, pagesize))
7667 return 8;
7668
7669 /* Next, try to mmap the file at a fixed address which already has
7670 something else allocated at it. If we can, also make sure that
7671 we see the same garbage. */
7672 fd = open ("conftest.mmap", O_RDWR);
7673 if (fd < 0)
7674 return 9;
7675 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7676 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7677 return 10;
7678 for (i = 0; i < pagesize; ++i)
7679 if (*(data + i) != *(data2 + i))
7680 return 11;
7681
7682 /* Finally, make sure that changes to the mapped area do not
7683 percolate back to the file as seen by read(). (This is a bug on
7684 some variants of i386 svr4.0.) */
7685 for (i = 0; i < pagesize; ++i)
7686 *(data2 + i) = *(data2 + i) + 1;
7687 data3 = (char *) malloc (pagesize);
7688 if (!data3)
7689 return 12;
7690 if (read (fd, data3, pagesize) != pagesize)
7691 return 13;
7692 for (i = 0; i < pagesize; ++i)
7693 if (*(data + i) != *(data3 + i))
7694 return 14;
7695 close (fd);
7696 return 0;
7697 }
7698 _ACEOF
7699 if ac_fn_c_try_run "$LINENO"; then :
7700 ac_cv_func_mmap_fixed_mapped=yes
7701 else
7702 ac_cv_func_mmap_fixed_mapped=no
7703 fi
7704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7705 conftest.$ac_objext conftest.beam conftest.$ac_ext
7706 fi
7707
7708 fi
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7710 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7711 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7712
7713 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7714
7715 fi
7716 rm -f conftest.mmap conftest.txt
7717
7718 if test $use_mmap_for_buffers = yes; then
7719 REL_ALLOC=no
7720 fi
7721
7722 LIBS="$libsrc_libs $LIBS"
7723
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7725 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7726 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7727 $as_echo_n "(cached) " >&6
7728 else
7729 ac_check_lib_save_LIBS=$LIBS
7730 LIBS="-ldnet $LIBS"
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7733
7734 /* Override any GCC internal prototype to avoid an error.
7735 Use char because int might match the return type of a GCC
7736 builtin and then its argument prototype would still apply. */
7737 #ifdef __cplusplus
7738 extern "C"
7739 #endif
7740 char dnet_ntoa ();
7741 int
7742 main ()
7743 {
7744 return dnet_ntoa ();
7745 ;
7746 return 0;
7747 }
7748 _ACEOF
7749 if ac_fn_c_try_link "$LINENO"; then :
7750 ac_cv_lib_dnet_dnet_ntoa=yes
7751 else
7752 ac_cv_lib_dnet_dnet_ntoa=no
7753 fi
7754 rm -f core conftest.err conftest.$ac_objext \
7755 conftest$ac_exeext conftest.$ac_ext
7756 LIBS=$ac_check_lib_save_LIBS
7757 fi
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7759 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7760 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7761 cat >>confdefs.h <<_ACEOF
7762 #define HAVE_LIBDNET 1
7763 _ACEOF
7764
7765 LIBS="-ldnet $LIBS"
7766
7767 fi
7768
7769
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7771 $as_echo_n "checking for main in -lXbsd... " >&6; }
7772 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775 ac_check_lib_save_LIBS=$LIBS
7776 LIBS="-lXbsd $LIBS"
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7779
7780
7781 int
7782 main ()
7783 {
7784 return main ();
7785 ;
7786 return 0;
7787 }
7788 _ACEOF
7789 if ac_fn_c_try_link "$LINENO"; then :
7790 ac_cv_lib_Xbsd_main=yes
7791 else
7792 ac_cv_lib_Xbsd_main=no
7793 fi
7794 rm -f core conftest.err conftest.$ac_objext \
7795 conftest$ac_exeext conftest.$ac_ext
7796 LIBS=$ac_check_lib_save_LIBS
7797 fi
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7799 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7800 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
7801 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7802 fi
7803
7804
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7806 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7807 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 ac_check_lib_save_LIBS=$LIBS
7811 LIBS="-lpthreads $LIBS"
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7814
7815 /* Override any GCC internal prototype to avoid an error.
7816 Use char because int might match the return type of a GCC
7817 builtin and then its argument prototype would still apply. */
7818 #ifdef __cplusplus
7819 extern "C"
7820 #endif
7821 char cma_open ();
7822 int
7823 main ()
7824 {
7825 return cma_open ();
7826 ;
7827 return 0;
7828 }
7829 _ACEOF
7830 if ac_fn_c_try_link "$LINENO"; then :
7831 ac_cv_lib_pthreads_cma_open=yes
7832 else
7833 ac_cv_lib_pthreads_cma_open=no
7834 fi
7835 rm -f core conftest.err conftest.$ac_objext \
7836 conftest$ac_exeext conftest.$ac_ext
7837 LIBS=$ac_check_lib_save_LIBS
7838 fi
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7840 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7841 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
7842 cat >>confdefs.h <<_ACEOF
7843 #define HAVE_LIBPTHREADS 1
7844 _ACEOF
7845
7846 LIBS="-lpthreads $LIBS"
7847
7848 fi
7849
7850
7851
7852 case ${host_os} in
7853 aix*)
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
7855 $as_echo_n "checking for -bbigtoc option... " >&6; }
7856 if test "${gdb_cv_bigtoc+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859
7860 case $GCC in
7861 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7862 *) gdb_cv_bigtoc=-bbigtoc ;;
7863 esac
7864
7865 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7868
7869 int
7870 main ()
7871 {
7872 int i;
7873 ;
7874 return 0;
7875 }
7876 _ACEOF
7877 if ac_fn_c_try_link "$LINENO"; then :
7878
7879 else
7880 gdb_cv_bigtoc=
7881 fi
7882 rm -f core conftest.err conftest.$ac_objext \
7883 conftest$ac_exeext conftest.$ac_ext
7884
7885 fi
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
7887 $as_echo "$gdb_cv_bigtoc" >&6; }
7888 ;;
7889 esac
7890
7891 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7892 # used for the tests that follow. We set them back to REAL_CFLAGS and
7893 # REAL_CPPFLAGS later on.
7894
7895 REAL_CPPFLAGS="$CPPFLAGS"
7896
7897 if test "${HAVE_X11}" = "yes"; then
7898 DEFS="$C_SWITCH_X_SITE $DEFS"
7899 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7900 LIBS="$LIBX $LIBS"
7901 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7902 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7903
7904 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7905 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7906 # but it's more convenient here to set LD_RUN_PATH
7907 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7908 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7909 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7910 export LD_RUN_PATH
7911 fi
7912
7913 if test "${opsys}" = "gnu-linux"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
7915 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7918
7919 int
7920 main ()
7921 {
7922 XOpenDisplay ("foo");
7923 ;
7924 return 0;
7925 }
7926 _ACEOF
7927 if ac_fn_c_try_link "$LINENO"; then :
7928 xlinux_first_failure=no
7929 else
7930 xlinux_first_failure=yes
7931 fi
7932 rm -f core conftest.err conftest.$ac_objext \
7933 conftest$ac_exeext conftest.$ac_ext
7934 if test "${xlinux_first_failure}" = "yes"; then
7935 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7936 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7937 OLD_CPPFLAGS="$CPPFLAGS"
7938 OLD_LIBS="$LIBS"
7939 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7940 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7941 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7942 LIBS="$LIBS -b i486-linuxaout"
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7945
7946 int
7947 main ()
7948 {
7949 XOpenDisplay ("foo");
7950 ;
7951 return 0;
7952 }
7953 _ACEOF
7954 if ac_fn_c_try_link "$LINENO"; then :
7955 xlinux_second_failure=no
7956 else
7957 xlinux_second_failure=yes
7958 fi
7959 rm -f core conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7961 if test "${xlinux_second_failure}" = "yes"; then
7962 # If we get the same failure with -b, there is no use adding -b.
7963 # So take it out. This plays safe.
7964 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7965 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7966 CPPFLAGS="$OLD_CPPFLAGS"
7967 LIBS="$OLD_LIBS"
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969 $as_echo "no" >&6; }
7970 else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7972 $as_echo "yes" >&6; }
7973 fi
7974 else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7977 fi
7978 fi
7979
7980 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7981 # header files included from there.
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
7983 $as_echo_n "checking for Xkb... " >&6; }
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 #include <X11/Xlib.h>
7987 #include <X11/XKBlib.h>
7988 int
7989 main ()
7990 {
7991 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7992 ;
7993 return 0;
7994 }
7995 _ACEOF
7996 if ac_fn_c_try_link "$LINENO"; then :
7997 emacs_xkb=yes
7998 else
7999 emacs_xkb=no
8000 fi
8001 rm -f core conftest.err conftest.$ac_objext \
8002 conftest$ac_exeext conftest.$ac_ext
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8004 $as_echo "$emacs_xkb" >&6; }
8005 if test $emacs_xkb = yes; then
8006
8007 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8008
8009 fi
8010
8011 for ac_func in XrmSetDatabase XScreenResourceString \
8012 XScreenNumberOfScreen XSetWMProtocols
8013 do :
8014 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8015 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8016 eval as_val=\$$as_ac_var
8017 if test "x$as_val" = x""yes; then :
8018 cat >>confdefs.h <<_ACEOF
8019 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8020 _ACEOF
8021
8022 fi
8023 done
8024
8025 fi
8026
8027 if test "${window_system}" = "x11"; then
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8029 $as_echo_n "checking X11 version 6... " >&6; }
8030 if test "${emacs_cv_x11_version_6+set}" = set; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h. */
8035 #include <X11/Xlib.h>
8036 int
8037 main ()
8038 {
8039 #if XlibSpecificationRelease < 6
8040 fail;
8041 #endif
8042
8043 ;
8044 return 0;
8045 }
8046 _ACEOF
8047 if ac_fn_c_try_link "$LINENO"; then :
8048 emacs_cv_x11_version_6=yes
8049 else
8050 emacs_cv_x11_version_6=no
8051 fi
8052 rm -f core conftest.err conftest.$ac_objext \
8053 conftest$ac_exeext conftest.$ac_ext
8054 fi
8055
8056 if test $emacs_cv_x11_version_6 = yes; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8058 $as_echo "6 or newer" >&6; }
8059
8060 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8061
8062 else
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8064 $as_echo "before 6" >&6; }
8065 fi
8066 fi
8067
8068
8069 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8070 HAVE_RSVG=no
8071 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8072 if test "${with_rsvg}" != "no"; then
8073 RSVG_REQUIRED=2.11.0
8074 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8075
8076
8077 succeeded=no
8078
8079 # Extract the first word of "pkg-config", so it can be a program name with args.
8080 set dummy pkg-config; ac_word=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 case $PKG_CONFIG in
8087 [\\/]* | ?:[\\/]*)
8088 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8089 ;;
8090 *)
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8093 do
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2
8101 fi
8102 done
8103 done
8104 IFS=$as_save_IFS
8105
8106 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8107 ;;
8108 esac
8109 fi
8110 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8111 if test -n "$PKG_CONFIG"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8113 $as_echo "$PKG_CONFIG" >&6; }
8114 else
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8117 fi
8118
8119
8120
8121 if test "$PKG_CONFIG" = "no" ; then
8122 :
8123 else
8124 PKG_CONFIG_MIN_VERSION=0.9.0
8125 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8127 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8128
8129 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8131 $as_echo "yes" >&6; }
8132 succeeded=yes
8133
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8135 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8136 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8138 $as_echo "$RSVG_CFLAGS" >&6; }
8139
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8141 $as_echo_n "checking RSVG_LIBS... " >&6; }
8142 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8144 $as_echo "$RSVG_LIBS" >&6; }
8145 else
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 $as_echo "no" >&6; }
8148 RSVG_CFLAGS=""
8149 RSVG_LIBS=""
8150 ## If we have a custom action on failure, don't print errors, but
8151 ## do set a variable so people can do so.
8152 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8153
8154 fi
8155
8156
8157
8158 else
8159 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8160 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8161 fi
8162 fi
8163
8164 if test $succeeded = yes; then
8165 :
8166 else
8167 :
8168 fi
8169
8170
8171
8172
8173 if test ".${RSVG_CFLAGS}" != "."; then
8174 HAVE_RSVG=yes
8175
8176 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8177
8178 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8179 LIBS="$RSVG_LIBS $LIBS"
8180 fi
8181 fi
8182 fi
8183
8184
8185 HAVE_GTK=no
8186 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8187 GLIB_REQUIRED=2.6
8188 GTK_REQUIRED=2.6
8189 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8190
8191
8192 succeeded=no
8193
8194 # Extract the first word of "pkg-config", so it can be a program name with args.
8195 set dummy pkg-config; ac_word=$2
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 $as_echo_n "checking for $ac_word... " >&6; }
8198 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 case $PKG_CONFIG in
8202 [\\/]* | ?:[\\/]*)
8203 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8204 ;;
8205 *)
8206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 for as_dir in $PATH
8208 do
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8213 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 break 2
8216 fi
8217 done
8218 done
8219 IFS=$as_save_IFS
8220
8221 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8222 ;;
8223 esac
8224 fi
8225 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8226 if test -n "$PKG_CONFIG"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8228 $as_echo "$PKG_CONFIG" >&6; }
8229 else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 $as_echo "no" >&6; }
8232 fi
8233
8234
8235
8236 if test "$PKG_CONFIG" = "no" ; then
8237 pkg_check_gtk=no
8238 else
8239 PKG_CONFIG_MIN_VERSION=0.9.0
8240 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8242 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8243
8244 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8246 $as_echo "yes" >&6; }
8247 succeeded=yes
8248
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8250 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8251 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8253 $as_echo "$GTK_CFLAGS" >&6; }
8254
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8256 $as_echo_n "checking GTK_LIBS... " >&6; }
8257 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8259 $as_echo "$GTK_LIBS" >&6; }
8260 else
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262 $as_echo "no" >&6; }
8263 GTK_CFLAGS=""
8264 GTK_LIBS=""
8265 ## If we have a custom action on failure, don't print errors, but
8266 ## do set a variable so people can do so.
8267 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8268
8269 fi
8270
8271
8272
8273 else
8274 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8275 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8276 fi
8277 fi
8278
8279 if test $succeeded = yes; then
8280 pkg_check_gtk=yes
8281 else
8282 pkg_check_gtk=no
8283 fi
8284
8285 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8286 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8287 fi
8288 fi
8289
8290
8291 GTK_OBJ=
8292 if test x"$pkg_check_gtk" = xyes; then
8293
8294
8295
8296 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8297 CFLAGS="$CFLAGS $GTK_CFLAGS"
8298 LIBS="$GTK_LIBS $LIBS"
8299 GTK_COMPILES=no
8300 for ac_func in gtk_main
8301 do :
8302 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8303 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8304 cat >>confdefs.h <<_ACEOF
8305 #define HAVE_GTK_MAIN 1
8306 _ACEOF
8307 GTK_COMPILES=yes
8308 fi
8309 done
8310
8311 if test "${GTK_COMPILES}" != "yes"; then
8312 if test "$USE_X_TOOLKIT" != "maybe"; then
8313 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8314 fi
8315 else
8316 HAVE_GTK=yes
8317
8318 $as_echo "#define USE_GTK 1" >>confdefs.h
8319
8320 GTK_OBJ=gtkutil.o
8321 USE_X_TOOLKIT=none
8322 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8323 :
8324 else
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8326 closing open displays. This is no problem if you just use
8327 one display, but if you use more than one and close one of them
8328 Emacs may crash." >&5
8329 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8330 closing open displays. This is no problem if you just use
8331 one display, but if you use more than one and close one of them
8332 Emacs may crash." >&2;}
8333 sleep 3
8334 fi
8335 fi
8336
8337 fi
8338
8339
8340
8341 if test "${HAVE_GTK}" = "yes"; then
8342
8343 if test "$with_toolkit_scroll_bars" != no; then
8344 with_toolkit_scroll_bars=yes
8345 fi
8346
8347 HAVE_GTK_MULTIDISPLAY=no
8348 for ac_func in gdk_display_open
8349 do :
8350 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8351 if test "x$ac_cv_func_gdk_display_open" = x""yes; then :
8352 cat >>confdefs.h <<_ACEOF
8353 #define HAVE_GDK_DISPLAY_OPEN 1
8354 _ACEOF
8355 HAVE_GTK_MULTIDISPLAY=yes
8356 fi
8357 done
8358
8359 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8360
8361 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8362
8363 fi
8364
8365 HAVE_GTK_FILE_SELECTION=no
8366 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8367 #include <gtk/gtk.h>
8368 "
8369 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
8370 HAVE_GTK_FILE_SELECTION=yes
8371 else
8372 HAVE_GTK_FILE_SELECTION=no
8373 fi
8374
8375 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8376 for ac_func in gtk_file_selection_new
8377 do :
8378 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8379 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
8380 cat >>confdefs.h <<_ACEOF
8381 #define HAVE_GTK_FILE_SELECTION_NEW 1
8382 _ACEOF
8383 HAVE_GTK_FILE_SELECTION=yes
8384 else
8385 HAVE_GTK_FILE_SELECTION=no
8386 fi
8387 done
8388
8389 fi
8390
8391 HAVE_GTK_FILE_CHOOSER=no
8392 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8393 #include <gtk/gtk.h>
8394 "
8395 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then :
8396 HAVE_GTK_FILE_CHOOSER=yes
8397 else
8398 HAVE_GTK_FILE_CHOOSER=no
8399 fi
8400
8401 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8402 for ac_func in gtk_file_chooser_dialog_new
8403 do :
8404 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8405 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then :
8406 cat >>confdefs.h <<_ACEOF
8407 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8408 _ACEOF
8409 HAVE_GTK_FILE_CHOOSER=yes
8410 else
8411 HAVE_GTK_FILE_CHOOSER=no
8412 fi
8413 done
8414
8415 fi
8416
8417 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8418 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8419
8420 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8421
8422 fi
8423
8424 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8425 HAVE_GTK_AND_PTHREAD=no
8426 for ac_header in pthread.h
8427 do :
8428 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8429 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8430 cat >>confdefs.h <<_ACEOF
8431 #define HAVE_PTHREAD_H 1
8432 _ACEOF
8433
8434 fi
8435
8436 done
8437
8438 if test "$ac_cv_header_pthread_h"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8440 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8441 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 ac_check_lib_save_LIBS=$LIBS
8445 LIBS="-lpthread $LIBS"
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8448
8449 /* Override any GCC internal prototype to avoid an error.
8450 Use char because int might match the return type of a GCC
8451 builtin and then its argument prototype would still apply. */
8452 #ifdef __cplusplus
8453 extern "C"
8454 #endif
8455 char pthread_self ();
8456 int
8457 main ()
8458 {
8459 return pthread_self ();
8460 ;
8461 return 0;
8462 }
8463 _ACEOF
8464 if ac_fn_c_try_link "$LINENO"; then :
8465 ac_cv_lib_pthread_pthread_self=yes
8466 else
8467 ac_cv_lib_pthread_pthread_self=no
8468 fi
8469 rm -f core conftest.err conftest.$ac_objext \
8470 conftest$ac_exeext conftest.$ac_ext
8471 LIBS=$ac_check_lib_save_LIBS
8472 fi
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8474 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8475 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
8476 HAVE_GTK_AND_PTHREAD=yes
8477 fi
8478
8479 fi
8480 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8481 case "${canonical}" in
8482 *-hpux*) ;;
8483 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8484 esac
8485
8486 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8487
8488 fi
8489 fi
8490 fi
8491
8492 HAVE_DBUS=no
8493 DBUS_OBJ=
8494 if test "${with_dbus}" = "yes"; then
8495
8496 succeeded=no
8497
8498 # Extract the first word of "pkg-config", so it can be a program name with args.
8499 set dummy pkg-config; ac_word=$2
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8501 $as_echo_n "checking for $ac_word... " >&6; }
8502 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
8504 else
8505 case $PKG_CONFIG in
8506 [\\/]* | ?:[\\/]*)
8507 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8508 ;;
8509 *)
8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 for as_dir in $PATH
8512 do
8513 IFS=$as_save_IFS
8514 test -z "$as_dir" && as_dir=.
8515 for ac_exec_ext in '' $ac_executable_extensions; do
8516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8517 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 break 2
8520 fi
8521 done
8522 done
8523 IFS=$as_save_IFS
8524
8525 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8526 ;;
8527 esac
8528 fi
8529 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8530 if test -n "$PKG_CONFIG"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8532 $as_echo "$PKG_CONFIG" >&6; }
8533 else
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8536 fi
8537
8538
8539
8540 if test "$PKG_CONFIG" = "no" ; then
8541 HAVE_DBUS=no
8542 else
8543 PKG_CONFIG_MIN_VERSION=0.9.0
8544 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8546 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8547
8548 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8550 $as_echo "yes" >&6; }
8551 succeeded=yes
8552
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8554 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8555 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8557 $as_echo "$DBUS_CFLAGS" >&6; }
8558
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8560 $as_echo_n "checking DBUS_LIBS... " >&6; }
8561 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8563 $as_echo "$DBUS_LIBS" >&6; }
8564 else
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 $as_echo "no" >&6; }
8567 DBUS_CFLAGS=""
8568 DBUS_LIBS=""
8569 ## If we have a custom action on failure, don't print errors, but
8570 ## do set a variable so people can do so.
8571 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8572
8573 fi
8574
8575
8576
8577 else
8578 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8579 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8580 fi
8581 fi
8582
8583 if test $succeeded = yes; then
8584 HAVE_DBUS=yes
8585 else
8586 HAVE_DBUS=no
8587 fi
8588
8589 if test "$HAVE_DBUS" = yes; then
8590 LIBS="$LIBS $DBUS_LIBS"
8591
8592 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8593
8594 for ac_func in dbus_watch_get_unix_fd
8595 do :
8596 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8597 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
8598 cat >>confdefs.h <<_ACEOF
8599 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8600 _ACEOF
8601
8602 fi
8603 done
8604
8605 DBUS_OBJ=dbusbind.o
8606 fi
8607 fi
8608
8609
8610 HAVE_GCONF=no
8611 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8612
8613 succeeded=no
8614
8615 # Extract the first word of "pkg-config", so it can be a program name with args.
8616 set dummy pkg-config; ac_word=$2
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 $as_echo_n "checking for $ac_word... " >&6; }
8619 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 case $PKG_CONFIG in
8623 [\\/]* | ?:[\\/]*)
8624 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8625 ;;
8626 *)
8627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 for as_dir in $PATH
8629 do
8630 IFS=$as_save_IFS
8631 test -z "$as_dir" && as_dir=.
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8634 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 break 2
8637 fi
8638 done
8639 done
8640 IFS=$as_save_IFS
8641
8642 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8643 ;;
8644 esac
8645 fi
8646 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8647 if test -n "$PKG_CONFIG"; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8649 $as_echo "$PKG_CONFIG" >&6; }
8650 else
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 $as_echo "no" >&6; }
8653 fi
8654
8655
8656
8657 if test "$PKG_CONFIG" = "no" ; then
8658 HAVE_GCONF=no
8659 else
8660 PKG_CONFIG_MIN_VERSION=0.9.0
8661 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8663 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8664
8665 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8667 $as_echo "yes" >&6; }
8668 succeeded=yes
8669
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8671 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8672 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8674 $as_echo "$GCONF_CFLAGS" >&6; }
8675
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8677 $as_echo_n "checking GCONF_LIBS... " >&6; }
8678 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8680 $as_echo "$GCONF_LIBS" >&6; }
8681 else
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8684 GCONF_CFLAGS=""
8685 GCONF_LIBS=""
8686 ## If we have a custom action on failure, don't print errors, but
8687 ## do set a variable so people can do so.
8688 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8689
8690 fi
8691
8692
8693
8694 else
8695 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8696 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8697 fi
8698 fi
8699
8700 if test $succeeded = yes; then
8701 HAVE_GCONF=yes
8702 else
8703 HAVE_GCONF=no
8704 fi
8705
8706 if test "$HAVE_GCONF" = yes; then
8707
8708 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8709
8710 fi
8711 fi
8712
8713 HAVE_LIBSELINUX=no
8714 LIBSELINUX_LIBS=
8715 if test "${with_selinux}" = "yes"; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
8717 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
8718 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
8719 $as_echo_n "(cached) " >&6
8720 else
8721 ac_check_lib_save_LIBS=$LIBS
8722 LIBS="-lselinux $LIBS"
8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8725
8726 /* Override any GCC internal prototype to avoid an error.
8727 Use char because int might match the return type of a GCC
8728 builtin and then its argument prototype would still apply. */
8729 #ifdef __cplusplus
8730 extern "C"
8731 #endif
8732 char lgetfilecon ();
8733 int
8734 main ()
8735 {
8736 return lgetfilecon ();
8737 ;
8738 return 0;
8739 }
8740 _ACEOF
8741 if ac_fn_c_try_link "$LINENO"; then :
8742 ac_cv_lib_selinux_lgetfilecon=yes
8743 else
8744 ac_cv_lib_selinux_lgetfilecon=no
8745 fi
8746 rm -f core conftest.err conftest.$ac_objext \
8747 conftest$ac_exeext conftest.$ac_ext
8748 LIBS=$ac_check_lib_save_LIBS
8749 fi
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
8751 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
8752 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
8753 HAVE_LIBSELINUX=yes
8754 else
8755 HAVE_LIBSELINUX=no
8756 fi
8757
8758 if test "$HAVE_LIBSELINUX" = yes; then
8759
8760 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
8761
8762 LIBSELINUX_LIBS=-lselinux
8763 fi
8764 fi
8765
8766
8767 HAVE_XAW3D=no
8768 LUCID_LIBW=
8769 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
8770 if test "$with_xaw3d" != no; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
8772 $as_echo_n "checking for xaw3d... " >&6; }
8773 if test "${emacs_cv_xaw3d+set}" = set; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8778
8779 #include <X11/Intrinsic.h>
8780 #include <X11/Xaw3d/Simple.h>
8781 int
8782 main ()
8783 {
8784
8785 ;
8786 return 0;
8787 }
8788 _ACEOF
8789 if ac_fn_c_try_link "$LINENO"; then :
8790 emacs_cv_xaw3d=yes
8791 else
8792 emacs_cv_xaw3d=no
8793 fi
8794 rm -f core conftest.err conftest.$ac_objext \
8795 conftest$ac_exeext conftest.$ac_ext
8796 fi
8797
8798 else
8799 emacs_cv_xaw3d=no
8800 fi
8801 if test $emacs_cv_xaw3d = yes; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8803 $as_echo "yes; using Lucid toolkit" >&6; }
8804 USE_X_TOOLKIT=LUCID
8805 HAVE_XAW3D=yes
8806 LUCID_LIBW=-lXaw3d
8807
8808 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
8809
8810 else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
8814 $as_echo_n "checking for libXaw... " >&6; }
8815 if test "${emacs_cv_xaw+set}" = set; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8820
8821 #include <X11/Intrinsic.h>
8822 #include <X11/Xaw/Simple.h>
8823 int
8824 main ()
8825 {
8826
8827 ;
8828 return 0;
8829 }
8830 _ACEOF
8831 if ac_fn_c_try_link "$LINENO"; then :
8832 emacs_cv_xaw=yes
8833 else
8834 emacs_cv_xaw=no
8835 fi
8836 rm -f core conftest.err conftest.$ac_objext \
8837 conftest$ac_exeext conftest.$ac_ext
8838 fi
8839
8840 if test $emacs_cv_xaw = yes; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8842 $as_echo "yes; using Lucid toolkit" >&6; }
8843 USE_X_TOOLKIT=LUCID
8844 LUCID_LIBW=-lXaw
8845 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
8846 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
8847 else
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
8849 $as_echo "no; do not use toolkit by default" >&6; }
8850 USE_X_TOOLKIT=none
8851 fi
8852 fi
8853 fi
8854
8855 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8856
8857 LIBXTR6=
8858 if test "${USE_X_TOOLKIT}" != "none"; then
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
8860 $as_echo_n "checking X11 toolkit version... " >&6; }
8861 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
8862 $as_echo_n "(cached) " >&6
8863 else
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8866 #include <X11/Intrinsic.h>
8867 int
8868 main ()
8869 {
8870 #if XtSpecificationRelease < 6
8871 fail;
8872 #endif
8873
8874 ;
8875 return 0;
8876 }
8877 _ACEOF
8878 if ac_fn_c_try_link "$LINENO"; then :
8879 emacs_cv_x11_toolkit_version_6=yes
8880 else
8881 emacs_cv_x11_toolkit_version_6=no
8882 fi
8883 rm -f core conftest.err conftest.$ac_objext \
8884 conftest$ac_exeext conftest.$ac_ext
8885 fi
8886
8887 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8888 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8890 $as_echo "6 or newer" >&6; }
8891
8892 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
8893
8894 LIBXTR6="-lSM -lICE"
8895 case "$opsys" in
8896 ## Use libw.a along with X11R6 Xt.
8897 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
8898 esac
8899 else
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8901 $as_echo "before 6" >&6; }
8902 fi
8903
8904 OLDLIBS="$LIBS"
8905 if test x$HAVE_X11XTR6 = xyes; then
8906 LIBS="-lXt -lSM -lICE $LIBS"
8907 else
8908 LIBS="-lXt $LIBS"
8909 fi
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
8911 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8912 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
8913 $as_echo_n "(cached) " >&6
8914 else
8915 ac_check_lib_save_LIBS=$LIBS
8916 LIBS="-lXmu $LIBS"
8917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918 /* end confdefs.h. */
8919
8920 /* Override any GCC internal prototype to avoid an error.
8921 Use char because int might match the return type of a GCC
8922 builtin and then its argument prototype would still apply. */
8923 #ifdef __cplusplus
8924 extern "C"
8925 #endif
8926 char XmuConvertStandardSelection ();
8927 int
8928 main ()
8929 {
8930 return XmuConvertStandardSelection ();
8931 ;
8932 return 0;
8933 }
8934 _ACEOF
8935 if ac_fn_c_try_link "$LINENO"; then :
8936 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8937 else
8938 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8939 fi
8940 rm -f core conftest.err conftest.$ac_objext \
8941 conftest$ac_exeext conftest.$ac_ext
8942 LIBS=$ac_check_lib_save_LIBS
8943 fi
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8945 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8946 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
8947 cat >>confdefs.h <<_ACEOF
8948 #define HAVE_LIBXMU 1
8949 _ACEOF
8950
8951 LIBS="-lXmu $LIBS"
8952
8953 fi
8954
8955 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8956 fi
8957
8958
8959 LIBXMU=-lXmu
8960 case "$machine" in
8961 ## These machines don't supply Xmu.
8962 hpux* | aix4-2 )
8963 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
8964 ;;
8965 esac
8966
8967
8968 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8969 if test "${HAVE_X11}" = "yes"; then
8970 if test "${USE_X_TOOLKIT}" != "none"; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8972 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8973 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
8975 else
8976 ac_check_lib_save_LIBS=$LIBS
8977 LIBS="-lXext $LIBS"
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8980
8981 /* Override any GCC internal prototype to avoid an error.
8982 Use char because int might match the return type of a GCC
8983 builtin and then its argument prototype would still apply. */
8984 #ifdef __cplusplus
8985 extern "C"
8986 #endif
8987 char XShapeQueryExtension ();
8988 int
8989 main ()
8990 {
8991 return XShapeQueryExtension ();
8992 ;
8993 return 0;
8994 }
8995 _ACEOF
8996 if ac_fn_c_try_link "$LINENO"; then :
8997 ac_cv_lib_Xext_XShapeQueryExtension=yes
8998 else
8999 ac_cv_lib_Xext_XShapeQueryExtension=no
9000 fi
9001 rm -f core conftest.err conftest.$ac_objext \
9002 conftest$ac_exeext conftest.$ac_ext
9003 LIBS=$ac_check_lib_save_LIBS
9004 fi
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9006 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9007 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9008 cat >>confdefs.h <<_ACEOF
9009 #define HAVE_LIBXEXT 1
9010 _ACEOF
9011
9012 LIBS="-lXext $LIBS"
9013
9014 fi
9015
9016 fi
9017 fi
9018
9019 LIBXP=
9020 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9022 $as_echo_n "checking for Motif version 2.1... " >&6; }
9023 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h. */
9028 #include <Xm/Xm.h>
9029 int
9030 main ()
9031 {
9032 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9033 int x = 5;
9034 #else
9035 Motif version prior to 2.1.
9036 #endif
9037 ;
9038 return 0;
9039 }
9040 _ACEOF
9041 if ac_fn_c_try_compile "$LINENO"; then :
9042 emacs_cv_motif_version_2_1=yes
9043 else
9044 emacs_cv_motif_version_2_1=no
9045 fi
9046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047 fi
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9049 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9050 if test $emacs_cv_motif_version_2_1 = yes; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9052 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9053 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9054 $as_echo_n "(cached) " >&6
9055 else
9056 ac_check_lib_save_LIBS=$LIBS
9057 LIBS="-lXp $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 XpCreateContext ();
9068 int
9069 main ()
9070 {
9071 return XpCreateContext ();
9072 ;
9073 return 0;
9074 }
9075 _ACEOF
9076 if ac_fn_c_try_link "$LINENO"; then :
9077 ac_cv_lib_Xp_XpCreateContext=yes
9078 else
9079 ac_cv_lib_Xp_XpCreateContext=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_Xp_XpCreateContext" >&5
9086 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9087 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9088 LIBXP=-lXp
9089 fi
9090
9091 else
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9093 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9094 if test "${emacs_cv_lesstif+set}" = set; then :
9095 $as_echo_n "(cached) " >&6
9096 else
9097 # We put this in CFLAGS temporarily to precede other -I options
9098 # that might be in CFLAGS temporarily.
9099 # We put this in CPPFLAGS where it precedes the other -I options.
9100 OLD_CPPFLAGS=$CPPFLAGS
9101 OLD_CFLAGS=$CFLAGS
9102 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9103 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h. */
9106 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9107 int
9108 main ()
9109 {
9110 int x = 5;
9111 ;
9112 return 0;
9113 }
9114 _ACEOF
9115 if ac_fn_c_try_compile "$LINENO"; then :
9116 emacs_cv_lesstif=yes
9117 else
9118 emacs_cv_lesstif=no
9119 fi
9120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9121 fi
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9123 $as_echo "$emacs_cv_lesstif" >&6; }
9124 if test $emacs_cv_lesstif = yes; then
9125 # Make sure this -I option remains in CPPFLAGS after it is set
9126 # back to REAL_CPPFLAGS.
9127 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9128 # have those other -I options anyway. Ultimately, having this
9129 # directory ultimately in CPPFLAGS will be enough.
9130 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9131 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9132 else
9133 CFLAGS=$OLD_CFLAGS
9134 CPPFLAGS=$OLD_CPPFLAGS
9135 fi
9136 fi
9137 fi
9138
9139
9140 USE_TOOLKIT_SCROLL_BARS=no
9141 if test "${with_toolkit_scroll_bars}" != "no"; then
9142 if test "${USE_X_TOOLKIT}" != "none"; then
9143 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9144 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9145
9146 HAVE_XAW3D=no
9147 USE_TOOLKIT_SCROLL_BARS=yes
9148 elif test "${HAVE_XAW3D}" = "yes"; then
9149 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9150
9151 USE_TOOLKIT_SCROLL_BARS=yes
9152 fi
9153 elif test "${HAVE_GTK}" = "yes"; then
9154 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9155
9156 USE_TOOLKIT_SCROLL_BARS=yes
9157 elif test "${HAVE_NS}" = "yes"; then
9158 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9159
9160 USE_TOOLKIT_SCROLL_BARS=yes
9161 fi
9162 fi
9163
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9166
9167 #include <X11/Xlib.h>
9168 #include <X11/Xresource.h>
9169 int
9170 main ()
9171 {
9172 XIMProc callback;
9173 ;
9174 return 0;
9175 }
9176 _ACEOF
9177 if ac_fn_c_try_compile "$LINENO"; then :
9178 HAVE_XIM=yes
9179
9180 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9181
9182 else
9183 HAVE_XIM=no
9184 fi
9185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9186
9187
9188 if test "${with_xim}" != "no"; then
9189
9190 $as_echo "#define USE_XIM 1" >>confdefs.h
9191
9192 fi
9193
9194
9195 if test "${HAVE_XIM}" != "no"; then
9196 late_CFLAGS=$CFLAGS
9197 if test "$GCC" = yes; then
9198 CFLAGS="$CFLAGS --pedantic-errors"
9199 fi
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9202
9203 #include <X11/Xlib.h>
9204 #include <X11/Xresource.h>
9205 int
9206 main ()
9207 {
9208 Display *display;
9209 XrmDatabase db;
9210 char *res_name;
9211 char *res_class;
9212 XIMProc callback;
9213 XPointer *client_data;
9214 #ifndef __GNUC__
9215 /* If we're not using GCC, it's probably not XFree86, and this is
9216 probably right, but we can't use something like --pedantic-errors. */
9217 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9218 char*, XIMProc, XPointer*);
9219 #endif
9220 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9221 client_data);
9222 ;
9223 return 0;
9224 }
9225 _ACEOF
9226 if ac_fn_c_try_compile "$LINENO"; then :
9227 emacs_cv_arg6_star=yes
9228 fi
9229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230 if test "$emacs_cv_arg6_star" = yes; then
9231 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9232
9233 else
9234 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9235
9236 fi
9237 CFLAGS=$late_CFLAGS
9238 fi
9239
9240 ### Start of font-backend (under any platform) section.
9241 # (nothing here yet -- this is a placeholder)
9242 ### End of font-backend (under any platform) section.
9243
9244 ### Start of font-backend (under X11) section.
9245 if test "${HAVE_X11}" = "yes"; then
9246
9247 succeeded=no
9248
9249 # Extract the first word of "pkg-config", so it can be a program name with args.
9250 set dummy pkg-config; ac_word=$2
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9252 $as_echo_n "checking for $ac_word... " >&6; }
9253 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9254 $as_echo_n "(cached) " >&6
9255 else
9256 case $PKG_CONFIG in
9257 [\\/]* | ?:[\\/]*)
9258 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9259 ;;
9260 *)
9261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262 for as_dir in $PATH
9263 do
9264 IFS=$as_save_IFS
9265 test -z "$as_dir" && as_dir=.
9266 for ac_exec_ext in '' $ac_executable_extensions; do
9267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9268 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9270 break 2
9271 fi
9272 done
9273 done
9274 IFS=$as_save_IFS
9275
9276 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9277 ;;
9278 esac
9279 fi
9280 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9281 if test -n "$PKG_CONFIG"; then
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9283 $as_echo "$PKG_CONFIG" >&6; }
9284 else
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286 $as_echo "no" >&6; }
9287 fi
9288
9289
9290
9291 if test "$PKG_CONFIG" = "no" ; then
9292 HAVE_FC=no
9293 else
9294 PKG_CONFIG_MIN_VERSION=0.9.0
9295 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9297 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9298
9299 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9301 $as_echo "yes" >&6; }
9302 succeeded=yes
9303
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9305 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9306 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9308 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9309
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9311 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9312 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9314 $as_echo "$FONTCONFIG_LIBS" >&6; }
9315 else
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317 $as_echo "no" >&6; }
9318 FONTCONFIG_CFLAGS=""
9319 FONTCONFIG_LIBS=""
9320 ## If we have a custom action on failure, don't print errors, but
9321 ## do set a variable so people can do so.
9322 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9323
9324 fi
9325
9326
9327
9328 else
9329 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9330 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9331 fi
9332 fi
9333
9334 if test $succeeded = yes; then
9335 HAVE_FC=yes
9336 else
9337 HAVE_FC=no
9338 fi
9339
9340
9341 ## Use -lXft if available, unless `--with-xft=no'.
9342 HAVE_XFT=maybe
9343 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
9344 with_xft="no";
9345 fi
9346 if test "x${with_xft}" != "xno"; then
9347
9348
9349 succeeded=no
9350
9351 # Extract the first word of "pkg-config", so it can be a program name with args.
9352 set dummy pkg-config; ac_word=$2
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9354 $as_echo_n "checking for $ac_word... " >&6; }
9355 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9356 $as_echo_n "(cached) " >&6
9357 else
9358 case $PKG_CONFIG in
9359 [\\/]* | ?:[\\/]*)
9360 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9361 ;;
9362 *)
9363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9364 for as_dir in $PATH
9365 do
9366 IFS=$as_save_IFS
9367 test -z "$as_dir" && as_dir=.
9368 for ac_exec_ext in '' $ac_executable_extensions; do
9369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9370 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9372 break 2
9373 fi
9374 done
9375 done
9376 IFS=$as_save_IFS
9377
9378 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9379 ;;
9380 esac
9381 fi
9382 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9383 if test -n "$PKG_CONFIG"; then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9385 $as_echo "$PKG_CONFIG" >&6; }
9386 else
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388 $as_echo "no" >&6; }
9389 fi
9390
9391
9392
9393 if test "$PKG_CONFIG" = "no" ; then
9394 HAVE_XFT=no
9395 else
9396 PKG_CONFIG_MIN_VERSION=0.9.0
9397 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9399 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9400
9401 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9403 $as_echo "yes" >&6; }
9404 succeeded=yes
9405
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9407 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9408 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9410 $as_echo "$XFT_CFLAGS" >&6; }
9411
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9413 $as_echo_n "checking XFT_LIBS... " >&6; }
9414 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9416 $as_echo "$XFT_LIBS" >&6; }
9417 else
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 $as_echo "no" >&6; }
9420 XFT_CFLAGS=""
9421 XFT_LIBS=""
9422 ## If we have a custom action on failure, don't print errors, but
9423 ## do set a variable so people can do so.
9424 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9425
9426 fi
9427
9428
9429
9430 else
9431 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9432 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9433 fi
9434 fi
9435
9436 if test $succeeded = yes; then
9437 :
9438 else
9439 HAVE_XFT=no
9440 fi
9441
9442 ## Because xftfont.c uses XRenderQueryExtension, we also
9443 ## need to link to -lXrender.
9444 HAVE_XRENDER=no
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9446 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9447 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 ac_check_lib_save_LIBS=$LIBS
9451 LIBS="-lXrender $LIBS"
9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9454
9455 /* Override any GCC internal prototype to avoid an error.
9456 Use char because int might match the return type of a GCC
9457 builtin and then its argument prototype would still apply. */
9458 #ifdef __cplusplus
9459 extern "C"
9460 #endif
9461 char XRenderQueryExtension ();
9462 int
9463 main ()
9464 {
9465 return XRenderQueryExtension ();
9466 ;
9467 return 0;
9468 }
9469 _ACEOF
9470 if ac_fn_c_try_link "$LINENO"; then :
9471 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9472 else
9473 ac_cv_lib_Xrender_XRenderQueryExtension=no
9474 fi
9475 rm -f core conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext conftest.$ac_ext
9477 LIBS=$ac_check_lib_save_LIBS
9478 fi
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9480 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9481 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
9482 HAVE_XRENDER=yes
9483 fi
9484
9485 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
9486 OLD_CPPFLAGS="$CPPFLAGS"
9487 OLD_CFLAGS="$CFLAGS"
9488 OLD_LIBS="$LIBS"
9489 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
9490 CFLAGS="$CFLAGS $XFT_CFLAGS"
9491 XFT_LIBS="-lXrender $XFT_LIBS"
9492 LIBS="$XFT_LIBS $LIBS"
9493 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9494 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9496 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9497 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
9499 else
9500 ac_check_lib_save_LIBS=$LIBS
9501 LIBS="-lXft $XFT_LIBS $LIBS"
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9504
9505 /* Override any GCC internal prototype to avoid an error.
9506 Use char because int might match the return type of a GCC
9507 builtin and then its argument prototype would still apply. */
9508 #ifdef __cplusplus
9509 extern "C"
9510 #endif
9511 char XftFontOpen ();
9512 int
9513 main ()
9514 {
9515 return XftFontOpen ();
9516 ;
9517 return 0;
9518 }
9519 _ACEOF
9520 if ac_fn_c_try_link "$LINENO"; then :
9521 ac_cv_lib_Xft_XftFontOpen=yes
9522 else
9523 ac_cv_lib_Xft_XftFontOpen=no
9524 fi
9525 rm -f core conftest.err conftest.$ac_objext \
9526 conftest$ac_exeext conftest.$ac_ext
9527 LIBS=$ac_check_lib_save_LIBS
9528 fi
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9530 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9531 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
9532 HAVE_XFT=yes
9533 fi
9534
9535 fi
9536
9537
9538
9539 if test "${HAVE_XFT}" = "yes"; then
9540
9541 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9542
9543
9544 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
9545 else
9546 CPPFLAGS="$OLD_CPPFLAGS"
9547 CFLAGS="$OLD_CFLAGS"
9548 LIBS="$OLD_LIBS"
9549 fi # "${HAVE_XFT}" = "yes"
9550 fi # "$HAVE_XFT" != no
9551 fi # "x${with_xft}" != "xno"
9552
9553 if test "$HAVE_XFT" != "yes"; then
9554 HAVE_XFT=no
9555 fi
9556
9557
9558 HAVE_FREETYPE=no
9559 ## We used to allow building with FreeType and without Xft.
9560 ## However, the ftx font backend driver is not in good shape.
9561 if test "${HAVE_XFT}" = "yes"; then
9562 HAVE_FREETYPE=yes
9563 FONTCONFIG_CFLAGS=
9564 FONTCONFIG_LIBS=
9565 fi
9566
9567 HAVE_LIBOTF=no
9568 if test "${HAVE_FREETYPE}" = "yes"; then
9569
9570 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9571
9572 if test "${with_libotf}" != "no"; then
9573
9574 succeeded=no
9575
9576 # Extract the first word of "pkg-config", so it can be a program name with args.
9577 set dummy pkg-config; ac_word=$2
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9579 $as_echo_n "checking for $ac_word... " >&6; }
9580 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9581 $as_echo_n "(cached) " >&6
9582 else
9583 case $PKG_CONFIG in
9584 [\\/]* | ?:[\\/]*)
9585 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9586 ;;
9587 *)
9588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589 for as_dir in $PATH
9590 do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9595 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2
9598 fi
9599 done
9600 done
9601 IFS=$as_save_IFS
9602
9603 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9604 ;;
9605 esac
9606 fi
9607 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9608 if test -n "$PKG_CONFIG"; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9610 $as_echo "$PKG_CONFIG" >&6; }
9611 else
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613 $as_echo "no" >&6; }
9614 fi
9615
9616
9617
9618 if test "$PKG_CONFIG" = "no" ; then
9619 HAVE_LIBOTF=no
9620 else
9621 PKG_CONFIG_MIN_VERSION=0.9.0
9622 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9624 $as_echo_n "checking for libotf... " >&6; }
9625
9626 if $PKG_CONFIG --exists "libotf" 2>&5; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9628 $as_echo "yes" >&6; }
9629 succeeded=yes
9630
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9632 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9633 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9635 $as_echo "$LIBOTF_CFLAGS" >&6; }
9636
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9638 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9639 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9641 $as_echo "$LIBOTF_LIBS" >&6; }
9642 else
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644 $as_echo "no" >&6; }
9645 LIBOTF_CFLAGS=""
9646 LIBOTF_LIBS=""
9647 ## If we have a custom action on failure, don't print errors, but
9648 ## do set a variable so people can do so.
9649 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9650
9651 fi
9652
9653
9654
9655 else
9656 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9657 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9658 fi
9659 fi
9660
9661 if test $succeeded = yes; then
9662 HAVE_LIBOTF=yes
9663 else
9664 HAVE_LIBOTF=no
9665 fi
9666
9667 if test "$HAVE_LIBOTF" = "yes"; then
9668
9669 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9670
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9672 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9673 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9676 ac_check_lib_save_LIBS=$LIBS
9677 LIBS="-lotf $LIBS"
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9680
9681 /* Override any GCC internal prototype to avoid an error.
9682 Use char because int might match the return type of a GCC
9683 builtin and then its argument prototype would still apply. */
9684 #ifdef __cplusplus
9685 extern "C"
9686 #endif
9687 char OTF_get_variation_glyphs ();
9688 int
9689 main ()
9690 {
9691 return OTF_get_variation_glyphs ();
9692 ;
9693 return 0;
9694 }
9695 _ACEOF
9696 if ac_fn_c_try_link "$LINENO"; then :
9697 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9698 else
9699 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9700 fi
9701 rm -f core conftest.err conftest.$ac_objext \
9702 conftest$ac_exeext conftest.$ac_ext
9703 LIBS=$ac_check_lib_save_LIBS
9704 fi
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9706 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9707 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
9708 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9709 else
9710 HAVE_OTF_GET_VARIATION_GLYPHS=no
9711 fi
9712
9713 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9714
9715 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9716
9717 fi
9718 fi
9719 fi
9720 fi
9721
9722 HAVE_M17N_FLT=no
9723 if test "${HAVE_LIBOTF}" = yes; then
9724 if test "${with_m17n_flt}" != "no"; then
9725
9726 succeeded=no
9727
9728 # Extract the first word of "pkg-config", so it can be a program name with args.
9729 set dummy pkg-config; ac_word=$2
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731 $as_echo_n "checking for $ac_word... " >&6; }
9732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 case $PKG_CONFIG in
9736 [\\/]* | ?:[\\/]*)
9737 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9738 ;;
9739 *)
9740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9741 for as_dir in $PATH
9742 do
9743 IFS=$as_save_IFS
9744 test -z "$as_dir" && as_dir=.
9745 for ac_exec_ext in '' $ac_executable_extensions; do
9746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9747 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9749 break 2
9750 fi
9751 done
9752 done
9753 IFS=$as_save_IFS
9754
9755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9756 ;;
9757 esac
9758 fi
9759 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9760 if test -n "$PKG_CONFIG"; then
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9762 $as_echo "$PKG_CONFIG" >&6; }
9763 else
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765 $as_echo "no" >&6; }
9766 fi
9767
9768
9769
9770 if test "$PKG_CONFIG" = "no" ; then
9771 HAVE_M17N_FLT=no
9772 else
9773 PKG_CONFIG_MIN_VERSION=0.9.0
9774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
9776 $as_echo_n "checking for m17n-flt... " >&6; }
9777
9778 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9780 $as_echo "yes" >&6; }
9781 succeeded=yes
9782
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
9784 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9785 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
9787 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9788
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
9790 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9791 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
9793 $as_echo "$M17N_FLT_LIBS" >&6; }
9794 else
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796 $as_echo "no" >&6; }
9797 M17N_FLT_CFLAGS=""
9798 M17N_FLT_LIBS=""
9799 ## If we have a custom action on failure, don't print errors, but
9800 ## do set a variable so people can do so.
9801 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
9802
9803 fi
9804
9805
9806
9807 else
9808 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9809 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9810 fi
9811 fi
9812
9813 if test $succeeded = yes; then
9814 HAVE_M17N_FLT=yes
9815 else
9816 HAVE_M17N_FLT=no
9817 fi
9818
9819 if test "$HAVE_M17N_FLT" = "yes"; then
9820
9821 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
9822
9823 fi
9824 fi
9825 fi
9826 else
9827 HAVE_XFT=no
9828 HAVE_FREETYPE=no
9829 HAVE_LIBOTF=no
9830 HAVE_M17N_FLT=no
9831 fi
9832
9833 FONT_OBJ=xfont.o
9834 if test "$HAVE_XFT" = "yes"; then
9835 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
9836 elif test "$HAVE_FREETYPE" = "yes"; then
9837 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
9838 fi
9839
9840
9841 ### End of font-backend (under X11) section.
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852 ### Use -lXpm if available, unless `--with-xpm=no'.
9853 HAVE_XPM=no
9854 LIBXPM=
9855 if test "${HAVE_X11}" = "yes"; then
9856 if test "${with_xpm}" != "no"; then
9857 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
9858 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
9860 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9861 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
9862 $as_echo_n "(cached) " >&6
9863 else
9864 ac_check_lib_save_LIBS=$LIBS
9865 LIBS="-lXpm -lX11 $LIBS"
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9868
9869 /* Override any GCC internal prototype to avoid an error.
9870 Use char because int might match the return type of a GCC
9871 builtin and then its argument prototype would still apply. */
9872 #ifdef __cplusplus
9873 extern "C"
9874 #endif
9875 char XpmReadFileToPixmap ();
9876 int
9877 main ()
9878 {
9879 return XpmReadFileToPixmap ();
9880 ;
9881 return 0;
9882 }
9883 _ACEOF
9884 if ac_fn_c_try_link "$LINENO"; then :
9885 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9886 else
9887 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9888 fi
9889 rm -f core conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9891 LIBS=$ac_check_lib_save_LIBS
9892 fi
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9894 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9895 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
9896 HAVE_XPM=yes
9897 fi
9898
9899 fi
9900
9901
9902 if test "${HAVE_XPM}" = "yes"; then
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
9904 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906 /* end confdefs.h. */
9907 #include "X11/xpm.h"
9908 #ifndef XpmReturnAllocPixels
9909 no_return_alloc_pixels
9910 #endif
9911
9912 _ACEOF
9913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9914 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
9915 HAVE_XPM=no
9916 else
9917 HAVE_XPM=yes
9918 fi
9919 rm -f conftest*
9920
9921
9922 if test "${HAVE_XPM}" = "yes"; then
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9924 $as_echo "yes" >&6; }
9925 else
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927 $as_echo "no" >&6; }
9928 fi
9929 fi
9930 fi
9931
9932 if test "${HAVE_XPM}" = "yes"; then
9933
9934 $as_echo "#define HAVE_XPM 1" >>confdefs.h
9935
9936 LIBXPM=-lXpm
9937 fi
9938 fi
9939
9940
9941 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9942 HAVE_JPEG=no
9943 LIBJPEG=
9944 if test "${HAVE_X11}" = "yes"; then
9945 if test "${with_jpeg}" != "no"; then
9946 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
9947 if test "x$ac_cv_header_jerror_h" = x""yes; then :
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
9949 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9950 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
9951 $as_echo_n "(cached) " >&6
9952 else
9953 ac_check_lib_save_LIBS=$LIBS
9954 LIBS="-ljpeg $LIBS"
9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9957
9958 /* Override any GCC internal prototype to avoid an error.
9959 Use char because int might match the return type of a GCC
9960 builtin and then its argument prototype would still apply. */
9961 #ifdef __cplusplus
9962 extern "C"
9963 #endif
9964 char jpeg_destroy_compress ();
9965 int
9966 main ()
9967 {
9968 return jpeg_destroy_compress ();
9969 ;
9970 return 0;
9971 }
9972 _ACEOF
9973 if ac_fn_c_try_link "$LINENO"; then :
9974 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9975 else
9976 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9977 fi
9978 rm -f core conftest.err conftest.$ac_objext \
9979 conftest$ac_exeext conftest.$ac_ext
9980 LIBS=$ac_check_lib_save_LIBS
9981 fi
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9983 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
9984 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
9985 HAVE_JPEG=yes
9986 fi
9987
9988 fi
9989
9990
9991 fi
9992
9993 if test "${HAVE_JPEG}" = "yes"; then
9994 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9995
9996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997 /* end confdefs.h. */
9998 #include <jpeglib.h>
9999 version=JPEG_LIB_VERSION
10000
10001 _ACEOF
10002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10003 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10004 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10005
10006 else
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10008 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10009 HAVE_JPEG=no
10010 fi
10011 rm -f conftest*
10012
10013 fi
10014 if test "${HAVE_JPEG}" = "yes"; then
10015 LIBJPEG=-ljpeg
10016 fi
10017 fi
10018
10019
10020 ### Use -lpng if available, unless `--with-png=no'.
10021 HAVE_PNG=no
10022 LIBPNG=
10023 if test "${HAVE_X11}" = "yes"; then
10024 if test "${with_png}" != "no"; then
10025 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10026 # in /usr/include/libpng.
10027 for ac_header in png.h libpng/png.h
10028 do :
10029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10030 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10031 eval as_val=\$$as_ac_Header
10032 if test "x$as_val" = x""yes; then :
10033 cat >>confdefs.h <<_ACEOF
10034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10035 _ACEOF
10036
10037 fi
10038
10039 done
10040
10041 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10043 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10044 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10045 $as_echo_n "(cached) " >&6
10046 else
10047 ac_check_lib_save_LIBS=$LIBS
10048 LIBS="-lpng -lz -lm $LIBS"
10049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050 /* end confdefs.h. */
10051
10052 /* Override any GCC internal prototype to avoid an error.
10053 Use char because int might match the return type of a GCC
10054 builtin and then its argument prototype would still apply. */
10055 #ifdef __cplusplus
10056 extern "C"
10057 #endif
10058 char png_get_channels ();
10059 int
10060 main ()
10061 {
10062 return png_get_channels ();
10063 ;
10064 return 0;
10065 }
10066 _ACEOF
10067 if ac_fn_c_try_link "$LINENO"; then :
10068 ac_cv_lib_png_png_get_channels=yes
10069 else
10070 ac_cv_lib_png_png_get_channels=no
10071 fi
10072 rm -f core conftest.err conftest.$ac_objext \
10073 conftest$ac_exeext conftest.$ac_ext
10074 LIBS=$ac_check_lib_save_LIBS
10075 fi
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10077 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10078 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10079 HAVE_PNG=yes
10080 fi
10081
10082 fi
10083 fi
10084
10085 if test "${HAVE_PNG}" = "yes"; then
10086
10087 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10088
10089 LIBPNG="-lpng -lz -lm"
10090 fi
10091 fi
10092
10093
10094 ### Use -ltiff if available, unless `--with-tiff=no'.
10095 HAVE_TIFF=no
10096 LIBTIFF=
10097 if test "${HAVE_X11}" = "yes"; then
10098 if test "${with_tiff}" != "no"; then
10099 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10100 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10101 tifflibs="-lz -lm"
10102 # At least one tiff package requires the jpeg library.
10103 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10105 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10106 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10107 $as_echo_n "(cached) " >&6
10108 else
10109 ac_check_lib_save_LIBS=$LIBS
10110 LIBS="-ltiff $tifflibs $LIBS"
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10113
10114 /* Override any GCC internal prototype to avoid an error.
10115 Use char because int might match the return type of a GCC
10116 builtin and then its argument prototype would still apply. */
10117 #ifdef __cplusplus
10118 extern "C"
10119 #endif
10120 char TIFFGetVersion ();
10121 int
10122 main ()
10123 {
10124 return TIFFGetVersion ();
10125 ;
10126 return 0;
10127 }
10128 _ACEOF
10129 if ac_fn_c_try_link "$LINENO"; then :
10130 ac_cv_lib_tiff_TIFFGetVersion=yes
10131 else
10132 ac_cv_lib_tiff_TIFFGetVersion=no
10133 fi
10134 rm -f core conftest.err conftest.$ac_objext \
10135 conftest$ac_exeext conftest.$ac_ext
10136 LIBS=$ac_check_lib_save_LIBS
10137 fi
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10139 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10140 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10141 HAVE_TIFF=yes
10142 fi
10143
10144 fi
10145
10146
10147 fi
10148
10149 if test "${HAVE_TIFF}" = "yes"; then
10150
10151 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10152
10153 LIBTIFF=-ltiff
10154 fi
10155 fi
10156
10157
10158 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10159 HAVE_GIF=no
10160 LIBGIF=
10161 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10162 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10163 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10164 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10165 # Earlier versions can crash Emacs.
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10167 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10168 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10169 $as_echo_n "(cached) " >&6
10170 else
10171 ac_check_lib_save_LIBS=$LIBS
10172 LIBS="-lgif $LIBS"
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10175
10176 /* Override any GCC internal prototype to avoid an error.
10177 Use char because int might match the return type of a GCC
10178 builtin and then its argument prototype would still apply. */
10179 #ifdef __cplusplus
10180 extern "C"
10181 #endif
10182 char EGifPutExtensionLast ();
10183 int
10184 main ()
10185 {
10186 return EGifPutExtensionLast ();
10187 ;
10188 return 0;
10189 }
10190 _ACEOF
10191 if ac_fn_c_try_link "$LINENO"; then :
10192 ac_cv_lib_gif_EGifPutExtensionLast=yes
10193 else
10194 ac_cv_lib_gif_EGifPutExtensionLast=no
10195 fi
10196 rm -f core conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
10198 LIBS=$ac_check_lib_save_LIBS
10199 fi
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10201 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10202 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10203 HAVE_GIF=yes
10204 else
10205 HAVE_GIF=maybe
10206 fi
10207
10208 fi
10209
10210
10211
10212 if test "$HAVE_GIF" = yes; then
10213 LIBGIF=-lgif
10214 elif test "$HAVE_GIF" = maybe; then
10215 # If gif_lib.h but no libgif, try libungif.
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10217 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10218 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10219 $as_echo_n "(cached) " >&6
10220 else
10221 ac_check_lib_save_LIBS=$LIBS
10222 LIBS="-lungif $LIBS"
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225
10226 /* Override any GCC internal prototype to avoid an error.
10227 Use char because int might match the return type of a GCC
10228 builtin and then its argument prototype would still apply. */
10229 #ifdef __cplusplus
10230 extern "C"
10231 #endif
10232 char EGifPutExtensionLast ();
10233 int
10234 main ()
10235 {
10236 return EGifPutExtensionLast ();
10237 ;
10238 return 0;
10239 }
10240 _ACEOF
10241 if ac_fn_c_try_link "$LINENO"; then :
10242 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10243 else
10244 ac_cv_lib_ungif_EGifPutExtensionLast=no
10245 fi
10246 rm -f core conftest.err conftest.$ac_objext \
10247 conftest$ac_exeext conftest.$ac_ext
10248 LIBS=$ac_check_lib_save_LIBS
10249 fi
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10251 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10252 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10253 HAVE_GIF=yes
10254 else
10255 HAVE_GIF=no
10256 fi
10257
10258 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10259 fi
10260
10261 if test "${HAVE_GIF}" = "yes"; then
10262
10263 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10264
10265 fi
10266 fi
10267
10268
10269 if test "${HAVE_X11}" = "yes"; then
10270 MISSING=""
10271 WITH_NO=""
10272 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10273 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10274 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10275 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
10276 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10277 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
10278 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10279 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10280 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10281 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10282
10283 if test "X${MISSING}" != X; then
10284 as_fn_error "The following required libraries were not found:
10285 $MISSING
10286 Maybe some development libraries/packages are missing?
10287 If you don't want to link with them give
10288 $WITH_NO
10289 as options to configure" "$LINENO" 5
10290 fi
10291 fi
10292
10293 ### Use -lgpm if available, unless `--with-gpm=no'.
10294 HAVE_GPM=no
10295 LIBGPM=
10296 GPM_MOUSE_SUPPORT=
10297 if test "${with_gpm}" != "no"; then
10298 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10299 if test "x$ac_cv_header_gpm_h" = x""yes; then :
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10301 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10302 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10303 $as_echo_n "(cached) " >&6
10304 else
10305 ac_check_lib_save_LIBS=$LIBS
10306 LIBS="-lgpm $LIBS"
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10309
10310 /* Override any GCC internal prototype to avoid an error.
10311 Use char because int might match the return type of a GCC
10312 builtin and then its argument prototype would still apply. */
10313 #ifdef __cplusplus
10314 extern "C"
10315 #endif
10316 char Gpm_Open ();
10317 int
10318 main ()
10319 {
10320 return Gpm_Open ();
10321 ;
10322 return 0;
10323 }
10324 _ACEOF
10325 if ac_fn_c_try_link "$LINENO"; then :
10326 ac_cv_lib_gpm_Gpm_Open=yes
10327 else
10328 ac_cv_lib_gpm_Gpm_Open=no
10329 fi
10330 rm -f core conftest.err conftest.$ac_objext \
10331 conftest$ac_exeext conftest.$ac_ext
10332 LIBS=$ac_check_lib_save_LIBS
10333 fi
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10335 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10336 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
10337 HAVE_GPM=yes
10338 fi
10339
10340 fi
10341
10342
10343
10344 if test "${HAVE_GPM}" = "yes"; then
10345
10346 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10347
10348 LIBGPM=-lgpm
10349 GPM_MOUSE_SUPPORT="\${lispsource}mouse.elc"
10350 fi
10351 fi
10352
10353
10354
10355 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10356 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
10357
10358 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10359
10360 fi
10361
10362
10363
10364 C_SWITCH_X_SYSTEM=
10365 ### Use NeXTstep API to implement GUI.
10366 if test "${HAVE_NS}" = "yes"; then
10367
10368 $as_echo "#define HAVE_NS 1" >>confdefs.h
10369
10370 if test "${NS_IMPL_COCOA}" = "yes"; then
10371
10372 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10373
10374 GNU_OBJC_CFLAGS=
10375 fi
10376 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10377
10378 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10379
10380 # See also .m.o rule in Makefile.in */
10381 # FIXME: are all these flags really needed? Document here why. */
10382 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
10383 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10384 fi
10385 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10386
10387 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10388
10389 fi
10390 # We also have mouse menus.
10391 HAVE_MENUS=yes
10392 OTHER_FILES=ns-app
10393 fi
10394
10395
10396 ### Use session management (-lSM -lICE) if available
10397 HAVE_X_SM=no
10398 LIBXSM=
10399 if test "${HAVE_X11}" = "yes"; then
10400 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10401 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10403 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10404 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 ac_check_lib_save_LIBS=$LIBS
10408 LIBS="-lSM -lICE $LIBS"
10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10411
10412 /* Override any GCC internal prototype to avoid an error.
10413 Use char because int might match the return type of a GCC
10414 builtin and then its argument prototype would still apply. */
10415 #ifdef __cplusplus
10416 extern "C"
10417 #endif
10418 char SmcOpenConnection ();
10419 int
10420 main ()
10421 {
10422 return SmcOpenConnection ();
10423 ;
10424 return 0;
10425 }
10426 _ACEOF
10427 if ac_fn_c_try_link "$LINENO"; then :
10428 ac_cv_lib_SM_SmcOpenConnection=yes
10429 else
10430 ac_cv_lib_SM_SmcOpenConnection=no
10431 fi
10432 rm -f core conftest.err conftest.$ac_objext \
10433 conftest$ac_exeext conftest.$ac_ext
10434 LIBS=$ac_check_lib_save_LIBS
10435 fi
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10437 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10438 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
10439 HAVE_X_SM=yes
10440 fi
10441
10442 fi
10443
10444
10445
10446 if test "${HAVE_X_SM}" = "yes"; then
10447
10448 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10449
10450 LIBXSM="-lSM -lICE"
10451 case "$LIBS" in
10452 *-lSM*) ;;
10453 *) LIBS="$LIBXSM $LIBS" ;;
10454 esac
10455 fi
10456 fi
10457
10458
10459 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10461 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10462 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10463 $as_echo_n "(cached) " >&6
10464 else
10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h. */
10467 #include <netdb.h>
10468 int
10469 main ()
10470 {
10471 return h_errno;
10472 ;
10473 return 0;
10474 }
10475 _ACEOF
10476 if ac_fn_c_try_link "$LINENO"; then :
10477 emacs_cv_netdb_declares_h_errno=yes
10478 else
10479 emacs_cv_netdb_declares_h_errno=no
10480 fi
10481 rm -f core conftest.err conftest.$ac_objext \
10482 conftest$ac_exeext conftest.$ac_ext
10483 fi
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10485 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10486 if test $emacs_cv_netdb_declares_h_errno = yes; then
10487
10488 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10489
10490 fi
10491
10492 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10493 # for constant arguments. Useless!
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10495 $as_echo_n "checking for working alloca.h... " >&6; }
10496 if test "${ac_cv_working_alloca_h+set}" = set; then :
10497 $as_echo_n "(cached) " >&6
10498 else
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10501 #include <alloca.h>
10502 int
10503 main ()
10504 {
10505 char *p = (char *) alloca (2 * sizeof (int));
10506 if (p) return 0;
10507 ;
10508 return 0;
10509 }
10510 _ACEOF
10511 if ac_fn_c_try_link "$LINENO"; then :
10512 ac_cv_working_alloca_h=yes
10513 else
10514 ac_cv_working_alloca_h=no
10515 fi
10516 rm -f core conftest.err conftest.$ac_objext \
10517 conftest$ac_exeext conftest.$ac_ext
10518 fi
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10520 $as_echo "$ac_cv_working_alloca_h" >&6; }
10521 if test $ac_cv_working_alloca_h = yes; then
10522
10523 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10524
10525 fi
10526
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10528 $as_echo_n "checking for alloca... " >&6; }
10529 if test "${ac_cv_func_alloca_works+set}" = set; then :
10530 $as_echo_n "(cached) " >&6
10531 else
10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533 /* end confdefs.h. */
10534 #ifdef __GNUC__
10535 # define alloca __builtin_alloca
10536 #else
10537 # ifdef _MSC_VER
10538 # include <malloc.h>
10539 # define alloca _alloca
10540 # else
10541 # ifdef HAVE_ALLOCA_H
10542 # include <alloca.h>
10543 # else
10544 # ifdef _AIX
10545 #pragma alloca
10546 # else
10547 # ifndef alloca /* predefined by HP cc +Olibcalls */
10548 char *alloca ();
10549 # endif
10550 # endif
10551 # endif
10552 # endif
10553 #endif
10554
10555 int
10556 main ()
10557 {
10558 char *p = (char *) alloca (1);
10559 if (p) return 0;
10560 ;
10561 return 0;
10562 }
10563 _ACEOF
10564 if ac_fn_c_try_link "$LINENO"; then :
10565 ac_cv_func_alloca_works=yes
10566 else
10567 ac_cv_func_alloca_works=no
10568 fi
10569 rm -f core conftest.err conftest.$ac_objext \
10570 conftest$ac_exeext conftest.$ac_ext
10571 fi
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10573 $as_echo "$ac_cv_func_alloca_works" >&6; }
10574
10575 if test $ac_cv_func_alloca_works = yes; then
10576
10577 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10578
10579 else
10580 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10581 # that cause trouble. Some versions do not even contain alloca or
10582 # contain a buggy version. If you still want to use their alloca,
10583 # use ar to extract alloca.o from them instead of compiling alloca.c.
10584
10585 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10586
10587 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10588
10589
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10591 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10592 if test "${ac_cv_os_cray+set}" = set; then :
10593 $as_echo_n "(cached) " >&6
10594 else
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597 #if defined CRAY && ! defined CRAY2
10598 webecray
10599 #else
10600 wenotbecray
10601 #endif
10602
10603 _ACEOF
10604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10605 $EGREP "webecray" >/dev/null 2>&1; then :
10606 ac_cv_os_cray=yes
10607 else
10608 ac_cv_os_cray=no
10609 fi
10610 rm -f conftest*
10611
10612 fi
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10614 $as_echo "$ac_cv_os_cray" >&6; }
10615 if test $ac_cv_os_cray = yes; then
10616 for ac_func in _getb67 GETB67 getb67; do
10617 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10618 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10619 eval as_val=\$$as_ac_var
10620 if test "x$as_val" = x""yes; then :
10621
10622 cat >>confdefs.h <<_ACEOF
10623 #define CRAY_STACKSEG_END $ac_func
10624 _ACEOF
10625
10626 break
10627 fi
10628
10629 done
10630 fi
10631
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10633 $as_echo_n "checking stack direction for C alloca... " >&6; }
10634 if test "${ac_cv_c_stack_direction+set}" = set; then :
10635 $as_echo_n "(cached) " >&6
10636 else
10637 if test "$cross_compiling" = yes; then :
10638 ac_cv_c_stack_direction=0
10639 else
10640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h. */
10642 $ac_includes_default
10643 int
10644 find_stack_direction ()
10645 {
10646 static char *addr = 0;
10647 auto char dummy;
10648 if (addr == 0)
10649 {
10650 addr = &dummy;
10651 return find_stack_direction ();
10652 }
10653 else
10654 return (&dummy > addr) ? 1 : -1;
10655 }
10656
10657 int
10658 main ()
10659 {
10660 return find_stack_direction () < 0;
10661 }
10662 _ACEOF
10663 if ac_fn_c_try_run "$LINENO"; then :
10664 ac_cv_c_stack_direction=1
10665 else
10666 ac_cv_c_stack_direction=-1
10667 fi
10668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10669 conftest.$ac_objext conftest.beam conftest.$ac_ext
10670 fi
10671
10672 fi
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10674 $as_echo "$ac_cv_c_stack_direction" >&6; }
10675 cat >>confdefs.h <<_ACEOF
10676 #define STACK_DIRECTION $ac_cv_c_stack_direction
10677 _ACEOF
10678
10679
10680 fi
10681
10682
10683 if test x"$ac_cv_func_alloca_works" != xyes; then
10684 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
10685 fi
10686
10687 # fmod, logb, and frexp are found in -lm on most systems.
10688 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10690 $as_echo_n "checking for sqrt in -lm... " >&6; }
10691 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10692 $as_echo_n "(cached) " >&6
10693 else
10694 ac_check_lib_save_LIBS=$LIBS
10695 LIBS="-lm $LIBS"
10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10698
10699 /* Override any GCC internal prototype to avoid an error.
10700 Use char because int might match the return type of a GCC
10701 builtin and then its argument prototype would still apply. */
10702 #ifdef __cplusplus
10703 extern "C"
10704 #endif
10705 char sqrt ();
10706 int
10707 main ()
10708 {
10709 return sqrt ();
10710 ;
10711 return 0;
10712 }
10713 _ACEOF
10714 if ac_fn_c_try_link "$LINENO"; then :
10715 ac_cv_lib_m_sqrt=yes
10716 else
10717 ac_cv_lib_m_sqrt=no
10718 fi
10719 rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10721 LIBS=$ac_check_lib_save_LIBS
10722 fi
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10724 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10725 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
10726 cat >>confdefs.h <<_ACEOF
10727 #define HAVE_LIBM 1
10728 _ACEOF
10729
10730 LIBS="-lm $LIBS"
10731
10732 fi
10733
10734
10735 # Check for mail-locking functions in a "mail" library. Probably this should
10736 # have the same check as for liblockfile below.
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10738 $as_echo_n "checking for maillock in -lmail... " >&6; }
10739 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742 ac_check_lib_save_LIBS=$LIBS
10743 LIBS="-lmail $LIBS"
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10746
10747 /* Override any GCC internal prototype to avoid an error.
10748 Use char because int might match the return type of a GCC
10749 builtin and then its argument prototype would still apply. */
10750 #ifdef __cplusplus
10751 extern "C"
10752 #endif
10753 char maillock ();
10754 int
10755 main ()
10756 {
10757 return maillock ();
10758 ;
10759 return 0;
10760 }
10761 _ACEOF
10762 if ac_fn_c_try_link "$LINENO"; then :
10763 ac_cv_lib_mail_maillock=yes
10764 else
10765 ac_cv_lib_mail_maillock=no
10766 fi
10767 rm -f core conftest.err conftest.$ac_objext \
10768 conftest$ac_exeext conftest.$ac_ext
10769 LIBS=$ac_check_lib_save_LIBS
10770 fi
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10772 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10773 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
10774 have_mail=yes
10775 else
10776 have_mail=no
10777 fi
10778
10779 if test $have_mail = yes; then
10780 LIBS_MAIL=-lmail
10781 LIBS="$LIBS_MAIL $LIBS"
10782
10783 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
10784
10785 else
10786 LIBS_MAIL=
10787 fi
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10789 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10790 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
10791 $as_echo_n "(cached) " >&6
10792 else
10793 ac_check_lib_save_LIBS=$LIBS
10794 LIBS="-llockfile $LIBS"
10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10797
10798 /* Override any GCC internal prototype to avoid an error.
10799 Use char because int might match the return type of a GCC
10800 builtin and then its argument prototype would still apply. */
10801 #ifdef __cplusplus
10802 extern "C"
10803 #endif
10804 char maillock ();
10805 int
10806 main ()
10807 {
10808 return maillock ();
10809 ;
10810 return 0;
10811 }
10812 _ACEOF
10813 if ac_fn_c_try_link "$LINENO"; then :
10814 ac_cv_lib_lockfile_maillock=yes
10815 else
10816 ac_cv_lib_lockfile_maillock=no
10817 fi
10818 rm -f core conftest.err conftest.$ac_objext \
10819 conftest$ac_exeext conftest.$ac_ext
10820 LIBS=$ac_check_lib_save_LIBS
10821 fi
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
10823 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10824 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
10825 have_lockfile=yes
10826 else
10827 have_lockfile=no
10828 fi
10829
10830 if test $have_lockfile = yes; then
10831 LIBS_MAIL=-llockfile
10832 LIBS="$LIBS_MAIL $LIBS"
10833
10834 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
10835
10836 else
10837 # If we have the shared liblockfile, assume we must use it for mail
10838 # locking (e.g. Debian). If we couldn't link against liblockfile
10839 # (no liblockfile.a installed), ensure that we don't need to.
10840 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10841 set dummy liblockfile.so; ac_word=$2
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10843 $as_echo_n "checking for $ac_word... " >&6; }
10844 if test "${ac_cv_prog_liblockfile+set}" = set; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847 if test -n "$liblockfile"; then
10848 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10849 else
10850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10851 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10852 for as_dir in $as_dummy
10853 do
10854 IFS=$as_save_IFS
10855 test -z "$as_dir" && as_dir=.
10856 for ac_exec_ext in '' $ac_executable_extensions; do
10857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10858 ac_cv_prog_liblockfile="yes"
10859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10860 break 2
10861 fi
10862 done
10863 done
10864 IFS=$as_save_IFS
10865
10866 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10867 fi
10868 fi
10869 liblockfile=$ac_cv_prog_liblockfile
10870 if test -n "$liblockfile"; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
10872 $as_echo "$liblockfile" >&6; }
10873 else
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10876 fi
10877
10878
10879 if test $ac_cv_prog_liblockfile = yes; then
10880 as_fn_error "Shared liblockfile found but can't link against it.
10881 This probably means that movemail could lose mail.
10882 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
10883 fi
10884 fi
10885 for ac_func in touchlock
10886 do :
10887 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
10888 if test "x$ac_cv_func_touchlock" = x""yes; then :
10889 cat >>confdefs.h <<_ACEOF
10890 #define HAVE_TOUCHLOCK 1
10891 _ACEOF
10892
10893 fi
10894 done
10895
10896 for ac_header in maillock.h
10897 do :
10898 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
10899 if test "x$ac_cv_header_maillock_h" = x""yes; then :
10900 cat >>confdefs.h <<_ACEOF
10901 #define HAVE_MAILLOCK_H 1
10902 _ACEOF
10903
10904 fi
10905
10906 done
10907
10908
10909
10910 for ac_func in gethostname getdomainname dup2 \
10911 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
10912 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
10913 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
10914 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
10915 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10916 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10917 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10918 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10919 cfmakeraw cfsetspeed
10920 do :
10921 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10922 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10923 eval as_val=\$$as_ac_var
10924 if test "x$as_val" = x""yes; then :
10925 cat >>confdefs.h <<_ACEOF
10926 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10927 _ACEOF
10928
10929 fi
10930 done
10931
10932
10933 for ac_header in sys/un.h
10934 do :
10935 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
10936 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
10937 cat >>confdefs.h <<_ACEOF
10938 #define HAVE_SYS_UN_H 1
10939 _ACEOF
10940
10941 fi
10942
10943 done
10944
10945
10946
10947
10948
10949
10950
10951 for ac_func in $ac_func_list
10952 do :
10953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10954 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10955 eval as_val=\$$as_ac_var
10956 if test "x$as_val" = x""yes; then :
10957 cat >>confdefs.h <<_ACEOF
10958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10959 _ACEOF
10960
10961 fi
10962 done
10963
10964
10965
10966
10967
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10969 $as_echo_n "checking for working mktime... " >&6; }
10970 if test "${ac_cv_func_working_mktime+set}" = set; then :
10971 $as_echo_n "(cached) " >&6
10972 else
10973 if test "$cross_compiling" = yes; then :
10974 ac_cv_func_working_mktime=no
10975 else
10976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10977 /* end confdefs.h. */
10978 /* Test program from Paul Eggert and Tony Leneis. */
10979 #ifdef TIME_WITH_SYS_TIME
10980 # include <sys/time.h>
10981 # include <time.h>
10982 #else
10983 # ifdef HAVE_SYS_TIME_H
10984 # include <sys/time.h>
10985 # else
10986 # include <time.h>
10987 # endif
10988 #endif
10989
10990 #include <limits.h>
10991 #include <stdlib.h>
10992
10993 #ifdef HAVE_UNISTD_H
10994 # include <unistd.h>
10995 #endif
10996
10997 #ifndef HAVE_ALARM
10998 # define alarm(X) /* empty */
10999 #endif
11000
11001 /* Work around redefinition to rpl_putenv by other config tests. */
11002 #undef putenv
11003
11004 static time_t time_t_max;
11005 static time_t time_t_min;
11006
11007 /* Values we'll use to set the TZ environment variable. */
11008 static char *tz_strings[] = {
11009 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11010 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11011 };
11012 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11013
11014 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11015 Based on a problem report from Andreas Jaeger. */
11016 static int
11017 spring_forward_gap ()
11018 {
11019 /* glibc (up to about 1998-10-07) failed this test. */
11020 struct tm tm;
11021
11022 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11023 instead of "TZ=America/Vancouver" in order to detect the bug even
11024 on systems that don't support the Olson extension, or don't have the
11025 full zoneinfo tables installed. */
11026 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11027
11028 tm.tm_year = 98;
11029 tm.tm_mon = 3;
11030 tm.tm_mday = 5;
11031 tm.tm_hour = 2;
11032 tm.tm_min = 0;
11033 tm.tm_sec = 0;
11034 tm.tm_isdst = -1;
11035 return mktime (&tm) != (time_t) -1;
11036 }
11037
11038 static int
11039 mktime_test1 (now)
11040 time_t now;
11041 {
11042 struct tm *lt;
11043 return ! (lt = localtime (&now)) || mktime (lt) == now;
11044 }
11045
11046 static int
11047 mktime_test (now)
11048 time_t now;
11049 {
11050 return (mktime_test1 (now)
11051 && mktime_test1 ((time_t) (time_t_max - now))
11052 && mktime_test1 ((time_t) (time_t_min + now)));
11053 }
11054
11055 static int
11056 irix_6_4_bug ()
11057 {
11058 /* Based on code from Ariel Faigon. */
11059 struct tm tm;
11060 tm.tm_year = 96;
11061 tm.tm_mon = 3;
11062 tm.tm_mday = 0;
11063 tm.tm_hour = 0;
11064 tm.tm_min = 0;
11065 tm.tm_sec = 0;
11066 tm.tm_isdst = -1;
11067 mktime (&tm);
11068 return tm.tm_mon == 2 && tm.tm_mday == 31;
11069 }
11070
11071 static int
11072 bigtime_test (j)
11073 int j;
11074 {
11075 struct tm tm;
11076 time_t now;
11077 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11078 now = mktime (&tm);
11079 if (now != (time_t) -1)
11080 {
11081 struct tm *lt = localtime (&now);
11082 if (! (lt
11083 && lt->tm_year == tm.tm_year
11084 && lt->tm_mon == tm.tm_mon
11085 && lt->tm_mday == tm.tm_mday
11086 && lt->tm_hour == tm.tm_hour
11087 && lt->tm_min == tm.tm_min
11088 && lt->tm_sec == tm.tm_sec
11089 && lt->tm_yday == tm.tm_yday
11090 && lt->tm_wday == tm.tm_wday
11091 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11092 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11093 return 0;
11094 }
11095 return 1;
11096 }
11097
11098 static int
11099 year_2050_test ()
11100 {
11101 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11102 ignoring leap seconds. */
11103 unsigned long int answer = 2527315200UL;
11104
11105 struct tm tm;
11106 time_t t;
11107 tm.tm_year = 2050 - 1900;
11108 tm.tm_mon = 2 - 1;
11109 tm.tm_mday = 1;
11110 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11111 tm.tm_isdst = -1;
11112
11113 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11114 instead of "TZ=America/Vancouver" in order to detect the bug even
11115 on systems that don't support the Olson extension, or don't have the
11116 full zoneinfo tables installed. */
11117 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11118
11119 t = mktime (&tm);
11120
11121 /* Check that the result is either a failure, or close enough
11122 to the correct answer that we can assume the discrepancy is
11123 due to leap seconds. */
11124 return (t == (time_t) -1
11125 || (0 < t && answer - 120 <= t && t <= answer + 120));
11126 }
11127
11128 int
11129 main ()
11130 {
11131 time_t t, delta;
11132 int i, j;
11133
11134 /* This test makes some buggy mktime implementations loop.
11135 Give up after 60 seconds; a mktime slower than that
11136 isn't worth using anyway. */
11137 alarm (60);
11138
11139 for (;;)
11140 {
11141 t = (time_t_max << 1) + 1;
11142 if (t <= time_t_max)
11143 break;
11144 time_t_max = t;
11145 }
11146 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11147
11148 delta = time_t_max / 997; /* a suitable prime number */
11149 for (i = 0; i < N_STRINGS; i++)
11150 {
11151 if (tz_strings[i])
11152 putenv (tz_strings[i]);
11153
11154 for (t = 0; t <= time_t_max - delta; t += delta)
11155 if (! mktime_test (t))
11156 return 1;
11157 if (! (mktime_test ((time_t) 1)
11158 && mktime_test ((time_t) (60 * 60))
11159 && mktime_test ((time_t) (60 * 60 * 24))))
11160 return 1;
11161
11162 for (j = 1; ; j <<= 1)
11163 if (! bigtime_test (j))
11164 return 1;
11165 else if (INT_MAX / 2 < j)
11166 break;
11167 if (! bigtime_test (INT_MAX))
11168 return 1;
11169 }
11170 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11171 }
11172 _ACEOF
11173 if ac_fn_c_try_run "$LINENO"; then :
11174 ac_cv_func_working_mktime=yes
11175 else
11176 ac_cv_func_working_mktime=no
11177 fi
11178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11179 conftest.$ac_objext conftest.beam conftest.$ac_ext
11180 fi
11181
11182 fi
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11184 $as_echo "$ac_cv_func_working_mktime" >&6; }
11185 if test $ac_cv_func_working_mktime = no; then
11186 case " $LIBOBJS " in
11187 *" mktime.$ac_objext "* ) ;;
11188 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
11189 ;;
11190 esac
11191
11192 fi
11193
11194 if test "$ac_cv_func_working_mktime" = no; then
11195
11196 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
11197
11198 fi
11199
11200 ac_have_func=no # yes means we've found a way to get the load average.
11201
11202 # Make sure getloadavg.c is where it belongs, at configure-time.
11203 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11204 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11205
11206 ac_save_LIBS=$LIBS
11207
11208 # Check for getloadavg, but be sure not to touch the cache variable.
11209 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11210 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11211 exit 0
11212 else
11213 exit 1
11214 fi
11215 ) && ac_have_func=yes
11216
11217 # On HPUX9, an unprivileged user can get load averages through this function.
11218 for ac_func in pstat_getdynamic
11219 do :
11220 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11221 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
11222 cat >>confdefs.h <<_ACEOF
11223 #define HAVE_PSTAT_GETDYNAMIC 1
11224 _ACEOF
11225
11226 fi
11227 done
11228
11229
11230 # Solaris has libkstat which does not require root.
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11232 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11233 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11234 $as_echo_n "(cached) " >&6
11235 else
11236 ac_check_lib_save_LIBS=$LIBS
11237 LIBS="-lkstat $LIBS"
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11240
11241 /* Override any GCC internal prototype to avoid an error.
11242 Use char because int might match the return type of a GCC
11243 builtin and then its argument prototype would still apply. */
11244 #ifdef __cplusplus
11245 extern "C"
11246 #endif
11247 char kstat_open ();
11248 int
11249 main ()
11250 {
11251 return kstat_open ();
11252 ;
11253 return 0;
11254 }
11255 _ACEOF
11256 if ac_fn_c_try_link "$LINENO"; then :
11257 ac_cv_lib_kstat_kstat_open=yes
11258 else
11259 ac_cv_lib_kstat_kstat_open=no
11260 fi
11261 rm -f core conftest.err conftest.$ac_objext \
11262 conftest$ac_exeext conftest.$ac_ext
11263 LIBS=$ac_check_lib_save_LIBS
11264 fi
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11266 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11267 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11268 cat >>confdefs.h <<_ACEOF
11269 #define HAVE_LIBKSTAT 1
11270 _ACEOF
11271
11272 LIBS="-lkstat $LIBS"
11273
11274 fi
11275
11276 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11277
11278 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11279 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11280 # to get the right answer into the cache.
11281 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11282 if test $ac_have_func = no; then
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11284 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11285 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11288 ac_check_lib_save_LIBS=$LIBS
11289 LIBS="-lelf $LIBS"
11290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h. */
11292
11293 /* Override any GCC internal prototype to avoid an error.
11294 Use char because int might match the return type of a GCC
11295 builtin and then its argument prototype would still apply. */
11296 #ifdef __cplusplus
11297 extern "C"
11298 #endif
11299 char elf_begin ();
11300 int
11301 main ()
11302 {
11303 return elf_begin ();
11304 ;
11305 return 0;
11306 }
11307 _ACEOF
11308 if ac_fn_c_try_link "$LINENO"; then :
11309 ac_cv_lib_elf_elf_begin=yes
11310 else
11311 ac_cv_lib_elf_elf_begin=no
11312 fi
11313 rm -f core conftest.err conftest.$ac_objext \
11314 conftest$ac_exeext conftest.$ac_ext
11315 LIBS=$ac_check_lib_save_LIBS
11316 fi
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11318 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11319 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
11320 LIBS="-lelf $LIBS"
11321 fi
11322
11323 fi
11324 if test $ac_have_func = no; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11326 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11327 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11328 $as_echo_n "(cached) " >&6
11329 else
11330 ac_check_lib_save_LIBS=$LIBS
11331 LIBS="-lkvm $LIBS"
11332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11333 /* end confdefs.h. */
11334
11335 /* Override any GCC internal prototype to avoid an error.
11336 Use char because int might match the return type of a GCC
11337 builtin and then its argument prototype would still apply. */
11338 #ifdef __cplusplus
11339 extern "C"
11340 #endif
11341 char kvm_open ();
11342 int
11343 main ()
11344 {
11345 return kvm_open ();
11346 ;
11347 return 0;
11348 }
11349 _ACEOF
11350 if ac_fn_c_try_link "$LINENO"; then :
11351 ac_cv_lib_kvm_kvm_open=yes
11352 else
11353 ac_cv_lib_kvm_kvm_open=no
11354 fi
11355 rm -f core conftest.err conftest.$ac_objext \
11356 conftest$ac_exeext conftest.$ac_ext
11357 LIBS=$ac_check_lib_save_LIBS
11358 fi
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11360 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11361 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
11362 LIBS="-lkvm $LIBS"
11363 fi
11364
11365 # Check for the 4.4BSD definition of getloadavg.
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11367 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11368 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11369 $as_echo_n "(cached) " >&6
11370 else
11371 ac_check_lib_save_LIBS=$LIBS
11372 LIBS="-lutil $LIBS"
11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11375
11376 /* Override any GCC internal prototype to avoid an error.
11377 Use char because int might match the return type of a GCC
11378 builtin and then its argument prototype would still apply. */
11379 #ifdef __cplusplus
11380 extern "C"
11381 #endif
11382 char getloadavg ();
11383 int
11384 main ()
11385 {
11386 return getloadavg ();
11387 ;
11388 return 0;
11389 }
11390 _ACEOF
11391 if ac_fn_c_try_link "$LINENO"; then :
11392 ac_cv_lib_util_getloadavg=yes
11393 else
11394 ac_cv_lib_util_getloadavg=no
11395 fi
11396 rm -f core conftest.err conftest.$ac_objext \
11397 conftest$ac_exeext conftest.$ac_ext
11398 LIBS=$ac_check_lib_save_LIBS
11399 fi
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11401 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11402 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
11403 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11404 fi
11405
11406 fi
11407
11408 if test $ac_have_func = no; then
11409 # There is a commonly available library for RS/6000 AIX.
11410 # Since it is not a standard part of AIX, it might be installed locally.
11411 ac_getloadavg_LIBS=$LIBS
11412 LIBS="-L/usr/local/lib $LIBS"
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11414 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11415 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11416 $as_echo_n "(cached) " >&6
11417 else
11418 ac_check_lib_save_LIBS=$LIBS
11419 LIBS="-lgetloadavg $LIBS"
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11422
11423 /* Override any GCC internal prototype to avoid an error.
11424 Use char because int might match the return type of a GCC
11425 builtin and then its argument prototype would still apply. */
11426 #ifdef __cplusplus
11427 extern "C"
11428 #endif
11429 char getloadavg ();
11430 int
11431 main ()
11432 {
11433 return getloadavg ();
11434 ;
11435 return 0;
11436 }
11437 _ACEOF
11438 if ac_fn_c_try_link "$LINENO"; then :
11439 ac_cv_lib_getloadavg_getloadavg=yes
11440 else
11441 ac_cv_lib_getloadavg_getloadavg=no
11442 fi
11443 rm -f core conftest.err conftest.$ac_objext \
11444 conftest$ac_exeext conftest.$ac_ext
11445 LIBS=$ac_check_lib_save_LIBS
11446 fi
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11448 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11449 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
11450 LIBS="-lgetloadavg $LIBS"
11451 else
11452 LIBS=$ac_getloadavg_LIBS
11453 fi
11454
11455 fi
11456
11457 # Make sure it is really in the library, if we think we found it,
11458 # otherwise set up the replacement function.
11459 for ac_func in getloadavg
11460 do :
11461 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11462 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11463 cat >>confdefs.h <<_ACEOF
11464 #define HAVE_GETLOADAVG 1
11465 _ACEOF
11466
11467 else
11468 case " $LIBOBJS " in
11469 *" getloadavg.$ac_objext "* ) ;;
11470 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11471 ;;
11472 esac
11473
11474
11475 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11476
11477 # Figure out what our getloadavg.c needs.
11478 ac_have_func=no
11479 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11480 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
11481 ac_have_func=yes
11482
11483 $as_echo "#define DGUX 1" >>confdefs.h
11484
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11486 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11487 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11488 $as_echo_n "(cached) " >&6
11489 else
11490 ac_check_lib_save_LIBS=$LIBS
11491 LIBS="-ldgc $LIBS"
11492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11493 /* end confdefs.h. */
11494
11495 /* Override any GCC internal prototype to avoid an error.
11496 Use char because int might match the return type of a GCC
11497 builtin and then its argument prototype would still apply. */
11498 #ifdef __cplusplus
11499 extern "C"
11500 #endif
11501 char dg_sys_info ();
11502 int
11503 main ()
11504 {
11505 return dg_sys_info ();
11506 ;
11507 return 0;
11508 }
11509 _ACEOF
11510 if ac_fn_c_try_link "$LINENO"; then :
11511 ac_cv_lib_dgc_dg_sys_info=yes
11512 else
11513 ac_cv_lib_dgc_dg_sys_info=no
11514 fi
11515 rm -f core conftest.err conftest.$ac_objext \
11516 conftest$ac_exeext conftest.$ac_ext
11517 LIBS=$ac_check_lib_save_LIBS
11518 fi
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11520 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11521 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
11522 cat >>confdefs.h <<_ACEOF
11523 #define HAVE_LIBDGC 1
11524 _ACEOF
11525
11526 LIBS="-ldgc $LIBS"
11527
11528 fi
11529
11530 fi
11531
11532
11533
11534 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11535 if test "x$ac_cv_header_locale_h" = x""yes; then :
11536
11537 fi
11538
11539
11540 for ac_func in setlocale
11541 do :
11542 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
11543 if test "x$ac_cv_func_setlocale" = x""yes; then :
11544 cat >>confdefs.h <<_ACEOF
11545 #define HAVE_SETLOCALE 1
11546 _ACEOF
11547
11548 fi
11549 done
11550
11551
11552 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11553 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11554 # Irix 4.0.5F has the header but not the library.
11555 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11556 ac_have_func=yes
11557
11558 $as_echo "#define SVR4 1" >>confdefs.h
11559
11560 fi
11561
11562 if test $ac_have_func = no; then
11563 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11564 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
11565 ac_have_func=yes
11566
11567 $as_echo "#define UMAX 1" >>confdefs.h
11568
11569
11570 $as_echo "#define UMAX4_3 1" >>confdefs.h
11571
11572 fi
11573
11574
11575 fi
11576
11577 if test $ac_have_func = no; then
11578 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11579 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
11580 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
11581
11582 fi
11583
11584
11585 fi
11586
11587 if test $ac_have_func = no; then
11588 for ac_header in mach/mach.h
11589 do :
11590 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11591 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
11592 cat >>confdefs.h <<_ACEOF
11593 #define HAVE_MACH_MACH_H 1
11594 _ACEOF
11595
11596 fi
11597
11598 done
11599
11600 fi
11601
11602 for ac_header in nlist.h
11603 do :
11604 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11605 if test "x$ac_cv_header_nlist_h" = x""yes; then :
11606 cat >>confdefs.h <<_ACEOF
11607 #define HAVE_NLIST_H 1
11608 _ACEOF
11609 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11610 "
11611 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
11612
11613 cat >>confdefs.h <<_ACEOF
11614 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11615 _ACEOF
11616
11617
11618 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11619
11620 fi
11621
11622
11623 fi
11624
11625 done
11626
11627 fi
11628 done
11629
11630
11631 # Some definitions of getloadavg require that the program be installed setgid.
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11633 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11634 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11639 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11640 #ifdef LDAV_PRIVILEGED
11641 Yowza Am I SETGID yet
11642 #endif
11643 _ACEOF
11644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11645 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
11646 ac_cv_func_getloadavg_setgid=yes
11647 else
11648 ac_cv_func_getloadavg_setgid=no
11649 fi
11650 rm -f conftest*
11651
11652 fi
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11654 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11655 if test $ac_cv_func_getloadavg_setgid = yes; then
11656 NEED_SETGID=true
11657
11658 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11659
11660 else
11661 NEED_SETGID=false
11662 fi
11663
11664 if test $ac_cv_func_getloadavg_setgid = yes; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11666 $as_echo_n "checking group of /dev/kmem... " >&6; }
11667 if test "${ac_cv_group_kmem+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
11669 else
11670 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11671 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11672 # If we got an error (system does not support symlinks), try without -L.
11673 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11674 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
11675 | sed -ne 's/[ ][ ]*/ /g;
11676 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11677 / /s/.* //;p;'`
11678
11679 fi
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11681 $as_echo "$ac_cv_group_kmem" >&6; }
11682 KMEM_GROUP=$ac_cv_group_kmem
11683 fi
11684 if test "x$ac_save_LIBS" = x; then
11685 GETLOADAVG_LIBS=$LIBS
11686 else
11687 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11688 fi
11689 LIBS=$ac_save_LIBS
11690
11691
11692
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11694 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11695 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11696 $as_echo_n "(cached) " >&6
11697 else
11698 while :; do
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h. */
11701 #include <sys/types.h> /* for off_t */
11702 #include <stdio.h>
11703 int
11704 main ()
11705 {
11706 int (*fp) (FILE *, off_t, int) = fseeko;
11707 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11708 ;
11709 return 0;
11710 }
11711 _ACEOF
11712 if ac_fn_c_try_link "$LINENO"; then :
11713 ac_cv_sys_largefile_source=no; break
11714 fi
11715 rm -f core conftest.err conftest.$ac_objext \
11716 conftest$ac_exeext conftest.$ac_ext
11717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11718 /* end confdefs.h. */
11719 #define _LARGEFILE_SOURCE 1
11720 #include <sys/types.h> /* for off_t */
11721 #include <stdio.h>
11722 int
11723 main ()
11724 {
11725 int (*fp) (FILE *, off_t, int) = fseeko;
11726 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11727 ;
11728 return 0;
11729 }
11730 _ACEOF
11731 if ac_fn_c_try_link "$LINENO"; then :
11732 ac_cv_sys_largefile_source=1; break
11733 fi
11734 rm -f core conftest.err conftest.$ac_objext \
11735 conftest$ac_exeext conftest.$ac_ext
11736 ac_cv_sys_largefile_source=unknown
11737 break
11738 done
11739 fi
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11741 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11742 case $ac_cv_sys_largefile_source in #(
11743 no | unknown) ;;
11744 *)
11745 cat >>confdefs.h <<_ACEOF
11746 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11747 _ACEOF
11748 ;;
11749 esac
11750 rm -rf conftest*
11751
11752 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11753 # in glibc 2.1.3, but that breaks too many other things.
11754 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11755 if test $ac_cv_sys_largefile_source != unknown; then
11756
11757 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11758
11759 fi
11760
11761
11762 # Configure getopt.
11763 # getopt.m4 serial 10
11764
11765 # The getopt module assume you want GNU getopt, with getopt_long etc,
11766 # rather than vanilla POSIX getopt. This means your your code should
11767 # always include <getopt.h> for the getopt prototypes.
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779 # Prerequisites of lib/getopt*.
11780
11781
11782
11783
11784 GETOPT_H=
11785 for ac_header in getopt.h
11786 do :
11787 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11788 if test "x$ac_cv_header_getopt_h" = x""yes; then :
11789 cat >>confdefs.h <<_ACEOF
11790 #define HAVE_GETOPT_H 1
11791 _ACEOF
11792
11793 else
11794 GETOPT_H=getopt.h
11795 fi
11796
11797 done
11798
11799 if test -z "$GETOPT_H"; then
11800 for ac_func in getopt_long_only
11801 do :
11802 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11803 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
11804 cat >>confdefs.h <<_ACEOF
11805 #define HAVE_GETOPT_LONG_ONLY 1
11806 _ACEOF
11807
11808 else
11809 GETOPT_H=getopt.h
11810 fi
11811 done
11812
11813 fi
11814
11815 if test -z "$GETOPT_H"; then
11816 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11817 "
11818 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
11819 GETOPT_H=getopt.h
11820 fi
11821
11822 fi
11823
11824 if test -z "$GETOPT_H"; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11826 $as_echo_n "checking for working GNU getopt function... " >&6; }
11827 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
11828 $as_echo_n "(cached) " >&6
11829 else
11830 if test "$cross_compiling" = yes; then :
11831 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11832 "
11833 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
11834 gl_cv_func_gnu_getopt=no
11835 else
11836 gl_cv_func_gnu_getopt=yes
11837 fi
11838
11839 else
11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11841 /* end confdefs.h. */
11842 #include <getopt.h>
11843 int
11844 main ()
11845 {
11846
11847 char *myargv[3];
11848 myargv[0] = "conftest";
11849 myargv[1] = "-+";
11850 myargv[2] = 0;
11851 return getopt (2, myargv, "+a") != '?';
11852
11853 ;
11854 return 0;
11855 }
11856 _ACEOF
11857 if ac_fn_c_try_run "$LINENO"; then :
11858 gl_cv_func_gnu_getopt=yes
11859 else
11860 gl_cv_func_gnu_getopt=no
11861 fi
11862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11863 conftest.$ac_objext conftest.beam conftest.$ac_ext
11864 fi
11865
11866 fi
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
11868 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11869 if test "$gl_cv_func_gnu_getopt" = "no"; then
11870 GETOPT_H=getopt.h
11871 fi
11872 fi
11873
11874
11875
11876 if test -n "$GETOPT_H"; then :
11877
11878
11879 GETOPT_H=getopt.h
11880
11881 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11882
11883
11884
11885 :
11886 GETOPTOBJS='getopt.o getopt1.o'
11887
11888 fi
11889
11890
11891
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11893 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11894 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
11895 $as_echo_n "(cached) " >&6
11896 else
11897 # Use it with a single arg.
11898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11900 $ac_includes_default
11901 int
11902 main ()
11903 {
11904 getpgrp (0);
11905 ;
11906 return 0;
11907 }
11908 _ACEOF
11909 if ac_fn_c_try_compile "$LINENO"; then :
11910 ac_cv_func_getpgrp_void=no
11911 else
11912 ac_cv_func_getpgrp_void=yes
11913 fi
11914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11915
11916 fi
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11918 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
11919 if test $ac_cv_func_getpgrp_void = yes; then
11920
11921 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
11922
11923 fi
11924
11925
11926 for ac_func in strftime
11927 do :
11928 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
11929 if test "x$ac_cv_func_strftime" = x""yes; then :
11930 cat >>confdefs.h <<_ACEOF
11931 #define HAVE_STRFTIME 1
11932 _ACEOF
11933
11934 else
11935 # strftime is in -lintl on SCO UNIX.
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11937 $as_echo_n "checking for strftime in -lintl... " >&6; }
11938 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11939 $as_echo_n "(cached) " >&6
11940 else
11941 ac_check_lib_save_LIBS=$LIBS
11942 LIBS="-lintl $LIBS"
11943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h. */
11945
11946 /* Override any GCC internal prototype to avoid an error.
11947 Use char because int might match the return type of a GCC
11948 builtin and then its argument prototype would still apply. */
11949 #ifdef __cplusplus
11950 extern "C"
11951 #endif
11952 char strftime ();
11953 int
11954 main ()
11955 {
11956 return strftime ();
11957 ;
11958 return 0;
11959 }
11960 _ACEOF
11961 if ac_fn_c_try_link "$LINENO"; then :
11962 ac_cv_lib_intl_strftime=yes
11963 else
11964 ac_cv_lib_intl_strftime=no
11965 fi
11966 rm -f core conftest.err conftest.$ac_objext \
11967 conftest$ac_exeext conftest.$ac_ext
11968 LIBS=$ac_check_lib_save_LIBS
11969 fi
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11971 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11972 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
11973 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11974
11975 LIBS="-lintl $LIBS"
11976 fi
11977
11978 fi
11979 done
11980
11981
11982 # UNIX98 PTYs.
11983 for ac_func in grantpt
11984 do :
11985 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
11986 if test "x$ac_cv_func_grantpt" = x""yes; then :
11987 cat >>confdefs.h <<_ACEOF
11988 #define HAVE_GRANTPT 1
11989 _ACEOF
11990
11991 fi
11992 done
11993
11994
11995 # PTY-related GNU extensions.
11996 for ac_func in getpt
11997 do :
11998 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
11999 if test "x$ac_cv_func_getpt" = x""yes; then :
12000 cat >>confdefs.h <<_ACEOF
12001 #define HAVE_GETPT 1
12002 _ACEOF
12003
12004 fi
12005 done
12006
12007
12008 # Check this now, so that we will NOT find the above functions in ncurses.
12009 # That is because we have not set up to link ncurses in lib-src.
12010 # It's better to believe a function is not available
12011 # than to expect to find it in ncurses.
12012 # Also we need tputs and frieds to be able to build at all.
12013 have_tputs_et_al=true
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12015 $as_echo_n "checking for library containing tputs... " >&6; }
12016 if test "${ac_cv_search_tputs+set}" = set; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 ac_func_search_save_LIBS=$LIBS
12020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021 /* end confdefs.h. */
12022
12023 /* Override any GCC internal prototype to avoid an error.
12024 Use char because int might match the return type of a GCC
12025 builtin and then its argument prototype would still apply. */
12026 #ifdef __cplusplus
12027 extern "C"
12028 #endif
12029 char tputs ();
12030 int
12031 main ()
12032 {
12033 return tputs ();
12034 ;
12035 return 0;
12036 }
12037 _ACEOF
12038 for ac_lib in '' ncurses terminfo termcap; do
12039 if test -z "$ac_lib"; then
12040 ac_res="none required"
12041 else
12042 ac_res=-l$ac_lib
12043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12044 fi
12045 if ac_fn_c_try_link "$LINENO"; then :
12046 ac_cv_search_tputs=$ac_res
12047 fi
12048 rm -f core conftest.err conftest.$ac_objext \
12049 conftest$ac_exeext
12050 if test "${ac_cv_search_tputs+set}" = set; then :
12051 break
12052 fi
12053 done
12054 if test "${ac_cv_search_tputs+set}" = set; then :
12055
12056 else
12057 ac_cv_search_tputs=no
12058 fi
12059 rm conftest.$ac_ext
12060 LIBS=$ac_func_search_save_LIBS
12061 fi
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12063 $as_echo "$ac_cv_search_tputs" >&6; }
12064 ac_res=$ac_cv_search_tputs
12065 if test "$ac_res" != no; then :
12066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12067
12068 else
12069 have_tputs_et_al=false
12070 fi
12071
12072 if test "$have_tputs_et_al" != true; then
12073 as_fn_error "I couldn't find termcap functions (tputs and friends).
12074 Maybe some development libraries/packages are missing? Try installing
12075 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12076 fi
12077 # Must define this when any termcap library is found.
12078
12079 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12080
12081
12082 # Do we have res_init, for detecting changes in /etc/resolv.conf?
12083
12084 resolv=no
12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h. */
12087 #include <netinet/in.h>
12088 #include <arpa/nameser.h>
12089 #include <resolv.h>
12090 int
12091 main ()
12092 {
12093 return res_init();
12094 ;
12095 return 0;
12096 }
12097 _ACEOF
12098 if ac_fn_c_try_link "$LINENO"; then :
12099 have_res_init=yes
12100 else
12101 have_res_init=no
12102 fi
12103 rm -f core conftest.err conftest.$ac_objext \
12104 conftest$ac_exeext conftest.$ac_ext
12105 if test "$have_res_init" = no; then
12106 OLIBS="$LIBS"
12107 LIBS="$LIBS -lresolv"
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
12109 $as_echo_n "checking for res_init with -lresolv... " >&6; }
12110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111 /* end confdefs.h. */
12112 #include <netinet/in.h>
12113 #include <arpa/nameser.h>
12114 #include <resolv.h>
12115 int
12116 main ()
12117 {
12118 return res_init();
12119 ;
12120 return 0;
12121 }
12122 _ACEOF
12123 if ac_fn_c_try_link "$LINENO"; then :
12124 have_res_init=yes
12125 else
12126 have_res_init=no
12127 fi
12128 rm -f core conftest.err conftest.$ac_objext \
12129 conftest$ac_exeext conftest.$ac_ext
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
12131 $as_echo "$have_res_init" >&6; }
12132 if test "$have_res_init" = yes ; then
12133 resolv=yes
12134 fi
12135 LIBS="$OLIBS"
12136 fi
12137
12138 if test "$have_res_init" = yes; then
12139
12140 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
12141
12142 fi
12143
12144 # Do we need the Hesiod library to provide the support routines?
12145 LIBHESIOD=
12146 if test "$with_hesiod" != no ; then
12147 # Don't set $LIBS here -- see comments above. FIXME which comments?
12148 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
12149 if test "x$ac_cv_func_res_send" = x""yes; then :
12150
12151 else
12152 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
12153 if test "x$ac_cv_func___res_send" = x""yes; then :
12154
12155 else
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
12157 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12158 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
12159 $as_echo_n "(cached) " >&6
12160 else
12161 ac_check_lib_save_LIBS=$LIBS
12162 LIBS="-lresolv $LIBS"
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12165
12166 /* Override any GCC internal prototype to avoid an error.
12167 Use char because int might match the return type of a GCC
12168 builtin and then its argument prototype would still apply. */
12169 #ifdef __cplusplus
12170 extern "C"
12171 #endif
12172 char res_send ();
12173 int
12174 main ()
12175 {
12176 return res_send ();
12177 ;
12178 return 0;
12179 }
12180 _ACEOF
12181 if ac_fn_c_try_link "$LINENO"; then :
12182 ac_cv_lib_resolv_res_send=yes
12183 else
12184 ac_cv_lib_resolv_res_send=no
12185 fi
12186 rm -f core conftest.err conftest.$ac_objext \
12187 conftest$ac_exeext conftest.$ac_ext
12188 LIBS=$ac_check_lib_save_LIBS
12189 fi
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12191 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12192 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
12193 resolv=yes
12194 else
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12196 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12197 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12198 $as_echo_n "(cached) " >&6
12199 else
12200 ac_check_lib_save_LIBS=$LIBS
12201 LIBS="-lresolv $LIBS"
12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12204
12205 /* Override any GCC internal prototype to avoid an error.
12206 Use char because int might match the return type of a GCC
12207 builtin and then its argument prototype would still apply. */
12208 #ifdef __cplusplus
12209 extern "C"
12210 #endif
12211 char __res_send ();
12212 int
12213 main ()
12214 {
12215 return __res_send ();
12216 ;
12217 return 0;
12218 }
12219 _ACEOF
12220 if ac_fn_c_try_link "$LINENO"; then :
12221 ac_cv_lib_resolv___res_send=yes
12222 else
12223 ac_cv_lib_resolv___res_send=no
12224 fi
12225 rm -f core conftest.err conftest.$ac_objext \
12226 conftest$ac_exeext conftest.$ac_ext
12227 LIBS=$ac_check_lib_save_LIBS
12228 fi
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12230 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12231 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
12232 resolv=yes
12233 fi
12234
12235 fi
12236
12237 fi
12238
12239 fi
12240
12241 if test "$resolv" = yes ; then
12242 RESOLVLIB=-lresolv
12243 else
12244 RESOLVLIB=
12245 fi
12246 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
12247 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
12248
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12251 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12252 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 ac_check_lib_save_LIBS=$LIBS
12256 LIBS="-lhesiod $RESOLVLIB $LIBS"
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12259
12260 /* Override any GCC internal prototype to avoid an error.
12261 Use char because int might match the return type of a GCC
12262 builtin and then its argument prototype would still apply. */
12263 #ifdef __cplusplus
12264 extern "C"
12265 #endif
12266 char hes_getmailhost ();
12267 int
12268 main ()
12269 {
12270 return hes_getmailhost ();
12271 ;
12272 return 0;
12273 }
12274 _ACEOF
12275 if ac_fn_c_try_link "$LINENO"; then :
12276 ac_cv_lib_hesiod_hes_getmailhost=yes
12277 else
12278 ac_cv_lib_hesiod_hes_getmailhost=no
12279 fi
12280 rm -f core conftest.err conftest.$ac_objext \
12281 conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12283 fi
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12285 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12286 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
12287 hesiod=yes
12288 else
12289 :
12290 fi
12291
12292 fi
12293
12294
12295 if test x"$hesiod" = xyes; then
12296
12297 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12298
12299 LIBHESIOD=-lhesiod
12300 fi
12301 fi
12302
12303
12304 # Do we need libresolv (due to res_init or Hesiod)?
12305 if test "$resolv" = yes ; then
12306
12307 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12308
12309 LIBRESOLV=-lresolv
12310 else
12311 LIBRESOLV=
12312 fi
12313
12314
12315 # These tell us which Kerberos-related libraries to use.
12316 COM_ERRLIB=
12317 CRYPTOLIB=
12318 KRB5LIB=
12319 DESLIB=
12320 KRB4LIB=
12321
12322 if test "${with_kerberos}" != no; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12324 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12325 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12326 $as_echo_n "(cached) " >&6
12327 else
12328 ac_check_lib_save_LIBS=$LIBS
12329 LIBS="-lcom_err $LIBS"
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12332
12333 /* Override any GCC internal prototype to avoid an error.
12334 Use char because int might match the return type of a GCC
12335 builtin and then its argument prototype would still apply. */
12336 #ifdef __cplusplus
12337 extern "C"
12338 #endif
12339 char com_err ();
12340 int
12341 main ()
12342 {
12343 return com_err ();
12344 ;
12345 return 0;
12346 }
12347 _ACEOF
12348 if ac_fn_c_try_link "$LINENO"; then :
12349 ac_cv_lib_com_err_com_err=yes
12350 else
12351 ac_cv_lib_com_err_com_err=no
12352 fi
12353 rm -f core conftest.err conftest.$ac_objext \
12354 conftest$ac_exeext conftest.$ac_ext
12355 LIBS=$ac_check_lib_save_LIBS
12356 fi
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12358 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12359 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
12360 have_com_err=yes
12361 else
12362 have_com_err=no
12363 fi
12364
12365 if test $have_com_err = yes; then
12366 COM_ERRLIB=-lcom_err
12367 LIBS="$COM_ERRLIB $LIBS"
12368
12369 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
12370
12371 fi
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12373 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12374 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12375 $as_echo_n "(cached) " >&6
12376 else
12377 ac_check_lib_save_LIBS=$LIBS
12378 LIBS="-lcrypto $LIBS"
12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380 /* end confdefs.h. */
12381
12382 /* Override any GCC internal prototype to avoid an error.
12383 Use char because int might match the return type of a GCC
12384 builtin and then its argument prototype would still apply. */
12385 #ifdef __cplusplus
12386 extern "C"
12387 #endif
12388 char mit_des_cbc_encrypt ();
12389 int
12390 main ()
12391 {
12392 return mit_des_cbc_encrypt ();
12393 ;
12394 return 0;
12395 }
12396 _ACEOF
12397 if ac_fn_c_try_link "$LINENO"; then :
12398 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12399 else
12400 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12401 fi
12402 rm -f core conftest.err conftest.$ac_objext \
12403 conftest$ac_exeext conftest.$ac_ext
12404 LIBS=$ac_check_lib_save_LIBS
12405 fi
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12407 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12408 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
12409 have_crypto=yes
12410 else
12411 have_crypto=no
12412 fi
12413
12414 if test $have_crypto = yes; then
12415 CRYPTOLIB=-lcrypto
12416 LIBS="$CRYPTOLIB $LIBS"
12417
12418 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12419
12420 fi
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12422 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12423 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12424 $as_echo_n "(cached) " >&6
12425 else
12426 ac_check_lib_save_LIBS=$LIBS
12427 LIBS="-lk5crypto $LIBS"
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12430
12431 /* Override any GCC internal prototype to avoid an error.
12432 Use char because int might match the return type of a GCC
12433 builtin and then its argument prototype would still apply. */
12434 #ifdef __cplusplus
12435 extern "C"
12436 #endif
12437 char mit_des_cbc_encrypt ();
12438 int
12439 main ()
12440 {
12441 return mit_des_cbc_encrypt ();
12442 ;
12443 return 0;
12444 }
12445 _ACEOF
12446 if ac_fn_c_try_link "$LINENO"; then :
12447 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12448 else
12449 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12450 fi
12451 rm -f core conftest.err conftest.$ac_objext \
12452 conftest$ac_exeext conftest.$ac_ext
12453 LIBS=$ac_check_lib_save_LIBS
12454 fi
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12456 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12457 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
12458 have_k5crypto=yes
12459 else
12460 have_k5crypto=no
12461 fi
12462
12463 if test $have_k5crypto = yes; then
12464 CRYPTOLIB=-lk5crypto
12465 LIBS="$CRYPTOLIB $LIBS"
12466
12467 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
12468
12469 fi
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12471 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12472 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 ac_check_lib_save_LIBS=$LIBS
12476 LIBS="-lkrb5 $LIBS"
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12479
12480 /* Override any GCC internal prototype to avoid an error.
12481 Use char because int might match the return type of a GCC
12482 builtin and then its argument prototype would still apply. */
12483 #ifdef __cplusplus
12484 extern "C"
12485 #endif
12486 char krb5_init_context ();
12487 int
12488 main ()
12489 {
12490 return krb5_init_context ();
12491 ;
12492 return 0;
12493 }
12494 _ACEOF
12495 if ac_fn_c_try_link "$LINENO"; then :
12496 ac_cv_lib_krb5_krb5_init_context=yes
12497 else
12498 ac_cv_lib_krb5_krb5_init_context=no
12499 fi
12500 rm -f core conftest.err conftest.$ac_objext \
12501 conftest$ac_exeext conftest.$ac_ext
12502 LIBS=$ac_check_lib_save_LIBS
12503 fi
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12505 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12506 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
12507 have_krb5=yes
12508 else
12509 have_krb5=no
12510 fi
12511
12512 if test $have_krb5=yes; then
12513 KRB5LIB=-lkrb5
12514 LIBS="$KRB5LIB $LIBS"
12515
12516 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
12517
12518 fi
12519 if test "${with_kerberos5}" = no; then
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12521 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12522 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12523 $as_echo_n "(cached) " >&6
12524 else
12525 ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-ldes425 $LIBS"
12527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528 /* end confdefs.h. */
12529
12530 /* Override any GCC internal prototype to avoid an error.
12531 Use char because int might match the return type of a GCC
12532 builtin and then its argument prototype would still apply. */
12533 #ifdef __cplusplus
12534 extern "C"
12535 #endif
12536 char des_cbc_encrypt ();
12537 int
12538 main ()
12539 {
12540 return des_cbc_encrypt ();
12541 ;
12542 return 0;
12543 }
12544 _ACEOF
12545 if ac_fn_c_try_link "$LINENO"; then :
12546 ac_cv_lib_des425_des_cbc_encrypt=yes
12547 else
12548 ac_cv_lib_des425_des_cbc_encrypt=no
12549 fi
12550 rm -f core conftest.err conftest.$ac_objext \
12551 conftest$ac_exeext conftest.$ac_ext
12552 LIBS=$ac_check_lib_save_LIBS
12553 fi
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12555 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12556 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
12557 have_des425=yes
12558 else
12559 have_des425=no
12560 fi
12561
12562 if test $have_des425 = yes; then
12563 DESLIB=-ldes425
12564 LIBS="$DESLIB $LIBS"
12565
12566 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
12567
12568 else
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12570 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12571 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12572 $as_echo_n "(cached) " >&6
12573 else
12574 ac_check_lib_save_LIBS=$LIBS
12575 LIBS="-ldes $LIBS"
12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h. */
12578
12579 /* Override any GCC internal prototype to avoid an error.
12580 Use char because int might match the return type of a GCC
12581 builtin and then its argument prototype would still apply. */
12582 #ifdef __cplusplus
12583 extern "C"
12584 #endif
12585 char des_cbc_encrypt ();
12586 int
12587 main ()
12588 {
12589 return des_cbc_encrypt ();
12590 ;
12591 return 0;
12592 }
12593 _ACEOF
12594 if ac_fn_c_try_link "$LINENO"; then :
12595 ac_cv_lib_des_des_cbc_encrypt=yes
12596 else
12597 ac_cv_lib_des_des_cbc_encrypt=no
12598 fi
12599 rm -f core conftest.err conftest.$ac_objext \
12600 conftest$ac_exeext conftest.$ac_ext
12601 LIBS=$ac_check_lib_save_LIBS
12602 fi
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12604 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12605 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
12606 have_des=yes
12607 else
12608 have_des=no
12609 fi
12610
12611 if test $have_des = yes; then
12612 DESLIB=-ldes
12613 LIBS="$DESLIB $LIBS"
12614
12615 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
12616
12617 fi
12618 fi
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12620 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12621 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12622 $as_echo_n "(cached) " >&6
12623 else
12624 ac_check_lib_save_LIBS=$LIBS
12625 LIBS="-lkrb4 $LIBS"
12626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12627 /* end confdefs.h. */
12628
12629 /* Override any GCC internal prototype to avoid an error.
12630 Use char because int might match the return type of a GCC
12631 builtin and then its argument prototype would still apply. */
12632 #ifdef __cplusplus
12633 extern "C"
12634 #endif
12635 char krb_get_cred ();
12636 int
12637 main ()
12638 {
12639 return krb_get_cred ();
12640 ;
12641 return 0;
12642 }
12643 _ACEOF
12644 if ac_fn_c_try_link "$LINENO"; then :
12645 ac_cv_lib_krb4_krb_get_cred=yes
12646 else
12647 ac_cv_lib_krb4_krb_get_cred=no
12648 fi
12649 rm -f core conftest.err conftest.$ac_objext \
12650 conftest$ac_exeext conftest.$ac_ext
12651 LIBS=$ac_check_lib_save_LIBS
12652 fi
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12654 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12655 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
12656 have_krb4=yes
12657 else
12658 have_krb4=no
12659 fi
12660
12661 if test $have_krb4 = yes; then
12662 KRB4LIB=-lkrb4
12663 LIBS="$KRB4LIB $LIBS"
12664
12665 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
12666
12667 else
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12669 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12670 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
12671 $as_echo_n "(cached) " >&6
12672 else
12673 ac_check_lib_save_LIBS=$LIBS
12674 LIBS="-lkrb $LIBS"
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12677
12678 /* Override any GCC internal prototype to avoid an error.
12679 Use char because int might match the return type of a GCC
12680 builtin and then its argument prototype would still apply. */
12681 #ifdef __cplusplus
12682 extern "C"
12683 #endif
12684 char krb_get_cred ();
12685 int
12686 main ()
12687 {
12688 return krb_get_cred ();
12689 ;
12690 return 0;
12691 }
12692 _ACEOF
12693 if ac_fn_c_try_link "$LINENO"; then :
12694 ac_cv_lib_krb_krb_get_cred=yes
12695 else
12696 ac_cv_lib_krb_krb_get_cred=no
12697 fi
12698 rm -f core conftest.err conftest.$ac_objext \
12699 conftest$ac_exeext conftest.$ac_ext
12700 LIBS=$ac_check_lib_save_LIBS
12701 fi
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
12703 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12704 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
12705 have_krb=yes
12706 else
12707 have_krb=no
12708 fi
12709
12710 if test $have_krb = yes; then
12711 KRB4LIB=-lkrb
12712 LIBS="$KRB4LIB $LIBS"
12713
12714 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
12715
12716 fi
12717 fi
12718 fi
12719
12720 if test "${with_kerberos5}" != no; then
12721 for ac_header in krb5.h
12722 do :
12723 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
12724 if test "x$ac_cv_header_krb5_h" = x""yes; then :
12725 cat >>confdefs.h <<_ACEOF
12726 #define HAVE_KRB5_H 1
12727 _ACEOF
12728 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
12729 "
12730 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
12731
12732 cat >>confdefs.h <<_ACEOF
12733 #define HAVE_KRB5_ERROR_TEXT 1
12734 _ACEOF
12735
12736
12737 fi
12738 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
12739 "
12740 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
12741
12742 cat >>confdefs.h <<_ACEOF
12743 #define HAVE_KRB5_ERROR_E_TEXT 1
12744 _ACEOF
12745
12746
12747 fi
12748
12749 fi
12750
12751 done
12752
12753 else
12754 for ac_header in des.h
12755 do :
12756 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
12757 if test "x$ac_cv_header_des_h" = x""yes; then :
12758 cat >>confdefs.h <<_ACEOF
12759 #define HAVE_DES_H 1
12760 _ACEOF
12761
12762 else
12763 for ac_header in kerberosIV/des.h
12764 do :
12765 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
12766 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
12767 cat >>confdefs.h <<_ACEOF
12768 #define HAVE_KERBEROSIV_DES_H 1
12769 _ACEOF
12770
12771 else
12772 for ac_header in kerberos/des.h
12773 do :
12774 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
12775 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
12776 cat >>confdefs.h <<_ACEOF
12777 #define HAVE_KERBEROS_DES_H 1
12778 _ACEOF
12779
12780 fi
12781
12782 done
12783
12784 fi
12785
12786 done
12787
12788 fi
12789
12790 done
12791
12792 for ac_header in krb.h
12793 do :
12794 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
12795 if test "x$ac_cv_header_krb_h" = x""yes; then :
12796 cat >>confdefs.h <<_ACEOF
12797 #define HAVE_KRB_H 1
12798 _ACEOF
12799
12800 else
12801 for ac_header in kerberosIV/krb.h
12802 do :
12803 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
12804 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
12805 cat >>confdefs.h <<_ACEOF
12806 #define HAVE_KERBEROSIV_KRB_H 1
12807 _ACEOF
12808
12809 else
12810 for ac_header in kerberos/krb.h
12811 do :
12812 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
12813 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
12814 cat >>confdefs.h <<_ACEOF
12815 #define HAVE_KERBEROS_KRB_H 1
12816 _ACEOF
12817
12818 fi
12819
12820 done
12821
12822 fi
12823
12824 done
12825
12826 fi
12827
12828 done
12829
12830 fi
12831 for ac_header in com_err.h
12832 do :
12833 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
12834 if test "x$ac_cv_header_com_err_h" = x""yes; then :
12835 cat >>confdefs.h <<_ACEOF
12836 #define HAVE_COM_ERR_H 1
12837 _ACEOF
12838
12839 fi
12840
12841 done
12842
12843 fi
12844
12845
12846
12847
12848
12849
12850
12851 # Solaris requires -lintl if you want strerror (which calls dgettext)
12852 # to return localized messages.
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
12854 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12855 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
12856 $as_echo_n "(cached) " >&6
12857 else
12858 ac_check_lib_save_LIBS=$LIBS
12859 LIBS="-lintl $LIBS"
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12862
12863 /* Override any GCC internal prototype to avoid an error.
12864 Use char because int might match the return type of a GCC
12865 builtin and then its argument prototype would still apply. */
12866 #ifdef __cplusplus
12867 extern "C"
12868 #endif
12869 char dgettext ();
12870 int
12871 main ()
12872 {
12873 return dgettext ();
12874 ;
12875 return 0;
12876 }
12877 _ACEOF
12878 if ac_fn_c_try_link "$LINENO"; then :
12879 ac_cv_lib_intl_dgettext=yes
12880 else
12881 ac_cv_lib_intl_dgettext=no
12882 fi
12883 rm -f core conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12885 LIBS=$ac_check_lib_save_LIBS
12886 fi
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
12888 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12889 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
12890 cat >>confdefs.h <<_ACEOF
12891 #define HAVE_LIBINTL 1
12892 _ACEOF
12893
12894 LIBS="-lintl $LIBS"
12895
12896 fi
12897
12898
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
12900 $as_echo_n "checking whether localtime caches TZ... " >&6; }
12901 if test "${emacs_cv_localtime_cache+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
12903 else
12904 if test x$ac_cv_func_tzset = xyes; then
12905 if test "$cross_compiling" = yes; then :
12906 # If we have tzset, assume the worst when cross-compiling.
12907 emacs_cv_localtime_cache=yes
12908 else
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12911 #include <time.h>
12912 extern char **environ;
12913 unset_TZ ()
12914 {
12915 char **from, **to;
12916 for (to = from = environ; (*to = *from); from++)
12917 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
12918 to++;
12919 }
12920 char TZ_GMT0[] = "TZ=GMT0";
12921 char TZ_PST8[] = "TZ=PST8";
12922 main()
12923 {
12924 time_t now = time ((time_t *) 0);
12925 int hour_GMT0, hour_unset;
12926 if (putenv (TZ_GMT0) != 0)
12927 exit (1);
12928 hour_GMT0 = localtime (&now)->tm_hour;
12929 unset_TZ ();
12930 hour_unset = localtime (&now)->tm_hour;
12931 if (putenv (TZ_PST8) != 0)
12932 exit (1);
12933 if (localtime (&now)->tm_hour == hour_GMT0)
12934 exit (1);
12935 unset_TZ ();
12936 if (localtime (&now)->tm_hour != hour_unset)
12937 exit (1);
12938 exit (0);
12939 }
12940 _ACEOF
12941 if ac_fn_c_try_run "$LINENO"; then :
12942 emacs_cv_localtime_cache=no
12943 else
12944 emacs_cv_localtime_cache=yes
12945 fi
12946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12947 conftest.$ac_objext conftest.beam conftest.$ac_ext
12948 fi
12949
12950 else
12951 # If we lack tzset, report that localtime does not cache TZ,
12952 # since we can't invalidate the cache if we don't have tzset.
12953 emacs_cv_localtime_cache=no
12954 fi
12955 fi
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
12957 $as_echo "$emacs_cv_localtime_cache" >&6; }
12958 if test $emacs_cv_localtime_cache = yes; then
12959
12960 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
12961
12962 fi
12963
12964 if test "x$HAVE_TIMEVAL" = xyes; then
12965 for ac_func in gettimeofday
12966 do :
12967 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12968 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
12969 cat >>confdefs.h <<_ACEOF
12970 #define HAVE_GETTIMEOFDAY 1
12971 _ACEOF
12972
12973 fi
12974 done
12975
12976 if test $ac_cv_func_gettimeofday = yes; then
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
12978 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12979 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
12980 $as_echo_n "(cached) " >&6
12981 else
12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983 /* end confdefs.h. */
12984
12985 #ifdef TIME_WITH_SYS_TIME
12986 #include <sys/time.h>
12987 #include <time.h>
12988 #else
12989 #ifdef HAVE_SYS_TIME_H
12990 #include <sys/time.h>
12991 #else
12992 #include <time.h>
12993 #endif
12994 #endif
12995 int
12996 main ()
12997 {
12998 struct timeval time;
12999 gettimeofday (&time, 0);
13000 ;
13001 return 0;
13002 }
13003 _ACEOF
13004 if ac_fn_c_try_compile "$LINENO"; then :
13005 emacs_cv_gettimeofday_two_arguments=yes
13006 else
13007 emacs_cv_gettimeofday_two_arguments=no
13008 fi
13009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13010 fi
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
13012 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13013 if test $emacs_cv_gettimeofday_two_arguments = no; then
13014
13015 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
13016
13017 fi
13018 fi
13019 fi
13020
13021 ok_so_far=yes
13022 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13023 if test "x$ac_cv_func_socket" = x""yes; then :
13024
13025 else
13026 ok_so_far=no
13027 fi
13028
13029 if test $ok_so_far = yes; then
13030 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13031 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
13032
13033 else
13034 ok_so_far=no
13035 fi
13036
13037
13038 fi
13039 if test $ok_so_far = yes; then
13040 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13041 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
13042
13043 else
13044 ok_so_far=no
13045 fi
13046
13047
13048 fi
13049 if test $ok_so_far = yes; then
13050
13051 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
13052
13053 fi
13054
13055 for ac_header in sys/ioctl.h
13056 do :
13057 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13058 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
13059 cat >>confdefs.h <<_ACEOF
13060 #define HAVE_SYS_IOCTL_H 1
13061 _ACEOF
13062
13063 fi
13064
13065 done
13066
13067
13068 if test -f /usr/lpp/X11/bin/smt.exp; then
13069
13070 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
13071
13072 fi
13073
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
13075 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
13076 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13078 $as_echo "yes" >&6; }
13079
13080 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
13081
13082 else
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084 $as_echo "no" >&6; }
13085 fi
13086
13087 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13088 if test "x$ac_cv_type_pid_t" = x""yes; then :
13089
13090 else
13091
13092 cat >>confdefs.h <<_ACEOF
13093 #define pid_t int
13094 _ACEOF
13095
13096 fi
13097
13098 for ac_header in vfork.h
13099 do :
13100 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13101 if test "x$ac_cv_header_vfork_h" = x""yes; then :
13102 cat >>confdefs.h <<_ACEOF
13103 #define HAVE_VFORK_H 1
13104 _ACEOF
13105
13106 fi
13107
13108 done
13109
13110 for ac_func in fork vfork
13111 do :
13112 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13113 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13114 eval as_val=\$$as_ac_var
13115 if test "x$as_val" = x""yes; then :
13116 cat >>confdefs.h <<_ACEOF
13117 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13118 _ACEOF
13119
13120 fi
13121 done
13122
13123 if test "x$ac_cv_func_fork" = xyes; then
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13125 $as_echo_n "checking for working fork... " >&6; }
13126 if test "${ac_cv_func_fork_works+set}" = set; then :
13127 $as_echo_n "(cached) " >&6
13128 else
13129 if test "$cross_compiling" = yes; then :
13130 ac_cv_func_fork_works=cross
13131 else
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13134 $ac_includes_default
13135 int
13136 main ()
13137 {
13138
13139 /* By Ruediger Kuhlmann. */
13140 return fork () < 0;
13141
13142 ;
13143 return 0;
13144 }
13145 _ACEOF
13146 if ac_fn_c_try_run "$LINENO"; then :
13147 ac_cv_func_fork_works=yes
13148 else
13149 ac_cv_func_fork_works=no
13150 fi
13151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13152 conftest.$ac_objext conftest.beam conftest.$ac_ext
13153 fi
13154
13155 fi
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13157 $as_echo "$ac_cv_func_fork_works" >&6; }
13158
13159 else
13160 ac_cv_func_fork_works=$ac_cv_func_fork
13161 fi
13162 if test "x$ac_cv_func_fork_works" = xcross; then
13163 case $host in
13164 *-*-amigaos* | *-*-msdosdjgpp*)
13165 # Override, as these systems have only a dummy fork() stub
13166 ac_cv_func_fork_works=no
13167 ;;
13168 *)
13169 ac_cv_func_fork_works=yes
13170 ;;
13171 esac
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13173 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13174 fi
13175 ac_cv_func_vfork_works=$ac_cv_func_vfork
13176 if test "x$ac_cv_func_vfork" = xyes; then
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13178 $as_echo_n "checking for working vfork... " >&6; }
13179 if test "${ac_cv_func_vfork_works+set}" = set; then :
13180 $as_echo_n "(cached) " >&6
13181 else
13182 if test "$cross_compiling" = yes; then :
13183 ac_cv_func_vfork_works=cross
13184 else
13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186 /* end confdefs.h. */
13187 /* Thanks to Paul Eggert for this test. */
13188 $ac_includes_default
13189 #include <sys/wait.h>
13190 #ifdef HAVE_VFORK_H
13191 # include <vfork.h>
13192 #endif
13193 /* On some sparc systems, changes by the child to local and incoming
13194 argument registers are propagated back to the parent. The compiler
13195 is told about this with #include <vfork.h>, but some compilers
13196 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13197 static variable whose address is put into a register that is
13198 clobbered by the vfork. */
13199 static void
13200 #ifdef __cplusplus
13201 sparc_address_test (int arg)
13202 # else
13203 sparc_address_test (arg) int arg;
13204 #endif
13205 {
13206 static pid_t child;
13207 if (!child) {
13208 child = vfork ();
13209 if (child < 0) {
13210 perror ("vfork");
13211 _exit(2);
13212 }
13213 if (!child) {
13214 arg = getpid();
13215 write(-1, "", 0);
13216 _exit (arg);
13217 }
13218 }
13219 }
13220
13221 int
13222 main ()
13223 {
13224 pid_t parent = getpid ();
13225 pid_t child;
13226
13227 sparc_address_test (0);
13228
13229 child = vfork ();
13230
13231 if (child == 0) {
13232 /* Here is another test for sparc vfork register problems. This
13233 test uses lots of local variables, at least as many local
13234 variables as main has allocated so far including compiler
13235 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13236 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13237 reuse the register of parent for one of the local variables,
13238 since it will think that parent can't possibly be used any more
13239 in this routine. Assigning to the local variable will thus
13240 munge parent in the parent process. */
13241 pid_t
13242 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13243 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13244 /* Convince the compiler that p..p7 are live; otherwise, it might
13245 use the same hardware register for all 8 local variables. */
13246 if (p != p1 || p != p2 || p != p3 || p != p4
13247 || p != p5 || p != p6 || p != p7)
13248 _exit(1);
13249
13250 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13251 from child file descriptors. If the child closes a descriptor
13252 before it execs or exits, this munges the parent's descriptor
13253 as well. Test for this by closing stdout in the child. */
13254 _exit(close(fileno(stdout)) != 0);
13255 } else {
13256 int status;
13257 struct stat st;
13258
13259 while (wait(&status) != child)
13260 ;
13261 return (
13262 /* Was there some problem with vforking? */
13263 child < 0
13264
13265 /* Did the child fail? (This shouldn't happen.) */
13266 || status
13267
13268 /* Did the vfork/compiler bug occur? */
13269 || parent != getpid()
13270
13271 /* Did the file descriptor bug occur? */
13272 || fstat(fileno(stdout), &st) != 0
13273 );
13274 }
13275 }
13276 _ACEOF
13277 if ac_fn_c_try_run "$LINENO"; then :
13278 ac_cv_func_vfork_works=yes
13279 else
13280 ac_cv_func_vfork_works=no
13281 fi
13282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13283 conftest.$ac_objext conftest.beam conftest.$ac_ext
13284 fi
13285
13286 fi
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13288 $as_echo "$ac_cv_func_vfork_works" >&6; }
13289
13290 fi;
13291 if test "x$ac_cv_func_fork_works" = xcross; then
13292 ac_cv_func_vfork_works=$ac_cv_func_vfork
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13294 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13295 fi
13296
13297 if test "x$ac_cv_func_vfork_works" = xyes; then
13298
13299 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13300
13301 else
13302
13303 $as_echo "#define vfork fork" >>confdefs.h
13304
13305 fi
13306 if test "x$ac_cv_func_fork_works" = xyes; then
13307
13308 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13309
13310 fi
13311
13312
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13314 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13315 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13316 $as_echo_n "(cached) " >&6
13317 else
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320 #include <langinfo.h>
13321 int
13322 main ()
13323 {
13324 char* cs = nl_langinfo(CODESET);
13325 ;
13326 return 0;
13327 }
13328 _ACEOF
13329 if ac_fn_c_try_link "$LINENO"; then :
13330 emacs_cv_langinfo_codeset=yes
13331 else
13332 emacs_cv_langinfo_codeset=no
13333 fi
13334 rm -f core conftest.err conftest.$ac_objext \
13335 conftest$ac_exeext conftest.$ac_ext
13336
13337 fi
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13339 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13340 if test $emacs_cv_langinfo_codeset = yes; then
13341
13342 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13343
13344 fi
13345
13346 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13347 if test "x$ac_cv_type_size_t" = x""yes; then :
13348
13349 cat >>confdefs.h <<_ACEOF
13350 #define HAVE_SIZE_T 1
13351 _ACEOF
13352
13353
13354 fi
13355
13356
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13358 $as_echo_n "checking for mbstate_t... " >&6; }
13359 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13360 $as_echo_n "(cached) " >&6
13361 else
13362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13363 /* end confdefs.h. */
13364 $ac_includes_default
13365 # include <wchar.h>
13366 int
13367 main ()
13368 {
13369 mbstate_t x; return sizeof x;
13370 ;
13371 return 0;
13372 }
13373 _ACEOF
13374 if ac_fn_c_try_compile "$LINENO"; then :
13375 ac_cv_type_mbstate_t=yes
13376 else
13377 ac_cv_type_mbstate_t=no
13378 fi
13379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13380 fi
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13382 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13383 if test $ac_cv_type_mbstate_t = yes; then
13384
13385 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13386
13387 else
13388
13389 $as_echo "#define mbstate_t int" >>confdefs.h
13390
13391 fi
13392
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13394 $as_echo_n "checking for C restrict keyword... " >&6; }
13395 if test "${emacs_cv_c_restrict+set}" = set; then :
13396 $as_echo_n "(cached) " >&6
13397 else
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13400 void fred (int *restrict x);
13401 int
13402 main ()
13403 {
13404
13405 ;
13406 return 0;
13407 }
13408 _ACEOF
13409 if ac_fn_c_try_compile "$LINENO"; then :
13410 emacs_cv_c_restrict=yes
13411 else
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414 void fred (int *__restrict x);
13415 int
13416 main ()
13417 {
13418
13419 ;
13420 return 0;
13421 }
13422 _ACEOF
13423 if ac_fn_c_try_compile "$LINENO"; then :
13424 emacs_cv_c_restrict=__restrict
13425 else
13426 emacs_cv_c_restrict=no
13427 fi
13428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13429 fi
13430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13431 fi
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13433 $as_echo "$emacs_cv_c_restrict" >&6; }
13434 case "$emacs_cv_c_restrict" in
13435 yes) emacs_restrict=restrict;;
13436 no) emacs_restrict="";;
13437 *) emacs_restrict="$emacs_cv_c_restrict";;
13438 esac
13439 if test "$emacs_restrict" != __restrict; then
13440
13441 cat >>confdefs.h <<_ACEOF
13442 #define __restrict $emacs_restrict
13443 _ACEOF
13444
13445 fi
13446
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13448 $as_echo_n "checking for C restricted array declarations... " >&6; }
13449 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13450 $as_echo_n "(cached) " >&6
13451 else
13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h. */
13454 void fred (int x[__restrict]);
13455 int
13456 main ()
13457 {
13458
13459 ;
13460 return 0;
13461 }
13462 _ACEOF
13463 if ac_fn_c_try_compile "$LINENO"; then :
13464 emacs_cv_c_restrict_arr=yes
13465 else
13466 emacs_cv_c_restrict_arr=no
13467 fi
13468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13469 fi
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13471 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13472 if test "$emacs_cv_c_restrict_arr" = yes; then
13473
13474 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13475
13476 fi
13477
13478
13479
13480 # Set up the CFLAGS for real compilation, so we can substitute it.
13481 CFLAGS="$REAL_CFLAGS"
13482 CPPFLAGS="$REAL_CPPFLAGS"
13483
13484 #### Find out which version of Emacs this is.
13485 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13486 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13487 if test x"${version}" = x; then
13488 as_fn_error "can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5
13489 fi
13490 if test x"${version}" != x"$PACKAGE_VERSION"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13492 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13493 fi
13494
13495 ### Specify what sort of things we'll be editing into Makefile and config.h.
13496 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524 ## Used in lwlib/Makefile.in.
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541 cat >>confdefs.h <<_ACEOF
13542 #define EMACS_CONFIGURATION "${canonical}"
13543 _ACEOF
13544
13545
13546 cat >>confdefs.h <<_ACEOF
13547 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13548 _ACEOF
13549
13550
13551 cat >>confdefs.h <<_ACEOF
13552 #define config_machfile "${machfile}"
13553 _ACEOF
13554
13555
13556 cat >>confdefs.h <<_ACEOF
13557 #define config_opsysfile "${opsysfile}"
13558 _ACEOF
13559
13560
13561 cat >>confdefs.h <<_ACEOF
13562 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
13563 _ACEOF
13564
13565
13566 cat >>confdefs.h <<_ACEOF
13567 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
13568 _ACEOF
13569
13570
13571 XMENU_OBJ=
13572 XOBJ=
13573 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13574
13575 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13576
13577 XMENU_OBJ=xmenu.o
13578 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
13579 fi
13580
13581
13582
13583 WIDGET_OBJ=
13584 MOTIF_LIBW=
13585 if test "${USE_X_TOOLKIT}" != "none" ; then
13586 WIDGET_OBJ=widget.o
13587
13588 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13589
13590 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13591
13592 $as_echo "#define USE_LUCID 1" >>confdefs.h
13593
13594 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13595
13596 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13597
13598 MOTIF_LIBW=-lXm
13599 case "$opsys" in
13600 gnu-linux)
13601 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
13602 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
13603 ;;
13604
13605 unixware)
13606 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
13607 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
13608 MOTIF_LIBW="MOTIF_LIBW -lXimp"
13609 ;;
13610
13611 aix4-2)
13612 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
13613 MOTIF_LIBW="$MOTIF_LIBW -li18n"
13614 ;;
13615 esac
13616 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
13617 fi
13618 fi
13619
13620
13621 TOOLKIT_LIBW=
13622 case "$USE_X_TOOLKIT" in
13623 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
13624 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
13625 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
13626 esac
13627
13628
13629 if test "$USE_X_TOOLKIT" = "none"; then
13630 LIBXT_OTHER="\$(LIBXSM)"
13631 else
13632 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
13633 fi
13634
13635
13636 ## The X Menu stuff is present in the X10 distribution, but missing
13637 ## from X11. If we have X10, just use the installed library;
13638 ## otherwise, use our own copy.
13639 if test "${HAVE_X11}" = "yes" ; then
13640
13641 $as_echo "#define HAVE_X11 1" >>confdefs.h
13642
13643
13644 if test "$USE_X_TOOLKIT" = "none"; then
13645 OLDXMENU="\${oldXMenudir}libXMenu11.a"
13646 else
13647 OLDXMENU="\${lwlibdir}liblw.a"
13648 fi
13649 LIBXMENU="\$(OLDXMENU)"
13650 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
13651 else
13652 OLDXMENU=
13653 LIBXMENU="-lXMenu"
13654 LIBX_OTHER=
13655 fi
13656
13657 if test "$HAVE_GTK" = "yes"; then
13658 OLDXMENU=
13659 LIBXMENU=
13660 fi
13661
13662
13663
13664
13665
13666 if test "${HAVE_MENUS}" = "yes" ; then
13667
13668 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
13669
13670 fi
13671 if test "${GNU_MALLOC}" = "yes" ; then
13672
13673 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
13674
13675 fi
13676 if test "${REL_ALLOC}" = "yes" ; then
13677
13678 $as_echo "#define REL_ALLOC 1" >>confdefs.h
13679
13680 fi
13681
13682
13683 if test "$opsys" = "cygwin"; then
13684 CYGWIN_OBJ="sheap.o"
13685 ## Cygwin differs because of its unexec().
13686 PRE_ALLOC_OBJ=
13687 POST_ALLOC_OBJ="lastfile.o vm-limit.o"
13688 else
13689 CYGWIN_OBJ=
13690 PRE_ALLOC_OBJ=lastfile.o
13691 POST_ALLOC_OBJ="\$(vmlimitobj)"
13692 fi
13693
13694
13695
13696
13697
13698 case "$opsys" in
13699 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
13700
13701 darwin)
13702 ## The -headerpad option tells ld (see man page) to leave room at the
13703 ## end of the header for adding load commands. Needed for dumping.
13704 ## 0x690 is the total size of 30 segment load commands (at 56
13705 ## each); under Cocoa 31 commands are required.
13706 if test "$HAVE_NS" = "yes"; then
13707 libs_nsgui="-framework AppKit"
13708 headerpad_extra=6C8
13709 else
13710 libs_nsgui=
13711 headerpad_extra=690
13712 fi
13713 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
13714 ;;
13715
13716 *) LD_SWITCH_SYSTEM_TEMACS= ;;
13717 esac
13718
13719
13720
13721
13722
13723 #### Report on what we decided to do.
13724 #### Report GTK as a toolkit, even if it doesn't use Xt.
13725 #### It makes printing result more understandable as using GTK sets
13726 #### toolkit_scroll_bars to yes by default.
13727 if test "${HAVE_GTK}" = "yes"; then
13728 USE_X_TOOLKIT=GTK
13729 fi
13730
13731 echo "
13732 Configured for \`${canonical}'.
13733
13734 Where should the build process find the source code? ${srcdir}
13735 What operating system and machine description files should Emacs use?
13736 \`${opsysfile}' and \`${machfile}'
13737 What compiler should emacs be built with? ${CC} ${CFLAGS}
13738 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13739 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
13740 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
13741 What window system should Emacs use? ${window_system}
13742 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
13743
13744 if test -n "${x_includes}"; then
13745 echo " Where do we find X Windows header files? ${x_includes}"
13746 else
13747 echo " Where do we find X Windows header files? Standard dirs"
13748 fi
13749 if test -n "${x_libraries}"; then
13750 echo " Where do we find X Windows libraries? ${x_libraries}"
13751 else
13752 echo " Where do we find X Windows libraries? Standard dirs"
13753 fi
13754
13755 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
13756 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
13757 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
13758 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
13759 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
13760 echo " Does Emacs use -lpng? ${HAVE_PNG}"
13761 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
13762 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
13763 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
13764 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
13765 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
13766
13767 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
13768 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
13769 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
13770 echo " Does Emacs use -lxft? ${HAVE_XFT}"
13771
13772 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
13773 echo
13774
13775 if test $USE_XASSERTS = yes; then
13776 echo " Compiling with asserts turned on."
13777 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
13778 fi
13779
13780 echo
13781
13782 if test "$HAVE_NS" = "yes"; then
13783 echo
13784 echo "You must run \"make install\" in order to test the built application.
13785 The installed application will go to nextstep/Emacs.app and can be
13786 run or moved from there."
13787 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
13788 echo "The application will be fully self-contained."
13789 else
13790 echo "The lisp resources for the application will be installed under ${prefix}.
13791 You may need to run \"make install\" with sudo. The application will fail
13792 to run if these resources are not installed."
13793 fi
13794 echo
13795 fi
13796
13797 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
13798 echo "D-Bus integration has been tested for GNU/Linux only."
13799 echo
13800 fi
13801
13802
13803 # Remove any trailing slashes in these variables.
13804 test "${prefix}" != NONE &&
13805 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
13806 test "${exec_prefix}" != NONE &&
13807 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
13808
13809 # Now get this: Some word that is part of the ${srcdir} directory name
13810 # or the ${configuration} value might, just might, happen to be an
13811 # identifier like `sun4' or `i386' or something, and be predefined by
13812 # the C preprocessor to some helpful value like 1, or maybe the empty
13813 # string. Needless to say consequent macro substitutions are less
13814 # than conducive to the makefile finding the correct directory.
13815 cpp_undefs="`echo $srcdir $configuration $canonical unix |
13816 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13817 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
13818
13819 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
13820 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
13821 ## from Makefile.c can correctly provide the arg `-traditional' to the
13822 ## C preprocessor.
13823
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13826 yes..yes
13827 _ACEOF
13828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13829 $EGREP "yes..yes" >/dev/null 2>&1; then :
13830 CPP_NEED_TRADITIONAL=no
13831 else
13832 CPP_NEED_TRADITIONAL=yes
13833 fi
13834 rm -f conftest*
13835
13836
13837 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in 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"
13838
13839 ac_config_commands="$ac_config_commands default"
13840
13841 cat >confcache <<\_ACEOF
13842 # This file is a shell script that caches the results of configure
13843 # tests run on this system so they can be shared between configure
13844 # scripts and configure runs, see configure's option --config-cache.
13845 # It is not useful on other systems. If it contains results you don't
13846 # want to keep, you may remove or edit it.
13847 #
13848 # config.status only pays attention to the cache file if you give it
13849 # the --recheck option to rerun configure.
13850 #
13851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13853 # following values.
13854
13855 _ACEOF
13856
13857 # The following way of writing the cache mishandles newlines in values,
13858 # but we know of no workaround that is simple, portable, and efficient.
13859 # So, we kill variables containing newlines.
13860 # Ultrix sh set writes to stderr and can't be redirected directly,
13861 # and sets the high bit in the cache file unless we assign to the vars.
13862 (
13863 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13864 eval ac_val=\$$ac_var
13865 case $ac_val in #(
13866 *${as_nl}*)
13867 case $ac_var in #(
13868 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13869 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13870 esac
13871 case $ac_var in #(
13872 _ | IFS | as_nl) ;; #(
13873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13874 *) { eval $ac_var=; unset $ac_var;} ;;
13875 esac ;;
13876 esac
13877 done
13878
13879 (set) 2>&1 |
13880 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13881 *${as_nl}ac_space=\ *)
13882 # `set' does not quote correctly, so add quotes: double-quote
13883 # substitution turns \\\\ into \\, and sed turns \\ into \.
13884 sed -n \
13885 "s/'/'\\\\''/g;
13886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13887 ;; #(
13888 *)
13889 # `set' quotes correctly as required by POSIX, so do not add quotes.
13890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13891 ;;
13892 esac |
13893 sort
13894 ) |
13895 sed '
13896 /^ac_cv_env_/b end
13897 t clear
13898 :clear
13899 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13900 t end
13901 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13902 :end' >>confcache
13903 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13904 if test -w "$cache_file"; then
13905 test "x$cache_file" != "x/dev/null" &&
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13907 $as_echo "$as_me: updating cache $cache_file" >&6;}
13908 cat confcache >$cache_file
13909 else
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13911 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13912 fi
13913 fi
13914 rm -f confcache
13915
13916 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13917 # Let make expand exec_prefix.
13918 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13919
13920 DEFS=-DHAVE_CONFIG_H
13921
13922 ac_libobjs=
13923 ac_ltlibobjs=
13924 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13925 # 1. Remove the extension, and $U if already installed.
13926 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13927 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13928 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13929 # will be set to the directory where LIBOBJS objects are built.
13930 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13931 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13932 done
13933 LIBOBJS=$ac_libobjs
13934
13935 LTLIBOBJS=$ac_ltlibobjs
13936
13937
13938
13939 : ${CONFIG_STATUS=./config.status}
13940 ac_write_fail=0
13941 ac_clean_files_save=$ac_clean_files
13942 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13944 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13945 as_write_fail=0
13946 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13947 #! $SHELL
13948 # Generated by $as_me.
13949 # Run this file to recreate the current configuration.
13950 # Compiler output produced by configure, useful for debugging
13951 # configure, is in config.log if it exists.
13952
13953 debug=false
13954 ac_cs_recheck=false
13955 ac_cs_silent=false
13956
13957 SHELL=\${CONFIG_SHELL-$SHELL}
13958 export SHELL
13959 _ASEOF
13960 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13961 ## -------------------- ##
13962 ## M4sh Initialization. ##
13963 ## -------------------- ##
13964
13965 # Be more Bourne compatible
13966 DUALCASE=1; export DUALCASE # for MKS sh
13967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13968 emulate sh
13969 NULLCMD=:
13970 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13971 # is contrary to our usage. Disable this feature.
13972 alias -g '${1+"$@"}'='"$@"'
13973 setopt NO_GLOB_SUBST
13974 else
13975 case `(set -o) 2>/dev/null` in #(
13976 *posix*) :
13977 set -o posix ;; #(
13978 *) :
13979 ;;
13980 esac
13981 fi
13982
13983
13984 as_nl='
13985 '
13986 export as_nl
13987 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13988 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13989 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13990 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13991 # Prefer a ksh shell builtin over an external printf program on Solaris,
13992 # but without wasting forks for bash or zsh.
13993 if test -z "$BASH_VERSION$ZSH_VERSION" \
13994 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13995 as_echo='print -r --'
13996 as_echo_n='print -rn --'
13997 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13998 as_echo='printf %s\n'
13999 as_echo_n='printf %s'
14000 else
14001 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14002 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14003 as_echo_n='/usr/ucb/echo -n'
14004 else
14005 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14006 as_echo_n_body='eval
14007 arg=$1;
14008 case $arg in #(
14009 *"$as_nl"*)
14010 expr "X$arg" : "X\\(.*\\)$as_nl";
14011 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14012 esac;
14013 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14014 '
14015 export as_echo_n_body
14016 as_echo_n='sh -c $as_echo_n_body as_echo'
14017 fi
14018 export as_echo_body
14019 as_echo='sh -c $as_echo_body as_echo'
14020 fi
14021
14022 # The user is always right.
14023 if test "${PATH_SEPARATOR+set}" != set; then
14024 PATH_SEPARATOR=:
14025 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14026 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14027 PATH_SEPARATOR=';'
14028 }
14029 fi
14030
14031
14032 # IFS
14033 # We need space, tab and new line, in precisely that order. Quoting is
14034 # there to prevent editors from complaining about space-tab.
14035 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14036 # splitting by setting IFS to empty value.)
14037 IFS=" "" $as_nl"
14038
14039 # Find who we are. Look in the path if we contain no directory separator.
14040 case $0 in #((
14041 *[\\/]* ) as_myself=$0 ;;
14042 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043 for as_dir in $PATH
14044 do
14045 IFS=$as_save_IFS
14046 test -z "$as_dir" && as_dir=.
14047 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14048 done
14049 IFS=$as_save_IFS
14050
14051 ;;
14052 esac
14053 # We did not find ourselves, most probably we were run as `sh COMMAND'
14054 # in which case we are not to be found in the path.
14055 if test "x$as_myself" = x; then
14056 as_myself=$0
14057 fi
14058 if test ! -f "$as_myself"; then
14059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14060 exit 1
14061 fi
14062
14063 # Unset variables that we do not need and which cause bugs (e.g. in
14064 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14065 # suppresses any "Segmentation fault" message there. '((' could
14066 # trigger a bug in pdksh 5.2.14.
14067 for as_var in BASH_ENV ENV MAIL MAILPATH
14068 do eval test x\${$as_var+set} = xset \
14069 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14070 done
14071 PS1='$ '
14072 PS2='> '
14073 PS4='+ '
14074
14075 # NLS nuisances.
14076 LC_ALL=C
14077 export LC_ALL
14078 LANGUAGE=C
14079 export LANGUAGE
14080
14081 # CDPATH.
14082 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14083
14084
14085 # as_fn_error ERROR [LINENO LOG_FD]
14086 # ---------------------------------
14087 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14088 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14089 # script with status $?, using 1 if that was 0.
14090 as_fn_error ()
14091 {
14092 as_status=$?; test $as_status -eq 0 && as_status=1
14093 if test "$3"; then
14094 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14095 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14096 fi
14097 $as_echo "$as_me: error: $1" >&2
14098 as_fn_exit $as_status
14099 } # as_fn_error
14100
14101
14102 # as_fn_set_status STATUS
14103 # -----------------------
14104 # Set $? to STATUS, without forking.
14105 as_fn_set_status ()
14106 {
14107 return $1
14108 } # as_fn_set_status
14109
14110 # as_fn_exit STATUS
14111 # -----------------
14112 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14113 as_fn_exit ()
14114 {
14115 set +e
14116 as_fn_set_status $1
14117 exit $1
14118 } # as_fn_exit
14119
14120 # as_fn_unset VAR
14121 # ---------------
14122 # Portably unset VAR.
14123 as_fn_unset ()
14124 {
14125 { eval $1=; unset $1;}
14126 }
14127 as_unset=as_fn_unset
14128 # as_fn_append VAR VALUE
14129 # ----------------------
14130 # Append the text in VALUE to the end of the definition contained in VAR. Take
14131 # advantage of any shell optimizations that allow amortized linear growth over
14132 # repeated appends, instead of the typical quadratic growth present in naive
14133 # implementations.
14134 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14135 eval 'as_fn_append ()
14136 {
14137 eval $1+=\$2
14138 }'
14139 else
14140 as_fn_append ()
14141 {
14142 eval $1=\$$1\$2
14143 }
14144 fi # as_fn_append
14145
14146 # as_fn_arith ARG...
14147 # ------------------
14148 # Perform arithmetic evaluation on the ARGs, and store the result in the
14149 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14150 # must be portable across $(()) and expr.
14151 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14152 eval 'as_fn_arith ()
14153 {
14154 as_val=$(( $* ))
14155 }'
14156 else
14157 as_fn_arith ()
14158 {
14159 as_val=`expr "$@" || test $? -eq 1`
14160 }
14161 fi # as_fn_arith
14162
14163
14164 if expr a : '\(a\)' >/dev/null 2>&1 &&
14165 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14166 as_expr=expr
14167 else
14168 as_expr=false
14169 fi
14170
14171 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14172 as_basename=basename
14173 else
14174 as_basename=false
14175 fi
14176
14177 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14178 as_dirname=dirname
14179 else
14180 as_dirname=false
14181 fi
14182
14183 as_me=`$as_basename -- "$0" ||
14184 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14185 X"$0" : 'X\(//\)$' \| \
14186 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14187 $as_echo X/"$0" |
14188 sed '/^.*\/\([^/][^/]*\)\/*$/{
14189 s//\1/
14190 q
14191 }
14192 /^X\/\(\/\/\)$/{
14193 s//\1/
14194 q
14195 }
14196 /^X\/\(\/\).*/{
14197 s//\1/
14198 q
14199 }
14200 s/.*/./; q'`
14201
14202 # Avoid depending upon Character Ranges.
14203 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14204 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14205 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14206 as_cr_digits='0123456789'
14207 as_cr_alnum=$as_cr_Letters$as_cr_digits
14208
14209 ECHO_C= ECHO_N= ECHO_T=
14210 case `echo -n x` in #(((((
14211 -n*)
14212 case `echo 'xy\c'` in
14213 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14214 xy) ECHO_C='\c';;
14215 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14216 ECHO_T=' ';;
14217 esac;;
14218 *)
14219 ECHO_N='-n';;
14220 esac
14221
14222 rm -f conf$$ conf$$.exe conf$$.file
14223 if test -d conf$$.dir; then
14224 rm -f conf$$.dir/conf$$.file
14225 else
14226 rm -f conf$$.dir
14227 mkdir conf$$.dir 2>/dev/null
14228 fi
14229 if (echo >conf$$.file) 2>/dev/null; then
14230 if ln -s conf$$.file conf$$ 2>/dev/null; then
14231 as_ln_s='ln -s'
14232 # ... but there are two gotchas:
14233 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14234 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14235 # In both cases, we have to default to `cp -p'.
14236 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14237 as_ln_s='cp -p'
14238 elif ln conf$$.file conf$$ 2>/dev/null; then
14239 as_ln_s=ln
14240 else
14241 as_ln_s='cp -p'
14242 fi
14243 else
14244 as_ln_s='cp -p'
14245 fi
14246 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14247 rmdir conf$$.dir 2>/dev/null
14248
14249
14250 # as_fn_mkdir_p
14251 # -------------
14252 # Create "$as_dir" as a directory, including parents if necessary.
14253 as_fn_mkdir_p ()
14254 {
14255
14256 case $as_dir in #(
14257 -*) as_dir=./$as_dir;;
14258 esac
14259 test -d "$as_dir" || eval $as_mkdir_p || {
14260 as_dirs=
14261 while :; do
14262 case $as_dir in #(
14263 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14264 *) as_qdir=$as_dir;;
14265 esac
14266 as_dirs="'$as_qdir' $as_dirs"
14267 as_dir=`$as_dirname -- "$as_dir" ||
14268 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14269 X"$as_dir" : 'X\(//\)[^/]' \| \
14270 X"$as_dir" : 'X\(//\)$' \| \
14271 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14272 $as_echo X"$as_dir" |
14273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14274 s//\1/
14275 q
14276 }
14277 /^X\(\/\/\)[^/].*/{
14278 s//\1/
14279 q
14280 }
14281 /^X\(\/\/\)$/{
14282 s//\1/
14283 q
14284 }
14285 /^X\(\/\).*/{
14286 s//\1/
14287 q
14288 }
14289 s/.*/./; q'`
14290 test -d "$as_dir" && break
14291 done
14292 test -z "$as_dirs" || eval "mkdir $as_dirs"
14293 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14294
14295
14296 } # as_fn_mkdir_p
14297 if mkdir -p . 2>/dev/null; then
14298 as_mkdir_p='mkdir -p "$as_dir"'
14299 else
14300 test -d ./-p && rmdir ./-p
14301 as_mkdir_p=false
14302 fi
14303
14304 if test -x / >/dev/null 2>&1; then
14305 as_test_x='test -x'
14306 else
14307 if ls -dL / >/dev/null 2>&1; then
14308 as_ls_L_option=L
14309 else
14310 as_ls_L_option=
14311 fi
14312 as_test_x='
14313 eval sh -c '\''
14314 if test -d "$1"; then
14315 test -d "$1/.";
14316 else
14317 case $1 in #(
14318 -*)set "./$1";;
14319 esac;
14320 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14321 ???[sx]*):;;*)false;;esac;fi
14322 '\'' sh
14323 '
14324 fi
14325 as_executable_p=$as_test_x
14326
14327 # Sed expression to map a string onto a valid CPP name.
14328 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14329
14330 # Sed expression to map a string onto a valid variable name.
14331 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14332
14333
14334 exec 6>&1
14335 ## ----------------------------------- ##
14336 ## Main body of $CONFIG_STATUS script. ##
14337 ## ----------------------------------- ##
14338 _ASEOF
14339 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14340
14341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14342 # Save the log message, to keep $0 and so on meaningful, and to
14343 # report actual input values of CONFIG_FILES etc. instead of their
14344 # values after options handling.
14345 ac_log="
14346 This file was extended by emacs $as_me 24.0.50, which was
14347 generated by GNU Autoconf 2.65. Invocation command line was
14348
14349 CONFIG_FILES = $CONFIG_FILES
14350 CONFIG_HEADERS = $CONFIG_HEADERS
14351 CONFIG_LINKS = $CONFIG_LINKS
14352 CONFIG_COMMANDS = $CONFIG_COMMANDS
14353 $ $0 $@
14354
14355 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14356 "
14357
14358 _ACEOF
14359
14360 case $ac_config_files in *"
14361 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14362 esac
14363
14364 case $ac_config_headers in *"
14365 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14366 esac
14367
14368
14369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14370 # Files that config.status was made for.
14371 config_files="$ac_config_files"
14372 config_headers="$ac_config_headers"
14373 config_commands="$ac_config_commands"
14374
14375 _ACEOF
14376
14377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14378 ac_cs_usage="\
14379 \`$as_me' instantiates files and other configuration actions
14380 from templates according to the current configuration. Unless the files
14381 and actions are specified as TAGs, all are instantiated by default.
14382
14383 Usage: $0 [OPTION]... [TAG]...
14384
14385 -h, --help print this help, then exit
14386 -V, --version print version number and configuration settings, then exit
14387 --config print configuration, then exit
14388 -q, --quiet, --silent
14389 do not print progress messages
14390 -d, --debug don't remove temporary files
14391 --recheck update $as_me by reconfiguring in the same conditions
14392 --file=FILE[:TEMPLATE]
14393 instantiate the configuration file FILE
14394 --header=FILE[:TEMPLATE]
14395 instantiate the configuration header FILE
14396
14397 Configuration files:
14398 $config_files
14399
14400 Configuration headers:
14401 $config_headers
14402
14403 Configuration commands:
14404 $config_commands
14405
14406 Report bugs to the package provider."
14407
14408 _ACEOF
14409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14410 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14411 ac_cs_version="\\
14412 emacs config.status 24.0.50
14413 configured by $0, generated by GNU Autoconf 2.65,
14414 with options \\"\$ac_cs_config\\"
14415
14416 Copyright (C) 2009 Free Software Foundation, Inc.
14417 This config.status script is free software; the Free Software Foundation
14418 gives unlimited permission to copy, distribute and modify it."
14419
14420 ac_pwd='$ac_pwd'
14421 srcdir='$srcdir'
14422 INSTALL='$INSTALL'
14423 test -n "\$AWK" || AWK=awk
14424 _ACEOF
14425
14426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14427 # The default lists apply if the user does not specify any file.
14428 ac_need_defaults=:
14429 while test $# != 0
14430 do
14431 case $1 in
14432 --*=*)
14433 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14434 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14435 ac_shift=:
14436 ;;
14437 *)
14438 ac_option=$1
14439 ac_optarg=$2
14440 ac_shift=shift
14441 ;;
14442 esac
14443
14444 case $ac_option in
14445 # Handling of the options.
14446 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14447 ac_cs_recheck=: ;;
14448 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14449 $as_echo "$ac_cs_version"; exit ;;
14450 --config | --confi | --conf | --con | --co | --c )
14451 $as_echo "$ac_cs_config"; exit ;;
14452 --debug | --debu | --deb | --de | --d | -d )
14453 debug=: ;;
14454 --file | --fil | --fi | --f )
14455 $ac_shift
14456 case $ac_optarg in
14457 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14458 esac
14459 as_fn_append CONFIG_FILES " '$ac_optarg'"
14460 ac_need_defaults=false;;
14461 --header | --heade | --head | --hea )
14462 $ac_shift
14463 case $ac_optarg in
14464 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14465 esac
14466 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14467 ac_need_defaults=false;;
14468 --he | --h)
14469 # Conflict between --help and --header
14470 as_fn_error "ambiguous option: \`$1'
14471 Try \`$0 --help' for more information.";;
14472 --help | --hel | -h )
14473 $as_echo "$ac_cs_usage"; exit ;;
14474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14475 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14476 ac_cs_silent=: ;;
14477
14478 # This is an error.
14479 -*) as_fn_error "unrecognized option: \`$1'
14480 Try \`$0 --help' for more information." ;;
14481
14482 *) as_fn_append ac_config_targets " $1"
14483 ac_need_defaults=false ;;
14484
14485 esac
14486 shift
14487 done
14488
14489 ac_configure_extra_args=
14490
14491 if $ac_cs_silent; then
14492 exec 6>/dev/null
14493 ac_configure_extra_args="$ac_configure_extra_args --silent"
14494 fi
14495
14496 _ACEOF
14497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14498 if \$ac_cs_recheck; then
14499 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14500 shift
14501 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14502 CONFIG_SHELL='$SHELL'
14503 export CONFIG_SHELL
14504 exec "\$@"
14505 fi
14506
14507 _ACEOF
14508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14509 exec 5>>config.log
14510 {
14511 echo
14512 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14513 ## Running $as_me. ##
14514 _ASBOX
14515 $as_echo "$ac_log"
14516 } >&5
14517
14518 _ACEOF
14519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14520 #
14521 # INIT-COMMANDS
14522 #
14523 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
14524
14525 _ACEOF
14526
14527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14528
14529 # Handling of arguments.
14530 for ac_config_target in $ac_config_targets
14531 do
14532 case $ac_config_target in
14533 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
14534 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14535 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
14536 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
14537 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
14538 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
14539 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
14540 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
14541 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
14542 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
14543 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
14544 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
14545 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14546
14547 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14548 esac
14549 done
14550
14551
14552 # If the user did not use the arguments to specify the items to instantiate,
14553 # then the envvar interface is used. Set only those that are not.
14554 # We use the long form for the default assignment because of an extremely
14555 # bizarre bug on SunOS 4.1.3.
14556 if $ac_need_defaults; then
14557 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14558 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14559 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14560 fi
14561
14562 # Have a temporary directory for convenience. Make it in the build tree
14563 # simply because there is no reason against having it here, and in addition,
14564 # creating and moving files from /tmp can sometimes cause problems.
14565 # Hook for its removal unless debugging.
14566 # Note that there is a small window in which the directory will not be cleaned:
14567 # after its creation but before its name has been assigned to `$tmp'.
14568 $debug ||
14569 {
14570 tmp=
14571 trap 'exit_status=$?
14572 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14573 ' 0
14574 trap 'as_fn_exit 1' 1 2 13 15
14575 }
14576 # Create a (secure) tmp directory for tmp files.
14577
14578 {
14579 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14580 test -n "$tmp" && test -d "$tmp"
14581 } ||
14582 {
14583 tmp=./conf$$-$RANDOM
14584 (umask 077 && mkdir "$tmp")
14585 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14586
14587 # Set up the scripts for CONFIG_FILES section.
14588 # No need to generate them if there are no CONFIG_FILES.
14589 # This happens for instance with `./config.status config.h'.
14590 if test -n "$CONFIG_FILES"; then
14591
14592
14593 ac_cr=`echo X | tr X '\015'`
14594 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14595 # But we know of no other shell where ac_cr would be empty at this
14596 # point, so we can use a bashism as a fallback.
14597 if test "x$ac_cr" = x; then
14598 eval ac_cr=\$\'\\r\'
14599 fi
14600 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14601 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14602 ac_cs_awk_cr='\r'
14603 else
14604 ac_cs_awk_cr=$ac_cr
14605 fi
14606
14607 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14608 _ACEOF
14609
14610
14611 {
14612 echo "cat >conf$$subs.awk <<_ACEOF" &&
14613 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14614 echo "_ACEOF"
14615 } >conf$$subs.sh ||
14616 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14617 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14618 ac_delim='%!_!# '
14619 for ac_last_try in false false false false false :; do
14620 . ./conf$$subs.sh ||
14621 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14622
14623 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14624 if test $ac_delim_n = $ac_delim_num; then
14625 break
14626 elif $ac_last_try; then
14627 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14628 else
14629 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14630 fi
14631 done
14632 rm -f conf$$subs.sh
14633
14634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14635 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14636 _ACEOF
14637 sed -n '
14638 h
14639 s/^/S["/; s/!.*/"]=/
14640 p
14641 g
14642 s/^[^!]*!//
14643 :repl
14644 t repl
14645 s/'"$ac_delim"'$//
14646 t delim
14647 :nl
14648 h
14649 s/\(.\{148\}\)..*/\1/
14650 t more1
14651 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14652 p
14653 n
14654 b repl
14655 :more1
14656 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14657 p
14658 g
14659 s/.\{148\}//
14660 t nl
14661 :delim
14662 h
14663 s/\(.\{148\}\)..*/\1/
14664 t more2
14665 s/["\\]/\\&/g; s/^/"/; s/$/"/
14666 p
14667 b
14668 :more2
14669 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14670 p
14671 g
14672 s/.\{148\}//
14673 t delim
14674 ' <conf$$subs.awk | sed '
14675 /^[^""]/{
14676 N
14677 s/\n//
14678 }
14679 ' >>$CONFIG_STATUS || ac_write_fail=1
14680 rm -f conf$$subs.awk
14681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14682 _ACAWK
14683 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14684 for (key in S) S_is_set[key] = 1
14685 FS = "\a"
14686
14687 }
14688 {
14689 line = $ 0
14690 nfields = split(line, field, "@")
14691 substed = 0
14692 len = length(field[1])
14693 for (i = 2; i < nfields; i++) {
14694 key = field[i]
14695 keylen = length(key)
14696 if (S_is_set[key]) {
14697 value = S[key]
14698 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14699 len += length(value) + length(field[++i])
14700 substed = 1
14701 } else
14702 len += 1 + keylen
14703 }
14704
14705 print line
14706 }
14707
14708 _ACAWK
14709 _ACEOF
14710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14711 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14712 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14713 else
14714 cat
14715 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14716 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14717 _ACEOF
14718
14719 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14720 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14721 # trailing colons and then remove the whole line if VPATH becomes empty
14722 # (actually we leave an empty line to preserve line numbers).
14723 if test "x$srcdir" = x.; then
14724 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14725 s/:*\$(srcdir):*/:/
14726 s/:*\${srcdir}:*/:/
14727 s/:*@srcdir@:*/:/
14728 s/^\([^=]*=[ ]*\):*/\1/
14729 s/:*$//
14730 s/^[^=]*=[ ]*$//
14731 }'
14732 fi
14733
14734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14735 fi # test -n "$CONFIG_FILES"
14736
14737 # Set up the scripts for CONFIG_HEADERS section.
14738 # No need to generate them if there are no CONFIG_HEADERS.
14739 # This happens for instance with `./config.status Makefile'.
14740 if test -n "$CONFIG_HEADERS"; then
14741 cat >"$tmp/defines.awk" <<\_ACAWK ||
14742 BEGIN {
14743 _ACEOF
14744
14745 # Transform confdefs.h into an awk script `defines.awk', embedded as
14746 # here-document in config.status, that substitutes the proper values into
14747 # config.h.in to produce config.h.
14748
14749 # Create a delimiter string that does not exist in confdefs.h, to ease
14750 # handling of long lines.
14751 ac_delim='%!_!# '
14752 for ac_last_try in false false :; do
14753 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14754 if test -z "$ac_t"; then
14755 break
14756 elif $ac_last_try; then
14757 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14758 else
14759 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14760 fi
14761 done
14762
14763 # For the awk script, D is an array of macro values keyed by name,
14764 # likewise P contains macro parameters if any. Preserve backslash
14765 # newline sequences.
14766
14767 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14768 sed -n '
14769 s/.\{148\}/&'"$ac_delim"'/g
14770 t rset
14771 :rset
14772 s/^[ ]*#[ ]*define[ ][ ]*/ /
14773 t def
14774 d
14775 :def
14776 s/\\$//
14777 t bsnl
14778 s/["\\]/\\&/g
14779 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14780 D["\1"]=" \3"/p
14781 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14782 d
14783 :bsnl
14784 s/["\\]/\\&/g
14785 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14786 D["\1"]=" \3\\\\\\n"\\/p
14787 t cont
14788 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14789 t cont
14790 d
14791 :cont
14792 n
14793 s/.\{148\}/&'"$ac_delim"'/g
14794 t clear
14795 :clear
14796 s/\\$//
14797 t bsnlc
14798 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14799 d
14800 :bsnlc
14801 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14802 b cont
14803 ' <confdefs.h | sed '
14804 s/'"$ac_delim"'/"\\\
14805 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14806
14807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14808 for (key in D) D_is_set[key] = 1
14809 FS = "\a"
14810 }
14811 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14812 line = \$ 0
14813 split(line, arg, " ")
14814 if (arg[1] == "#") {
14815 defundef = arg[2]
14816 mac1 = arg[3]
14817 } else {
14818 defundef = substr(arg[1], 2)
14819 mac1 = arg[2]
14820 }
14821 split(mac1, mac2, "(") #)
14822 macro = mac2[1]
14823 prefix = substr(line, 1, index(line, defundef) - 1)
14824 if (D_is_set[macro]) {
14825 # Preserve the white space surrounding the "#".
14826 print prefix "define", macro P[macro] D[macro]
14827 next
14828 } else {
14829 # Replace #undef with comments. This is necessary, for example,
14830 # in the case of _POSIX_SOURCE, which is predefined and required
14831 # on some systems where configure will not decide to define it.
14832 if (defundef == "undef") {
14833 print "/*", prefix defundef, macro, "*/"
14834 next
14835 }
14836 }
14837 }
14838 { print }
14839 _ACAWK
14840 _ACEOF
14841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14842 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14843 fi # test -n "$CONFIG_HEADERS"
14844
14845
14846 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14847 shift
14848 for ac_tag
14849 do
14850 case $ac_tag in
14851 :[FHLC]) ac_mode=$ac_tag; continue;;
14852 esac
14853 case $ac_mode$ac_tag in
14854 :[FHL]*:*);;
14855 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14856 :[FH]-) ac_tag=-:-;;
14857 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14858 esac
14859 ac_save_IFS=$IFS
14860 IFS=:
14861 set x $ac_tag
14862 IFS=$ac_save_IFS
14863 shift
14864 ac_file=$1
14865 shift
14866
14867 case $ac_mode in
14868 :L) ac_source=$1;;
14869 :[FH])
14870 ac_file_inputs=
14871 for ac_f
14872 do
14873 case $ac_f in
14874 -) ac_f="$tmp/stdin";;
14875 *) # Look for the file first in the build tree, then in the source tree
14876 # (if the path is not absolute). The absolute path cannot be DOS-style,
14877 # because $ac_f cannot contain `:'.
14878 test -f "$ac_f" ||
14879 case $ac_f in
14880 [\\/$]*) false;;
14881 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14882 esac ||
14883 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14884 esac
14885 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14886 as_fn_append ac_file_inputs " '$ac_f'"
14887 done
14888
14889 # Let's still pretend it is `configure' which instantiates (i.e., don't
14890 # use $as_me), people would be surprised to read:
14891 # /* config.h. Generated by config.status. */
14892 configure_input='Generated from '`
14893 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14894 `' by configure.'
14895 if test x"$ac_file" != x-; then
14896 configure_input="$ac_file. $configure_input"
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14898 $as_echo "$as_me: creating $ac_file" >&6;}
14899 fi
14900 # Neutralize special characters interpreted by sed in replacement strings.
14901 case $configure_input in #(
14902 *\&* | *\|* | *\\* )
14903 ac_sed_conf_input=`$as_echo "$configure_input" |
14904 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14905 *) ac_sed_conf_input=$configure_input;;
14906 esac
14907
14908 case $ac_tag in
14909 *:-:* | *:-) cat >"$tmp/stdin" \
14910 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14911 esac
14912 ;;
14913 esac
14914
14915 ac_dir=`$as_dirname -- "$ac_file" ||
14916 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14917 X"$ac_file" : 'X\(//\)[^/]' \| \
14918 X"$ac_file" : 'X\(//\)$' \| \
14919 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14920 $as_echo X"$ac_file" |
14921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14922 s//\1/
14923 q
14924 }
14925 /^X\(\/\/\)[^/].*/{
14926 s//\1/
14927 q
14928 }
14929 /^X\(\/\/\)$/{
14930 s//\1/
14931 q
14932 }
14933 /^X\(\/\).*/{
14934 s//\1/
14935 q
14936 }
14937 s/.*/./; q'`
14938 as_dir="$ac_dir"; as_fn_mkdir_p
14939 ac_builddir=.
14940
14941 case "$ac_dir" in
14942 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14943 *)
14944 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14945 # A ".." for each directory in $ac_dir_suffix.
14946 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14947 case $ac_top_builddir_sub in
14948 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14949 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14950 esac ;;
14951 esac
14952 ac_abs_top_builddir=$ac_pwd
14953 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14954 # for backward compatibility:
14955 ac_top_builddir=$ac_top_build_prefix
14956
14957 case $srcdir in
14958 .) # We are building in place.
14959 ac_srcdir=.
14960 ac_top_srcdir=$ac_top_builddir_sub
14961 ac_abs_top_srcdir=$ac_pwd ;;
14962 [\\/]* | ?:[\\/]* ) # Absolute name.
14963 ac_srcdir=$srcdir$ac_dir_suffix;
14964 ac_top_srcdir=$srcdir
14965 ac_abs_top_srcdir=$srcdir ;;
14966 *) # Relative name.
14967 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14968 ac_top_srcdir=$ac_top_build_prefix$srcdir
14969 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14970 esac
14971 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14972
14973
14974 case $ac_mode in
14975 :F)
14976 #
14977 # CONFIG_FILE
14978 #
14979
14980 case $INSTALL in
14981 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14982 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14983 esac
14984 _ACEOF
14985
14986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14987 # If the template does not know about datarootdir, expand it.
14988 # FIXME: This hack should be removed a few years after 2.60.
14989 ac_datarootdir_hack=; ac_datarootdir_seen=
14990 ac_sed_dataroot='
14991 /datarootdir/ {
14992 p
14993 q
14994 }
14995 /@datadir@/p
14996 /@docdir@/p
14997 /@infodir@/p
14998 /@localedir@/p
14999 /@mandir@/p'
15000 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15001 *datarootdir*) ac_datarootdir_seen=yes;;
15002 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15004 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15005 _ACEOF
15006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15007 ac_datarootdir_hack='
15008 s&@datadir@&$datadir&g
15009 s&@docdir@&$docdir&g
15010 s&@infodir@&$infodir&g
15011 s&@localedir@&$localedir&g
15012 s&@mandir@&$mandir&g
15013 s&\\\${datarootdir}&$datarootdir&g' ;;
15014 esac
15015 _ACEOF
15016
15017 # Neutralize VPATH when `$srcdir' = `.'.
15018 # Shell code in configure.ac might set extrasub.
15019 # FIXME: do we really want to maintain this feature?
15020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15021 ac_sed_extra="$ac_vpsub
15022 $extrasub
15023 _ACEOF
15024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15025 :t
15026 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15027 s|@configure_input@|$ac_sed_conf_input|;t t
15028 s&@top_builddir@&$ac_top_builddir_sub&;t t
15029 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15030 s&@srcdir@&$ac_srcdir&;t t
15031 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15032 s&@top_srcdir@&$ac_top_srcdir&;t t
15033 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15034 s&@builddir@&$ac_builddir&;t t
15035 s&@abs_builddir@&$ac_abs_builddir&;t t
15036 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15037 s&@INSTALL@&$ac_INSTALL&;t t
15038 $ac_datarootdir_hack
15039 "
15040 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15041 || as_fn_error "could not create $ac_file" "$LINENO" 5
15042
15043 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15044 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15045 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15047 which seems to be undefined. Please make sure it is defined." >&5
15048 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15049 which seems to be undefined. Please make sure it is defined." >&2;}
15050
15051 rm -f "$tmp/stdin"
15052 case $ac_file in
15053 -) cat "$tmp/out" && rm -f "$tmp/out";;
15054 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15055 esac \
15056 || as_fn_error "could not create $ac_file" "$LINENO" 5
15057 ;;
15058 :H)
15059 #
15060 # CONFIG_HEADER
15061 #
15062 if test x"$ac_file" != x-; then
15063 {
15064 $as_echo "/* $configure_input */" \
15065 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15066 } >"$tmp/config.h" \
15067 || as_fn_error "could not create $ac_file" "$LINENO" 5
15068 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15070 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15071 else
15072 rm -f "$ac_file"
15073 mv "$tmp/config.h" "$ac_file" \
15074 || as_fn_error "could not create $ac_file" "$LINENO" 5
15075 fi
15076 else
15077 $as_echo "/* $configure_input */" \
15078 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15079 || as_fn_error "could not create -" "$LINENO" 5
15080 fi
15081 ;;
15082
15083 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15084 $as_echo "$as_me: executing $ac_file commands" >&6;}
15085 ;;
15086 esac
15087
15088
15089 case $ac_file$ac_mode in
15090 "default":C)
15091
15092 ### Make the necessary directories, if they don't exist.
15093 for dir in etc lisp ; do
15094 test -d ${dir} || mkdir ${dir}
15095 done
15096
15097 # Build src/Makefile from ${srcdir}/src/Makefile.c
15098 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
15099 # This must be done after src/config.h is built, since we rely on that file.
15100
15101 echo creating src/epaths.h
15102 ${MAKE-make} epaths-force
15103
15104 # As of 2000-11-19, newest development versions of GNU cpp preprocess
15105 # `..' to `. .' unless invoked with -traditional
15106
15107 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
15108 CPPFLAGS="$CPPFLAGS -traditional"
15109 fi
15110
15111 echo creating lib-src/Makefile
15112 ( cd lib-src
15113 rm -f junk.c junk1.c junk2.c
15114 sed -e '/start of cpp stuff/q' \
15115 < Makefile.c > junk1.c
15116 sed -e '1,/start of cpp stuff/d'\
15117 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
15118 < Makefile.c > junk.c
15119 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
15120 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
15121 cat junk1.c junk2.c > Makefile.new
15122 rm -f junk.c junk1.c junk2.c
15123 chmod 444 Makefile.new
15124 mv -f Makefile.new Makefile
15125 )
15126
15127 echo creating src/Makefile
15128 ( cd src
15129 rm -f junk.c junk1.c junk2.c
15130 sed -e '/start of cpp stuff/q' \
15131 < Makefile.c > junk1.c
15132 sed -e '1,/start of cpp stuff/d'\
15133 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
15134 < Makefile.c > junk.c
15135 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
15136 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
15137 cat junk1.c junk2.c > Makefile.new
15138 rm -f junk.c junk1.c junk2.c
15139 chmod 444 Makefile.new
15140 mv -f Makefile.new Makefile
15141 )
15142
15143 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
15144 echo creating src/.gdbinit
15145 echo source $srcdir/src/.gdbinit > src/.gdbinit
15146 fi
15147
15148 ;;
15149
15150 esac
15151 done # for ac_tag
15152
15153
15154 as_fn_exit 0
15155 _ACEOF
15156 ac_clean_files=$ac_clean_files_save
15157
15158 test $ac_write_fail = 0 ||
15159 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15160
15161
15162 # configure is writing to config.log, and then calls config.status.
15163 # config.status does its own redirection, appending to config.log.
15164 # Unfortunately, on DOS this fails, as config.log is still kept open
15165 # by configure, so config.status won't be able to write to it; its
15166 # output is simply discarded. So we exec the FD to /dev/null,
15167 # effectively closing config.log, so it can be properly (re)opened and
15168 # appended to by config.status. When coming back to configure, we
15169 # need to make the FD available again.
15170 if test "$no_create" != yes; then
15171 ac_cs_success=:
15172 ac_config_status_args=
15173 test "$silent" = yes &&
15174 ac_config_status_args="$ac_config_status_args --quiet"
15175 exec 5>/dev/null
15176 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15177 exec 5>>config.log
15178 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15179 # would make configure fail if this is the last instruction.
15180 $ac_cs_success || as_fn_exit $?
15181 fi
15182 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15184 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15185 fi
15186
15187