merge emacs-23
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for emacs 23.2.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='23.2.50'
553 PACKAGE_STRING='emacs 23.2.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 OTHER_FILES
599 LIB_SRC_EXTRA_INSTALLABLES
600 GNU_OBJC_CFLAGS
601 GNUSTEP_SYSTEM_LIBRARIES
602 GNUSTEP_SYSTEM_HEADERS
603 GNUSTEP_MAKEFILES
604 ns_appsrc
605 ns_appresdir
606 ns_appbindir
607 ns_appdir
608 opsysfile
609 machfile
610 X_TOOLKIT_TYPE
611 C_SWITCH_X_SITE
612 LD_SWITCH_X_SITE_AUX
613 LD_SWITCH_X_SITE
614 c_switch_machine
615 c_switch_system
616 gameuser
617 gamedir
618 bitmapdir
619 archlibdir
620 etcdir
621 x_default_search_path
622 lisppath
623 locallisppath
624 lispdir
625 srcdir
626 canonical
627 configuration
628 version
629 GETOPTOBJS
630 GETOPT_H
631 GETLOADAVG_LIBS
632 KMEM_GROUP
633 NEED_SETGID
634 LIBOBJS
635 liblockfile
636 ALLOCA
637 FREETYPE_LIBS
638 FREETYPE_CFLAGS
639 M17N_FLT_LIBS
640 M17N_FLT_CFLAGS
641 LIBOTF_LIBS
642 LIBOTF_CFLAGS
643 XFT_LIBS
644 XFT_CFLAGS
645 FONTCONFIG_LIBS
646 FONTCONFIG_CFLAGS
647 GCONF_LIBS
648 GCONF_CFLAGS
649 DBUS_LIBS
650 DBUS_CFLAGS
651 GTK_LIBS
652 GTK_CFLAGS
653 RSVG_LIBS
654 RSVG_CFLAGS
655 HAVE_XSERVER
656 XMKMF
657 SET_MAKE
658 CFLAGS_SOUND
659 ALSA_LIBS
660 ALSA_CFLAGS
661 PKG_CONFIG
662 LIBSOUND
663 MAKEINFO
664 GZIP_PROG
665 INSTALL_INFO
666 RANLIB
667 INSTALL_DATA
668 INSTALL_SCRIPT
669 INSTALL_PROGRAM
670 LN_S
671 EGREP
672 GREP
673 CPP
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 MAINT
690 target_alias
691 host_alias
692 build_alias
693 LIBS
694 ECHO_T
695 ECHO_N
696 ECHO_C
697 DEFS
698 mandir
699 localedir
700 libdir
701 psdir
702 pdfdir
703 dvidir
704 htmldir
705 infodir
706 docdir
707 oldincludedir
708 includedir
709 localstatedir
710 sharedstatedir
711 sysconfdir
712 datadir
713 datarootdir
714 libexecdir
715 sbindir
716 bindir
717 program_transform_name
718 prefix
719 exec_prefix
720 PACKAGE_URL
721 PACKAGE_BUGREPORT
722 PACKAGE_STRING
723 PACKAGE_VERSION
724 PACKAGE_TARNAME
725 PACKAGE_NAME
726 PATH_SEPARATOR
727 SHELL'
728 ac_subst_files=''
729 ac_user_opts='
730 enable_option_checking
731 with_pop
732 with_kerberos
733 with_kerberos5
734 with_hesiod
735 with_sound
736 with_sync_input
737 with_x_toolkit
738 with_xpm
739 with_jpeg
740 with_tiff
741 with_gif
742 with_png
743 with_rsvg
744 with_xft
745 with_libotf
746 with_m17n_flt
747 with_toolkit_scroll_bars
748 with_xaw3d
749 with_xim
750 with_ns
751 with_gpm
752 with_dbus
753 with_gconf
754 with_makeinfo
755 with_gtk
756 with_gcc
757 with_pkg_config_prog
758 with_gnustep_conf
759 enable_ns_self_contained
760 enable_asserts
761 enable_maintainer_mode
762 enable_locallisppath
763 enable_checking
764 enable_profiling
765 enable_autodepend
766 enable_largefile
767 with_x
768 '
769 ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CC
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
777 CPP
778 XMKMF'
779
780
781 # Initialize some variables set by options.
782 ac_init_help=
783 ac_init_version=false
784 ac_unrecognized_opts=
785 ac_unrecognized_sep=
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
788 cache_file=/dev/null
789 exec_prefix=NONE
790 no_create=
791 no_recursion=
792 prefix=NONE
793 program_prefix=NONE
794 program_suffix=NONE
795 program_transform_name=s,x,x,
796 silent=
797 site=
798 srcdir=
799 verbose=
800 x_includes=NONE
801 x_libraries=NONE
802
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir='${exec_prefix}/bin'
810 sbindir='${exec_prefix}/sbin'
811 libexecdir='${exec_prefix}/libexec'
812 datarootdir='${prefix}/share'
813 datadir='${datarootdir}'
814 sysconfdir='${prefix}/etc'
815 sharedstatedir='${prefix}/com'
816 localstatedir='${prefix}/var'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir='${datarootdir}/info'
821 htmldir='${docdir}'
822 dvidir='${docdir}'
823 pdfdir='${docdir}'
824 psdir='${docdir}'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
828
829 ac_prev=
830 ac_dashdash=
831 for ac_option
832 do
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\$ac_option
836 ac_prev=
837 continue
838 fi
839
840 case $ac_option in
841 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 *=) ac_optarg= ;;
843 *) ac_optarg=yes ;;
844 esac
845
846 # Accept the important Cygnus configure options, so we can diagnose typos.
847
848 case $ac_dashdash$ac_option in
849 --)
850 ac_dashdash=yes ;;
851
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 ac_prev=bindir ;;
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 bindir=$ac_optarg ;;
856
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
861
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
868
869 --config-cache | -C)
870 cache_file=config.cache ;;
871
872 -datadir | --datadir | --datadi | --datad)
873 ac_prev=datadir ;;
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
876
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
883
884 -disable-* | --disable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error $? "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
892 *"
893 "enable_$ac_useropt"
894 "*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=no ;;
899
900 -docdir | --docdir | --docdi | --doc | --do)
901 ac_prev=docdir ;;
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 docdir=$ac_optarg ;;
904
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 ac_prev=dvidir ;;
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 dvidir=$ac_optarg ;;
909
910 -enable-* | --enable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=\$ac_optarg ;;
925
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
934
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
937 with_gas=yes ;;
938
939 -help | --help | --hel | --he | -h)
940 ac_init_help=long ;;
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
945
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
950
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 ac_prev=htmldir ;;
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 | --ht=*)
955 htmldir=$ac_optarg ;;
956
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
963
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 ac_prev=infodir ;;
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
968
969 -libdir | --libdir | --libdi | --libd)
970 ac_prev=libdir ;;
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
972 libdir=$ac_optarg ;;
973
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
980
981 -localedir | --localedir | --localedi | --localed | --locale)
982 ac_prev=localedir ;;
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
985
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
992
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 ac_prev=mandir ;;
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 mandir=$ac_optarg ;;
997
998 -nfp | --nfp | --nf)
999 # Obsolete; use --without-fp.
1000 with_fp=no ;;
1001
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1004 no_create=yes ;;
1005
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 no_recursion=yes ;;
1009
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1018
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 ac_prev=prefix ;;
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1023
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1030
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1037
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1054
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 ac_prev=pdfdir ;;
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1059
1060 -psdir | --psdir | --psdi | --psd | --ps)
1061 ac_prev=psdir ;;
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 psdir=$ac_optarg ;;
1064
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 silent=yes ;;
1068
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 ac_prev=sbindir ;;
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 | --sbi=* | --sb=*)
1073 sbindir=$ac_optarg ;;
1074
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1078 | --sha | --sh)
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 | --sha=* | --sh=*)
1084 sharedstatedir=$ac_optarg ;;
1085
1086 -site | --site | --sit)
1087 ac_prev=site ;;
1088 -site=* | --site=* | --sit=*)
1089 site=$ac_optarg ;;
1090
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 ac_prev=srcdir ;;
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094 srcdir=$ac_optarg ;;
1095
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101 sysconfdir=$ac_optarg ;;
1102
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
1104 ac_prev=target_alias ;;
1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106 target_alias=$ac_optarg ;;
1107
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109 verbose=yes ;;
1110
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
1113
1114 -with-* | --with-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error $? "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1122 *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval with_$ac_useropt=\$ac_optarg ;;
1129
1130 -without-* | --without-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error $? "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1138 *"
1139 "with_$ac_useropt"
1140 "*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=no ;;
1145
1146 --x)
1147 # Obsolete; use --with-x.
1148 with_x=yes ;;
1149
1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151 | --x-incl | --x-inc | --x-in | --x-i)
1152 ac_prev=x_includes ;;
1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155 x_includes=$ac_optarg ;;
1156
1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159 ac_prev=x_libraries ;;
1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162 x_libraries=$ac_optarg ;;
1163
1164 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information"
1166 ;;
1167
1168 *=*)
1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 case $ac_envvar in #(
1172 '' | [0-9]* | *[!_$as_cr_alnum]* )
1173 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174 esac
1175 eval $ac_envvar=\$ac_optarg
1176 export $ac_envvar ;;
1177
1178 *)
1179 # FIXME: should be removed in autoconf 3.0.
1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1184 ;;
1185
1186 esac
1187 done
1188
1189 if test -n "$ac_prev"; then
1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191 as_fn_error $? "missing argument to $ac_option"
1192 fi
1193
1194 if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1196 no) ;;
1197 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199 esac
1200 fi
1201
1202 # Check all directory arguments for consistency.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1207 do
1208 eval ac_val=\$$ac_var
1209 # Remove trailing slashes.
1210 case $ac_val in
1211 */ )
1212 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\$ac_val;;
1214 esac
1215 # Be sure to have absolute directory names.
1216 case $ac_val in
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 esac
1220 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1221 done
1222
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1229
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
1234 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used" >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error $? "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error $? "pwd does not report name of working directory"
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1285 fi
1286 else
1287 ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures emacs 23.2.50 to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking ...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1375
1376 cat <<\_ACEOF
1377
1378 Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1382
1383 X features:
1384 --x-includes=DIR X include files are in DIR
1385 --x-libraries=DIR X library files are in DIR
1386
1387 System types:
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of emacs 23.2.50:";;
1396 esac
1397 cat <<\_ACEOF
1398
1399 Optional Features:
1400 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --disable-ns-self-contained
1404 disable self contained build under NeXTstep
1405 --enable-asserts compile code with asserts enabled
1406 --enable-maintainer-mode
1407 enable make rules and dependencies not useful (and
1408 sometimes confusing) to the casual installer
1409 --enable-locallisppath=PATH
1410 directories Emacs should search for lisp files
1411 specific to this site
1412 --enable-checking[=LIST]
1413 enable expensive run-time checks. With LIST, enable
1414 only specific categories of checks. Categories are:
1415 all,yes,no. Flags are: stringbytes, stringoverrun,
1416 stringfreelist, xmallocoverrun, conslist
1417 --enable-profiling build emacs with profiling support. This might not
1418 work on all platforms
1419 --enable-autodepend automatically generate dependencies to .h-files.
1420 Requires GNU Make and Gcc. Enabled if GNU Make and
1421 Gcc is found
1422 --disable-largefile omit support for large files
1423
1424 Optional Packages:
1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1427 --without-pop don't support POP mail retrieval with movemail
1428 --with-kerberos support Kerberos-authenticated POP
1429 --with-kerberos5 support Kerberos version 5 authenticated POP
1430 --with-hesiod support Hesiod to get the POP server host
1431 --without-sound don't compile with sound support
1432 --without-sync-input process async input synchronously
1433 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1434 motif, gtk, no)
1435 --without-xpm don't compile with XPM image support
1436 --without-jpeg don't compile with JPEG image support
1437 --without-tiff don't compile with TIFF image support
1438 --without-gif don't compile with GIF image support
1439 --without-png don't compile with PNG image support
1440 --without-rsvg don't compile with SVG image support
1441 --without-xft don't use XFT for anti aliased fonts
1442 --without-libotf don't use libotf for OpenType font support
1443 --without-m17n-flt don't use m17n-flt for text shaping
1444 --without-toolkit-scroll-bars
1445 don't use Motif or Xaw3d scroll bars
1446 --without-xaw3d don't use Xaw3d
1447 --without-xim don't use X11 XIM
1448 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1449 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1450 console
1451 --without-dbus don't compile with D-Bus support
1452 --without-gconf don't compile with GConf support
1453 --without-makeinfo don't require makeinfo for building manuals
1454
1455 --with-pkg-config-prog=PATH
1456 path to pkg-config for finding GTK and librsvg
1457 --with-gnustep-conf=PATH
1458 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1459 or /etc/GNUstep/GNUstep.conf
1460 --with-x use the X Window System
1461
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1470 CPP C preprocessor
1471 XMKMF Path to xmkmf, Makefile generator for X Window System
1472
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1475
1476 Report bugs to the package provider.
1477 _ACEOF
1478 ac_status=$?
1479 fi
1480
1481 if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
1483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484 test -d "$ac_dir" ||
1485 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1486 continue
1487 ac_builddir=.
1488
1489 case "$ac_dir" in
1490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *)
1492 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1493 # A ".." for each directory in $ac_dir_suffix.
1494 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1495 case $ac_top_builddir_sub in
1496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1498 esac ;;
1499 esac
1500 ac_abs_top_builddir=$ac_pwd
1501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1502 # for backward compatibility:
1503 ac_top_builddir=$ac_top_build_prefix
1504
1505 case $srcdir in
1506 .) # We are building in place.
1507 ac_srcdir=.
1508 ac_top_srcdir=$ac_top_builddir_sub
1509 ac_abs_top_srcdir=$ac_pwd ;;
1510 [\\/]* | ?:[\\/]* ) # Absolute name.
1511 ac_srcdir=$srcdir$ac_dir_suffix;
1512 ac_top_srcdir=$srcdir
1513 ac_abs_top_srcdir=$srcdir ;;
1514 *) # Relative name.
1515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1516 ac_top_srcdir=$ac_top_build_prefix$srcdir
1517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1518 esac
1519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520
1521 cd "$ac_dir" || { ac_status=$?; continue; }
1522 # Check for guested configure.
1523 if test -f "$ac_srcdir/configure.gnu"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526 elif test -f "$ac_srcdir/configure"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure" --help=recursive
1529 else
1530 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531 fi || ac_status=$?
1532 cd "$ac_pwd" || { ac_status=$?; break; }
1533 done
1534 fi
1535
1536 test -n "$ac_init_help" && exit $ac_status
1537 if $ac_init_version; then
1538 cat <<\_ACEOF
1539 emacs configure 23.2.50
1540 generated by GNU Autoconf 2.67
1541
1542 Copyright (C) 2010 Free Software Foundation, Inc.
1543 This configure script is free software; the Free Software Foundation
1544 gives unlimited permission to copy, distribute and modify it.
1545 _ACEOF
1546 exit
1547 fi
1548
1549 ## ------------------------ ##
1550 ## Autoconf initialization. ##
1551 ## ------------------------ ##
1552
1553 # ac_fn_c_try_compile LINENO
1554 # --------------------------
1555 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_compile ()
1557 {
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext
1560 if { { ac_try="$ac_compile"
1561 case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_compile") 2>conftest.err
1568 ac_status=$?
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1573 fi
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest.$ac_objext; then :
1579 ac_retval=0
1580 else
1581 $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1583
1584 ac_retval=1
1585 fi
1586 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1587 as_fn_set_status $ac_retval
1588
1589 } # ac_fn_c_try_compile
1590
1591 # ac_fn_c_try_link LINENO
1592 # -----------------------
1593 # Try to link conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_c_try_link ()
1595 {
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 rm -f conftest.$ac_objext conftest$ac_exeext
1598 if { { ac_try="$ac_link"
1599 case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_link") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1611 fi
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && {
1614 test -z "$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 } && test -s conftest$ac_exeext && {
1617 test "$cross_compiling" = yes ||
1618 $as_test_x conftest$ac_exeext
1619 }; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626 fi
1627 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1628 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1629 # interfere with the next link command; also delete a directory that is
1630 # left behind by Apple's compiler. We do this before executing the actions.
1631 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1633 as_fn_set_status $ac_retval
1634
1635 } # ac_fn_c_try_link
1636
1637 # ac_fn_c_try_cpp LINENO
1638 # ----------------------
1639 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_cpp ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 if { { ac_try="$ac_cpp conftest.$ac_ext"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1656 fi
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } > conftest.i && {
1659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 }; then :
1662 ac_retval=0
1663 else
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 ac_retval=1
1668 fi
1669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1670 as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_cpp
1673
1674 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1675 # -------------------------------------------------------
1676 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1677 # the include files in INCLUDES and setting the cache variable VAR
1678 # accordingly.
1679 ac_fn_c_check_header_mongrel ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if eval "test \"\${$3+set}\"" = set; then :
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684 $as_echo_n "checking for $2... " >&6; }
1685 if eval "test \"\${$3+set}\"" = set; then :
1686 $as_echo_n "(cached) " >&6
1687 fi
1688 eval ac_res=\$$3
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690 $as_echo "$ac_res" >&6; }
1691 else
1692 # Is the header compilable?
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1694 $as_echo_n "checking $2 usability... " >&6; }
1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696 /* end confdefs.h. */
1697 $4
1698 #include <$2>
1699 _ACEOF
1700 if ac_fn_c_try_compile "$LINENO"; then :
1701 ac_header_compiler=yes
1702 else
1703 ac_header_compiler=no
1704 fi
1705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1707 $as_echo "$ac_header_compiler" >&6; }
1708
1709 # Is the header present?
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1711 $as_echo_n "checking $2 presence... " >&6; }
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1714 #include <$2>
1715 _ACEOF
1716 if ac_fn_c_try_cpp "$LINENO"; then :
1717 ac_header_preproc=yes
1718 else
1719 ac_header_preproc=no
1720 fi
1721 rm -f conftest.err conftest.i conftest.$ac_ext
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1723 $as_echo "$ac_header_preproc" >&6; }
1724
1725 # So? What about this header?
1726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1727 yes:no: )
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1729 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1731 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1732 ;;
1733 no:yes:* )
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1735 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1737 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1739 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1741 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1743 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1744 ;;
1745 esac
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if eval "test \"\${$3+set}\"" = set; then :
1749 $as_echo_n "(cached) " >&6
1750 else
1751 eval "$3=\$ac_header_compiler"
1752 fi
1753 eval ac_res=\$$3
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1756 fi
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758
1759 } # ac_fn_c_check_header_mongrel
1760
1761 # ac_fn_c_try_run LINENO
1762 # ----------------------
1763 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1764 # that executables *can* be run.
1765 ac_fn_c_try_run ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if { { ac_try="$ac_link"
1769 case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_link") 2>&5
1776 ac_status=$?
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1779 { { case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_try") 2>&5
1786 ac_status=$?
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; }; }; then :
1789 ac_retval=0
1790 else
1791 $as_echo "$as_me: program exited with status $ac_status" >&5
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795 ac_retval=$ac_status
1796 fi
1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1799 as_fn_set_status $ac_retval
1800
1801 } # ac_fn_c_try_run
1802
1803 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1804 # -------------------------------------------------------
1805 # Tests whether HEADER exists and can be compiled using the include files in
1806 # INCLUDES, setting the cache variable VAR accordingly.
1807 ac_fn_c_check_header_compile ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval "test \"\${$3+set}\"" = set; then :
1813 $as_echo_n "(cached) " >&6
1814 else
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 $4
1818 #include <$2>
1819 _ACEOF
1820 if ac_fn_c_try_compile "$LINENO"; then :
1821 eval "$3=yes"
1822 else
1823 eval "$3=no"
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 fi
1827 eval ac_res=\$$3
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1831
1832 } # ac_fn_c_check_header_compile
1833
1834 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1835 # ----------------------------------------------
1836 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1837 ac_fn_c_check_header_preproc ()
1838 {
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval "test \"\${$3+set}\"" = set; then :
1843 $as_echo_n "(cached) " >&6
1844 else
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1847 #include <$2>
1848 _ACEOF
1849 if ac_fn_c_try_cpp "$LINENO"; then :
1850 eval "$3=yes"
1851 else
1852 eval "$3=no"
1853 fi
1854 rm -f conftest.err conftest.i conftest.$ac_ext
1855 fi
1856 eval ac_res=\$$3
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860
1861 } # ac_fn_c_check_header_preproc
1862
1863 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1864 # ---------------------------------------------
1865 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1866 # accordingly.
1867 ac_fn_c_check_decl ()
1868 {
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 as_decl_name=`echo $2|sed 's/ *(.*//'`
1871 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1873 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1874 if eval "test \"\${$3+set}\"" = set; then :
1875 $as_echo_n "(cached) " >&6
1876 else
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1879 $4
1880 int
1881 main ()
1882 {
1883 #ifndef $as_decl_name
1884 #ifdef __cplusplus
1885 (void) $as_decl_use;
1886 #else
1887 (void) $as_decl_name;
1888 #endif
1889 #endif
1890
1891 ;
1892 return 0;
1893 }
1894 _ACEOF
1895 if ac_fn_c_try_compile "$LINENO"; then :
1896 eval "$3=yes"
1897 else
1898 eval "$3=no"
1899 fi
1900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901 fi
1902 eval ac_res=\$$3
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906
1907 } # ac_fn_c_check_decl
1908
1909 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1910 # ----------------------------------------------------
1911 # Tries to find if the field MEMBER exists in type AGGR, after including
1912 # INCLUDES, setting cache variable VAR accordingly.
1913 ac_fn_c_check_member ()
1914 {
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1917 $as_echo_n "checking for $2.$3... " >&6; }
1918 if eval "test \"\${$4+set}\"" = set; then :
1919 $as_echo_n "(cached) " >&6
1920 else
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1923 $5
1924 int
1925 main ()
1926 {
1927 static $2 ac_aggr;
1928 if (ac_aggr.$3)
1929 return 0;
1930 ;
1931 return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935 eval "$4=yes"
1936 else
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1939 $5
1940 int
1941 main ()
1942 {
1943 static $2 ac_aggr;
1944 if (sizeof ac_aggr.$3)
1945 return 0;
1946 ;
1947 return 0;
1948 }
1949 _ACEOF
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951 eval "$4=yes"
1952 else
1953 eval "$4=no"
1954 fi
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 fi
1957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958 fi
1959 eval ac_res=\$$4
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963
1964 } # ac_fn_c_check_member
1965
1966 # ac_fn_c_check_func LINENO FUNC VAR
1967 # ----------------------------------
1968 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1969 ac_fn_c_check_func ()
1970 {
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if eval "test \"\${$3+set}\"" = set; then :
1975 $as_echo_n "(cached) " >&6
1976 else
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1979 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1981 #define $2 innocuous_$2
1982
1983 /* System header to define __stub macros and hopefully few prototypes,
1984 which can conflict with char $2 (); below.
1985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1986 <limits.h> exists even on freestanding compilers. */
1987
1988 #ifdef __STDC__
1989 # include <limits.h>
1990 #else
1991 # include <assert.h>
1992 #endif
1993
1994 #undef $2
1995
1996 /* Override any GCC internal prototype to avoid an error.
1997 Use char because int might match the return type of a GCC
1998 builtin and then its argument prototype would still apply. */
1999 #ifdef __cplusplus
2000 extern "C"
2001 #endif
2002 char $2 ();
2003 /* The GNU C library defines this for functions which it implements
2004 to always fail with ENOSYS. Some functions are actually named
2005 something starting with __ and the normal name is an alias. */
2006 #if defined __stub_$2 || defined __stub___$2
2007 choke me
2008 #endif
2009
2010 int
2011 main ()
2012 {
2013 return $2 ();
2014 ;
2015 return 0;
2016 }
2017 _ACEOF
2018 if ac_fn_c_try_link "$LINENO"; then :
2019 eval "$3=yes"
2020 else
2021 eval "$3=no"
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext \
2024 conftest$ac_exeext conftest.$ac_ext
2025 fi
2026 eval ac_res=\$$3
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2030
2031 } # ac_fn_c_check_func
2032
2033 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2034 # -------------------------------------------
2035 # Tests whether TYPE exists after having included INCLUDES, setting cache
2036 # variable VAR accordingly.
2037 ac_fn_c_check_type ()
2038 {
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if eval "test \"\${$3+set}\"" = set; then :
2043 $as_echo_n "(cached) " >&6
2044 else
2045 eval "$3=no"
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2048 $4
2049 int
2050 main ()
2051 {
2052 if (sizeof ($2))
2053 return 0;
2054 ;
2055 return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2061 $4
2062 int
2063 main ()
2064 {
2065 if (sizeof (($2)))
2066 return 0;
2067 ;
2068 return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072
2073 else
2074 eval "$3=yes"
2075 fi
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 fi
2080 eval ac_res=\$$3
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2083 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2084
2085 } # ac_fn_c_check_type
2086 cat >config.log <<_ACEOF
2087 This file contains any messages produced by compilers while
2088 running configure, to aid debugging if configure makes a mistake.
2089
2090 It was created by emacs $as_me 23.2.50, which was
2091 generated by GNU Autoconf 2.67. Invocation command line was
2092
2093 $ $0 $@
2094
2095 _ACEOF
2096 exec 5>>config.log
2097 {
2098 cat <<_ASUNAME
2099 ## --------- ##
2100 ## Platform. ##
2101 ## --------- ##
2102
2103 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2104 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2105 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2106 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2107 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2108
2109 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2110 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2111
2112 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2113 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2114 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2115 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2116 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2117 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2118 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2119
2120 _ASUNAME
2121
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 for as_dir in $PATH
2124 do
2125 IFS=$as_save_IFS
2126 test -z "$as_dir" && as_dir=.
2127 $as_echo "PATH: $as_dir"
2128 done
2129 IFS=$as_save_IFS
2130
2131 } >&5
2132
2133 cat >&5 <<_ACEOF
2134
2135
2136 ## ----------- ##
2137 ## Core tests. ##
2138 ## ----------- ##
2139
2140 _ACEOF
2141
2142
2143 # Keep a trace of the command line.
2144 # Strip out --no-create and --no-recursion so they do not pile up.
2145 # Strip out --silent because we don't want to record it for future runs.
2146 # Also quote any args containing shell meta-characters.
2147 # Make two passes to allow for proper duplicate-argument suppression.
2148 ac_configure_args=
2149 ac_configure_args0=
2150 ac_configure_args1=
2151 ac_must_keep_next=false
2152 for ac_pass in 1 2
2153 do
2154 for ac_arg
2155 do
2156 case $ac_arg in
2157 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2159 | -silent | --silent | --silen | --sile | --sil)
2160 continue ;;
2161 *\'*)
2162 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2163 esac
2164 case $ac_pass in
2165 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2166 2)
2167 as_fn_append ac_configure_args1 " '$ac_arg'"
2168 if test $ac_must_keep_next = true; then
2169 ac_must_keep_next=false # Got value, back to normal.
2170 else
2171 case $ac_arg in
2172 *=* | --config-cache | -C | -disable-* | --disable-* \
2173 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2174 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2175 | -with-* | --with-* | -without-* | --without-* | --x)
2176 case "$ac_configure_args0 " in
2177 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2178 esac
2179 ;;
2180 -* ) ac_must_keep_next=true ;;
2181 esac
2182 fi
2183 as_fn_append ac_configure_args " '$ac_arg'"
2184 ;;
2185 esac
2186 done
2187 done
2188 { ac_configure_args0=; unset ac_configure_args0;}
2189 { ac_configure_args1=; unset ac_configure_args1;}
2190
2191 # When interrupted or exit'd, cleanup temporary files, and complete
2192 # config.log. We remove comments because anyway the quotes in there
2193 # would cause problems or look ugly.
2194 # WARNING: Use '\'' to represent an apostrophe within the trap.
2195 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2196 trap 'exit_status=$?
2197 # Save into config.log some information that might help in debugging.
2198 {
2199 echo
2200
2201 $as_echo "## ---------------- ##
2202 ## Cache variables. ##
2203 ## ---------------- ##"
2204 echo
2205 # The following way of writing the cache mishandles newlines in values,
2206 (
2207 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2208 eval ac_val=\$$ac_var
2209 case $ac_val in #(
2210 *${as_nl}*)
2211 case $ac_var in #(
2212 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2213 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2214 esac
2215 case $ac_var in #(
2216 _ | IFS | as_nl) ;; #(
2217 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2218 *) { eval $ac_var=; unset $ac_var;} ;;
2219 esac ;;
2220 esac
2221 done
2222 (set) 2>&1 |
2223 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2224 *${as_nl}ac_space=\ *)
2225 sed -n \
2226 "s/'\''/'\''\\\\'\'''\''/g;
2227 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2228 ;; #(
2229 *)
2230 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2231 ;;
2232 esac |
2233 sort
2234 )
2235 echo
2236
2237 $as_echo "## ----------------- ##
2238 ## Output variables. ##
2239 ## ----------------- ##"
2240 echo
2241 for ac_var in $ac_subst_vars
2242 do
2243 eval ac_val=\$$ac_var
2244 case $ac_val in
2245 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2246 esac
2247 $as_echo "$ac_var='\''$ac_val'\''"
2248 done | sort
2249 echo
2250
2251 if test -n "$ac_subst_files"; then
2252 $as_echo "## ------------------- ##
2253 ## File substitutions. ##
2254 ## ------------------- ##"
2255 echo
2256 for ac_var in $ac_subst_files
2257 do
2258 eval ac_val=\$$ac_var
2259 case $ac_val in
2260 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261 esac
2262 $as_echo "$ac_var='\''$ac_val'\''"
2263 done | sort
2264 echo
2265 fi
2266
2267 if test -s confdefs.h; then
2268 $as_echo "## ----------- ##
2269 ## confdefs.h. ##
2270 ## ----------- ##"
2271 echo
2272 cat confdefs.h
2273 echo
2274 fi
2275 test "$ac_signal" != 0 &&
2276 $as_echo "$as_me: caught signal $ac_signal"
2277 $as_echo "$as_me: exit $exit_status"
2278 } >&5
2279 rm -f core *.core core.conftest.* &&
2280 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2281 exit $exit_status
2282 ' 0
2283 for ac_signal in 1 2 13 15; do
2284 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2285 done
2286 ac_signal=0
2287
2288 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2289 rm -f -r conftest* confdefs.h
2290
2291 $as_echo "/* confdefs.h */" > confdefs.h
2292
2293 # Predefined preprocessor variables.
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_NAME "$PACKAGE_NAME"
2297 _ACEOF
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2301 _ACEOF
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2305 _ACEOF
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_STRING "$PACKAGE_STRING"
2309 _ACEOF
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2313 _ACEOF
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_URL "$PACKAGE_URL"
2317 _ACEOF
2318
2319
2320 # Let the site file select an alternate cache file if it wants to.
2321 # Prefer an explicitly selected file to automatically selected ones.
2322 ac_site_file1=NONE
2323 ac_site_file2=NONE
2324 if test -n "$CONFIG_SITE"; then
2325 # We do not want a PATH search for config.site.
2326 case $CONFIG_SITE in #((
2327 -*) ac_site_file1=./$CONFIG_SITE;;
2328 */*) ac_site_file1=$CONFIG_SITE;;
2329 *) ac_site_file1=./$CONFIG_SITE;;
2330 esac
2331 elif test "x$prefix" != xNONE; then
2332 ac_site_file1=$prefix/share/config.site
2333 ac_site_file2=$prefix/etc/config.site
2334 else
2335 ac_site_file1=$ac_default_prefix/share/config.site
2336 ac_site_file2=$ac_default_prefix/etc/config.site
2337 fi
2338 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2339 do
2340 test "x$ac_site_file" = xNONE && continue
2341 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2343 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2344 sed 's/^/| /' "$ac_site_file" >&5
2345 . "$ac_site_file" \
2346 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2348 as_fn_error $? "failed to load site script $ac_site_file
2349 See \`config.log' for more details" "$LINENO" 5; }
2350 fi
2351 done
2352
2353 if test -r "$cache_file"; then
2354 # Some versions of bash will fail to source /dev/null (special files
2355 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2356 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2358 $as_echo "$as_me: loading cache $cache_file" >&6;}
2359 case $cache_file in
2360 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2361 *) . "./$cache_file";;
2362 esac
2363 fi
2364 else
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2366 $as_echo "$as_me: creating cache $cache_file" >&6;}
2367 >$cache_file
2368 fi
2369
2370 as_fn_append ac_header_list " stdlib.h"
2371 as_fn_append ac_header_list " unistd.h"
2372 as_fn_append ac_header_list " sys/param.h"
2373 as_fn_append ac_header_list " sys/time.h"
2374 as_fn_append ac_func_list " alarm"
2375 # Check that the precious variables saved in the cache have kept the same
2376 # value.
2377 ac_cache_corrupted=false
2378 for ac_var in $ac_precious_vars; do
2379 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2380 eval ac_new_set=\$ac_env_${ac_var}_set
2381 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2382 eval ac_new_val=\$ac_env_${ac_var}_value
2383 case $ac_old_set,$ac_new_set in
2384 set,)
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2386 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2387 ac_cache_corrupted=: ;;
2388 ,set)
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2390 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2391 ac_cache_corrupted=: ;;
2392 ,);;
2393 *)
2394 if test "x$ac_old_val" != "x$ac_new_val"; then
2395 # differences in whitespace do not lead to failure.
2396 ac_old_val_w=`echo x $ac_old_val`
2397 ac_new_val_w=`echo x $ac_new_val`
2398 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2400 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2401 ac_cache_corrupted=:
2402 else
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2404 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2405 eval $ac_var=\$ac_old_val
2406 fi
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2408 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2410 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2411 fi;;
2412 esac
2413 # Pass precious variables to config.status.
2414 if test "$ac_new_set" = set; then
2415 case $ac_new_val in
2416 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2417 *) ac_arg=$ac_var=$ac_new_val ;;
2418 esac
2419 case " $ac_configure_args " in
2420 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2421 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2422 esac
2423 fi
2424 done
2425 if $ac_cache_corrupted; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2429 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2430 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2431 fi
2432 ## -------------------- ##
2433 ## Main body of script. ##
2434 ## -------------------- ##
2435
2436 ac_ext=c
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441
2442
2443 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2444
2445
2446
2447 test "$program_prefix" != NONE &&
2448 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2449 # Use a double $ so make ignores it.
2450 test "$program_suffix" != NONE &&
2451 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2452 # Double any \ or $.
2453 # By default was `s,x,x', remove it if useless.
2454 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2455 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2456
2457
2458 lispdir='${datadir}/emacs/${version}/lisp'
2459 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2460 '${datadir}/emacs/site-lisp'
2461 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2462 etcdir='${datadir}/emacs/${version}/etc'
2463 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2464 docdir='${datadir}/emacs/${version}/etc'
2465 gamedir='${localstatedir}/games/emacs'
2466
2467 gameuser=games
2468
2469
2470
2471
2472 # Check whether --with-pop was given.
2473 if test "${with_pop+set}" = set; then :
2474 withval=$with_pop;
2475 else
2476 with_pop=yes
2477 fi
2478
2479 if test "$with_pop" = yes; then
2480 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2481
2482 fi
2483
2484
2485 # Check whether --with-kerberos was given.
2486 if test "${with_kerberos+set}" = set; then :
2487 withval=$with_kerberos;
2488 else
2489 with_kerberos=no
2490 fi
2491
2492 if test "$with_kerberos" != no; then
2493 $as_echo "#define KERBEROS 1" >>confdefs.h
2494
2495 fi
2496
2497
2498 # Check whether --with-kerberos5 was given.
2499 if test "${with_kerberos5+set}" = set; then :
2500 withval=$with_kerberos5;
2501 else
2502 with_kerberos5=no
2503 fi
2504
2505 if test "${with_kerberos5}" != no; then
2506 if test "${with_kerberos}" = no; then
2507 with_kerberos=yes
2508 $as_echo "#define KERBEROS 1" >>confdefs.h
2509
2510 fi
2511
2512 $as_echo "#define KERBEROS5 1" >>confdefs.h
2513
2514 fi
2515
2516
2517 # Check whether --with-hesiod was given.
2518 if test "${with_hesiod+set}" = set; then :
2519 withval=$with_hesiod;
2520 else
2521 with_hesiod=no
2522 fi
2523
2524 if test "$with_hesiod" != no; then
2525
2526 $as_echo "#define HESIOD 1" >>confdefs.h
2527
2528 fi
2529
2530
2531 # Check whether --with-sound was given.
2532 if test "${with_sound+set}" = set; then :
2533 withval=$with_sound;
2534 else
2535 with_sound=yes
2536 fi
2537
2538
2539
2540 # Check whether --with-sync-input was given.
2541 if test "${with_sync_input+set}" = set; then :
2542 withval=$with_sync_input;
2543 else
2544 with_sync_input=yes
2545 fi
2546
2547 if test "$with_sync_input" = yes; then
2548
2549 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2550
2551 fi
2552
2553
2554 # Check whether --with-x-toolkit was given.
2555 if test "${with_x_toolkit+set}" = set; then :
2556 withval=$with_x_toolkit; case "${withval}" in
2557 y | ye | yes ) val=gtk ;;
2558 n | no ) val=no ;;
2559 l | lu | luc | luci | lucid ) val=lucid ;;
2560 a | at | ath | athe | athen | athena ) val=athena ;;
2561 m | mo | mot | moti | motif ) val=motif ;;
2562 g | gt | gtk ) val=gtk ;;
2563 * )
2564 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
2565 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2566 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2567 ;;
2568 esac
2569 with_x_toolkit=$val
2570
2571 fi
2572
2573
2574
2575 # Check whether --with-xpm was given.
2576 if test "${with_xpm+set}" = set; then :
2577 withval=$with_xpm;
2578 else
2579 with_xpm=yes
2580 fi
2581
2582
2583 # Check whether --with-jpeg was given.
2584 if test "${with_jpeg+set}" = set; then :
2585 withval=$with_jpeg;
2586 else
2587 with_jpeg=yes
2588 fi
2589
2590
2591 # Check whether --with-tiff was given.
2592 if test "${with_tiff+set}" = set; then :
2593 withval=$with_tiff;
2594 else
2595 with_tiff=yes
2596 fi
2597
2598
2599 # Check whether --with-gif was given.
2600 if test "${with_gif+set}" = set; then :
2601 withval=$with_gif;
2602 else
2603 with_gif=yes
2604 fi
2605
2606
2607 # Check whether --with-png was given.
2608 if test "${with_png+set}" = set; then :
2609 withval=$with_png;
2610 else
2611 with_png=yes
2612 fi
2613
2614
2615 # Check whether --with-rsvg was given.
2616 if test "${with_rsvg+set}" = set; then :
2617 withval=$with_rsvg;
2618 else
2619 with_rsvg=yes
2620 fi
2621
2622
2623
2624 # Check whether --with-xft was given.
2625 if test "${with_xft+set}" = set; then :
2626 withval=$with_xft;
2627 else
2628 with_xft=yes
2629 fi
2630
2631
2632 # Check whether --with-libotf was given.
2633 if test "${with_libotf+set}" = set; then :
2634 withval=$with_libotf;
2635 else
2636 with_libotf=yes
2637 fi
2638
2639
2640 # Check whether --with-m17n-flt was given.
2641 if test "${with_m17n_flt+set}" = set; then :
2642 withval=$with_m17n_flt;
2643 else
2644 with_m17n_flt=yes
2645 fi
2646
2647
2648
2649 # Check whether --with-toolkit-scroll-bars was given.
2650 if test "${with_toolkit_scroll_bars+set}" = set; then :
2651 withval=$with_toolkit_scroll_bars;
2652 else
2653 with_toolkit_scroll_bars=yes
2654 fi
2655
2656
2657 # Check whether --with-xaw3d was given.
2658 if test "${with_xaw3d+set}" = set; then :
2659 withval=$with_xaw3d;
2660 else
2661 with_xaw3d=yes
2662 fi
2663
2664
2665 # Check whether --with-xim was given.
2666 if test "${with_xim+set}" = set; then :
2667 withval=$with_xim;
2668 else
2669 with_xim=yes
2670 fi
2671
2672
2673 # Check whether --with-ns was given.
2674 if test "${with_ns+set}" = set; then :
2675 withval=$with_ns;
2676 else
2677 with_ns=no
2678 fi
2679
2680
2681
2682 # Check whether --with-gpm was given.
2683 if test "${with_gpm+set}" = set; then :
2684 withval=$with_gpm;
2685 else
2686 with_gpm=yes
2687 fi
2688
2689
2690 # Check whether --with-dbus was given.
2691 if test "${with_dbus+set}" = set; then :
2692 withval=$with_dbus;
2693 else
2694 with_dbus=yes
2695 fi
2696
2697
2698 # Check whether --with-gconf was given.
2699 if test "${with_gconf+set}" = set; then :
2700 withval=$with_gconf;
2701 else
2702 with_gconf=yes
2703 fi
2704
2705
2706 ## For the times when you want to build Emacs but don't have
2707 ## a suitable makeinfo, and can live without the manuals.
2708
2709 # Check whether --with-makeinfo was given.
2710 if test "${with_makeinfo+set}" = set; then :
2711 withval=$with_makeinfo;
2712 else
2713 with_makeinfo=yes
2714 fi
2715
2716
2717
2718 # Check whether --with-gtk was given.
2719 if test "${with_gtk+set}" = set; then :
2720 withval=$with_gtk; as_fn_error $? "--with-gtk has been removed. Use --with-x-toolkit to
2721 specify a toolkit." "$LINENO" 5
2722 fi
2723
2724
2725
2726 # Check whether --with-gcc was given.
2727 if test "${with_gcc+set}" = set; then :
2728 withval=$with_gcc; as_fn_error $? "--with-gcc has been removed. Set the \`CC' environment
2729 variable to specify a compiler." "$LINENO" 5
2730 fi
2731
2732
2733
2734 # Check whether --with-pkg-config-prog was given.
2735 if test "${with_pkg_config_prog+set}" = set; then :
2736 withval=$with_pkg_config_prog;
2737 fi
2738
2739 if test "X${with_pkg_config_prog}" != X; then
2740 if test "${with_pkg_config_prog}" != yes; then
2741 PKG_CONFIG="${with_pkg_config_prog}"
2742 fi
2743 fi
2744
2745
2746 # Check whether --with-gnustep-conf was given.
2747 if test "${with_gnustep_conf+set}" = set; then :
2748 withval=$with_gnustep_conf;
2749 fi
2750
2751 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2752 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2753 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2754 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2755
2756 # Check whether --enable-ns-self-contained was given.
2757 if test "${enable_ns_self_contained+set}" = set; then :
2758 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2759 else
2760 EN_NS_SELF_CONTAINED=yes
2761 fi
2762
2763
2764 # Check whether --enable-asserts was given.
2765 if test "${enable_asserts+set}" = set; then :
2766 enableval=$enable_asserts; USE_XASSERTS=$enableval
2767 else
2768 USE_XASSERTS=no
2769 fi
2770
2771
2772 # Check whether --enable-maintainer-mode was given.
2773 if test "${enable_maintainer_mode+set}" = set; then :
2774 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2775 else
2776 USE_MAINTAINER_MODE=no
2777 fi
2778
2779 if test $USE_MAINTAINER_MODE = yes; then
2780 MAINT=
2781 else
2782 MAINT=#
2783 fi
2784
2785
2786 # Check whether --enable-locallisppath was given.
2787 if test "${enable_locallisppath+set}" = set; then :
2788 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2789 locallisppath=
2790 elif test "${enableval}" != "yes"; then
2791 locallisppath=${enableval}
2792 fi
2793 fi
2794
2795
2796 # Check whether --enable-checking was given.
2797 if test "${enable_checking+set}" = set; then :
2798 enableval=$enable_checking; ac_checking_flags="${enableval}"
2799 fi
2800
2801 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2802 for check in $ac_checking_flags
2803 do
2804 case $check in
2805 # these set all the flags to specific states
2806 yes) ac_enable_checking=1 ;;
2807 no) ac_enable_checking= ;
2808 ac_gc_check_stringbytes= ;
2809 ac_gc_check_string_overrun= ;
2810 ac_gc_check_string_free_list= ;
2811 ac_xmalloc_overrun= ;
2812 ac_gc_check_cons_list= ;;
2813 all) ac_enable_checking=1 ;
2814 ac_gc_check_stringbytes=1 ;
2815 ac_gc_check_string_overrun=1 ;
2816 ac_gc_check_string_free_list=1 ;
2817 ac_xmalloc_overrun=1 ;
2818 ac_gc_check_cons_list=1 ;;
2819 # these enable particular checks
2820 stringbytes) ac_gc_check_stringbytes=1 ;;
2821 stringoverrun) ac_gc_check_string_overrun=1 ;;
2822 stringfreelist) ac_gc_check_string_free_list=1 ;;
2823 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2824 conslist) ac_gc_check_cons_list=1 ;;
2825 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
2826 esac
2827 done
2828 IFS="$ac_save_IFS"
2829
2830 if test x$ac_enable_checking != x ; then
2831
2832 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2833
2834 fi
2835 if test x$ac_gc_check_stringbytes != x ; then
2836
2837 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2838
2839 fi
2840 if test x$ac_gc_check_stringoverrun != x ; then
2841
2842 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2843
2844 fi
2845 if test x$ac_gc_check_string_free_list != x ; then
2846
2847 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2848
2849 fi
2850 if test x$ac_xmalloc_overrun != x ; then
2851
2852 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2853
2854 fi
2855 if test x$ac_gc_check_cons_list != x ; then
2856
2857 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2858
2859 fi
2860
2861 # Check whether --enable-profiling was given.
2862 if test "${enable_profiling+set}" = set; then :
2863 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2864 fi
2865
2866 if test x$ac_enable_profiling != x ; then
2867 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2868 PROFILING_LDFLAGS="-pg"
2869 else
2870 PROFILING_CFLAGS=
2871 PROFILING_LDFLAGS=
2872 fi
2873
2874 # Check whether --enable-autodepend was given.
2875 if test "${enable_autodepend+set}" = set; then :
2876 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2877 else
2878 ac_enable_autodepend=yes
2879 fi
2880
2881
2882 #### Make srcdir absolute, if it isn't already. It's important to
2883 #### avoid running the path through pwd unnecessarily, since pwd can
2884 #### give you automounter prefixes, which can go away. We do all this
2885 #### so Emacs can find its files when run uninstalled.
2886 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2887 unset CDPATH
2888 case "${srcdir}" in
2889 /* ) ;;
2890 . )
2891 ## We may be able to use the $PWD environment variable to make this
2892 ## absolute. But sometimes PWD is inaccurate.
2893 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2894 ## but that tested only for a well-formed and valid PWD,
2895 ## it did not object when PWD was well-formed and valid but just wrong.
2896 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2897 then
2898 srcdir="$PWD"
2899 else
2900 srcdir="`(cd ${srcdir}; pwd)`"
2901 fi
2902 ;;
2903 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2904 esac
2905
2906 #### Check if the source directory already has a configured system in it.
2907 if test `pwd` != `(cd ${srcdir} && pwd)` \
2908 && test -f "${srcdir}/src/config.h" ; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
2910 as a build directory right now; it has been configured in its own
2911 right. To configure in another directory as well, you MUST
2912 use GNU make. If you do not have GNU make, then you must
2913 now do \`make distclean' in ${srcdir},
2914 and then run $0 again." >&5
2915 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2916 as a build directory right now; it has been configured in its own
2917 right. To configure in another directory as well, you MUST
2918 use GNU make. If you do not have GNU make, then you must
2919 now do \`make distclean' in ${srcdir},
2920 and then run $0 again." >&2;}
2921 fi
2922
2923 #### Given the configuration name, set machfile and opsysfile to the
2924 #### names of the m/*.h and s/*.h files we should use.
2925
2926 ### Canonicalize the configuration name.
2927
2928 ac_aux_dir=
2929 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2930 if test -f "$ac_dir/install-sh"; then
2931 ac_aux_dir=$ac_dir
2932 ac_install_sh="$ac_aux_dir/install-sh -c"
2933 break
2934 elif test -f "$ac_dir/install.sh"; then
2935 ac_aux_dir=$ac_dir
2936 ac_install_sh="$ac_aux_dir/install.sh -c"
2937 break
2938 elif test -f "$ac_dir/shtool"; then
2939 ac_aux_dir=$ac_dir
2940 ac_install_sh="$ac_aux_dir/shtool install -c"
2941 break
2942 fi
2943 done
2944 if test -z "$ac_aux_dir"; then
2945 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2946 fi
2947
2948 # These three variables are undocumented and unsupported,
2949 # and are intended to be withdrawn in a future Autoconf release.
2950 # They can cause serious problems if a builder's source tree is in a directory
2951 # whose full name contains unusual characters.
2952 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2953 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2954 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2955
2956
2957 # Make sure we can run config.sub.
2958 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2959 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2960
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2962 $as_echo_n "checking build system type... " >&6; }
2963 if test "${ac_cv_build+set}" = set; then :
2964 $as_echo_n "(cached) " >&6
2965 else
2966 ac_build_alias=$build_alias
2967 test "x$ac_build_alias" = x &&
2968 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2969 test "x$ac_build_alias" = x &&
2970 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2971 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2972 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2973
2974 fi
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2976 $as_echo "$ac_cv_build" >&6; }
2977 case $ac_cv_build in
2978 *-*-*) ;;
2979 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2980 esac
2981 build=$ac_cv_build
2982 ac_save_IFS=$IFS; IFS='-'
2983 set x $ac_cv_build
2984 shift
2985 build_cpu=$1
2986 build_vendor=$2
2987 shift; shift
2988 # Remember, the first character of IFS is used to create $*,
2989 # except with old shells:
2990 build_os=$*
2991 IFS=$ac_save_IFS
2992 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2993
2994
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2996 $as_echo_n "checking host system type... " >&6; }
2997 if test "${ac_cv_host+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
2999 else
3000 if test "x$host_alias" = x; then
3001 ac_cv_host=$ac_cv_build
3002 else
3003 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3004 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3005 fi
3006
3007 fi
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3009 $as_echo "$ac_cv_host" >&6; }
3010 case $ac_cv_host in
3011 *-*-*) ;;
3012 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3013 esac
3014 host=$ac_cv_host
3015 ac_save_IFS=$IFS; IFS='-'
3016 set x $ac_cv_host
3017 shift
3018 host_cpu=$1
3019 host_vendor=$2
3020 shift; shift
3021 # Remember, the first character of IFS is used to create $*,
3022 # except with old shells:
3023 host_os=$*
3024 IFS=$ac_save_IFS
3025 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3026
3027
3028 canonical=$host
3029 configuration=${host_alias-${build_alias-$host}}
3030
3031
3032
3033 ### If you add support for a new configuration, add code to this
3034 ### switch statement to recognize your configuration name and select
3035 ### the appropriate operating system and machine description files.
3036
3037 ### You would hope that you could choose an m/*.h file pretty much
3038 ### based on the machine portion of the configuration name, and an s-
3039 ### file based on the operating system portion. However, it turns out
3040 ### that each m/*.h file is pretty manufacturer-specific - for
3041 ### example mips.h is MIPS
3042 ### So we basically have to have a special case for each
3043 ### configuration name.
3044 ###
3045 ### As far as handling version numbers on operating systems is
3046 ### concerned, make sure things will fail in a fixable way. If
3047 ### /etc/MACHINES doesn't say anything about version numbers, be
3048 ### prepared to handle anything reasonably. If version numbers
3049 ### matter, be sure /etc/MACHINES says something about it.
3050 ###
3051 ### Eric Raymond says we should accept strings like "sysvr4" to mean
3052 ### "System V Release 4"; he writes, "The old convention encouraged
3053 ### confusion between `system' and `release' levels'."
3054
3055 machine='' opsys='' unported=no
3056 case "${canonical}" in
3057
3058 ## FreeBSD ports
3059 *-*-freebsd* )
3060 opsys=freebsd
3061 case "${canonical}" in
3062 alpha*-*-freebsd*) machine=alpha ;;
3063 arm*-*-freebsd*) machine=arm ;;
3064 ia64-*-freebsd*) machine=ia64 ;;
3065 sparc-*-freebsd*) machine=sparc ;;
3066 sparc64-*-freebsd*) machine=sparc ;;
3067 powerpc-*-freebsd*) machine=macppc ;;
3068 i[3456]86-*-freebsd*) machine=intel386 ;;
3069 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
3070 esac
3071 ;;
3072
3073 ## FreeBSD kernel + glibc based userland
3074 *-*-kfreebsd*gnu* )
3075 opsys=gnu-kfreebsd
3076 case "${canonical}" in
3077 alpha*-*-kfreebsd*) machine=alpha ;;
3078 ia64-*-kfreebsd*) machine=ia64 ;;
3079 sparc-*-kfreebsd*) machine=sparc ;;
3080 sparc64-*-kfreebsd*) machine=sparc ;;
3081 powerpc-*-kfreebsd*) machine=macppc ;;
3082 i[3456]86-*-kfreebsd*) machine=intel386 ;;
3083 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
3084 esac
3085 ;;
3086
3087 ## NetBSD ports
3088 *-*-netbsd* )
3089 opsys=netbsd
3090 if test -f /usr/lib/crti.o; then
3091
3092 $as_echo "#define HAVE_CRTIN /**/" >>confdefs.h
3093
3094 fi
3095
3096 case "${canonical}" in
3097 alpha*-*-netbsd*) machine=alpha ;;
3098 i[3456]86-*-netbsd*) machine=intel386 ;;
3099 mips-*-netbsd*) machine=mips ;;
3100 mipsel-*-netbsd*) machine=mips ;;
3101 mipseb-*-netbsd*) machine=mips ;;
3102 powerpc-*-netbsd*) machine=macppc ;;
3103 sparc*-*-netbsd*) machine=sparc ;;
3104 vax-*-netbsd*) machine=vax ;;
3105 arm-*-netbsd*) machine=arm ;;
3106 x86_64-*-netbsd*) machine=amdx86-64 ;;
3107 hppa-*-netbsd*) machine=hp800 ;;
3108 m68k-*-netbsd*) machine=m68k ;;
3109 esac
3110 ;;
3111
3112 ## OpenBSD ports
3113 *-*-openbsd* )
3114 opsys=openbsd
3115 case "${canonical}" in
3116 alpha*-*-openbsd*) machine=alpha ;;
3117 arm-*-openbsd*) machine=arm ;;
3118 i386-*-openbsd*) machine=intel386 ;;
3119 powerpc-*-openbsd*) machine=macppc ;;
3120 sparc*-*-openbsd*) machine=sparc ;;
3121 vax-*-openbsd*) machine=vax ;;
3122 x86_64-*-openbsd*) machine=amdx86-64 ;;
3123 hppa-*-openbsd*) machine=hp800 ;;
3124 esac
3125 ;;
3126
3127 ## LynxOS ports
3128 *-*-lynxos* )
3129 opsys=lynxos
3130 case "${canonical}" in
3131 i[3456]86-*-lynxos*) machine=intel386 ;;
3132 powerpc-*-lynxos*) machine=powerpc ;;
3133 esac
3134 ;;
3135
3136 alpha*-*-linux-gnu* )
3137 machine=alpha opsys=gnu-linux
3138 ;;
3139
3140 arm*-*-linux-gnu* )
3141 machine=arm opsys=gnu-linux
3142 ;;
3143
3144 ## Apple Darwin / Mac OS X
3145 *-apple-darwin* )
3146 case "${canonical}" in
3147 i[3456]86-* ) machine=intel386 ;;
3148 powerpc-* ) machine=macppc ;;
3149 x86_64-* ) machine=amdx86-64 ;;
3150 * ) unported=yes ;;
3151 esac
3152 opsys=darwin
3153 # Define CPP as follows to make autoconf work correctly.
3154 CPP="${CC-cc} -E -no-cpp-precomp"
3155 # Use fink packages if available.
3156 if test -d /sw/include && test -d /sw/lib; then
3157 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3158 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3159 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3160 fi
3161 ;;
3162
3163 ## HP 9000 series 700 and 800, running HP/UX
3164 hppa*-hp-hpux10.2* )
3165 machine=hp800 opsys=hpux10-20
3166 ;;
3167 hppa*-hp-hpux1[1-9]* )
3168 machine=hp800 opsys=hpux11
3169 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3170 ;;
3171
3172 hppa*-*-linux-gnu* )
3173 machine=hp800 opsys=gnu-linux
3174 ;;
3175
3176 ## IBM machines
3177 s390-*-linux-gnu* )
3178 machine=ibms390 opsys=gnu-linux
3179 ;;
3180 s390x-*-linux-gnu* )
3181 machine=ibms390x opsys=gnu-linux
3182 ;;
3183 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
3184 machine=ibmrs6000 opsys=aix4-2
3185 ;;
3186 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
3187 machine=ibmrs6000 opsys=aix4-2
3188 ;;
3189 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
3190 machine=ibmrs6000 opsys=aix4-2
3191 ;;
3192 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
3193 machine=ibmrs6000 opsys=aix4-2
3194 ;;
3195
3196 ## Macintosh PowerPC
3197 powerpc*-*-linux-gnu* )
3198 machine=macppc opsys=gnu-linux
3199 ;;
3200
3201 ## Silicon Graphics machines
3202 ## Iris 4D
3203 mips-sgi-irix6.5 )
3204 machine=iris4d opsys=irix6-5
3205 # Without defining _LANGUAGE_C, things get masked out in the headers
3206 # so that, for instance, grepping for `free' in stdlib.h fails and
3207 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3208 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3209 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3210 ;;
3211
3212 ## Suns
3213 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3214 machine=sparc opsys=gnu-linux
3215 ;;
3216
3217 *-sun-solaris* \
3218 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3219 | x86_64-*-solaris2* | x86_64-*-sunos5* \
3220 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
3221 case "${canonical}" in
3222 i[3456]86-*-* ) machine=intel386 ;;
3223 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3224 powerpc* | rs6000* ) machine=ibmrs6000 ;;
3225 sparc* ) machine=sparc ;;
3226 * ) unported=yes ;;
3227 esac
3228 case "${canonical}" in
3229 *-sunos5.3* | *-solaris2.3* )
3230 opsys=sol2-3
3231 NON_GNU_CPP=/usr/ccs/lib/cpp
3232 ;;
3233 *-sunos5.4* | *-solaris2.4* )
3234 opsys=sol2-4
3235 NON_GNU_CPP=/usr/ccs/lib/cpp
3236 RANLIB="ar -ts"
3237 ;;
3238 *-sunos5.5* | *-solaris2.5* )
3239 opsys=sol2-5
3240 NON_GNU_CPP=/usr/ccs/lib/cpp
3241 RANLIB="ar -ts"
3242 ;;
3243 *-sunos5.6* | *-solaris2.6* )
3244 opsys=sol2-6
3245 NON_GNU_CPP=/usr/ccs/lib/cpp
3246 RANLIB="ar -ts"
3247 ;;
3248 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3249 opsys=sol2-6
3250 emacs_check_sunpro_c=yes
3251 NON_GNU_CPP=/usr/ccs/lib/cpp
3252 ;;
3253 *-sunos5* | *-solaris* )
3254 opsys=sol2-10
3255 emacs_check_sunpro_c=yes
3256 NON_GNU_CPP=/usr/ccs/lib/cpp
3257 ;;
3258 esac
3259 ## Watch out for a compiler that we know will not work.
3260 case "${canonical}" in
3261 *-solaris* | *-sunos5* )
3262 if [ "x$CC" = x/usr/ucb/cc ]; then
3263 ## /usr/ucb/cc doesn't work;
3264 ## we should find some other compiler that does work.
3265 unset CC
3266 fi
3267 ;;
3268 *) ;;
3269 esac
3270 ;;
3271
3272 ## IA-64
3273 ia64*-*-linux* )
3274 machine=ia64 opsys=gnu-linux
3275 ;;
3276
3277 ## Intel 386 machines where we don't care about the manufacturer
3278 i[3456]86-*-* )
3279 machine=intel386
3280 case "${canonical}" in
3281 *-cygwin ) opsys=cygwin ;;
3282 *-darwin* ) opsys=darwin
3283 CPP="${CC-cc} -E -no-cpp-precomp"
3284 ;;
3285 *-linux-gnu* ) opsys=gnu-linux ;;
3286 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3287 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3288 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3289 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3290 esac
3291 ;;
3292
3293 ## m68k Linux-based GNU system
3294 m68k-*-linux-gnu* )
3295 machine=m68k opsys=gnu-linux
3296 ;;
3297
3298 ## Mips Linux-based GNU system
3299 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3300 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3301 machine=mips opsys=gnu-linux
3302 ;;
3303
3304 ## AMD x86-64 Linux-based GNU system
3305 x86_64-*-linux-gnu* )
3306 machine=amdx86-64 opsys=gnu-linux
3307 ;;
3308
3309 ## Tensilica Xtensa Linux-based GNU system
3310 xtensa*-*-linux-gnu* )
3311 machine=xtensa opsys=gnu-linux
3312 ;;
3313
3314 ## SuperH Linux-based GNU system
3315 sh[34]*-*-linux-gnu* )
3316 machine=sh3 opsys=gnu-linux
3317 ;;
3318
3319 * )
3320 unported=yes
3321 ;;
3322 esac
3323
3324 ### If the code above didn't choose an operating system, just choose
3325 ### an operating system based on the configuration name. You really
3326 ### only want to use this when you have no idea what the right
3327 ### operating system is; if you know what operating systems a machine
3328 ### runs, it's cleaner to make it explicit in the case statement
3329 ### above.
3330 if test x"${opsys}" = x; then
3331 case "${canonical}" in
3332 *-gnu* ) opsys=gnu ;;
3333 *-sysv4.2uw* ) opsys=unixware ;;
3334 *-sysv5uw* ) opsys=unixware ;;
3335 *-sysv5OpenUNIX* ) opsys=unixware ;;
3336 *-sysv4.1* | *-sysvr4.1* )
3337 NON_GNU_CPP=/usr/lib/cpp
3338 opsys=usg5-4 ;;
3339 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3340 if [ x$NON_GNU_CPP = x ]; then
3341 if [ -f /usr/ccs/lib/cpp ]; then
3342 NON_GNU_CPP=/usr/ccs/lib/cpp
3343 else
3344 NON_GNU_CPP=/lib/cpp
3345 fi
3346 fi
3347 opsys=usg5-4-2 ;;
3348 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3349 * )
3350 unported=yes
3351 ;;
3352 esac
3353 fi
3354
3355
3356
3357 if test $unported = yes; then
3358 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
3359 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3360 fi
3361
3362 machfile="m/${machine}.h"
3363 opsysfile="s/${opsys}.h"
3364
3365
3366 #### Choose a compiler.
3367 test -n "$CC" && cc_specified=yes
3368
3369 # Save the value of CFLAGS that the user specified.
3370 SPECIFIED_CFLAGS="$CFLAGS"
3371
3372 ac_ext=c
3373 ac_cpp='$CPP $CPPFLAGS'
3374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3377 if test -n "$ac_tool_prefix"; then
3378 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3379 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if test "${ac_cv_prog_CC+set}" = set; then :
3383 $as_echo_n "(cached) " >&6
3384 else
3385 if test -n "$CC"; then
3386 ac_cv_prog_CC="$CC" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3390 do
3391 IFS=$as_save_IFS
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 break 2
3398 fi
3399 done
3400 done
3401 IFS=$as_save_IFS
3402
3403 fi
3404 fi
3405 CC=$ac_cv_prog_CC
3406 if test -n "$CC"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3408 $as_echo "$CC" >&6; }
3409 else
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3412 fi
3413
3414
3415 fi
3416 if test -z "$ac_cv_prog_CC"; then
3417 ac_ct_CC=$CC
3418 # Extract the first word of "gcc", so it can be a program name with args.
3419 set dummy gcc; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 if test -n "$ac_ct_CC"; then
3426 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3430 do
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435 ac_cv_prog_ac_ct_CC="gcc"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 break 2
3438 fi
3439 done
3440 done
3441 IFS=$as_save_IFS
3442
3443 fi
3444 fi
3445 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3446 if test -n "$ac_ct_CC"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3448 $as_echo "$ac_ct_CC" >&6; }
3449 else
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3452 fi
3453
3454 if test "x$ac_ct_CC" = x; then
3455 CC=""
3456 else
3457 case $cross_compiling:$ac_tool_warned in
3458 yes:)
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3461 ac_tool_warned=yes ;;
3462 esac
3463 CC=$ac_ct_CC
3464 fi
3465 else
3466 CC="$ac_cv_prog_CC"
3467 fi
3468
3469 if test -z "$CC"; then
3470 if test -n "$ac_tool_prefix"; then
3471 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3472 set dummy ${ac_tool_prefix}cc; ac_word=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if test "${ac_cv_prog_CC+set}" = set; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 if test -n "$CC"; then
3479 ac_cv_prog_CC="$CC" # Let the user override the test.
3480 else
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3483 do
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488 ac_cv_prog_CC="${ac_tool_prefix}cc"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 break 2
3491 fi
3492 done
3493 done
3494 IFS=$as_save_IFS
3495
3496 fi
3497 fi
3498 CC=$ac_cv_prog_CC
3499 if test -n "$CC"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3501 $as_echo "$CC" >&6; }
3502 else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3505 fi
3506
3507
3508 fi
3509 fi
3510 if test -z "$CC"; then
3511 # Extract the first word of "cc", so it can be a program name with args.
3512 set dummy cc; ac_word=$2
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if test "${ac_cv_prog_CC+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
3517 else
3518 if test -n "$CC"; then
3519 ac_cv_prog_CC="$CC" # Let the user override the test.
3520 else
3521 ac_prog_rejected=no
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3530 ac_prog_rejected=yes
3531 continue
3532 fi
3533 ac_cv_prog_CC="cc"
3534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 break 2
3536 fi
3537 done
3538 done
3539 IFS=$as_save_IFS
3540
3541 if test $ac_prog_rejected = yes; then
3542 # We found a bogon in the path, so make sure we never use it.
3543 set dummy $ac_cv_prog_CC
3544 shift
3545 if test $# != 0; then
3546 # We chose a different compiler from the bogus one.
3547 # However, it has the same basename, so the bogon will be chosen
3548 # first if we set CC to just the basename; use the full file name.
3549 shift
3550 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3551 fi
3552 fi
3553 fi
3554 fi
3555 CC=$ac_cv_prog_CC
3556 if test -n "$CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3558 $as_echo "$CC" >&6; }
3559 else
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3562 fi
3563
3564
3565 fi
3566 if test -z "$CC"; then
3567 if test -n "$ac_tool_prefix"; then
3568 for ac_prog in cl.exe
3569 do
3570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 $as_echo_n "checking for $ac_word... " >&6; }
3574 if test "${ac_cv_prog_CC+set}" = set; then :
3575 $as_echo_n "(cached) " >&6
3576 else
3577 if test -n "$CC"; then
3578 ac_cv_prog_CC="$CC" # Let the user override the test.
3579 else
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH
3582 do
3583 IFS=$as_save_IFS
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3587 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 break 2
3590 fi
3591 done
3592 done
3593 IFS=$as_save_IFS
3594
3595 fi
3596 fi
3597 CC=$ac_cv_prog_CC
3598 if test -n "$CC"; then
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3600 $as_echo "$CC" >&6; }
3601 else
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3604 fi
3605
3606
3607 test -n "$CC" && break
3608 done
3609 fi
3610 if test -z "$CC"; then
3611 ac_ct_CC=$CC
3612 for ac_prog in cl.exe
3613 do
3614 # Extract the first word of "$ac_prog", so it can be a program name with args.
3615 set dummy $ac_prog; ac_word=$2
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3619 $as_echo_n "(cached) " >&6
3620 else
3621 if test -n "$ac_ct_CC"; then
3622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3623 else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH
3626 do
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3631 ac_cv_prog_ac_ct_CC="$ac_prog"
3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3633 break 2
3634 fi
3635 done
3636 done
3637 IFS=$as_save_IFS
3638
3639 fi
3640 fi
3641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3642 if test -n "$ac_ct_CC"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3644 $as_echo "$ac_ct_CC" >&6; }
3645 else
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3648 fi
3649
3650
3651 test -n "$ac_ct_CC" && break
3652 done
3653
3654 if test "x$ac_ct_CC" = x; then
3655 CC=""
3656 else
3657 case $cross_compiling:$ac_tool_warned in
3658 yes:)
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3661 ac_tool_warned=yes ;;
3662 esac
3663 CC=$ac_ct_CC
3664 fi
3665 fi
3666
3667 fi
3668
3669
3670 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672 as_fn_error $? "no acceptable C compiler found in \$PATH
3673 See \`config.log' for more details" "$LINENO" 5; }
3674
3675 # Provide some information about the compiler.
3676 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3677 set X $ac_compile
3678 ac_compiler=$2
3679 for ac_option in --version -v -V -qversion; do
3680 { { ac_try="$ac_compiler $ac_option >&5"
3681 case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3684 esac
3685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3686 $as_echo "$ac_try_echo"; } >&5
3687 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3688 ac_status=$?
3689 if test -s conftest.err; then
3690 sed '10a\
3691 ... rest of stderr output deleted ...
3692 10q' conftest.err >conftest.er1
3693 cat conftest.er1 >&5
3694 fi
3695 rm -f conftest.er1 conftest.err
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }
3698 done
3699
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3702
3703 int
3704 main ()
3705 {
3706
3707 ;
3708 return 0;
3709 }
3710 _ACEOF
3711 ac_clean_files_save=$ac_clean_files
3712 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3713 # Try to create an executable without -o first, disregard a.out.
3714 # It will help us diagnose broken compilers, and finding out an intuition
3715 # of exeext.
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3717 $as_echo_n "checking whether the C compiler works... " >&6; }
3718 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3719
3720 # The possible output files:
3721 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3722
3723 ac_rmfiles=
3724 for ac_file in $ac_files
3725 do
3726 case $ac_file in
3727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3728 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3729 esac
3730 done
3731 rm -f $ac_rmfiles
3732
3733 if { { ac_try="$ac_link_default"
3734 case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737 esac
3738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739 $as_echo "$ac_try_echo"; } >&5
3740 (eval "$ac_link_default") 2>&5
3741 ac_status=$?
3742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3743 test $ac_status = 0; }; then :
3744 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3745 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3746 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3747 # so that the user can short-circuit this test for compilers unknown to
3748 # Autoconf.
3749 for ac_file in $ac_files ''
3750 do
3751 test -f "$ac_file" || continue
3752 case $ac_file in
3753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3754 ;;
3755 [ab].out )
3756 # We found the default executable, but exeext='' is most
3757 # certainly right.
3758 break;;
3759 *.* )
3760 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3761 then :; else
3762 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3763 fi
3764 # We set ac_cv_exeext here because the later test for it is not
3765 # safe: cross compilers may not add the suffix if given an `-o'
3766 # argument, so we may need to know it at that point already.
3767 # Even if this section looks crufty: it has the advantage of
3768 # actually working.
3769 break;;
3770 * )
3771 break;;
3772 esac
3773 done
3774 test "$ac_cv_exeext" = no && ac_cv_exeext=
3775
3776 else
3777 ac_file=''
3778 fi
3779 if test -z "$ac_file"; then :
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 $as_echo "no" >&6; }
3782 $as_echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3784
3785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error 77 "C compiler cannot create executables
3788 See \`config.log' for more details" "$LINENO" 5; }
3789 else
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3791 $as_echo "yes" >&6; }
3792 fi
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3794 $as_echo_n "checking for C compiler default output file name... " >&6; }
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3796 $as_echo "$ac_file" >&6; }
3797 ac_exeext=$ac_cv_exeext
3798
3799 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3800 ac_clean_files=$ac_clean_files_save
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3802 $as_echo_n "checking for suffix of executables... " >&6; }
3803 if { { ac_try="$ac_link"
3804 case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810 (eval "$ac_link") 2>&5
3811 ac_status=$?
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }; then :
3814 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3815 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3816 # work properly (i.e., refer to `conftest.exe'), while it won't with
3817 # `rm'.
3818 for ac_file in conftest.exe conftest conftest.*; do
3819 test -f "$ac_file" || continue
3820 case $ac_file in
3821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3822 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3823 break;;
3824 * ) break;;
3825 esac
3826 done
3827 else
3828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3831 See \`config.log' for more details" "$LINENO" 5; }
3832 fi
3833 rm -f conftest conftest$ac_cv_exeext
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3835 $as_echo "$ac_cv_exeext" >&6; }
3836
3837 rm -f conftest.$ac_ext
3838 EXEEXT=$ac_cv_exeext
3839 ac_exeext=$EXEEXT
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #include <stdio.h>
3843 int
3844 main ()
3845 {
3846 FILE *f = fopen ("conftest.out", "w");
3847 return ferror (f) || fclose (f) != 0;
3848
3849 ;
3850 return 0;
3851 }
3852 _ACEOF
3853 ac_clean_files="$ac_clean_files conftest.out"
3854 # Check that the compiler produces executables we can run. If not, either
3855 # the compiler is broken, or we cross compile.
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3857 $as_echo_n "checking whether we are cross compiling... " >&6; }
3858 if test "$cross_compiling" != yes; then
3859 { { ac_try="$ac_link"
3860 case "(($ac_try" in
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3863 esac
3864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865 $as_echo "$ac_try_echo"; } >&5
3866 (eval "$ac_link") 2>&5
3867 ac_status=$?
3868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869 test $ac_status = 0; }
3870 if { ac_try='./conftest$ac_cv_exeext'
3871 { { case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 $as_echo "$ac_try_echo"; } >&5
3877 (eval "$ac_try") 2>&5
3878 ac_status=$?
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }; }; then
3881 cross_compiling=no
3882 else
3883 if test "$cross_compiling" = maybe; then
3884 cross_compiling=yes
3885 else
3886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3888 as_fn_error $? "cannot run C compiled programs.
3889 If you meant to cross compile, use \`--host'.
3890 See \`config.log' for more details" "$LINENO" 5; }
3891 fi
3892 fi
3893 fi
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3895 $as_echo "$cross_compiling" >&6; }
3896
3897 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3898 ac_clean_files=$ac_clean_files_save
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3900 $as_echo_n "checking for suffix of object files... " >&6; }
3901 if test "${ac_cv_objext+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3906
3907 int
3908 main ()
3909 {
3910
3911 ;
3912 return 0;
3913 }
3914 _ACEOF
3915 rm -f conftest.o conftest.obj
3916 if { { ac_try="$ac_compile"
3917 case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_compile") 2>&5
3924 ac_status=$?
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; then :
3927 for ac_file in conftest.o conftest.obj conftest.*; do
3928 test -f "$ac_file" || continue;
3929 case $ac_file in
3930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3931 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3932 break;;
3933 esac
3934 done
3935 else
3936 $as_echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3941 as_fn_error $? "cannot compute suffix of object files: cannot compile
3942 See \`config.log' for more details" "$LINENO" 5; }
3943 fi
3944 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3945 fi
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3947 $as_echo "$ac_cv_objext" >&6; }
3948 OBJEXT=$ac_cv_objext
3949 ac_objext=$OBJEXT
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3951 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3952 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3953 $as_echo_n "(cached) " >&6
3954 else
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3957
3958 int
3959 main ()
3960 {
3961 #ifndef __GNUC__
3962 choke me
3963 #endif
3964
3965 ;
3966 return 0;
3967 }
3968 _ACEOF
3969 if ac_fn_c_try_compile "$LINENO"; then :
3970 ac_compiler_gnu=yes
3971 else
3972 ac_compiler_gnu=no
3973 fi
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3976
3977 fi
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3979 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3980 if test $ac_compiler_gnu = yes; then
3981 GCC=yes
3982 else
3983 GCC=
3984 fi
3985 ac_test_CFLAGS=${CFLAGS+set}
3986 ac_save_CFLAGS=$CFLAGS
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3988 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3989 if test "${ac_cv_prog_cc_g+set}" = set; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 ac_save_c_werror_flag=$ac_c_werror_flag
3993 ac_c_werror_flag=yes
3994 ac_cv_prog_cc_g=no
3995 CFLAGS="-g"
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998
3999 int
4000 main ()
4001 {
4002
4003 ;
4004 return 0;
4005 }
4006 _ACEOF
4007 if ac_fn_c_try_compile "$LINENO"; then :
4008 ac_cv_prog_cc_g=yes
4009 else
4010 CFLAGS=""
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4013
4014 int
4015 main ()
4016 {
4017
4018 ;
4019 return 0;
4020 }
4021 _ACEOF
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023
4024 else
4025 ac_c_werror_flag=$ac_save_c_werror_flag
4026 CFLAGS="-g"
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4029
4030 int
4031 main ()
4032 {
4033
4034 ;
4035 return 0;
4036 }
4037 _ACEOF
4038 if ac_fn_c_try_compile "$LINENO"; then :
4039 ac_cv_prog_cc_g=yes
4040 fi
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 fi
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 fi
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 ac_c_werror_flag=$ac_save_c_werror_flag
4047 fi
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4049 $as_echo "$ac_cv_prog_cc_g" >&6; }
4050 if test "$ac_test_CFLAGS" = set; then
4051 CFLAGS=$ac_save_CFLAGS
4052 elif test $ac_cv_prog_cc_g = yes; then
4053 if test "$GCC" = yes; then
4054 CFLAGS="-g -O2"
4055 else
4056 CFLAGS="-g"
4057 fi
4058 else
4059 if test "$GCC" = yes; then
4060 CFLAGS="-O2"
4061 else
4062 CFLAGS=
4063 fi
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4066 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4067 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 ac_cv_prog_cc_c89=no
4071 ac_save_CC=$CC
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4074 #include <stdarg.h>
4075 #include <stdio.h>
4076 #include <sys/types.h>
4077 #include <sys/stat.h>
4078 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4079 struct buf { int x; };
4080 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4081 static char *e (p, i)
4082 char **p;
4083 int i;
4084 {
4085 return p[i];
4086 }
4087 static char *f (char * (*g) (char **, int), char **p, ...)
4088 {
4089 char *s;
4090 va_list v;
4091 va_start (v,p);
4092 s = g (p, va_arg (v,int));
4093 va_end (v);
4094 return s;
4095 }
4096
4097 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4098 function prototypes and stuff, but not '\xHH' hex character constants.
4099 These don't provoke an error unfortunately, instead are silently treated
4100 as 'x'. The following induces an error, until -std is added to get
4101 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4102 array size at least. It's necessary to write '\x00'==0 to get something
4103 that's true only with -std. */
4104 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4105
4106 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4107 inside strings and character constants. */
4108 #define FOO(x) 'x'
4109 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4110
4111 int test (int i, double x);
4112 struct s1 {int (*f) (int a);};
4113 struct s2 {int (*f) (double a);};
4114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4115 int argc;
4116 char **argv;
4117 int
4118 main ()
4119 {
4120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4121 ;
4122 return 0;
4123 }
4124 _ACEOF
4125 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4126 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4127 do
4128 CC="$ac_save_CC $ac_arg"
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130 ac_cv_prog_cc_c89=$ac_arg
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext
4133 test "x$ac_cv_prog_cc_c89" != "xno" && break
4134 done
4135 rm -f conftest.$ac_ext
4136 CC=$ac_save_CC
4137
4138 fi
4139 # AC_CACHE_VAL
4140 case "x$ac_cv_prog_cc_c89" in
4141 x)
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4143 $as_echo "none needed" >&6; } ;;
4144 xno)
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4146 $as_echo "unsupported" >&6; } ;;
4147 *)
4148 CC="$CC $ac_cv_prog_cc_c89"
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4150 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4151 esac
4152 if test "x$ac_cv_prog_cc_c89" != xno; then :
4153
4154 fi
4155
4156 ac_ext=c
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161
4162
4163 # On Suns, sometimes $CPP names a directory.
4164 if test -n "$CPP" && test -d "$CPP"; then
4165 CPP=
4166 fi
4167
4168 ## If not using gcc, and on Solaris, and no CPP specified, see if
4169 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4170 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4171 test x"$CPP" = x; then
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4173 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4174
4175 if test "${emacs_cv_sunpro_c+set}" = set; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180
4181 int
4182 main ()
4183 {
4184 #ifndef __SUNPRO_C
4185 fail;
4186 #endif
4187
4188 ;
4189 return 0;
4190 }
4191 _ACEOF
4192 if ac_fn_c_try_link "$LINENO"; then :
4193 emacs_cv_sunpro_c=yes
4194 else
4195 emacs_cv_sunpro_c=no
4196 fi
4197 rm -f core conftest.err conftest.$ac_objext \
4198 conftest$ac_exeext conftest.$ac_ext
4199 fi
4200
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4202 $as_echo "$emacs_cv_sunpro_c" >&6; }
4203
4204 if test x"$emacs_cv_sunpro_c" = xyes; then
4205 NON_GNU_CPP="$CC -E -Xs"
4206 fi
4207 fi
4208
4209 #### Some systems specify a CPP to use unless we are using GCC.
4210 #### Now that we know whether we are using GCC, we can decide whether
4211 #### to use that one.
4212 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4213 then
4214 CPP="$NON_GNU_CPP"
4215 fi
4216
4217 #### Some systems specify a CC to use unless we are using GCC.
4218 #### Now that we know whether we are using GCC, we can decide whether
4219 #### to use that one.
4220 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4221 test x$cc_specified != xyes
4222 then
4223 CC="$NON_GNU_CC"
4224 fi
4225
4226 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4227 then
4228 CC="$CC $GCC_TEST_OPTIONS"
4229 fi
4230
4231 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4232 then
4233 CC="$CC $NON_GCC_TEST_OPTIONS"
4234 fi
4235
4236 ac_ext=c
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4242 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4243 # On Suns, sometimes $CPP names a directory.
4244 if test -n "$CPP" && test -d "$CPP"; then
4245 CPP=
4246 fi
4247 if test -z "$CPP"; then
4248 if test "${ac_cv_prog_CPP+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 # Double quotes because CPP needs to be expanded
4252 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4253 do
4254 ac_preproc_ok=false
4255 for ac_c_preproc_warn_flag in '' yes
4256 do
4257 # Use a header file that comes with gcc, so configuring glibc
4258 # with a fresh cross-compiler works.
4259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4260 # <limits.h> exists even on freestanding compilers.
4261 # On the NeXT, cc -E runs the code through the compiler's parser,
4262 # not just through cpp. "Syntax error" is here to catch this case.
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4265 #ifdef __STDC__
4266 # include <limits.h>
4267 #else
4268 # include <assert.h>
4269 #endif
4270 Syntax error
4271 _ACEOF
4272 if ac_fn_c_try_cpp "$LINENO"; then :
4273
4274 else
4275 # Broken: fails on valid input.
4276 continue
4277 fi
4278 rm -f conftest.err conftest.i conftest.$ac_ext
4279
4280 # OK, works on sane cases. Now check whether nonexistent headers
4281 # can be detected and how.
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284 #include <ac_nonexistent.h>
4285 _ACEOF
4286 if ac_fn_c_try_cpp "$LINENO"; then :
4287 # Broken: success on invalid input.
4288 continue
4289 else
4290 # Passes both tests.
4291 ac_preproc_ok=:
4292 break
4293 fi
4294 rm -f conftest.err conftest.i conftest.$ac_ext
4295
4296 done
4297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4298 rm -f conftest.i conftest.err conftest.$ac_ext
4299 if $ac_preproc_ok; then :
4300 break
4301 fi
4302
4303 done
4304 ac_cv_prog_CPP=$CPP
4305
4306 fi
4307 CPP=$ac_cv_prog_CPP
4308 else
4309 ac_cv_prog_CPP=$CPP
4310 fi
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4312 $as_echo "$CPP" >&6; }
4313 ac_preproc_ok=false
4314 for ac_c_preproc_warn_flag in '' yes
4315 do
4316 # Use a header file that comes with gcc, so configuring glibc
4317 # with a fresh cross-compiler works.
4318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4319 # <limits.h> exists even on freestanding compilers.
4320 # On the NeXT, cc -E runs the code through the compiler's parser,
4321 # not just through cpp. "Syntax error" is here to catch this case.
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4324 #ifdef __STDC__
4325 # include <limits.h>
4326 #else
4327 # include <assert.h>
4328 #endif
4329 Syntax error
4330 _ACEOF
4331 if ac_fn_c_try_cpp "$LINENO"; then :
4332
4333 else
4334 # Broken: fails on valid input.
4335 continue
4336 fi
4337 rm -f conftest.err conftest.i conftest.$ac_ext
4338
4339 # OK, works on sane cases. Now check whether nonexistent headers
4340 # can be detected and how.
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343 #include <ac_nonexistent.h>
4344 _ACEOF
4345 if ac_fn_c_try_cpp "$LINENO"; then :
4346 # Broken: success on invalid input.
4347 continue
4348 else
4349 # Passes both tests.
4350 ac_preproc_ok=:
4351 break
4352 fi
4353 rm -f conftest.err conftest.i conftest.$ac_ext
4354
4355 done
4356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4357 rm -f conftest.i conftest.err conftest.$ac_ext
4358 if $ac_preproc_ok; then :
4359
4360 else
4361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4363 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4364 See \`config.log' for more details" "$LINENO" 5; }
4365 fi
4366
4367 ac_ext=c
4368 ac_cpp='$CPP $CPPFLAGS'
4369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4372
4373
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4375 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4376 if test "${ac_cv_path_GREP+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 if test -z "$GREP"; then
4380 ac_path_GREP_found=false
4381 # Loop through the user's path and test for each of PROGNAME-LIST
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4384 do
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_prog in grep ggrep; do
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4390 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4391 # Check for GNU ac_path_GREP and select it if it is found.
4392 # Check for GNU $ac_path_GREP
4393 case `"$ac_path_GREP" --version 2>&1` in
4394 *GNU*)
4395 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4396 *)
4397 ac_count=0
4398 $as_echo_n 0123456789 >"conftest.in"
4399 while :
4400 do
4401 cat "conftest.in" "conftest.in" >"conftest.tmp"
4402 mv "conftest.tmp" "conftest.in"
4403 cp "conftest.in" "conftest.nl"
4404 $as_echo 'GREP' >> "conftest.nl"
4405 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4406 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4407 as_fn_arith $ac_count + 1 && ac_count=$as_val
4408 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4409 # Best one so far, save it but keep looking for a better one
4410 ac_cv_path_GREP="$ac_path_GREP"
4411 ac_path_GREP_max=$ac_count
4412 fi
4413 # 10*(2^10) chars as input seems more than enough
4414 test $ac_count -gt 10 && break
4415 done
4416 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4417 esac
4418
4419 $ac_path_GREP_found && break 3
4420 done
4421 done
4422 done
4423 IFS=$as_save_IFS
4424 if test -z "$ac_cv_path_GREP"; then
4425 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4426 fi
4427 else
4428 ac_cv_path_GREP=$GREP
4429 fi
4430
4431 fi
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4433 $as_echo "$ac_cv_path_GREP" >&6; }
4434 GREP="$ac_cv_path_GREP"
4435
4436
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4438 $as_echo_n "checking for egrep... " >&6; }
4439 if test "${ac_cv_path_EGREP+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4443 then ac_cv_path_EGREP="$GREP -E"
4444 else
4445 if test -z "$EGREP"; then
4446 ac_path_EGREP_found=false
4447 # Loop through the user's path and test for each of PROGNAME-LIST
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4450 do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_prog in egrep; do
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4456 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4457 # Check for GNU ac_path_EGREP and select it if it is found.
4458 # Check for GNU $ac_path_EGREP
4459 case `"$ac_path_EGREP" --version 2>&1` in
4460 *GNU*)
4461 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4462 *)
4463 ac_count=0
4464 $as_echo_n 0123456789 >"conftest.in"
4465 while :
4466 do
4467 cat "conftest.in" "conftest.in" >"conftest.tmp"
4468 mv "conftest.tmp" "conftest.in"
4469 cp "conftest.in" "conftest.nl"
4470 $as_echo 'EGREP' >> "conftest.nl"
4471 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4472 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4473 as_fn_arith $ac_count + 1 && ac_count=$as_val
4474 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4475 # Best one so far, save it but keep looking for a better one
4476 ac_cv_path_EGREP="$ac_path_EGREP"
4477 ac_path_EGREP_max=$ac_count
4478 fi
4479 # 10*(2^10) chars as input seems more than enough
4480 test $ac_count -gt 10 && break
4481 done
4482 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4483 esac
4484
4485 $ac_path_EGREP_found && break 3
4486 done
4487 done
4488 done
4489 IFS=$as_save_IFS
4490 if test -z "$ac_cv_path_EGREP"; then
4491 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4492 fi
4493 else
4494 ac_cv_path_EGREP=$EGREP
4495 fi
4496
4497 fi
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4500 $as_echo "$ac_cv_path_EGREP" >&6; }
4501 EGREP="$ac_cv_path_EGREP"
4502
4503
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4505 $as_echo_n "checking for ANSI C header files... " >&6; }
4506 if test "${ac_cv_header_stdc+set}" = set; then :
4507 $as_echo_n "(cached) " >&6
4508 else
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4511 #include <stdlib.h>
4512 #include <stdarg.h>
4513 #include <string.h>
4514 #include <float.h>
4515
4516 int
4517 main ()
4518 {
4519
4520 ;
4521 return 0;
4522 }
4523 _ACEOF
4524 if ac_fn_c_try_compile "$LINENO"; then :
4525 ac_cv_header_stdc=yes
4526 else
4527 ac_cv_header_stdc=no
4528 fi
4529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530
4531 if test $ac_cv_header_stdc = yes; then
4532 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535 #include <string.h>
4536
4537 _ACEOF
4538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4539 $EGREP "memchr" >/dev/null 2>&1; then :
4540
4541 else
4542 ac_cv_header_stdc=no
4543 fi
4544 rm -f conftest*
4545
4546 fi
4547
4548 if test $ac_cv_header_stdc = yes; then
4549 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4552 #include <stdlib.h>
4553
4554 _ACEOF
4555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4556 $EGREP "free" >/dev/null 2>&1; then :
4557
4558 else
4559 ac_cv_header_stdc=no
4560 fi
4561 rm -f conftest*
4562
4563 fi
4564
4565 if test $ac_cv_header_stdc = yes; then
4566 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4567 if test "$cross_compiling" = yes; then :
4568 :
4569 else
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4572 #include <ctype.h>
4573 #include <stdlib.h>
4574 #if ((' ' & 0x0FF) == 0x020)
4575 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4576 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4577 #else
4578 # define ISLOWER(c) \
4579 (('a' <= (c) && (c) <= 'i') \
4580 || ('j' <= (c) && (c) <= 'r') \
4581 || ('s' <= (c) && (c) <= 'z'))
4582 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4583 #endif
4584
4585 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4586 int
4587 main ()
4588 {
4589 int i;
4590 for (i = 0; i < 256; i++)
4591 if (XOR (islower (i), ISLOWER (i))
4592 || toupper (i) != TOUPPER (i))
4593 return 2;
4594 return 0;
4595 }
4596 _ACEOF
4597 if ac_fn_c_try_run "$LINENO"; then :
4598
4599 else
4600 ac_cv_header_stdc=no
4601 fi
4602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4603 conftest.$ac_objext conftest.beam conftest.$ac_ext
4604 fi
4605
4606 fi
4607 fi
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4609 $as_echo "$ac_cv_header_stdc" >&6; }
4610 if test $ac_cv_header_stdc = yes; then
4611
4612 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4613
4614 fi
4615
4616 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4617 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4618 inttypes.h stdint.h unistd.h
4619 do :
4620 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4621 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4622 "
4623 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4624 cat >>confdefs.h <<_ACEOF
4625 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4626 _ACEOF
4627
4628 fi
4629
4630 done
4631
4632
4633
4634 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4635 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4636 MINIX=yes
4637 else
4638 MINIX=
4639 fi
4640
4641
4642 if test "$MINIX" = yes; then
4643
4644 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4645
4646
4647 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4648
4649
4650 $as_echo "#define _MINIX 1" >>confdefs.h
4651
4652 fi
4653
4654
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4656 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4657 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662
4663 # define __EXTENSIONS__ 1
4664 $ac_includes_default
4665 int
4666 main ()
4667 {
4668
4669 ;
4670 return 0;
4671 }
4672 _ACEOF
4673 if ac_fn_c_try_compile "$LINENO"; then :
4674 ac_cv_safe_to_define___extensions__=yes
4675 else
4676 ac_cv_safe_to_define___extensions__=no
4677 fi
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 fi
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4681 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4682 test $ac_cv_safe_to_define___extensions__ = yes &&
4683 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4684
4685 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4686
4687 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4688
4689 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4690
4691 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4692
4693
4694
4695 ### Use -Wno-pointer-sign if the compiler supports it
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4697 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4698 SAVE_CFLAGS="$CFLAGS"
4699 CFLAGS="$CFLAGS -Wno-pointer-sign"
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702
4703 int
4704 main ()
4705 {
4706
4707 ;
4708 return 0;
4709 }
4710 _ACEOF
4711 if ac_fn_c_try_compile "$LINENO"; then :
4712 has_option=yes
4713 else
4714 has_option=no
4715 fi
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 if test $has_option = yes; then
4718 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4719 fi
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4721 $as_echo "$has_option" >&6; }
4722 CFLAGS="$SAVE_CFLAGS"
4723 unset has_option
4724 unset SAVE_CFLAGS
4725
4726 ### Use -Wdeclaration-after-statement if the compiler supports it
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4728 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4729 SAVE_CFLAGS="$CFLAGS"
4730 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4733
4734 int
4735 main ()
4736 {
4737
4738 ;
4739 return 0;
4740 }
4741 _ACEOF
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 has_option=yes
4744 else
4745 has_option=no
4746 fi
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 if test $has_option = yes; then
4749 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4750 fi
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4752 $as_echo "$has_option" >&6; }
4753 CFLAGS="$SAVE_CFLAGS"
4754 unset has_option
4755 unset SAVE_CFLAGS
4756
4757 #### Some other nice autoconf tests.
4758
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4760 $as_echo_n "checking whether ln -s works... " >&6; }
4761 LN_S=$as_ln_s
4762 if test "$LN_S" = "ln -s"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4764 $as_echo "yes" >&6; }
4765 else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4767 $as_echo "no, using $LN_S" >&6; }
4768 fi
4769
4770 ac_ext=c
4771 ac_cpp='$CPP $CPPFLAGS'
4772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4776 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4777 # On Suns, sometimes $CPP names a directory.
4778 if test -n "$CPP" && test -d "$CPP"; then
4779 CPP=
4780 fi
4781 if test -z "$CPP"; then
4782 if test "${ac_cv_prog_CPP+set}" = set; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 # Double quotes because CPP needs to be expanded
4786 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4787 do
4788 ac_preproc_ok=false
4789 for ac_c_preproc_warn_flag in '' yes
4790 do
4791 # Use a header file that comes with gcc, so configuring glibc
4792 # with a fresh cross-compiler works.
4793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4794 # <limits.h> exists even on freestanding compilers.
4795 # On the NeXT, cc -E runs the code through the compiler's parser,
4796 # not just through cpp. "Syntax error" is here to catch this case.
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4799 #ifdef __STDC__
4800 # include <limits.h>
4801 #else
4802 # include <assert.h>
4803 #endif
4804 Syntax error
4805 _ACEOF
4806 if ac_fn_c_try_cpp "$LINENO"; then :
4807
4808 else
4809 # Broken: fails on valid input.
4810 continue
4811 fi
4812 rm -f conftest.err conftest.i conftest.$ac_ext
4813
4814 # OK, works on sane cases. Now check whether nonexistent headers
4815 # can be detected and how.
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818 #include <ac_nonexistent.h>
4819 _ACEOF
4820 if ac_fn_c_try_cpp "$LINENO"; then :
4821 # Broken: success on invalid input.
4822 continue
4823 else
4824 # Passes both tests.
4825 ac_preproc_ok=:
4826 break
4827 fi
4828 rm -f conftest.err conftest.i conftest.$ac_ext
4829
4830 done
4831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4832 rm -f conftest.i conftest.err conftest.$ac_ext
4833 if $ac_preproc_ok; then :
4834 break
4835 fi
4836
4837 done
4838 ac_cv_prog_CPP=$CPP
4839
4840 fi
4841 CPP=$ac_cv_prog_CPP
4842 else
4843 ac_cv_prog_CPP=$CPP
4844 fi
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4846 $as_echo "$CPP" >&6; }
4847 ac_preproc_ok=false
4848 for ac_c_preproc_warn_flag in '' yes
4849 do
4850 # Use a header file that comes with gcc, so configuring glibc
4851 # with a fresh cross-compiler works.
4852 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4853 # <limits.h> exists even on freestanding compilers.
4854 # On the NeXT, cc -E runs the code through the compiler's parser,
4855 # not just through cpp. "Syntax error" is here to catch this case.
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4858 #ifdef __STDC__
4859 # include <limits.h>
4860 #else
4861 # include <assert.h>
4862 #endif
4863 Syntax error
4864 _ACEOF
4865 if ac_fn_c_try_cpp "$LINENO"; then :
4866
4867 else
4868 # Broken: fails on valid input.
4869 continue
4870 fi
4871 rm -f conftest.err conftest.i conftest.$ac_ext
4872
4873 # OK, works on sane cases. Now check whether nonexistent headers
4874 # can be detected and how.
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877 #include <ac_nonexistent.h>
4878 _ACEOF
4879 if ac_fn_c_try_cpp "$LINENO"; then :
4880 # Broken: success on invalid input.
4881 continue
4882 else
4883 # Passes both tests.
4884 ac_preproc_ok=:
4885 break
4886 fi
4887 rm -f conftest.err conftest.i conftest.$ac_ext
4888
4889 done
4890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4891 rm -f conftest.i conftest.err conftest.$ac_ext
4892 if $ac_preproc_ok; then :
4893
4894 else
4895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4897 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4898 See \`config.log' for more details" "$LINENO" 5; }
4899 fi
4900
4901 ac_ext=c
4902 ac_cpp='$CPP $CPPFLAGS'
4903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906
4907 # Find a good install program. We prefer a C program (faster),
4908 # so one script is as good as another. But avoid the broken or
4909 # incompatible versions:
4910 # SysV /etc/install, /usr/sbin/install
4911 # SunOS /usr/etc/install
4912 # IRIX /sbin/install
4913 # AIX /bin/install
4914 # AmigaOS /C/install, which installs bootblocks on floppy discs
4915 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4916 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4917 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4918 # OS/2's system install, which has a completely different semantic
4919 # ./install, which can be erroneously created by make from ./install.sh.
4920 # Reject install programs that cannot install multiple files.
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4922 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4923 if test -z "$INSTALL"; then
4924 if test "${ac_cv_path_install+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4929 do
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
4932 # Account for people who put trailing slashes in PATH elements.
4933 case $as_dir/ in #((
4934 ./ | .// | /[cC]/* | \
4935 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4936 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4937 /usr/ucb/* ) ;;
4938 *)
4939 # OSF1 and SCO ODT 3.0 have their own names for install.
4940 # Don't use installbsd from OSF since it installs stuff as root
4941 # by default.
4942 for ac_prog in ginstall scoinst install; do
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4945 if test $ac_prog = install &&
4946 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4947 # AIX install. It has an incompatible calling convention.
4948 :
4949 elif test $ac_prog = install &&
4950 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4951 # program-specific install script used by HP pwplus--don't use.
4952 :
4953 else
4954 rm -rf conftest.one conftest.two conftest.dir
4955 echo one > conftest.one
4956 echo two > conftest.two
4957 mkdir conftest.dir
4958 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4959 test -s conftest.one && test -s conftest.two &&
4960 test -s conftest.dir/conftest.one &&
4961 test -s conftest.dir/conftest.two
4962 then
4963 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4964 break 3
4965 fi
4966 fi
4967 fi
4968 done
4969 done
4970 ;;
4971 esac
4972
4973 done
4974 IFS=$as_save_IFS
4975
4976 rm -rf conftest.one conftest.two conftest.dir
4977
4978 fi
4979 if test "${ac_cv_path_install+set}" = set; then
4980 INSTALL=$ac_cv_path_install
4981 else
4982 # As a last resort, use the slow shell script. Don't cache a
4983 # value for INSTALL within a source directory, because that will
4984 # break other packages using the cache if that directory is
4985 # removed, or if the value is a relative name.
4986 INSTALL=$ac_install_sh
4987 fi
4988 fi
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4990 $as_echo "$INSTALL" >&6; }
4991
4992 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4993 # It thinks the first close brace ends the variable substitution.
4994 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4995
4996 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4997
4998 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4999
5000 if test "x$RANLIB" = x; then
5001 if test -n "$ac_tool_prefix"; then
5002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5003 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 if test -n "$RANLIB"; then
5010 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5022 fi
5023 done
5024 done
5025 IFS=$as_save_IFS
5026
5027 fi
5028 fi
5029 RANLIB=$ac_cv_prog_RANLIB
5030 if test -n "$RANLIB"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5032 $as_echo "$RANLIB" >&6; }
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5036 fi
5037
5038
5039 fi
5040 if test -z "$ac_cv_prog_RANLIB"; then
5041 ac_ct_RANLIB=$RANLIB
5042 # Extract the first word of "ranlib", so it can be a program name with args.
5043 set dummy ranlib; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$ac_ct_RANLIB"; then
5050 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_ac_ct_RANLIB="ranlib"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5062 fi
5063 done
5064 done
5065 IFS=$as_save_IFS
5066
5067 fi
5068 fi
5069 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5070 if test -n "$ac_ct_RANLIB"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5072 $as_echo "$ac_ct_RANLIB" >&6; }
5073 else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5076 fi
5077
5078 if test "x$ac_ct_RANLIB" = x; then
5079 RANLIB=":"
5080 else
5081 case $cross_compiling:$ac_tool_warned in
5082 yes:)
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5085 ac_tool_warned=yes ;;
5086 esac
5087 RANLIB=$ac_ct_RANLIB
5088 fi
5089 else
5090 RANLIB="$ac_cv_prog_RANLIB"
5091 fi
5092
5093 fi
5094 # Extract the first word of "install-info", so it can be a program name with args.
5095 set dummy install-info; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 case $INSTALL_INFO in
5102 [\\/]* | ?:[\\/]*)
5103 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5104 ;;
5105 *)
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5108 do
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5116 fi
5117 done
5118 done
5119 IFS=$as_save_IFS
5120
5121 ;;
5122 esac
5123 fi
5124 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5125 if test -n "$INSTALL_INFO"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5127 $as_echo "$INSTALL_INFO" >&6; }
5128 else
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5131 fi
5132
5133
5134 # Extract the first word of "install-info", so it can be a program name with args.
5135 set dummy install-info; ac_word=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 case $INSTALL_INFO in
5142 [\\/]* | ?:[\\/]*)
5143 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5144 ;;
5145 *)
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in /usr/sbin
5148 do
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5156 fi
5157 done
5158 done
5159 IFS=$as_save_IFS
5160
5161 ;;
5162 esac
5163 fi
5164 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5165 if test -n "$INSTALL_INFO"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5167 $as_echo "$INSTALL_INFO" >&6; }
5168 else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5171 fi
5172
5173
5174 # Extract the first word of "install-info", so it can be a program name with args.
5175 set dummy install-info; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 case $INSTALL_INFO in
5182 [\\/]* | ?:[\\/]*)
5183 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5184 ;;
5185 *)
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in /sbin
5188 do
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5196 fi
5197 done
5198 done
5199 IFS=$as_save_IFS
5200
5201 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5202 ;;
5203 esac
5204 fi
5205 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5206 if test -n "$INSTALL_INFO"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5208 $as_echo "$INSTALL_INFO" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5212 fi
5213
5214
5215 # Extract the first word of "gzip", so it can be a program name with args.
5216 set dummy gzip; ac_word=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 case $GZIP_PROG in
5223 [\\/]* | ?:[\\/]*)
5224 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5225 ;;
5226 *)
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5229 do
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5237 fi
5238 done
5239 done
5240 IFS=$as_save_IFS
5241
5242 ;;
5243 esac
5244 fi
5245 GZIP_PROG=$ac_cv_path_GZIP_PROG
5246 if test -n "$GZIP_PROG"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5248 $as_echo "$GZIP_PROG" >&6; }
5249 else
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5252 fi
5253
5254
5255
5256
5257 ## Need makeinfo >= 4.6 (?) to build the manuals.
5258 # Extract the first word of "makeinfo", so it can be a program name with args.
5259 set dummy makeinfo; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5264 else
5265 case $MAKEINFO in
5266 [\\/]* | ?:[\\/]*)
5267 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5268 ;;
5269 *)
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5280 fi
5281 done
5282 done
5283 IFS=$as_save_IFS
5284
5285 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5286 ;;
5287 esac
5288 fi
5289 MAKEINFO=$ac_cv_path_MAKEINFO
5290 if test -n "$MAKEINFO"; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5292 $as_echo "$MAKEINFO" >&6; }
5293 else
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 $as_echo "no" >&6; }
5296 fi
5297
5298
5299 if test "$MAKEINFO" != "no" && \
5300 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
5301 MAKEINFO=no
5302 fi
5303
5304 ## Makeinfo is unusual. For a released Emacs, the manuals are
5305 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5306 ## therefore in the category of "special tools" not normally required, which
5307 ## configure does not have to check for (eg autoconf itself).
5308 ## In a Bazaar checkout on the other hand, the manuals are not included.
5309 ## So makeinfo is a requirement to build from Bazaar, and configure
5310 ## should test for it as it does for any other build requirement.
5311 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5312 ## with pre-built manuals, from a Bazaar checkout.
5313 if test "$MAKEINFO" = "no"; then
5314 if test "x${with_makeinfo}" = "xno"; then
5315 MAKEINFO=off
5316 elif ! test -e $srcdir/info/emacs; then
5317 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
5318 source tree does not seem to have pre-built manuals in the \`info' directory.
5319 Either install a suitable version of makeinfo, or re-run configure
5320 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5321 fi
5322 fi
5323
5324
5325 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5326 then
5327 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5328 fi
5329
5330 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5331 then
5332 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5333 fi
5334
5335
5336 late_LDFLAGS=$LDFLAGS
5337 if test "$GCC" = yes; then
5338 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5339 else
5340 LDFLAGS="$LDFLAGS -znocombreloc"
5341 fi
5342
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5344 $as_echo_n "checking for -znocombreloc... " >&6; }
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5347 main(){return 0;}
5348 _ACEOF
5349 if ac_fn_c_try_link "$LINENO"; then :
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5352 else
5353 LDFLAGS=$late_LDFLAGS
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5356 fi
5357 rm -f core conftest.err conftest.$ac_objext \
5358 conftest$ac_exeext conftest.$ac_ext
5359
5360 #### Extract some information from the operating system and machine files.
5361
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5363 - which libraries the lib-src programs will want, and
5364 - whether the GNU malloc routines are usable..." >&5
5365 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5366 - which libraries the lib-src programs will want, and
5367 - whether the GNU malloc routines are usable..." >&6;}
5368
5369 ### First figure out CFLAGS (which we use for running the compiler here)
5370 ### and REAL_CFLAGS (which we use for real compilation).
5371 ### The two are the same except on a few systems, where they are made
5372 ### different to work around various lossages. For example,
5373 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5374 ### as implying static linking.
5375
5376 ### If the CFLAGS env var is specified, we use that value
5377 ### instead of the default.
5378
5379 ### It's not important that this name contain the PID; you can't run
5380 ### two configures in the same directory and have anything work
5381 ### anyway.
5382 tempcname="conftest.c"
5383
5384 echo '
5385 #include "'${srcdir}'/src/'${opsysfile}'"
5386 #include "'${srcdir}'/src/'${machfile}'"
5387 #ifndef LIBS_MACHINE
5388 #define LIBS_MACHINE
5389 #endif
5390 #ifndef LIBS_SYSTEM
5391 #define LIBS_SYSTEM
5392 #endif
5393 #ifndef C_SWITCH_SYSTEM
5394 #define C_SWITCH_SYSTEM
5395 #endif
5396 #ifndef C_SWITCH_MACHINE
5397 #define C_SWITCH_MACHINE
5398 #endif
5399 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5400 configure___ c_switch_system=C_SWITCH_SYSTEM
5401 configure___ c_switch_machine=C_SWITCH_MACHINE
5402
5403 #ifndef LIB_X11_LIB
5404 #define LIB_X11_LIB -lX11
5405 #endif
5406
5407 #ifndef LIBX11_SYSTEM
5408 #define LIBX11_SYSTEM
5409 #endif
5410 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5411
5412 #ifdef UNEXEC
5413 configure___ unexec=UNEXEC
5414 #else
5415 configure___ unexec=unexec.o
5416 #endif
5417
5418 #ifdef SYSTEM_MALLOC
5419 configure___ system_malloc=yes
5420 #else
5421 configure___ system_malloc=no
5422 #endif
5423
5424 #ifdef USE_MMAP_FOR_BUFFERS
5425 configure___ use_mmap_for_buffers=yes
5426 #else
5427 configure___ use_mmap_for_buffers=no
5428 #endif
5429
5430 #ifndef C_DEBUG_SWITCH
5431 #define C_DEBUG_SWITCH -g
5432 #endif
5433
5434 #ifndef C_OPTIMIZE_SWITCH
5435 #ifdef __GNUC__
5436 #define C_OPTIMIZE_SWITCH -O2
5437 #else
5438 #define C_OPTIMIZE_SWITCH -O
5439 #endif
5440 #endif
5441
5442 #ifndef C_WARNINGS_SWITCH
5443 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5444 #endif
5445
5446 #ifndef LD_SWITCH_MACHINE
5447 #define LD_SWITCH_MACHINE
5448 #endif
5449
5450 #ifndef LD_SWITCH_SYSTEM
5451 #define LD_SWITCH_SYSTEM
5452 #endif
5453
5454 #ifndef LD_SWITCH_X_SITE_AUX
5455 #define LD_SWITCH_X_SITE_AUX
5456 #endif
5457
5458 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5459 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5460
5461 #ifdef THIS_IS_CONFIGURE
5462
5463 /* Get the CFLAGS for tests in configure. */
5464 #ifdef __GNUC__
5465 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5466 #else
5467 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5468 #endif
5469
5470 #else /* not THIS_IS_CONFIGURE */
5471
5472 /* Get the CFLAGS for real compilation. */
5473 #ifdef __GNUC__
5474 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5475 #else
5476 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5477 #endif
5478
5479 #endif /* not THIS_IS_CONFIGURE */
5480 ' > ${tempcname}
5481
5482 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5483
5484 # The value of CPP is a quoted variable reference, so we need to do this
5485 # to get its actual value...
5486 CPP=`eval "echo $CPP"`
5487 eval `${CPP} -Isrc ${tempcname} \
5488 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5489 if test "x$SPECIFIED_CFLAGS" = x; then
5490 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5491 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5492 else
5493 REAL_CFLAGS="$CFLAGS"
5494 fi
5495 rm ${tempcname}
5496
5497 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5498
5499 ### Make sure subsequent tests use flags consistent with the build flags.
5500
5501 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5502 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5503 else
5504 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5505 fi
5506
5507
5508
5509 # Check whether --enable-largefile was given.
5510 if test "${enable_largefile+set}" = set; then :
5511 enableval=$enable_largefile;
5512 fi
5513
5514 if test "$enable_largefile" != no; then
5515
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5517 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5518 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 ac_cv_sys_largefile_CC=no
5522 if test "$GCC" != yes; then
5523 ac_save_CC=$CC
5524 while :; do
5525 # IRIX 6.2 and later do not support large files by default,
5526 # so use the C compiler's -n32 option if that helps.
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 #include <sys/types.h>
5530 /* Check that off_t can represent 2**63 - 1 correctly.
5531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5532 since some C++ compilers masquerading as C compilers
5533 incorrectly reject 9223372036854775807. */
5534 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5536 && LARGE_OFF_T % 2147483647 == 1)
5537 ? 1 : -1];
5538 int
5539 main ()
5540 {
5541
5542 ;
5543 return 0;
5544 }
5545 _ACEOF
5546 if ac_fn_c_try_compile "$LINENO"; then :
5547 break
5548 fi
5549 rm -f core conftest.err conftest.$ac_objext
5550 CC="$CC -n32"
5551 if ac_fn_c_try_compile "$LINENO"; then :
5552 ac_cv_sys_largefile_CC=' -n32'; break
5553 fi
5554 rm -f core conftest.err conftest.$ac_objext
5555 break
5556 done
5557 CC=$ac_save_CC
5558 rm -f conftest.$ac_ext
5559 fi
5560 fi
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5562 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5563 if test "$ac_cv_sys_largefile_CC" != no; then
5564 CC=$CC$ac_cv_sys_largefile_CC
5565 fi
5566
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5568 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5569 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 while :; do
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 #include <sys/types.h>
5576 /* Check that off_t can represent 2**63 - 1 correctly.
5577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5578 since some C++ compilers masquerading as C compilers
5579 incorrectly reject 9223372036854775807. */
5580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5582 && LARGE_OFF_T % 2147483647 == 1)
5583 ? 1 : -1];
5584 int
5585 main ()
5586 {
5587
5588 ;
5589 return 0;
5590 }
5591 _ACEOF
5592 if ac_fn_c_try_compile "$LINENO"; then :
5593 ac_cv_sys_file_offset_bits=no; break
5594 fi
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598 #define _FILE_OFFSET_BITS 64
5599 #include <sys/types.h>
5600 /* Check that off_t can represent 2**63 - 1 correctly.
5601 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5602 since some C++ compilers masquerading as C compilers
5603 incorrectly reject 9223372036854775807. */
5604 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5605 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5606 && LARGE_OFF_T % 2147483647 == 1)
5607 ? 1 : -1];
5608 int
5609 main ()
5610 {
5611
5612 ;
5613 return 0;
5614 }
5615 _ACEOF
5616 if ac_fn_c_try_compile "$LINENO"; then :
5617 ac_cv_sys_file_offset_bits=64; break
5618 fi
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620 ac_cv_sys_file_offset_bits=unknown
5621 break
5622 done
5623 fi
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5625 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5626 case $ac_cv_sys_file_offset_bits in #(
5627 no | unknown) ;;
5628 *)
5629 cat >>confdefs.h <<_ACEOF
5630 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5631 _ACEOF
5632 ;;
5633 esac
5634 rm -rf conftest*
5635 if test $ac_cv_sys_file_offset_bits = unknown; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5637 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5638 if test "${ac_cv_sys_large_files+set}" = set; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 while :; do
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <sys/types.h>
5645 /* Check that off_t can represent 2**63 - 1 correctly.
5646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5647 since some C++ compilers masquerading as C compilers
5648 incorrectly reject 9223372036854775807. */
5649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5651 && LARGE_OFF_T % 2147483647 == 1)
5652 ? 1 : -1];
5653 int
5654 main ()
5655 {
5656
5657 ;
5658 return 0;
5659 }
5660 _ACEOF
5661 if ac_fn_c_try_compile "$LINENO"; then :
5662 ac_cv_sys_large_files=no; break
5663 fi
5664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #define _LARGE_FILES 1
5668 #include <sys/types.h>
5669 /* Check that off_t can represent 2**63 - 1 correctly.
5670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671 since some C++ compilers masquerading as C compilers
5672 incorrectly reject 9223372036854775807. */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675 && LARGE_OFF_T % 2147483647 == 1)
5676 ? 1 : -1];
5677 int
5678 main ()
5679 {
5680
5681 ;
5682 return 0;
5683 }
5684 _ACEOF
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686 ac_cv_sys_large_files=1; break
5687 fi
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 ac_cv_sys_large_files=unknown
5690 break
5691 done
5692 fi
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5694 $as_echo "$ac_cv_sys_large_files" >&6; }
5695 case $ac_cv_sys_large_files in #(
5696 no | unknown) ;;
5697 *)
5698 cat >>confdefs.h <<_ACEOF
5699 #define _LARGE_FILES $ac_cv_sys_large_files
5700 _ACEOF
5701 ;;
5702 esac
5703 rm -rf conftest*
5704 fi
5705 fi
5706
5707
5708
5709 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5710 ### be located in either /usr/lib64 or /usr/lib.
5711 ### In some rare cases, /usr/lib64 exists but does not contain the
5712 ### relevant files (bug#1287). Hence test for crtn.o.
5713 case "${canonical}" in
5714 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5715 if test -e /usr/lib64/crtn.o; then
5716
5717 $as_echo "#define HAVE_LIB64_DIR 1" >>confdefs.h
5718
5719 fi
5720 esac
5721
5722
5723
5724
5725 if test "${with_sound}" != "no"; then
5726 # Sound support for GNU/Linux and the free BSDs.
5727 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5728 do :
5729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5730 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5731 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5732 cat >>confdefs.h <<_ACEOF
5733 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5734 _ACEOF
5735
5736 fi
5737
5738 done
5739
5740 # Emulation library used on NetBSD.
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5742 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5743 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 ac_check_lib_save_LIBS=$LIBS
5747 LIBS="-lossaudio $LIBS"
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750
5751 /* Override any GCC internal prototype to avoid an error.
5752 Use char because int might match the return type of a GCC
5753 builtin and then its argument prototype would still apply. */
5754 #ifdef __cplusplus
5755 extern "C"
5756 #endif
5757 char _oss_ioctl ();
5758 int
5759 main ()
5760 {
5761 return _oss_ioctl ();
5762 ;
5763 return 0;
5764 }
5765 _ACEOF
5766 if ac_fn_c_try_link "$LINENO"; then :
5767 ac_cv_lib_ossaudio__oss_ioctl=yes
5768 else
5769 ac_cv_lib_ossaudio__oss_ioctl=no
5770 fi
5771 rm -f core conftest.err conftest.$ac_objext \
5772 conftest$ac_exeext conftest.$ac_ext
5773 LIBS=$ac_check_lib_save_LIBS
5774 fi
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5776 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5777 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5778 LIBSOUND=-lossaudio
5779 else
5780 LIBSOUND=
5781 fi
5782
5783
5784
5785 ALSA_REQUIRED=1.0.0
5786 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5787
5788 succeeded=no
5789
5790 # Extract the first word of "pkg-config", so it can be a program name with args.
5791 set dummy pkg-config; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 case $PKG_CONFIG in
5798 [\\/]* | ?:[\\/]*)
5799 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5800 ;;
5801 *)
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5809 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5818 ;;
5819 esac
5820 fi
5821 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5822 if test -n "$PKG_CONFIG"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5824 $as_echo "$PKG_CONFIG" >&6; }
5825 else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5828 fi
5829
5830
5831
5832 if test "$PKG_CONFIG" = "no" ; then
5833 HAVE_ALSA=no
5834 else
5835 PKG_CONFIG_MIN_VERSION=0.9.0
5836 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
5838 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
5839
5840 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5842 $as_echo "yes" >&6; }
5843 succeeded=yes
5844
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
5846 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
5847 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
5849 $as_echo "$ALSA_CFLAGS" >&6; }
5850
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
5852 $as_echo_n "checking ALSA_LIBS... " >&6; }
5853 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
5855 $as_echo "$ALSA_LIBS" >&6; }
5856 else
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5859 ALSA_CFLAGS=""
5860 ALSA_LIBS=""
5861 ## If we have a custom action on failure, don't print errors, but
5862 ## do set a variable so people can do so.
5863 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5864
5865 fi
5866
5867
5868
5869 else
5870 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5871 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5872 fi
5873 fi
5874
5875 if test $succeeded = yes; then
5876 HAVE_ALSA=yes
5877 else
5878 HAVE_ALSA=no
5879 fi
5880
5881 if test $HAVE_ALSA = yes; then
5882 SAVE_CFLAGS="$CFLAGS"
5883 SAVE_LDFLAGS="$LDFLAGS"
5884 CFLAGS="$ALSA_CFLAGS $CFLAGS"
5885 LDFLAGS="$ALSA_LIBS $LDFLAGS"
5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h. */
5888 #include <asoundlib.h>
5889 int
5890 main ()
5891 {
5892 snd_lib_error_set_handler (0);
5893 ;
5894 return 0;
5895 }
5896 _ACEOF
5897 if ac_fn_c_try_compile "$LINENO"; then :
5898 emacs_alsa_normal=yes
5899 else
5900 emacs_alsa_normal=no
5901 fi
5902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5903 if test "$emacs_alsa_normal" != yes; then
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5906 #include <alsa/asoundlib.h>
5907 int
5908 main ()
5909 {
5910 snd_lib_error_set_handler (0);
5911 ;
5912 return 0;
5913 }
5914 _ACEOF
5915 if ac_fn_c_try_compile "$LINENO"; then :
5916 emacs_alsa_subdir=yes
5917 else
5918 emacs_alsa_subdir=no
5919 fi
5920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5921 if test "$emacs_alsa_subdir" != yes; then
5922 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
5923 fi
5924 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
5925 fi
5926
5927 CFLAGS="$SAVE_CFLAGS"
5928 LDFLAGS="$SAVE_LDFLAGS"
5929 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5930 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5931
5932 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
5933
5934 fi
5935
5936 fi
5937
5938 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5939 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5940 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5941 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5942 sys/utsname.h pwd.h utmp.h
5943 do :
5944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5945 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5946 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5947 cat >>confdefs.h <<_ACEOF
5948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5949 _ACEOF
5950
5951 fi
5952
5953 done
5954
5955
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
5957 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960 #include <sys/personality.h>
5961 int
5962 main ()
5963 {
5964 personality (PER_LINUX32)
5965 ;
5966 return 0;
5967 }
5968 _ACEOF
5969 if ac_fn_c_try_compile "$LINENO"; then :
5970 emacs_cv_personality_linux32=yes
5971 else
5972 emacs_cv_personality_linux32=no
5973 fi
5974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
5976 $as_echo "$emacs_cv_personality_linux32" >&6; }
5977
5978 if test $emacs_cv_personality_linux32 = yes; then
5979
5980 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
5981
5982 fi
5983
5984 for ac_header in term.h
5985 do :
5986 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
5987 if test "x$ac_cv_header_term_h" = x""yes; then :
5988 cat >>confdefs.h <<_ACEOF
5989 #define HAVE_TERM_H 1
5990 _ACEOF
5991
5992 fi
5993
5994 done
5995
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5997 $as_echo_n "checking for ANSI C header files... " >&6; }
5998 if test "${ac_cv_header_stdc+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6003 #include <stdlib.h>
6004 #include <stdarg.h>
6005 #include <string.h>
6006 #include <float.h>
6007
6008 int
6009 main ()
6010 {
6011
6012 ;
6013 return 0;
6014 }
6015 _ACEOF
6016 if ac_fn_c_try_compile "$LINENO"; then :
6017 ac_cv_header_stdc=yes
6018 else
6019 ac_cv_header_stdc=no
6020 fi
6021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022
6023 if test $ac_cv_header_stdc = yes; then
6024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6027 #include <string.h>
6028
6029 _ACEOF
6030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6031 $EGREP "memchr" >/dev/null 2>&1; then :
6032
6033 else
6034 ac_cv_header_stdc=no
6035 fi
6036 rm -f conftest*
6037
6038 fi
6039
6040 if test $ac_cv_header_stdc = yes; then
6041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 #include <stdlib.h>
6045
6046 _ACEOF
6047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6048 $EGREP "free" >/dev/null 2>&1; then :
6049
6050 else
6051 ac_cv_header_stdc=no
6052 fi
6053 rm -f conftest*
6054
6055 fi
6056
6057 if test $ac_cv_header_stdc = yes; then
6058 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6059 if test "$cross_compiling" = yes; then :
6060 :
6061 else
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6064 #include <ctype.h>
6065 #include <stdlib.h>
6066 #if ((' ' & 0x0FF) == 0x020)
6067 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6068 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6069 #else
6070 # define ISLOWER(c) \
6071 (('a' <= (c) && (c) <= 'i') \
6072 || ('j' <= (c) && (c) <= 'r') \
6073 || ('s' <= (c) && (c) <= 'z'))
6074 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6075 #endif
6076
6077 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6078 int
6079 main ()
6080 {
6081 int i;
6082 for (i = 0; i < 256; i++)
6083 if (XOR (islower (i), ISLOWER (i))
6084 || toupper (i) != TOUPPER (i))
6085 return 2;
6086 return 0;
6087 }
6088 _ACEOF
6089 if ac_fn_c_try_run "$LINENO"; then :
6090
6091 else
6092 ac_cv_header_stdc=no
6093 fi
6094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6095 conftest.$ac_objext conftest.beam conftest.$ac_ext
6096 fi
6097
6098 fi
6099 fi
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6101 $as_echo "$ac_cv_header_stdc" >&6; }
6102 if test $ac_cv_header_stdc = yes; then
6103
6104 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6105
6106 fi
6107
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6109 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6110 if test "${ac_cv_header_time+set}" = set; then :
6111 $as_echo_n "(cached) " >&6
6112 else
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6115 #include <sys/types.h>
6116 #include <sys/time.h>
6117 #include <time.h>
6118
6119 int
6120 main ()
6121 {
6122 if ((struct tm *) 0)
6123 return 0;
6124 ;
6125 return 0;
6126 }
6127 _ACEOF
6128 if ac_fn_c_try_compile "$LINENO"; then :
6129 ac_cv_header_time=yes
6130 else
6131 ac_cv_header_time=no
6132 fi
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 fi
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6136 $as_echo "$ac_cv_header_time" >&6; }
6137 if test $ac_cv_header_time = yes; then
6138
6139 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6140
6141 fi
6142
6143 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6144 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6145 ac_have_decl=1
6146 else
6147 ac_have_decl=0
6148 fi
6149
6150 cat >>confdefs.h <<_ACEOF
6151 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6152 _ACEOF
6153
6154 if test $ac_cv_have_decl_sys_siglist != yes; then
6155 # For Tru64, at least:
6156 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6157 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6158 ac_have_decl=1
6159 else
6160 ac_have_decl=0
6161 fi
6162
6163 cat >>confdefs.h <<_ACEOF
6164 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6165 _ACEOF
6166
6167 if test $ac_cv_have_decl___sys_siglist = yes; then
6168
6169 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6170
6171 fi
6172 fi
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6174 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6175 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h. */
6180 #include <sys/types.h>
6181 #include <sys/wait.h>
6182 #ifndef WEXITSTATUS
6183 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6184 #endif
6185 #ifndef WIFEXITED
6186 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6187 #endif
6188
6189 int
6190 main ()
6191 {
6192 int s;
6193 wait (&s);
6194 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6195 ;
6196 return 0;
6197 }
6198 _ACEOF
6199 if ac_fn_c_try_compile "$LINENO"; then :
6200 ac_cv_header_sys_wait_h=yes
6201 else
6202 ac_cv_header_sys_wait_h=no
6203 fi
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205 fi
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6207 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6208 if test $ac_cv_header_sys_wait_h = yes; then
6209
6210 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6211
6212 fi
6213
6214
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6216 $as_echo_n "checking for struct utimbuf... " >&6; }
6217 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 #ifdef TIME_WITH_SYS_TIME
6223 #include <sys/time.h>
6224 #include <time.h>
6225 #else
6226 #ifdef HAVE_SYS_TIME_H
6227 #include <sys/time.h>
6228 #else
6229 #include <time.h>
6230 #endif
6231 #endif
6232 #ifdef HAVE_UTIME_H
6233 #include <utime.h>
6234 #endif
6235 int
6236 main ()
6237 {
6238 static struct utimbuf x; x.actime = x.modtime;
6239 ;
6240 return 0;
6241 }
6242 _ACEOF
6243 if ac_fn_c_try_compile "$LINENO"; then :
6244 emacs_cv_struct_utimbuf=yes
6245 else
6246 emacs_cv_struct_utimbuf=no
6247 fi
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 fi
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6251 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6252 if test $emacs_cv_struct_utimbuf = yes; then
6253
6254 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6255
6256 fi
6257
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6259 $as_echo_n "checking return type of signal handlers... " >&6; }
6260 if test "${ac_cv_type_signal+set}" = set; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6265 #include <sys/types.h>
6266 #include <signal.h>
6267
6268 int
6269 main ()
6270 {
6271 return *(signal (0, 0)) (0) == 1;
6272 ;
6273 return 0;
6274 }
6275 _ACEOF
6276 if ac_fn_c_try_compile "$LINENO"; then :
6277 ac_cv_type_signal=int
6278 else
6279 ac_cv_type_signal=void
6280 fi
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 fi
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6284 $as_echo "$ac_cv_type_signal" >&6; }
6285
6286 cat >>confdefs.h <<_ACEOF
6287 #define RETSIGTYPE $ac_cv_type_signal
6288 _ACEOF
6289
6290
6291
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6293 $as_echo_n "checking for speed_t... " >&6; }
6294 if test "${emacs_cv_speed_t+set}" = set; then :
6295 $as_echo_n "(cached) " >&6
6296 else
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6299 #include <termios.h>
6300 int
6301 main ()
6302 {
6303 speed_t x = 1;
6304 ;
6305 return 0;
6306 }
6307 _ACEOF
6308 if ac_fn_c_try_compile "$LINENO"; then :
6309 emacs_cv_speed_t=yes
6310 else
6311 emacs_cv_speed_t=no
6312 fi
6313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314 fi
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6316 $as_echo "$emacs_cv_speed_t" >&6; }
6317 if test $emacs_cv_speed_t = yes; then
6318
6319 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6320
6321 fi
6322
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6324 $as_echo_n "checking for struct timeval... " >&6; }
6325 if test "${emacs_cv_struct_timeval+set}" = set; then :
6326 $as_echo_n "(cached) " >&6
6327 else
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6330 #ifdef TIME_WITH_SYS_TIME
6331 #include <sys/time.h>
6332 #include <time.h>
6333 #else
6334 #ifdef HAVE_SYS_TIME_H
6335 #include <sys/time.h>
6336 #else
6337 #include <time.h>
6338 #endif
6339 #endif
6340 int
6341 main ()
6342 {
6343 static struct timeval x; x.tv_sec = x.tv_usec;
6344 ;
6345 return 0;
6346 }
6347 _ACEOF
6348 if ac_fn_c_try_compile "$LINENO"; then :
6349 emacs_cv_struct_timeval=yes
6350 else
6351 emacs_cv_struct_timeval=no
6352 fi
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 fi
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6356 $as_echo "$emacs_cv_struct_timeval" >&6; }
6357 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6358 if test $emacs_cv_struct_timeval = yes; then
6359
6360 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6361
6362 fi
6363
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6365 $as_echo_n "checking for struct exception... " >&6; }
6366 if test "${emacs_cv_struct_exception+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h. */
6371 #include <math.h>
6372 int
6373 main ()
6374 {
6375 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6376 ;
6377 return 0;
6378 }
6379 _ACEOF
6380 if ac_fn_c_try_compile "$LINENO"; then :
6381 emacs_cv_struct_exception=yes
6382 else
6383 emacs_cv_struct_exception=no
6384 fi
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386 fi
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6388 $as_echo "$emacs_cv_struct_exception" >&6; }
6389 HAVE_EXCEPTION=$emacs_cv_struct_exception
6390 if test $emacs_cv_struct_exception != yes; then
6391
6392 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6393
6394 fi
6395
6396 for ac_header in sys/socket.h
6397 do :
6398 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6399 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6400 cat >>confdefs.h <<_ACEOF
6401 #define HAVE_SYS_SOCKET_H 1
6402 _ACEOF
6403
6404 fi
6405
6406 done
6407
6408 for ac_header in net/if.h
6409 do :
6410 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6411 #if HAVE_SYS_SOCKET_H
6412 #include <sys/socket.h>
6413 #endif
6414 "
6415 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6416 cat >>confdefs.h <<_ACEOF
6417 #define HAVE_NET_IF_H 1
6418 _ACEOF
6419
6420 fi
6421
6422 done
6423
6424
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6426 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6427 if test "${ac_cv_struct_tm+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6432 #include <sys/types.h>
6433 #include <time.h>
6434
6435 int
6436 main ()
6437 {
6438 struct tm tm;
6439 int *p = &tm.tm_sec;
6440 return !p;
6441 ;
6442 return 0;
6443 }
6444 _ACEOF
6445 if ac_fn_c_try_compile "$LINENO"; then :
6446 ac_cv_struct_tm=time.h
6447 else
6448 ac_cv_struct_tm=sys/time.h
6449 fi
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 fi
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6453 $as_echo "$ac_cv_struct_tm" >&6; }
6454 if test $ac_cv_struct_tm = sys/time.h; then
6455
6456 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6457
6458 fi
6459
6460 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6461 #include <$ac_cv_struct_tm>
6462
6463 "
6464 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6465
6466 cat >>confdefs.h <<_ACEOF
6467 #define HAVE_STRUCT_TM_TM_ZONE 1
6468 _ACEOF
6469
6470
6471 fi
6472
6473 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6474
6475 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6476
6477 else
6478 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6479 "
6480 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6481 ac_have_decl=1
6482 else
6483 ac_have_decl=0
6484 fi
6485
6486 cat >>confdefs.h <<_ACEOF
6487 #define HAVE_DECL_TZNAME $ac_have_decl
6488 _ACEOF
6489
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6491 $as_echo_n "checking for tzname... " >&6; }
6492 if test "${ac_cv_var_tzname+set}" = set; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6497 #include <time.h>
6498 #if !HAVE_DECL_TZNAME
6499 extern char *tzname[];
6500 #endif
6501
6502 int
6503 main ()
6504 {
6505 return tzname[0][0];
6506 ;
6507 return 0;
6508 }
6509 _ACEOF
6510 if ac_fn_c_try_link "$LINENO"; then :
6511 ac_cv_var_tzname=yes
6512 else
6513 ac_cv_var_tzname=no
6514 fi
6515 rm -f core conftest.err conftest.$ac_objext \
6516 conftest$ac_exeext conftest.$ac_ext
6517 fi
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6519 $as_echo "$ac_cv_var_tzname" >&6; }
6520 if test $ac_cv_var_tzname = yes; then
6521
6522 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6523
6524 fi
6525 fi
6526
6527 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6528 "
6529 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6530
6531 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6532
6533 fi
6534
6535 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6536 #if HAVE_SYS_SOCKET_H
6537 #include <sys/socket.h>
6538 #endif
6539 #if HAVE_NET_IF_H
6540 #include <net/if.h>
6541 #endif
6542 "
6543 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6544
6545 cat >>confdefs.h <<_ACEOF
6546 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6547 _ACEOF
6548
6549
6550 fi
6551 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6552 #if HAVE_SYS_SOCKET_H
6553 #include <sys/socket.h>
6554 #endif
6555 #if HAVE_NET_IF_H
6556 #include <net/if.h>
6557 #endif
6558 "
6559 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6560
6561 cat >>confdefs.h <<_ACEOF
6562 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6563 _ACEOF
6564
6565
6566 fi
6567 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6568 #if HAVE_SYS_SOCKET_H
6569 #include <sys/socket.h>
6570 #endif
6571 #if HAVE_NET_IF_H
6572 #include <net/if.h>
6573 #endif
6574 "
6575 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6576
6577 cat >>confdefs.h <<_ACEOF
6578 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6579 _ACEOF
6580
6581
6582 fi
6583 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6584 #if HAVE_SYS_SOCKET_H
6585 #include <sys/socket.h>
6586 #endif
6587 #if HAVE_NET_IF_H
6588 #include <net/if.h>
6589 #endif
6590 "
6591 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6592
6593 cat >>confdefs.h <<_ACEOF
6594 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6595 _ACEOF
6596
6597
6598 fi
6599 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6600 #if HAVE_SYS_SOCKET_H
6601 #include <sys/socket.h>
6602 #endif
6603 #if HAVE_NET_IF_H
6604 #include <net/if.h>
6605 #endif
6606 "
6607 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6608
6609 cat >>confdefs.h <<_ACEOF
6610 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6611 _ACEOF
6612
6613
6614 fi
6615
6616
6617
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6619 $as_echo_n "checking for function prototypes... " >&6; }
6620 if test "$ac_cv_prog_cc_c89" != no; then
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6622 $as_echo "yes" >&6; }
6623
6624 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6625
6626
6627 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6628
6629 else
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 $as_echo "no" >&6; }
6632 fi
6633
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6635 $as_echo_n "checking for working volatile... " >&6; }
6636 if test "${ac_cv_c_volatile+set}" = set; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641
6642 int
6643 main ()
6644 {
6645
6646 volatile int x;
6647 int * volatile y = (int *) 0;
6648 return !x && !y;
6649 ;
6650 return 0;
6651 }
6652 _ACEOF
6653 if ac_fn_c_try_compile "$LINENO"; then :
6654 ac_cv_c_volatile=yes
6655 else
6656 ac_cv_c_volatile=no
6657 fi
6658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6659 fi
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6661 $as_echo "$ac_cv_c_volatile" >&6; }
6662 if test $ac_cv_c_volatile = no; then
6663
6664 $as_echo "#define volatile /**/" >>confdefs.h
6665
6666 fi
6667
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6669 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6670 if test "${ac_cv_c_const+set}" = set; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6675
6676 int
6677 main ()
6678 {
6679 /* FIXME: Include the comments suggested by Paul. */
6680 #ifndef __cplusplus
6681 /* Ultrix mips cc rejects this. */
6682 typedef int charset[2];
6683 const charset cs;
6684 /* SunOS 4.1.1 cc rejects this. */
6685 char const *const *pcpcc;
6686 char **ppc;
6687 /* NEC SVR4.0.2 mips cc rejects this. */
6688 struct point {int x, y;};
6689 static struct point const zero = {0,0};
6690 /* AIX XL C 1.02.0.0 rejects this.
6691 It does not let you subtract one const X* pointer from another in
6692 an arm of an if-expression whose if-part is not a constant
6693 expression */
6694 const char *g = "string";
6695 pcpcc = &g + (g ? g-g : 0);
6696 /* HPUX 7.0 cc rejects these. */
6697 ++pcpcc;
6698 ppc = (char**) pcpcc;
6699 pcpcc = (char const *const *) ppc;
6700 { /* SCO 3.2v4 cc rejects this. */
6701 char *t;
6702 char const *s = 0 ? (char *) 0 : (char const *) 0;
6703
6704 *t++ = 0;
6705 if (s) return 0;
6706 }
6707 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6708 int x[] = {25, 17};
6709 const int *foo = &x[0];
6710 ++foo;
6711 }
6712 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6713 typedef const int *iptr;
6714 iptr p = 0;
6715 ++p;
6716 }
6717 { /* AIX XL C 1.02.0.0 rejects this saying
6718 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6719 struct s { int j; const int *ap[3]; };
6720 struct s *b; b->j = 5;
6721 }
6722 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6723 const int foo = 10;
6724 if (!foo) return 0;
6725 }
6726 return !cs[0] && !zero.x;
6727 #endif
6728
6729 ;
6730 return 0;
6731 }
6732 _ACEOF
6733 if ac_fn_c_try_compile "$LINENO"; then :
6734 ac_cv_c_const=yes
6735 else
6736 ac_cv_c_const=no
6737 fi
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 fi
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6741 $as_echo "$ac_cv_c_const" >&6; }
6742 if test $ac_cv_c_const = no; then
6743
6744 $as_echo "#define const /**/" >>confdefs.h
6745
6746 fi
6747
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6749 $as_echo_n "checking for void * support... " >&6; }
6750 if test "${emacs_cv_void_star+set}" = set; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755
6756 int
6757 main ()
6758 {
6759 void * foo;
6760 ;
6761 return 0;
6762 }
6763 _ACEOF
6764 if ac_fn_c_try_compile "$LINENO"; then :
6765 emacs_cv_void_star=yes
6766 else
6767 emacs_cv_void_star=no
6768 fi
6769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770 fi
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6772 $as_echo "$emacs_cv_void_star" >&6; }
6773 if test $emacs_cv_void_star = yes; then
6774 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6775
6776 else
6777 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6778
6779 fi
6780
6781
6782
6783
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6785 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6786 set x ${MAKE-make}
6787 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6788 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
6789 $as_echo_n "(cached) " >&6
6790 else
6791 cat >conftest.make <<\_ACEOF
6792 SHELL = /bin/sh
6793 all:
6794 @echo '@@@%%%=$(MAKE)=@@@%%%'
6795 _ACEOF
6796 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6797 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6798 *@@@%%%=?*=@@@%%%*)
6799 eval ac_cv_prog_make_${ac_make}_set=yes;;
6800 *)
6801 eval ac_cv_prog_make_${ac_make}_set=no;;
6802 esac
6803 rm -f conftest.make
6804 fi
6805 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6807 $as_echo "yes" >&6; }
6808 SET_MAKE=
6809 else
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6812 SET_MAKE="MAKE=${MAKE-make}"
6813 fi
6814
6815
6816 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
6818 $as_echo_n "checking whether we are using GNU Make... " >&6; }
6819 HAVE_GNU_MAKE=no
6820 testval=`make --version 2>/dev/null | grep 'GNU Make'`
6821 if test "x$testval" != x; then
6822 HAVE_GNU_MAKE=yes
6823 else
6824 ac_enable_autodepend=no
6825 fi
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
6827 $as_echo "$HAVE_GNU_MAKE" >&6; }
6828 if test $HAVE_GNU_MAKE = yes; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
6830 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6831 SAVE_CFLAGS="$CFLAGS"
6832 CFLAGS="$CFLAGS -MMD -MF deps.d"
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835
6836 int
6837 main ()
6838 {
6839
6840 ;
6841 return 0;
6842 }
6843 _ACEOF
6844 if ac_fn_c_try_compile "$LINENO"; then :
6845
6846 else
6847 ac_enable_autodepend=no
6848 fi
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850 CFLAGS="$SAVE_CFLAGS"
6851 test -f deps.d || ac_enable_autodepend=no
6852 rm -rf deps.d
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
6854 $as_echo "$ac_enable_autodepend" >&6; }
6855 fi
6856 if test $ac_enable_autodepend = yes; then
6857
6858 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h
6859
6860 fi
6861 fi
6862
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
6864 $as_echo_n "checking for long file names... " >&6; }
6865 if test "${ac_cv_sys_long_file_names+set}" = set; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 ac_cv_sys_long_file_names=yes
6869 # Test for long file names in all the places we know might matter:
6870 # . the current directory, where building will happen
6871 # $prefix/lib where we will be installing things
6872 # $exec_prefix/lib likewise
6873 # $TMPDIR if set, where it might want to write temporary files
6874 # /tmp where it might want to write temporary files
6875 # /var/tmp likewise
6876 # /usr/tmp likewise
6877 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
6878 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
6879 # in the usual case where exec_prefix is '${prefix}'.
6880 case $ac_dir in #(
6881 . | /* | ?:[\\/]*) ;; #(
6882 *) continue;;
6883 esac
6884 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
6885 ac_xdir=$ac_dir/cf$$
6886 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
6887 ac_tf1=$ac_xdir/conftest9012345
6888 ac_tf2=$ac_xdir/conftest9012346
6889 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
6890 ac_cv_sys_long_file_names=no
6891 rm -f -r "$ac_xdir" 2>/dev/null
6892 test $ac_cv_sys_long_file_names = no && break
6893 done
6894 fi
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
6896 $as_echo "$ac_cv_sys_long_file_names" >&6; }
6897 if test $ac_cv_sys_long_file_names = yes; then
6898
6899 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
6900
6901 fi
6902
6903
6904 #### Choose a window system.
6905
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6907 $as_echo_n "checking for X... " >&6; }
6908
6909
6910 # Check whether --with-x was given.
6911 if test "${with_x+set}" = set; then :
6912 withval=$with_x;
6913 fi
6914
6915 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6916 if test "x$with_x" = xno; then
6917 # The user explicitly disabled X.
6918 have_x=disabled
6919 else
6920 case $x_includes,$x_libraries in #(
6921 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
6922 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6923 $as_echo_n "(cached) " >&6
6924 else
6925 # One or both of the vars are not set, and there is no cached value.
6926 ac_x_includes=no ac_x_libraries=no
6927 rm -f -r conftest.dir
6928 if mkdir conftest.dir; then
6929 cd conftest.dir
6930 cat >Imakefile <<'_ACEOF'
6931 incroot:
6932 @echo incroot='${INCROOT}'
6933 usrlibdir:
6934 @echo usrlibdir='${USRLIBDIR}'
6935 libdir:
6936 @echo libdir='${LIBDIR}'
6937 _ACEOF
6938 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6939 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6940 for ac_var in incroot usrlibdir libdir; do
6941 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6942 done
6943 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6944 for ac_extension in a so sl dylib la dll; do
6945 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6946 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6947 ac_im_usrlibdir=$ac_im_libdir; break
6948 fi
6949 done
6950 # Screen out bogus values from the imake configuration. They are
6951 # bogus both because they are the default anyway, and because
6952 # using them would break gcc on systems where it needs fixed includes.
6953 case $ac_im_incroot in
6954 /usr/include) ac_x_includes= ;;
6955 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6956 esac
6957 case $ac_im_usrlibdir in
6958 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6959 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6960 esac
6961 fi
6962 cd ..
6963 rm -f -r conftest.dir
6964 fi
6965
6966 # Standard set of common directories for X headers.
6967 # Check X11 before X11Rn because it is often a symlink to the current release.
6968 ac_x_header_dirs='
6969 /usr/X11/include
6970 /usr/X11R7/include
6971 /usr/X11R6/include
6972 /usr/X11R5/include
6973 /usr/X11R4/include
6974
6975 /usr/include/X11
6976 /usr/include/X11R7
6977 /usr/include/X11R6
6978 /usr/include/X11R5
6979 /usr/include/X11R4
6980
6981 /usr/local/X11/include
6982 /usr/local/X11R7/include
6983 /usr/local/X11R6/include
6984 /usr/local/X11R5/include
6985 /usr/local/X11R4/include
6986
6987 /usr/local/include/X11
6988 /usr/local/include/X11R7
6989 /usr/local/include/X11R6
6990 /usr/local/include/X11R5
6991 /usr/local/include/X11R4
6992
6993 /usr/X386/include
6994 /usr/x386/include
6995 /usr/XFree86/include/X11
6996
6997 /usr/include
6998 /usr/local/include
6999 /usr/unsupported/include
7000 /usr/athena/include
7001 /usr/local/x11r5/include
7002 /usr/lpp/Xamples/include
7003
7004 /usr/openwin/include
7005 /usr/openwin/share/include'
7006
7007 if test "$ac_x_includes" = no; then
7008 # Guess where to find include files, by looking for Xlib.h.
7009 # First, try using that file with no special directory specified.
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7012 #include <X11/Xlib.h>
7013 _ACEOF
7014 if ac_fn_c_try_cpp "$LINENO"; then :
7015 # We can compile using X headers with no special include directory.
7016 ac_x_includes=
7017 else
7018 for ac_dir in $ac_x_header_dirs; do
7019 if test -r "$ac_dir/X11/Xlib.h"; then
7020 ac_x_includes=$ac_dir
7021 break
7022 fi
7023 done
7024 fi
7025 rm -f conftest.err conftest.i conftest.$ac_ext
7026 fi # $ac_x_includes = no
7027
7028 if test "$ac_x_libraries" = no; then
7029 # Check for the libraries.
7030 # See if we find them without any special options.
7031 # Don't add to $LIBS permanently.
7032 ac_save_LIBS=$LIBS
7033 LIBS="-lX11 $LIBS"
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7036 #include <X11/Xlib.h>
7037 int
7038 main ()
7039 {
7040 XrmInitialize ()
7041 ;
7042 return 0;
7043 }
7044 _ACEOF
7045 if ac_fn_c_try_link "$LINENO"; then :
7046 LIBS=$ac_save_LIBS
7047 # We can link X programs with no special library path.
7048 ac_x_libraries=
7049 else
7050 LIBS=$ac_save_LIBS
7051 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7052 do
7053 # Don't even attempt the hair of trying to link an X program!
7054 for ac_extension in a so sl dylib la dll; do
7055 if test -r "$ac_dir/libX11.$ac_extension"; then
7056 ac_x_libraries=$ac_dir
7057 break 2
7058 fi
7059 done
7060 done
7061 fi
7062 rm -f core conftest.err conftest.$ac_objext \
7063 conftest$ac_exeext conftest.$ac_ext
7064 fi # $ac_x_libraries = no
7065
7066 case $ac_x_includes,$ac_x_libraries in #(
7067 no,* | *,no | *\'*)
7068 # Didn't find X, or a directory has "'" in its name.
7069 ac_cv_have_x="have_x=no";; #(
7070 *)
7071 # Record where we found X for the cache.
7072 ac_cv_have_x="have_x=yes\
7073 ac_x_includes='$ac_x_includes'\
7074 ac_x_libraries='$ac_x_libraries'"
7075 esac
7076 fi
7077 ;; #(
7078 *) have_x=yes;;
7079 esac
7080 eval "$ac_cv_have_x"
7081 fi # $with_x != no
7082
7083 if test "$have_x" != yes; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7085 $as_echo "$have_x" >&6; }
7086 no_x=yes
7087 else
7088 # If each of the values was on the command line, it overrides each guess.
7089 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7090 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7091 # Update the cache value to reflect the command line values.
7092 ac_cv_have_x="have_x=yes\
7093 ac_x_includes='$x_includes'\
7094 ac_x_libraries='$x_libraries'"
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7096 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7097 fi
7098
7099 if test "$no_x" = yes; then
7100 window_system=none
7101 else
7102 window_system=x11
7103 fi
7104
7105 ## Workaround for bug in autoconf <= 2.62.
7106 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7107 ## No need to do anything special for these standard directories.
7108 ## This is an experiment, take it out if it causes problems.
7109 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7110
7111 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7112
7113 fi
7114
7115 if test "${x_libraries}" != NONE; then
7116 if test -n "${x_libraries}"; then
7117 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7118 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7119 fi
7120 x_default_search_path=""
7121 x_search_path=${x_libraries}
7122 if test -z "${x_search_path}"; then
7123 x_search_path=/usr/lib
7124 fi
7125 for x_library in `echo ${x_search_path}: | \
7126 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7127 x_search_path="\
7128 ${x_library}/X11/%L/%T/%N%C%S:\
7129 ${x_library}/X11/%l/%T/%N%C%S:\
7130 ${x_library}/X11/%T/%N%C%S:\
7131 ${x_library}/X11/%L/%T/%N%S:\
7132 ${x_library}/X11/%l/%T/%N%S:\
7133 ${x_library}/X11/%T/%N%S"
7134 if test x"${x_default_search_path}" = x; then
7135 x_default_search_path=${x_search_path}
7136 else
7137 x_default_search_path="${x_search_path}:${x_default_search_path}"
7138 fi
7139 done
7140 fi
7141 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7142 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7143 fi
7144
7145 if test x"${x_includes}" = x; then
7146 bitmapdir=/usr/include/X11/bitmaps
7147 else
7148 # accumulate include directories that have X11 bitmap subdirectories
7149 bmd_acc="dummyval"
7150 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7151 if test -d "${bmd}/X11/bitmaps"; then
7152 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7153 fi
7154 if test -d "${bmd}/bitmaps"; then
7155 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7156 fi
7157 done
7158 if test ${bmd_acc} != "dummyval"; then
7159 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7160 fi
7161 fi
7162
7163 HAVE_NS=no
7164 NS_IMPL_COCOA=no
7165 NS_IMPL_GNUSTEP=no
7166 tmp_CPPFLAGS="$CPPFLAGS"
7167 tmp_CFLAGS="$CFLAGS"
7168 CPPFLAGS="$CPPFLAGS -x objective-c"
7169 CFLAGS="$CFLAGS -x objective-c"
7170 if test "${with_ns}" != no; then
7171 if test "${opsys}" = darwin; then
7172 NS_IMPL_COCOA=yes
7173 ns_appdir=`pwd`/nextstep/Emacs.app
7174 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
7175 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
7176 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7177 elif test -f $GNUSTEP_CONFIG_FILE; then
7178 NS_IMPL_GNUSTEP=yes
7179 ns_appdir=`pwd`/nextstep/Emacs.app
7180 ns_appbindir=`pwd`/nextstep/Emacs.app
7181 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
7182 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7183 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
7184 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7185 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7186 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7187 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7188 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7189 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7190 fi
7191 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7192 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7193 HAVE_NS=yes
7194 else
7195 as_fn_error $? "\`--with-ns' was specified, but the include
7196 files are missing or cannot be compiled." "$LINENO" 5
7197 fi
7198
7199
7200 NS_HAVE_NSINTEGER=yes
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7203 #include <Foundation/NSObjCRuntime.h>
7204 int
7205 main ()
7206 {
7207 NSInteger i;
7208 ;
7209 return 0;
7210 }
7211 _ACEOF
7212 if ac_fn_c_try_compile "$LINENO"; then :
7213 ns_have_nsinteger=yes
7214 else
7215 ns_have_nsinteger=no
7216 fi
7217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218 if test $ns_have_nsinteger = no; then
7219 NS_HAVE_NSINTEGER=no
7220 fi
7221 fi
7222 if test "${HAVE_NS}" = yes; then
7223 window_system=nextstep
7224 with_xft=no
7225 # set up packaging dirs
7226 exec_prefix=${ns_appbindir}
7227 libexecdir=${ns_appbindir}/libexec
7228 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7229 prefix=${ns_appresdir}
7230 fi
7231 fi
7232 CFLAGS="$tmp_CFLAGS"
7233 CPPFLAGS="$tmp_CPPFLAGS"
7234
7235 case "${window_system}" in
7236 x11 )
7237 HAVE_X_WINDOWS=yes
7238 HAVE_X11=yes
7239 case "${with_x_toolkit}" in
7240 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7241 motif ) USE_X_TOOLKIT=MOTIF ;;
7242 gtk ) with_gtk=yes
7243 USE_X_TOOLKIT=none ;;
7244 no ) USE_X_TOOLKIT=none ;;
7245 * ) USE_X_TOOLKIT=maybe ;;
7246 esac
7247 ;;
7248 nextstep | none )
7249 HAVE_X_WINDOWS=no
7250 HAVE_X11=no
7251 USE_X_TOOLKIT=none
7252 ;;
7253 esac
7254
7255 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7256 # Extract the first word of "X", so it can be a program name with args.
7257 set dummy X; ac_word=$2
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259 $as_echo_n "checking for $ac_word... " >&6; }
7260 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7261 $as_echo_n "(cached) " >&6
7262 else
7263 if test -n "$HAVE_XSERVER"; then
7264 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7265 else
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 for as_dir in $PATH
7268 do
7269 IFS=$as_save_IFS
7270 test -z "$as_dir" && as_dir=.
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7273 ac_cv_prog_HAVE_XSERVER="true"
7274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 break 2
7276 fi
7277 done
7278 done
7279 IFS=$as_save_IFS
7280
7281 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7282 fi
7283 fi
7284 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7285 if test -n "$HAVE_XSERVER"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7287 $as_echo "$HAVE_XSERVER" >&6; }
7288 else
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7291 fi
7292
7293
7294 if test "$HAVE_XSERVER" = true ||
7295 test -n "$DISPLAY" ||
7296 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7297 as_fn_error $? "You seem to be running X, but no X development libraries
7298 were found. You should install the relevant development files for X
7299 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7300 sure you have development files for image handling, i.e.
7301 tiff, gif, jpeg, png and xpm.
7302 If you are sure you want Emacs compiled without X window support, pass
7303 --without-x
7304 to configure." "$LINENO" 5
7305 fi
7306 fi
7307
7308 ### If we're using X11, we should use the X menu package.
7309 HAVE_MENUS=no
7310 case ${HAVE_X11} in
7311 yes ) HAVE_MENUS=yes ;;
7312 esac
7313
7314 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7315 # Assume not, until told otherwise.
7316 GNU_MALLOC=yes
7317 doug_lea_malloc=yes
7318 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7319 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7320
7321 else
7322 doug_lea_malloc=no
7323 fi
7324
7325 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7326 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7327
7328 else
7329 doug_lea_malloc=no
7330 fi
7331
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7333 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7334 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7335 $as_echo_n "(cached) " >&6
7336 else
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339 extern void (* __after_morecore_hook)();
7340 int
7341 main ()
7342 {
7343 __after_morecore_hook = 0
7344 ;
7345 return 0;
7346 }
7347 _ACEOF
7348 if ac_fn_c_try_link "$LINENO"; then :
7349 emacs_cv_var___after_morecore_hook=yes
7350 else
7351 emacs_cv_var___after_morecore_hook=no
7352 fi
7353 rm -f core conftest.err conftest.$ac_objext \
7354 conftest$ac_exeext conftest.$ac_ext
7355 fi
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7357 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7358 if test $emacs_cv_var___after_morecore_hook = no; then
7359 doug_lea_malloc=no
7360 fi
7361 if test "${system_malloc}" = "yes"; then
7362 GNU_MALLOC=no
7363 GNU_MALLOC_reason="
7364 (The GNU allocators don't work with this system configuration.)"
7365 fi
7366 if test "$doug_lea_malloc" = "yes" ; then
7367 if test "$GNU_MALLOC" = yes ; then
7368 GNU_MALLOC_reason="
7369 (Using Doug Lea's new malloc from the GNU C Library.)"
7370 fi
7371
7372 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7373
7374 fi
7375
7376 if test x"${REL_ALLOC}" = x; then
7377 REL_ALLOC=${GNU_MALLOC}
7378 fi
7379
7380
7381
7382
7383
7384 for ac_header in $ac_header_list
7385 do :
7386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7387 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7388 "
7389 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7390 cat >>confdefs.h <<_ACEOF
7391 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7392 _ACEOF
7393
7394 fi
7395
7396 done
7397
7398
7399
7400
7401
7402
7403
7404
7405 for ac_func in getpagesize
7406 do :
7407 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7408 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7409 cat >>confdefs.h <<_ACEOF
7410 #define HAVE_GETPAGESIZE 1
7411 _ACEOF
7412
7413 fi
7414 done
7415
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7417 $as_echo_n "checking for working mmap... " >&6; }
7418 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7420 else
7421 if test "$cross_compiling" = yes; then :
7422 ac_cv_func_mmap_fixed_mapped=no
7423 else
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7426 $ac_includes_default
7427 /* malloc might have been renamed as rpl_malloc. */
7428 #undef malloc
7429
7430 /* Thanks to Mike Haertel and Jim Avera for this test.
7431 Here is a matrix of mmap possibilities:
7432 mmap private not fixed
7433 mmap private fixed at somewhere currently unmapped
7434 mmap private fixed at somewhere already mapped
7435 mmap shared not fixed
7436 mmap shared fixed at somewhere currently unmapped
7437 mmap shared fixed at somewhere already mapped
7438 For private mappings, we should verify that changes cannot be read()
7439 back from the file, nor mmap's back from the file at a different
7440 address. (There have been systems where private was not correctly
7441 implemented like the infamous i386 svr4.0, and systems where the
7442 VM page cache was not coherent with the file system buffer cache
7443 like early versions of FreeBSD and possibly contemporary NetBSD.)
7444 For shared mappings, we should conversely verify that changes get
7445 propagated back to all the places they're supposed to be.
7446
7447 Grep wants private fixed already mapped.
7448 The main things grep needs to know about mmap are:
7449 * does it exist and is it safe to write into the mmap'd area
7450 * how to use it (BSD variants) */
7451
7452 #include <fcntl.h>
7453 #include <sys/mman.h>
7454
7455 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7456 char *malloc ();
7457 #endif
7458
7459 /* This mess was copied from the GNU getpagesize.h. */
7460 #ifndef HAVE_GETPAGESIZE
7461 # ifdef _SC_PAGESIZE
7462 # define getpagesize() sysconf(_SC_PAGESIZE)
7463 # else /* no _SC_PAGESIZE */
7464 # ifdef HAVE_SYS_PARAM_H
7465 # include <sys/param.h>
7466 # ifdef EXEC_PAGESIZE
7467 # define getpagesize() EXEC_PAGESIZE
7468 # else /* no EXEC_PAGESIZE */
7469 # ifdef NBPG
7470 # define getpagesize() NBPG * CLSIZE
7471 # ifndef CLSIZE
7472 # define CLSIZE 1
7473 # endif /* no CLSIZE */
7474 # else /* no NBPG */
7475 # ifdef NBPC
7476 # define getpagesize() NBPC
7477 # else /* no NBPC */
7478 # ifdef PAGESIZE
7479 # define getpagesize() PAGESIZE
7480 # endif /* PAGESIZE */
7481 # endif /* no NBPC */
7482 # endif /* no NBPG */
7483 # endif /* no EXEC_PAGESIZE */
7484 # else /* no HAVE_SYS_PARAM_H */
7485 # define getpagesize() 8192 /* punt totally */
7486 # endif /* no HAVE_SYS_PARAM_H */
7487 # endif /* no _SC_PAGESIZE */
7488
7489 #endif /* no HAVE_GETPAGESIZE */
7490
7491 int
7492 main ()
7493 {
7494 char *data, *data2, *data3;
7495 const char *cdata2;
7496 int i, pagesize;
7497 int fd, fd2;
7498
7499 pagesize = getpagesize ();
7500
7501 /* First, make a file with some known garbage in it. */
7502 data = (char *) malloc (pagesize);
7503 if (!data)
7504 return 1;
7505 for (i = 0; i < pagesize; ++i)
7506 *(data + i) = rand ();
7507 umask (0);
7508 fd = creat ("conftest.mmap", 0600);
7509 if (fd < 0)
7510 return 2;
7511 if (write (fd, data, pagesize) != pagesize)
7512 return 3;
7513 close (fd);
7514
7515 /* Next, check that the tail of a page is zero-filled. File must have
7516 non-zero length, otherwise we risk SIGBUS for entire page. */
7517 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7518 if (fd2 < 0)
7519 return 4;
7520 cdata2 = "";
7521 if (write (fd2, cdata2, 1) != 1)
7522 return 5;
7523 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7524 if (data2 == MAP_FAILED)
7525 return 6;
7526 for (i = 0; i < pagesize; ++i)
7527 if (*(data2 + i))
7528 return 7;
7529 close (fd2);
7530 if (munmap (data2, pagesize))
7531 return 8;
7532
7533 /* Next, try to mmap the file at a fixed address which already has
7534 something else allocated at it. If we can, also make sure that
7535 we see the same garbage. */
7536 fd = open ("conftest.mmap", O_RDWR);
7537 if (fd < 0)
7538 return 9;
7539 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7540 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7541 return 10;
7542 for (i = 0; i < pagesize; ++i)
7543 if (*(data + i) != *(data2 + i))
7544 return 11;
7545
7546 /* Finally, make sure that changes to the mapped area do not
7547 percolate back to the file as seen by read(). (This is a bug on
7548 some variants of i386 svr4.0.) */
7549 for (i = 0; i < pagesize; ++i)
7550 *(data2 + i) = *(data2 + i) + 1;
7551 data3 = (char *) malloc (pagesize);
7552 if (!data3)
7553 return 12;
7554 if (read (fd, data3, pagesize) != pagesize)
7555 return 13;
7556 for (i = 0; i < pagesize; ++i)
7557 if (*(data + i) != *(data3 + i))
7558 return 14;
7559 close (fd);
7560 return 0;
7561 }
7562 _ACEOF
7563 if ac_fn_c_try_run "$LINENO"; then :
7564 ac_cv_func_mmap_fixed_mapped=yes
7565 else
7566 ac_cv_func_mmap_fixed_mapped=no
7567 fi
7568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7569 conftest.$ac_objext conftest.beam conftest.$ac_ext
7570 fi
7571
7572 fi
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7574 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7575 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7576
7577 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7578
7579 fi
7580 rm -f conftest.mmap conftest.txt
7581
7582 if test $use_mmap_for_buffers = yes; then
7583 REL_ALLOC=no
7584 fi
7585
7586 LIBS="$libsrc_libs $LIBS"
7587
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7589 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7590 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 ac_check_lib_save_LIBS=$LIBS
7594 LIBS="-ldnet $LIBS"
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7597
7598 /* Override any GCC internal prototype to avoid an error.
7599 Use char because int might match the return type of a GCC
7600 builtin and then its argument prototype would still apply. */
7601 #ifdef __cplusplus
7602 extern "C"
7603 #endif
7604 char dnet_ntoa ();
7605 int
7606 main ()
7607 {
7608 return dnet_ntoa ();
7609 ;
7610 return 0;
7611 }
7612 _ACEOF
7613 if ac_fn_c_try_link "$LINENO"; then :
7614 ac_cv_lib_dnet_dnet_ntoa=yes
7615 else
7616 ac_cv_lib_dnet_dnet_ntoa=no
7617 fi
7618 rm -f core conftest.err conftest.$ac_objext \
7619 conftest$ac_exeext conftest.$ac_ext
7620 LIBS=$ac_check_lib_save_LIBS
7621 fi
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7623 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7624 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7625 cat >>confdefs.h <<_ACEOF
7626 #define HAVE_LIBDNET 1
7627 _ACEOF
7628
7629 LIBS="-ldnet $LIBS"
7630
7631 fi
7632
7633
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7635 $as_echo_n "checking for main in -lXbsd... " >&6; }
7636 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 ac_check_lib_save_LIBS=$LIBS
7640 LIBS="-lXbsd $LIBS"
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7643
7644
7645 int
7646 main ()
7647 {
7648 return main ();
7649 ;
7650 return 0;
7651 }
7652 _ACEOF
7653 if ac_fn_c_try_link "$LINENO"; then :
7654 ac_cv_lib_Xbsd_main=yes
7655 else
7656 ac_cv_lib_Xbsd_main=no
7657 fi
7658 rm -f core conftest.err conftest.$ac_objext \
7659 conftest$ac_exeext conftest.$ac_ext
7660 LIBS=$ac_check_lib_save_LIBS
7661 fi
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7663 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7664 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
7665 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7666 fi
7667
7668
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7670 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7671 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 ac_check_lib_save_LIBS=$LIBS
7675 LIBS="-lpthreads $LIBS"
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7678
7679 /* Override any GCC internal prototype to avoid an error.
7680 Use char because int might match the return type of a GCC
7681 builtin and then its argument prototype would still apply. */
7682 #ifdef __cplusplus
7683 extern "C"
7684 #endif
7685 char cma_open ();
7686 int
7687 main ()
7688 {
7689 return cma_open ();
7690 ;
7691 return 0;
7692 }
7693 _ACEOF
7694 if ac_fn_c_try_link "$LINENO"; then :
7695 ac_cv_lib_pthreads_cma_open=yes
7696 else
7697 ac_cv_lib_pthreads_cma_open=no
7698 fi
7699 rm -f core conftest.err conftest.$ac_objext \
7700 conftest$ac_exeext conftest.$ac_ext
7701 LIBS=$ac_check_lib_save_LIBS
7702 fi
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7704 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7705 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
7706 cat >>confdefs.h <<_ACEOF
7707 #define HAVE_LIBPTHREADS 1
7708 _ACEOF
7709
7710 LIBS="-lpthreads $LIBS"
7711
7712 fi
7713
7714
7715
7716 case ${host_os} in
7717 aix*)
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
7719 $as_echo_n "checking for -bbigtoc option... " >&6; }
7720 if test "${gdb_cv_bigtoc+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723
7724 case $GCC in
7725 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7726 *) gdb_cv_bigtoc=-bbigtoc ;;
7727 esac
7728
7729 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h. */
7732
7733 int
7734 main ()
7735 {
7736 int i;
7737 ;
7738 return 0;
7739 }
7740 _ACEOF
7741 if ac_fn_c_try_link "$LINENO"; then :
7742
7743 else
7744 gdb_cv_bigtoc=
7745 fi
7746 rm -f core conftest.err conftest.$ac_objext \
7747 conftest$ac_exeext conftest.$ac_ext
7748
7749 fi
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
7751 $as_echo "$gdb_cv_bigtoc" >&6; }
7752 ;;
7753 esac
7754
7755 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7756 # used for the tests that follow. We set them back to REAL_CFLAGS and
7757 # REAL_CPPFLAGS later on.
7758
7759 REAL_CPPFLAGS="$CPPFLAGS"
7760
7761 if test "${HAVE_X11}" = "yes"; then
7762 DEFS="$C_SWITCH_X_SITE $DEFS"
7763 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7764 LIBS="$LIBX $LIBS"
7765 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7766 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7767
7768 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7769 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7770 # but it's more convenient here to set LD_RUN_PATH
7771 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7772 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7773 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7774 export LD_RUN_PATH
7775 fi
7776
7777 if test "${opsys}" = "gnu-linux"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
7779 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7782
7783 int
7784 main ()
7785 {
7786 XOpenDisplay ("foo");
7787 ;
7788 return 0;
7789 }
7790 _ACEOF
7791 if ac_fn_c_try_link "$LINENO"; then :
7792 xlinux_first_failure=no
7793 else
7794 xlinux_first_failure=yes
7795 fi
7796 rm -f core conftest.err conftest.$ac_objext \
7797 conftest$ac_exeext conftest.$ac_ext
7798 if test "${xlinux_first_failure}" = "yes"; then
7799 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7800 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7801 OLD_CPPFLAGS="$CPPFLAGS"
7802 OLD_LIBS="$LIBS"
7803 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7804 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7805 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7806 LIBS="$LIBS -b i486-linuxaout"
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809
7810 int
7811 main ()
7812 {
7813 XOpenDisplay ("foo");
7814 ;
7815 return 0;
7816 }
7817 _ACEOF
7818 if ac_fn_c_try_link "$LINENO"; then :
7819 xlinux_second_failure=no
7820 else
7821 xlinux_second_failure=yes
7822 fi
7823 rm -f core conftest.err conftest.$ac_objext \
7824 conftest$ac_exeext conftest.$ac_ext
7825 if test "${xlinux_second_failure}" = "yes"; then
7826 # If we get the same failure with -b, there is no use adding -b.
7827 # So take it out. This plays safe.
7828 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7829 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7830 CPPFLAGS="$OLD_CPPFLAGS"
7831 LIBS="$OLD_LIBS"
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7834 else
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7836 $as_echo "yes" >&6; }
7837 fi
7838 else
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7841 fi
7842 fi
7843
7844 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7845 # header files included from there.
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
7847 $as_echo_n "checking for Xkb... " >&6; }
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850 #include <X11/Xlib.h>
7851 #include <X11/XKBlib.h>
7852 int
7853 main ()
7854 {
7855 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7856 ;
7857 return 0;
7858 }
7859 _ACEOF
7860 if ac_fn_c_try_link "$LINENO"; then :
7861 emacs_xkb=yes
7862 else
7863 emacs_xkb=no
7864 fi
7865 rm -f core conftest.err conftest.$ac_objext \
7866 conftest$ac_exeext conftest.$ac_ext
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
7868 $as_echo "$emacs_xkb" >&6; }
7869 if test $emacs_xkb = yes; then
7870
7871 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
7872
7873 fi
7874
7875 for ac_func in XrmSetDatabase XScreenResourceString \
7876 XScreenNumberOfScreen XSetWMProtocols
7877 do :
7878 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7879 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7880 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7881 cat >>confdefs.h <<_ACEOF
7882 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7883 _ACEOF
7884
7885 fi
7886 done
7887
7888 fi
7889
7890 if test "${window_system}" = "x11"; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
7892 $as_echo_n "checking X11 version 6... " >&6; }
7893 if test "${emacs_cv_x11_version_6+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898 #include <X11/Xlib.h>
7899 int
7900 main ()
7901 {
7902 #if XlibSpecificationRelease < 6
7903 fail;
7904 #endif
7905
7906 ;
7907 return 0;
7908 }
7909 _ACEOF
7910 if ac_fn_c_try_link "$LINENO"; then :
7911 emacs_cv_x11_version_6=yes
7912 else
7913 emacs_cv_x11_version_6=no
7914 fi
7915 rm -f core conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
7917 fi
7918
7919 if test $emacs_cv_x11_version_6 = yes; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
7921 $as_echo "6 or newer" >&6; }
7922
7923 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
7924
7925 else
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
7927 $as_echo "before 6" >&6; }
7928 fi
7929 fi
7930
7931
7932 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
7933 HAVE_RSVG=no
7934 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
7935 if test "${with_rsvg}" != "no"; then
7936 RSVG_REQUIRED=2.11.0
7937 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
7938
7939
7940 succeeded=no
7941
7942 # Extract the first word of "pkg-config", so it can be a program name with args.
7943 set dummy pkg-config; ac_word=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 case $PKG_CONFIG in
7950 [\\/]* | ?:[\\/]*)
7951 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7952 ;;
7953 *)
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955 for as_dir in $PATH
7956 do
7957 IFS=$as_save_IFS
7958 test -z "$as_dir" && as_dir=.
7959 for ac_exec_ext in '' $ac_executable_extensions; do
7960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7961 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7963 break 2
7964 fi
7965 done
7966 done
7967 IFS=$as_save_IFS
7968
7969 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7970 ;;
7971 esac
7972 fi
7973 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7974 if test -n "$PKG_CONFIG"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7976 $as_echo "$PKG_CONFIG" >&6; }
7977 else
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7980 fi
7981
7982
7983
7984 if test "$PKG_CONFIG" = "no" ; then
7985 :
7986 else
7987 PKG_CONFIG_MIN_VERSION=0.9.0
7988 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
7990 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
7991
7992 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7994 $as_echo "yes" >&6; }
7995 succeeded=yes
7996
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
7998 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
7999 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8001 $as_echo "$RSVG_CFLAGS" >&6; }
8002
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8004 $as_echo_n "checking RSVG_LIBS... " >&6; }
8005 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8007 $as_echo "$RSVG_LIBS" >&6; }
8008 else
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8011 RSVG_CFLAGS=""
8012 RSVG_LIBS=""
8013 ## If we have a custom action on failure, don't print errors, but
8014 ## do set a variable so people can do so.
8015 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8016
8017 fi
8018
8019
8020
8021 else
8022 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8023 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8024 fi
8025 fi
8026
8027 if test $succeeded = yes; then
8028 :
8029 else
8030 :
8031 fi
8032
8033
8034
8035
8036 if test ".${RSVG_CFLAGS}" != "."; then
8037 HAVE_RSVG=yes
8038
8039 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8040
8041 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8042 LIBS="$RSVG_LIBS $LIBS"
8043 fi
8044 fi
8045 fi
8046
8047
8048 HAVE_GTK=no
8049 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8050 GLIB_REQUIRED=2.6
8051 GTK_REQUIRED=2.6
8052 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8053
8054
8055 succeeded=no
8056
8057 # Extract the first word of "pkg-config", so it can be a program name with args.
8058 set dummy pkg-config; ac_word=$2
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8060 $as_echo_n "checking for $ac_word... " >&6; }
8061 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 case $PKG_CONFIG in
8065 [\\/]* | ?:[\\/]*)
8066 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8067 ;;
8068 *)
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8071 do
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8076 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 break 2
8079 fi
8080 done
8081 done
8082 IFS=$as_save_IFS
8083
8084 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8085 ;;
8086 esac
8087 fi
8088 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8089 if test -n "$PKG_CONFIG"; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8091 $as_echo "$PKG_CONFIG" >&6; }
8092 else
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094 $as_echo "no" >&6; }
8095 fi
8096
8097
8098
8099 if test "$PKG_CONFIG" = "no" ; then
8100 pkg_check_gtk=no
8101 else
8102 PKG_CONFIG_MIN_VERSION=0.9.0
8103 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8105 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8106
8107 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8109 $as_echo "yes" >&6; }
8110 succeeded=yes
8111
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8113 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8114 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8116 $as_echo "$GTK_CFLAGS" >&6; }
8117
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8119 $as_echo_n "checking GTK_LIBS... " >&6; }
8120 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8122 $as_echo "$GTK_LIBS" >&6; }
8123 else
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 $as_echo "no" >&6; }
8126 GTK_CFLAGS=""
8127 GTK_LIBS=""
8128 ## If we have a custom action on failure, don't print errors, but
8129 ## do set a variable so people can do so.
8130 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8131
8132 fi
8133
8134
8135
8136 else
8137 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8138 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8139 fi
8140 fi
8141
8142 if test $succeeded = yes; then
8143 pkg_check_gtk=yes
8144 else
8145 pkg_check_gtk=no
8146 fi
8147
8148 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8149 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8150 fi
8151 fi
8152
8153
8154 if test x"$pkg_check_gtk" = xyes; then
8155
8156
8157
8158 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8159 CFLAGS="$CFLAGS $GTK_CFLAGS"
8160 LIBS="$GTK_LIBS $LIBS"
8161 GTK_COMPILES=no
8162 for ac_func in gtk_main
8163 do :
8164 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8165 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8166 cat >>confdefs.h <<_ACEOF
8167 #define HAVE_GTK_MAIN 1
8168 _ACEOF
8169 GTK_COMPILES=yes
8170 fi
8171 done
8172
8173 if test "${GTK_COMPILES}" != "yes"; then
8174 if test "$USE_X_TOOLKIT" != "maybe"; then
8175 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8176 fi
8177 else
8178 HAVE_GTK=yes
8179
8180 $as_echo "#define USE_GTK 1" >>confdefs.h
8181
8182 USE_X_TOOLKIT=none
8183 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8184 :
8185 else
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8187 closing open displays. This is no problem if you just use
8188 one display, but if you use more than one and close one of them
8189 Emacs may crash." >&5
8190 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8191 closing open displays. This is no problem if you just use
8192 one display, but if you use more than one and close one of them
8193 Emacs may crash." >&2;}
8194 sleep 3
8195 fi
8196 fi
8197
8198 fi
8199
8200
8201 if test "${HAVE_GTK}" = "yes"; then
8202
8203 if test "$with_toolkit_scroll_bars" != no; then
8204 with_toolkit_scroll_bars=yes
8205 fi
8206
8207 HAVE_GTK_MULTIDISPLAY=no
8208 for ac_func in gdk_display_open
8209 do :
8210 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8211 if test "x$ac_cv_func_gdk_display_open" = x""yes; then :
8212 cat >>confdefs.h <<_ACEOF
8213 #define HAVE_GDK_DISPLAY_OPEN 1
8214 _ACEOF
8215 HAVE_GTK_MULTIDISPLAY=yes
8216 fi
8217 done
8218
8219 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8220
8221 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8222
8223 fi
8224
8225 HAVE_GTK_FILE_SELECTION=no
8226 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8227 #include <gtk/gtk.h>
8228 "
8229 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
8230 HAVE_GTK_FILE_SELECTION=yes
8231 else
8232 HAVE_GTK_FILE_SELECTION=no
8233 fi
8234
8235 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8236 for ac_func in gtk_file_selection_new
8237 do :
8238 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8239 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
8240 cat >>confdefs.h <<_ACEOF
8241 #define HAVE_GTK_FILE_SELECTION_NEW 1
8242 _ACEOF
8243 HAVE_GTK_FILE_SELECTION=yes
8244 else
8245 HAVE_GTK_FILE_SELECTION=no
8246 fi
8247 done
8248
8249 fi
8250
8251 HAVE_GTK_FILE_CHOOSER=no
8252 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8253 #include <gtk/gtk.h>
8254 "
8255 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then :
8256 HAVE_GTK_FILE_CHOOSER=yes
8257 else
8258 HAVE_GTK_FILE_CHOOSER=no
8259 fi
8260
8261 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8262 for ac_func in gtk_file_chooser_dialog_new
8263 do :
8264 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8265 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then :
8266 cat >>confdefs.h <<_ACEOF
8267 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8268 _ACEOF
8269 HAVE_GTK_FILE_CHOOSER=yes
8270 else
8271 HAVE_GTK_FILE_CHOOSER=no
8272 fi
8273 done
8274
8275 fi
8276
8277 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8278 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8279
8280 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8281
8282 fi
8283
8284 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8285 HAVE_GTK_AND_PTHREAD=no
8286 for ac_header in pthread.h
8287 do :
8288 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8289 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8290 cat >>confdefs.h <<_ACEOF
8291 #define HAVE_PTHREAD_H 1
8292 _ACEOF
8293
8294 fi
8295
8296 done
8297
8298 if test "$ac_cv_header_pthread_h"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8300 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8301 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 ac_check_lib_save_LIBS=$LIBS
8305 LIBS="-lpthread $LIBS"
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8308
8309 /* Override any GCC internal prototype to avoid an error.
8310 Use char because int might match the return type of a GCC
8311 builtin and then its argument prototype would still apply. */
8312 #ifdef __cplusplus
8313 extern "C"
8314 #endif
8315 char pthread_self ();
8316 int
8317 main ()
8318 {
8319 return pthread_self ();
8320 ;
8321 return 0;
8322 }
8323 _ACEOF
8324 if ac_fn_c_try_link "$LINENO"; then :
8325 ac_cv_lib_pthread_pthread_self=yes
8326 else
8327 ac_cv_lib_pthread_pthread_self=no
8328 fi
8329 rm -f core conftest.err conftest.$ac_objext \
8330 conftest$ac_exeext conftest.$ac_ext
8331 LIBS=$ac_check_lib_save_LIBS
8332 fi
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8334 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8335 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
8336 HAVE_GTK_AND_PTHREAD=yes
8337 fi
8338
8339 fi
8340 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8341 case "${canonical}" in
8342 *-hpux*) ;;
8343 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8344 esac
8345
8346 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8347
8348 fi
8349 fi
8350 fi
8351
8352 HAVE_DBUS=no
8353 if test "${with_dbus}" = "yes"; then
8354
8355 succeeded=no
8356
8357 # Extract the first word of "pkg-config", so it can be a program name with args.
8358 set dummy pkg-config; ac_word=$2
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8360 $as_echo_n "checking for $ac_word... " >&6; }
8361 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8362 $as_echo_n "(cached) " >&6
8363 else
8364 case $PKG_CONFIG in
8365 [\\/]* | ?:[\\/]*)
8366 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8367 ;;
8368 *)
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 for as_dir in $PATH
8371 do
8372 IFS=$as_save_IFS
8373 test -z "$as_dir" && as_dir=.
8374 for ac_exec_ext in '' $ac_executable_extensions; do
8375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8376 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8378 break 2
8379 fi
8380 done
8381 done
8382 IFS=$as_save_IFS
8383
8384 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8385 ;;
8386 esac
8387 fi
8388 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8389 if test -n "$PKG_CONFIG"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8391 $as_echo "$PKG_CONFIG" >&6; }
8392 else
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8395 fi
8396
8397
8398
8399 if test "$PKG_CONFIG" = "no" ; then
8400 HAVE_DBUS=no
8401 else
8402 PKG_CONFIG_MIN_VERSION=0.9.0
8403 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8405 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8406
8407 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8409 $as_echo "yes" >&6; }
8410 succeeded=yes
8411
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8413 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8414 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8416 $as_echo "$DBUS_CFLAGS" >&6; }
8417
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8419 $as_echo_n "checking DBUS_LIBS... " >&6; }
8420 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8422 $as_echo "$DBUS_LIBS" >&6; }
8423 else
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425 $as_echo "no" >&6; }
8426 DBUS_CFLAGS=""
8427 DBUS_LIBS=""
8428 ## If we have a custom action on failure, don't print errors, but
8429 ## do set a variable so people can do so.
8430 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8431
8432 fi
8433
8434
8435
8436 else
8437 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8438 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8439 fi
8440 fi
8441
8442 if test $succeeded = yes; then
8443 HAVE_DBUS=yes
8444 else
8445 HAVE_DBUS=no
8446 fi
8447
8448 if test "$HAVE_DBUS" = yes; then
8449 LIBS="$LIBS $DBUS_LIBS"
8450
8451 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8452
8453 for ac_func in dbus_watch_get_unix_fd
8454 do :
8455 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8456 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
8457 cat >>confdefs.h <<_ACEOF
8458 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8459 _ACEOF
8460
8461 fi
8462 done
8463
8464 fi
8465 fi
8466
8467 HAVE_GCONF=no
8468 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8469
8470 succeeded=no
8471
8472 # Extract the first word of "pkg-config", so it can be a program name with args.
8473 set dummy pkg-config; ac_word=$2
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475 $as_echo_n "checking for $ac_word... " >&6; }
8476 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8477 $as_echo_n "(cached) " >&6
8478 else
8479 case $PKG_CONFIG in
8480 [\\/]* | ?:[\\/]*)
8481 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8482 ;;
8483 *)
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485 for as_dir in $PATH
8486 do
8487 IFS=$as_save_IFS
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8491 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8493 break 2
8494 fi
8495 done
8496 done
8497 IFS=$as_save_IFS
8498
8499 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8500 ;;
8501 esac
8502 fi
8503 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8504 if test -n "$PKG_CONFIG"; then
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8506 $as_echo "$PKG_CONFIG" >&6; }
8507 else
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8510 fi
8511
8512
8513
8514 if test "$PKG_CONFIG" = "no" ; then
8515 HAVE_GCONF=no
8516 else
8517 PKG_CONFIG_MIN_VERSION=0.9.0
8518 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8520 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8521
8522 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8524 $as_echo "yes" >&6; }
8525 succeeded=yes
8526
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8528 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8529 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8531 $as_echo "$GCONF_CFLAGS" >&6; }
8532
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8534 $as_echo_n "checking GCONF_LIBS... " >&6; }
8535 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8537 $as_echo "$GCONF_LIBS" >&6; }
8538 else
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 $as_echo "no" >&6; }
8541 GCONF_CFLAGS=""
8542 GCONF_LIBS=""
8543 ## If we have a custom action on failure, don't print errors, but
8544 ## do set a variable so people can do so.
8545 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8546
8547 fi
8548
8549
8550
8551 else
8552 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8553 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8554 fi
8555 fi
8556
8557 if test $succeeded = yes; then
8558 HAVE_GCONF=yes
8559 else
8560 HAVE_GCONF=no
8561 fi
8562
8563 if test "$HAVE_GCONF" = yes; then
8564
8565 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8566
8567 fi
8568 fi
8569
8570 HAVE_XAW3D=no
8571 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
8572 if test "$with_xaw3d" != no; then
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
8574 $as_echo_n "checking for xaw3d... " >&6; }
8575 if test "${emacs_cv_xaw3d+set}" = set; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8580
8581 #include <X11/Intrinsic.h>
8582 #include <X11/Xaw3d/Simple.h>
8583 int
8584 main ()
8585 {
8586
8587 ;
8588 return 0;
8589 }
8590 _ACEOF
8591 if ac_fn_c_try_link "$LINENO"; then :
8592 emacs_cv_xaw3d=yes
8593 else
8594 emacs_cv_xaw3d=no
8595 fi
8596 rm -f core conftest.err conftest.$ac_objext \
8597 conftest$ac_exeext conftest.$ac_ext
8598 fi
8599
8600 else
8601 emacs_cv_xaw3d=no
8602 fi
8603 if test $emacs_cv_xaw3d = yes; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8605 $as_echo "yes; using Lucid toolkit" >&6; }
8606 USE_X_TOOLKIT=LUCID
8607 HAVE_XAW3D=yes
8608
8609 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
8610
8611 else
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
8615 $as_echo_n "checking for libXaw... " >&6; }
8616 if test "${emacs_cv_xaw+set}" = set; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8621
8622 #include <X11/Intrinsic.h>
8623 #include <X11/Xaw/Simple.h>
8624 int
8625 main ()
8626 {
8627
8628 ;
8629 return 0;
8630 }
8631 _ACEOF
8632 if ac_fn_c_try_link "$LINENO"; then :
8633 emacs_cv_xaw=yes
8634 else
8635 emacs_cv_xaw=no
8636 fi
8637 rm -f core conftest.err conftest.$ac_objext \
8638 conftest$ac_exeext conftest.$ac_ext
8639 fi
8640
8641 if test $emacs_cv_xaw = yes; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8643 $as_echo "yes; using Lucid toolkit" >&6; }
8644 USE_X_TOOLKIT=LUCID
8645 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
8646 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
8647 else
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
8649 $as_echo "no; do not use toolkit by default" >&6; }
8650 USE_X_TOOLKIT=none
8651 fi
8652 fi
8653 fi
8654
8655 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8656
8657 if test "${USE_X_TOOLKIT}" != "none"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
8659 $as_echo_n "checking X11 toolkit version... " >&6; }
8660 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
8661 $as_echo_n "(cached) " >&6
8662 else
8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8665 #include <X11/Intrinsic.h>
8666 int
8667 main ()
8668 {
8669 #if XtSpecificationRelease < 6
8670 fail;
8671 #endif
8672
8673 ;
8674 return 0;
8675 }
8676 _ACEOF
8677 if ac_fn_c_try_link "$LINENO"; then :
8678 emacs_cv_x11_toolkit_version_6=yes
8679 else
8680 emacs_cv_x11_toolkit_version_6=no
8681 fi
8682 rm -f core conftest.err conftest.$ac_objext \
8683 conftest$ac_exeext conftest.$ac_ext
8684 fi
8685
8686 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8687 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8689 $as_echo "6 or newer" >&6; }
8690
8691 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
8692
8693 else
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8695 $as_echo "before 6" >&6; }
8696 fi
8697
8698 OLDLIBS="$LIBS"
8699 if test x$HAVE_X11XTR6 = xyes; then
8700 LIBS="-lXt -lSM -lICE $LIBS"
8701 else
8702 LIBS="-lXt $LIBS"
8703 fi
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
8705 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8706 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
8707 $as_echo_n "(cached) " >&6
8708 else
8709 ac_check_lib_save_LIBS=$LIBS
8710 LIBS="-lXmu $LIBS"
8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8713
8714 /* Override any GCC internal prototype to avoid an error.
8715 Use char because int might match the return type of a GCC
8716 builtin and then its argument prototype would still apply. */
8717 #ifdef __cplusplus
8718 extern "C"
8719 #endif
8720 char XmuConvertStandardSelection ();
8721 int
8722 main ()
8723 {
8724 return XmuConvertStandardSelection ();
8725 ;
8726 return 0;
8727 }
8728 _ACEOF
8729 if ac_fn_c_try_link "$LINENO"; then :
8730 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8731 else
8732 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8733 fi
8734 rm -f core conftest.err conftest.$ac_objext \
8735 conftest$ac_exeext conftest.$ac_ext
8736 LIBS=$ac_check_lib_save_LIBS
8737 fi
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8739 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8740 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
8741 cat >>confdefs.h <<_ACEOF
8742 #define HAVE_LIBXMU 1
8743 _ACEOF
8744
8745 LIBS="-lXmu $LIBS"
8746
8747 fi
8748
8749 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8750 fi
8751
8752 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8753 if test "${HAVE_X11}" = "yes"; then
8754 if test "${USE_X_TOOLKIT}" != "none"; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8756 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8757 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8758 $as_echo_n "(cached) " >&6
8759 else
8760 ac_check_lib_save_LIBS=$LIBS
8761 LIBS="-lXext $LIBS"
8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h. */
8764
8765 /* Override any GCC internal prototype to avoid an error.
8766 Use char because int might match the return type of a GCC
8767 builtin and then its argument prototype would still apply. */
8768 #ifdef __cplusplus
8769 extern "C"
8770 #endif
8771 char XShapeQueryExtension ();
8772 int
8773 main ()
8774 {
8775 return XShapeQueryExtension ();
8776 ;
8777 return 0;
8778 }
8779 _ACEOF
8780 if ac_fn_c_try_link "$LINENO"; then :
8781 ac_cv_lib_Xext_XShapeQueryExtension=yes
8782 else
8783 ac_cv_lib_Xext_XShapeQueryExtension=no
8784 fi
8785 rm -f core conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext conftest.$ac_ext
8787 LIBS=$ac_check_lib_save_LIBS
8788 fi
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8790 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8791 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8792 cat >>confdefs.h <<_ACEOF
8793 #define HAVE_LIBXEXT 1
8794 _ACEOF
8795
8796 LIBS="-lXext $LIBS"
8797
8798 fi
8799
8800 fi
8801 fi
8802
8803 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
8805 $as_echo_n "checking for Motif version 2.1... " >&6; }
8806 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8811 #include <Xm/Xm.h>
8812 int
8813 main ()
8814 {
8815 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8816 int x = 5;
8817 #else
8818 Motif version prior to 2.1.
8819 #endif
8820 ;
8821 return 0;
8822 }
8823 _ACEOF
8824 if ac_fn_c_try_compile "$LINENO"; then :
8825 emacs_cv_motif_version_2_1=yes
8826 else
8827 emacs_cv_motif_version_2_1=no
8828 fi
8829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8830 fi
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
8832 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
8833 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8834 if test $emacs_cv_motif_version_2_1 = yes; then
8835 HAVE_LIBXP=no
8836
8837 $as_echo "#define HAVE_MOTIF_2_1 1" >>confdefs.h
8838
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
8840 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
8841 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
8842 $as_echo_n "(cached) " >&6
8843 else
8844 ac_check_lib_save_LIBS=$LIBS
8845 LIBS="-lXp $LIBS"
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8848
8849 /* Override any GCC internal prototype to avoid an error.
8850 Use char because int might match the return type of a GCC
8851 builtin and then its argument prototype would still apply. */
8852 #ifdef __cplusplus
8853 extern "C"
8854 #endif
8855 char XpCreateContext ();
8856 int
8857 main ()
8858 {
8859 return XpCreateContext ();
8860 ;
8861 return 0;
8862 }
8863 _ACEOF
8864 if ac_fn_c_try_link "$LINENO"; then :
8865 ac_cv_lib_Xp_XpCreateContext=yes
8866 else
8867 ac_cv_lib_Xp_XpCreateContext=no
8868 fi
8869 rm -f core conftest.err conftest.$ac_objext \
8870 conftest$ac_exeext conftest.$ac_ext
8871 LIBS=$ac_check_lib_save_LIBS
8872 fi
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8874 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
8875 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
8876 HAVE_LIBXP=yes
8877 fi
8878
8879 if test ${HAVE_LIBXP} = yes; then
8880
8881 $as_echo "#define HAVE_LIBXP 1" >>confdefs.h
8882
8883 fi
8884 else
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
8886 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
8887 if test "${emacs_cv_lesstif+set}" = set; then :
8888 $as_echo_n "(cached) " >&6
8889 else
8890 # We put this in CFLAGS temporarily to precede other -I options
8891 # that might be in CFLAGS temporarily.
8892 # We put this in CPPFLAGS where it precedes the other -I options.
8893 OLD_CPPFLAGS=$CPPFLAGS
8894 OLD_CFLAGS=$CFLAGS
8895 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8896 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h. */
8899 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8900 int
8901 main ()
8902 {
8903 int x = 5;
8904 ;
8905 return 0;
8906 }
8907 _ACEOF
8908 if ac_fn_c_try_compile "$LINENO"; then :
8909 emacs_cv_lesstif=yes
8910 else
8911 emacs_cv_lesstif=no
8912 fi
8913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8914 fi
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
8916 $as_echo "$emacs_cv_lesstif" >&6; }
8917 if test $emacs_cv_lesstif = yes; then
8918 # Make sure this -I option remains in CPPFLAGS after it is set
8919 # back to REAL_CPPFLAGS.
8920 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8921 # have those other -I options anyway. Ultimately, having this
8922 # directory ultimately in CPPFLAGS will be enough.
8923 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8924 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8925 else
8926 CFLAGS=$OLD_CFLAGS
8927 CPPFLAGS=$OLD_CPPFLAGS
8928 fi
8929 fi
8930 fi
8931
8932
8933 USE_TOOLKIT_SCROLL_BARS=no
8934 if test "${with_toolkit_scroll_bars}" != "no"; then
8935 if test "${USE_X_TOOLKIT}" != "none"; then
8936 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8937 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8938
8939 HAVE_XAW3D=no
8940 USE_TOOLKIT_SCROLL_BARS=yes
8941 elif test "${HAVE_XAW3D}" = "yes"; then
8942 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8943
8944 USE_TOOLKIT_SCROLL_BARS=yes
8945 fi
8946 elif test "${HAVE_GTK}" = "yes"; then
8947 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8948
8949 USE_TOOLKIT_SCROLL_BARS=yes
8950 elif test "${HAVE_NS}" = "yes"; then
8951 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8952
8953 USE_TOOLKIT_SCROLL_BARS=yes
8954 fi
8955 fi
8956
8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8959
8960 #include <X11/Xlib.h>
8961 #include <X11/Xresource.h>
8962 int
8963 main ()
8964 {
8965 XIMProc callback;
8966 ;
8967 return 0;
8968 }
8969 _ACEOF
8970 if ac_fn_c_try_compile "$LINENO"; then :
8971 HAVE_XIM=yes
8972
8973 $as_echo "#define HAVE_XIM 1" >>confdefs.h
8974
8975 else
8976 HAVE_XIM=no
8977 fi
8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8979
8980
8981 if test "${with_xim}" != "no"; then
8982
8983 $as_echo "#define USE_XIM 1" >>confdefs.h
8984
8985 fi
8986
8987
8988 if test "${HAVE_XIM}" != "no"; then
8989 late_CFLAGS=$CFLAGS
8990 if test "$GCC" = yes; then
8991 CFLAGS="$CFLAGS --pedantic-errors"
8992 fi
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8995
8996 #include <X11/Xlib.h>
8997 #include <X11/Xresource.h>
8998 int
8999 main ()
9000 {
9001 Display *display;
9002 XrmDatabase db;
9003 char *res_name;
9004 char *res_class;
9005 XIMProc callback;
9006 XPointer *client_data;
9007 #ifndef __GNUC__
9008 /* If we're not using GCC, it's probably not XFree86, and this is
9009 probably right, but we can't use something like --pedantic-errors. */
9010 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9011 char*, XIMProc, XPointer*);
9012 #endif
9013 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9014 client_data);
9015 ;
9016 return 0;
9017 }
9018 _ACEOF
9019 if ac_fn_c_try_compile "$LINENO"; then :
9020 emacs_cv_arg6_star=yes
9021 fi
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023 if test "$emacs_cv_arg6_star" = yes; then
9024 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9025
9026 else
9027 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9028
9029 fi
9030 CFLAGS=$late_CFLAGS
9031 fi
9032
9033 ### Start of font-backend (under any platform) section.
9034 # (nothing here yet -- this is a placeholder)
9035 ### End of font-backend (under any platform) section.
9036
9037 ### Start of font-backend (under X11) section.
9038 if test "${HAVE_X11}" = "yes"; then
9039
9040 succeeded=no
9041
9042 # Extract the first word of "pkg-config", so it can be a program name with args.
9043 set dummy pkg-config; ac_word=$2
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9047 $as_echo_n "(cached) " >&6
9048 else
9049 case $PKG_CONFIG in
9050 [\\/]* | ?:[\\/]*)
9051 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9052 ;;
9053 *)
9054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055 for as_dir in $PATH
9056 do
9057 IFS=$as_save_IFS
9058 test -z "$as_dir" && as_dir=.
9059 for ac_exec_ext in '' $ac_executable_extensions; do
9060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9061 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9063 break 2
9064 fi
9065 done
9066 done
9067 IFS=$as_save_IFS
9068
9069 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9070 ;;
9071 esac
9072 fi
9073 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9074 if test -n "$PKG_CONFIG"; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9076 $as_echo "$PKG_CONFIG" >&6; }
9077 else
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079 $as_echo "no" >&6; }
9080 fi
9081
9082
9083
9084 if test "$PKG_CONFIG" = "no" ; then
9085 HAVE_FC=no
9086 else
9087 PKG_CONFIG_MIN_VERSION=0.9.0
9088 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9090 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9091
9092 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9094 $as_echo "yes" >&6; }
9095 succeeded=yes
9096
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9098 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9099 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9101 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9102
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9104 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9105 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9107 $as_echo "$FONTCONFIG_LIBS" >&6; }
9108 else
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9110 $as_echo "no" >&6; }
9111 FONTCONFIG_CFLAGS=""
9112 FONTCONFIG_LIBS=""
9113 ## If we have a custom action on failure, don't print errors, but
9114 ## do set a variable so people can do so.
9115 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9116
9117 fi
9118
9119
9120
9121 else
9122 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9123 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9124 fi
9125 fi
9126
9127 if test $succeeded = yes; then
9128 HAVE_FC=yes
9129 else
9130 HAVE_FC=no
9131 fi
9132
9133
9134 ## Use -lXft if available, unless `--with-xft=no'.
9135 HAVE_XFT=maybe
9136 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
9137 with_xft="no";
9138 fi
9139 if test "x${with_xft}" != "xno"; then
9140
9141
9142 succeeded=no
9143
9144 # Extract the first word of "pkg-config", so it can be a program name with args.
9145 set dummy pkg-config; ac_word=$2
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9147 $as_echo_n "checking for $ac_word... " >&6; }
9148 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9149 $as_echo_n "(cached) " >&6
9150 else
9151 case $PKG_CONFIG in
9152 [\\/]* | ?:[\\/]*)
9153 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9154 ;;
9155 *)
9156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9157 for as_dir in $PATH
9158 do
9159 IFS=$as_save_IFS
9160 test -z "$as_dir" && as_dir=.
9161 for ac_exec_ext in '' $ac_executable_extensions; do
9162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9163 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9165 break 2
9166 fi
9167 done
9168 done
9169 IFS=$as_save_IFS
9170
9171 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9172 ;;
9173 esac
9174 fi
9175 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9176 if test -n "$PKG_CONFIG"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9178 $as_echo "$PKG_CONFIG" >&6; }
9179 else
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9182 fi
9183
9184
9185
9186 if test "$PKG_CONFIG" = "no" ; then
9187 HAVE_XFT=no
9188 else
9189 PKG_CONFIG_MIN_VERSION=0.9.0
9190 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9192 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9193
9194 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9196 $as_echo "yes" >&6; }
9197 succeeded=yes
9198
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9200 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9201 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9203 $as_echo "$XFT_CFLAGS" >&6; }
9204
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9206 $as_echo_n "checking XFT_LIBS... " >&6; }
9207 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9209 $as_echo "$XFT_LIBS" >&6; }
9210 else
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212 $as_echo "no" >&6; }
9213 XFT_CFLAGS=""
9214 XFT_LIBS=""
9215 ## If we have a custom action on failure, don't print errors, but
9216 ## do set a variable so people can do so.
9217 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9218
9219 fi
9220
9221
9222
9223 else
9224 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9225 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9226 fi
9227 fi
9228
9229 if test $succeeded = yes; then
9230 :
9231 else
9232 HAVE_XFT=no
9233 fi
9234
9235 ## Because xftfont.c uses XRenderQueryExtension, we also
9236 ## need to link to -lXrender.
9237 HAVE_XRENDER=no
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9239 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9240 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9241 $as_echo_n "(cached) " >&6
9242 else
9243 ac_check_lib_save_LIBS=$LIBS
9244 LIBS="-lXrender $LIBS"
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9247
9248 /* Override any GCC internal prototype to avoid an error.
9249 Use char because int might match the return type of a GCC
9250 builtin and then its argument prototype would still apply. */
9251 #ifdef __cplusplus
9252 extern "C"
9253 #endif
9254 char XRenderQueryExtension ();
9255 int
9256 main ()
9257 {
9258 return XRenderQueryExtension ();
9259 ;
9260 return 0;
9261 }
9262 _ACEOF
9263 if ac_fn_c_try_link "$LINENO"; then :
9264 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9265 else
9266 ac_cv_lib_Xrender_XRenderQueryExtension=no
9267 fi
9268 rm -f core conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9270 LIBS=$ac_check_lib_save_LIBS
9271 fi
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9273 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9274 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
9275 HAVE_XRENDER=yes
9276 fi
9277
9278 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
9279 OLD_CPPFLAGS="$CPPFLAGS"
9280 OLD_CFLAGS="$CFLAGS"
9281 OLD_LIBS="$LIBS"
9282 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
9283 CFLAGS="$CFLAGS $XFT_CFLAGS"
9284 XFT_LIBS="-lXrender $XFT_LIBS"
9285 LIBS="$XFT_LIBS $LIBS"
9286 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9287 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9289 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9290 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
9292 else
9293 ac_check_lib_save_LIBS=$LIBS
9294 LIBS="-lXft $XFT_LIBS $LIBS"
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h. */
9297
9298 /* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
9301 #ifdef __cplusplus
9302 extern "C"
9303 #endif
9304 char XftFontOpen ();
9305 int
9306 main ()
9307 {
9308 return XftFontOpen ();
9309 ;
9310 return 0;
9311 }
9312 _ACEOF
9313 if ac_fn_c_try_link "$LINENO"; then :
9314 ac_cv_lib_Xft_XftFontOpen=yes
9315 else
9316 ac_cv_lib_Xft_XftFontOpen=no
9317 fi
9318 rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9320 LIBS=$ac_check_lib_save_LIBS
9321 fi
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9323 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9324 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
9325 HAVE_XFT=yes
9326 fi
9327
9328 fi
9329
9330
9331
9332 if test "${HAVE_XFT}" = "yes"; then
9333
9334 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9335
9336
9337 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
9338 else
9339 CPPFLAGS="$OLD_CPPFLAGS"
9340 CFLAGS="$OLD_CFLAGS"
9341 LIBS="$OLD_LIBS"
9342 fi # "${HAVE_XFT}" = "yes"
9343 fi # "$HAVE_XFT" != no
9344 fi # "x${with_xft}" != "xno"
9345
9346 if test "$HAVE_XFT" != "yes"; then
9347 HAVE_XFT=no
9348 fi
9349
9350
9351 HAVE_FREETYPE=no
9352 ## We used to allow building with FreeType and without Xft.
9353 ## However, the ftx font backend driver is not in good shape.
9354 if test "${HAVE_XFT}" = "yes"; then
9355 HAVE_FREETYPE=yes
9356 FONTCONFIG_CFLAGS=
9357 FONTCONFIG_LIBS=
9358 fi
9359
9360 HAVE_LIBOTF=no
9361 if test "${HAVE_FREETYPE}" = "yes"; then
9362
9363 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9364
9365 if test "${with_libotf}" != "no"; then
9366
9367 succeeded=no
9368
9369 # Extract the first word of "pkg-config", so it can be a program name with args.
9370 set dummy pkg-config; ac_word=$2
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9372 $as_echo_n "checking for $ac_word... " >&6; }
9373 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9374 $as_echo_n "(cached) " >&6
9375 else
9376 case $PKG_CONFIG in
9377 [\\/]* | ?:[\\/]*)
9378 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9379 ;;
9380 *)
9381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382 for as_dir in $PATH
9383 do
9384 IFS=$as_save_IFS
9385 test -z "$as_dir" && as_dir=.
9386 for ac_exec_ext in '' $ac_executable_extensions; do
9387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9388 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9390 break 2
9391 fi
9392 done
9393 done
9394 IFS=$as_save_IFS
9395
9396 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9397 ;;
9398 esac
9399 fi
9400 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9401 if test -n "$PKG_CONFIG"; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9403 $as_echo "$PKG_CONFIG" >&6; }
9404 else
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9406 $as_echo "no" >&6; }
9407 fi
9408
9409
9410
9411 if test "$PKG_CONFIG" = "no" ; then
9412 HAVE_LIBOTF=no
9413 else
9414 PKG_CONFIG_MIN_VERSION=0.9.0
9415 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9417 $as_echo_n "checking for libotf... " >&6; }
9418
9419 if $PKG_CONFIG --exists "libotf" 2>&5; then
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9421 $as_echo "yes" >&6; }
9422 succeeded=yes
9423
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9425 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9426 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9428 $as_echo "$LIBOTF_CFLAGS" >&6; }
9429
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9431 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9432 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9434 $as_echo "$LIBOTF_LIBS" >&6; }
9435 else
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437 $as_echo "no" >&6; }
9438 LIBOTF_CFLAGS=""
9439 LIBOTF_LIBS=""
9440 ## If we have a custom action on failure, don't print errors, but
9441 ## do set a variable so people can do so.
9442 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9443
9444 fi
9445
9446
9447
9448 else
9449 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9450 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9451 fi
9452 fi
9453
9454 if test $succeeded = yes; then
9455 HAVE_LIBOTF=yes
9456 else
9457 HAVE_LIBOTF=no
9458 fi
9459
9460 if test "$HAVE_LIBOTF" = "yes"; then
9461
9462 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9463
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9465 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9466 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9467 $as_echo_n "(cached) " >&6
9468 else
9469 ac_check_lib_save_LIBS=$LIBS
9470 LIBS="-lotf $LIBS"
9471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472 /* end confdefs.h. */
9473
9474 /* Override any GCC internal prototype to avoid an error.
9475 Use char because int might match the return type of a GCC
9476 builtin and then its argument prototype would still apply. */
9477 #ifdef __cplusplus
9478 extern "C"
9479 #endif
9480 char OTF_get_variation_glyphs ();
9481 int
9482 main ()
9483 {
9484 return OTF_get_variation_glyphs ();
9485 ;
9486 return 0;
9487 }
9488 _ACEOF
9489 if ac_fn_c_try_link "$LINENO"; then :
9490 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9491 else
9492 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9493 fi
9494 rm -f core conftest.err conftest.$ac_objext \
9495 conftest$ac_exeext conftest.$ac_ext
9496 LIBS=$ac_check_lib_save_LIBS
9497 fi
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9499 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9500 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
9501 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9502 else
9503 HAVE_OTF_GET_VARIATION_GLYPHS=no
9504 fi
9505
9506 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9507
9508 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9509
9510 fi
9511 fi
9512 fi
9513 fi
9514
9515 HAVE_M17N_FLT=no
9516 if test "${HAVE_LIBOTF}" = yes; then
9517 if test "${with_m17n_flt}" != "no"; then
9518
9519 succeeded=no
9520
9521 # Extract the first word of "pkg-config", so it can be a program name with args.
9522 set dummy pkg-config; ac_word=$2
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9524 $as_echo_n "checking for $ac_word... " >&6; }
9525 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9526 $as_echo_n "(cached) " >&6
9527 else
9528 case $PKG_CONFIG in
9529 [\\/]* | ?:[\\/]*)
9530 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9531 ;;
9532 *)
9533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 for as_dir in $PATH
9535 do
9536 IFS=$as_save_IFS
9537 test -z "$as_dir" && as_dir=.
9538 for ac_exec_ext in '' $ac_executable_extensions; do
9539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9540 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9542 break 2
9543 fi
9544 done
9545 done
9546 IFS=$as_save_IFS
9547
9548 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9549 ;;
9550 esac
9551 fi
9552 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9553 if test -n "$PKG_CONFIG"; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9555 $as_echo "$PKG_CONFIG" >&6; }
9556 else
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9558 $as_echo "no" >&6; }
9559 fi
9560
9561
9562
9563 if test "$PKG_CONFIG" = "no" ; then
9564 HAVE_M17N_FLT=no
9565 else
9566 PKG_CONFIG_MIN_VERSION=0.9.0
9567 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
9569 $as_echo_n "checking for m17n-flt... " >&6; }
9570
9571 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9573 $as_echo "yes" >&6; }
9574 succeeded=yes
9575
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
9577 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9578 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
9580 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9581
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
9583 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9584 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
9586 $as_echo "$M17N_FLT_LIBS" >&6; }
9587 else
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9589 $as_echo "no" >&6; }
9590 M17N_FLT_CFLAGS=""
9591 M17N_FLT_LIBS=""
9592 ## If we have a custom action on failure, don't print errors, but
9593 ## do set a variable so people can do so.
9594 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
9595
9596 fi
9597
9598
9599
9600 else
9601 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9602 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9603 fi
9604 fi
9605
9606 if test $succeeded = yes; then
9607 HAVE_M17N_FLT=yes
9608 else
9609 HAVE_M17N_FLT=no
9610 fi
9611
9612 if test "$HAVE_M17N_FLT" = "yes"; then
9613
9614 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
9615
9616 fi
9617 fi
9618 fi
9619 else
9620 HAVE_XFT=no
9621 HAVE_FREETYPE=no
9622 HAVE_LIBOTF=no
9623 HAVE_M17N_FLT=no
9624 fi
9625 ### End of font-backend (under X11) section.
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636 ### Use -lXpm if available, unless `--with-xpm=no'.
9637 HAVE_XPM=no
9638 if test "${HAVE_X11}" = "yes"; then
9639 if test "${with_xpm}" != "no"; then
9640 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
9641 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
9643 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9644 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
9645 $as_echo_n "(cached) " >&6
9646 else
9647 ac_check_lib_save_LIBS=$LIBS
9648 LIBS="-lXpm -lX11 $LIBS"
9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9651
9652 /* Override any GCC internal prototype to avoid an error.
9653 Use char because int might match the return type of a GCC
9654 builtin and then its argument prototype would still apply. */
9655 #ifdef __cplusplus
9656 extern "C"
9657 #endif
9658 char XpmReadFileToPixmap ();
9659 int
9660 main ()
9661 {
9662 return XpmReadFileToPixmap ();
9663 ;
9664 return 0;
9665 }
9666 _ACEOF
9667 if ac_fn_c_try_link "$LINENO"; then :
9668 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9669 else
9670 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9671 fi
9672 rm -f core conftest.err conftest.$ac_objext \
9673 conftest$ac_exeext conftest.$ac_ext
9674 LIBS=$ac_check_lib_save_LIBS
9675 fi
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9677 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9678 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
9679 HAVE_XPM=yes
9680 fi
9681
9682 fi
9683
9684
9685 if test "${HAVE_XPM}" = "yes"; then
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
9687 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689 /* end confdefs.h. */
9690 #include "X11/xpm.h"
9691 #ifndef XpmReturnAllocPixels
9692 no_return_alloc_pixels
9693 #endif
9694
9695 _ACEOF
9696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9697 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
9698 HAVE_XPM=no
9699 else
9700 HAVE_XPM=yes
9701 fi
9702 rm -f conftest*
9703
9704
9705 if test "${HAVE_XPM}" = "yes"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9707 $as_echo "yes" >&6; }
9708 else
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9711 fi
9712 fi
9713 fi
9714
9715 if test "${HAVE_XPM}" = "yes"; then
9716
9717 $as_echo "#define HAVE_XPM 1" >>confdefs.h
9718
9719 fi
9720 fi
9721
9722 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9723 HAVE_JPEG=no
9724 if test "${HAVE_X11}" = "yes"; then
9725 if test "${with_jpeg}" != "no"; then
9726 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
9727 if test "x$ac_cv_header_jerror_h" = x""yes; then :
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
9729 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9730 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
9731 $as_echo_n "(cached) " >&6
9732 else
9733 ac_check_lib_save_LIBS=$LIBS
9734 LIBS="-ljpeg $LIBS"
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9737
9738 /* Override any GCC internal prototype to avoid an error.
9739 Use char because int might match the return type of a GCC
9740 builtin and then its argument prototype would still apply. */
9741 #ifdef __cplusplus
9742 extern "C"
9743 #endif
9744 char jpeg_destroy_compress ();
9745 int
9746 main ()
9747 {
9748 return jpeg_destroy_compress ();
9749 ;
9750 return 0;
9751 }
9752 _ACEOF
9753 if ac_fn_c_try_link "$LINENO"; then :
9754 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9755 else
9756 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9757 fi
9758 rm -f core conftest.err conftest.$ac_objext \
9759 conftest$ac_exeext conftest.$ac_ext
9760 LIBS=$ac_check_lib_save_LIBS
9761 fi
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9763 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
9764 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
9765 HAVE_JPEG=yes
9766 fi
9767
9768 fi
9769
9770
9771 fi
9772
9773 if test "${HAVE_JPEG}" = "yes"; then
9774 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9775
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9778 #include <jpeglib.h>
9779 version=JPEG_LIB_VERSION
9780
9781 _ACEOF
9782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9783 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
9784 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9785
9786 else
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
9788 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9789 HAVE_JPEG=no
9790 fi
9791 rm -f conftest*
9792
9793 fi
9794 fi
9795
9796 ### Use -lpng if available, unless `--with-png=no'.
9797 HAVE_PNG=no
9798 if test "${HAVE_X11}" = "yes"; then
9799 if test "${with_png}" != "no"; then
9800 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9801 # in /usr/include/libpng.
9802 for ac_header in png.h libpng/png.h
9803 do :
9804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9805 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9806 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9807 cat >>confdefs.h <<_ACEOF
9808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9809 _ACEOF
9810
9811 fi
9812
9813 done
9814
9815 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
9817 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
9818 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
9819 $as_echo_n "(cached) " >&6
9820 else
9821 ac_check_lib_save_LIBS=$LIBS
9822 LIBS="-lpng -lz -lm $LIBS"
9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h. */
9825
9826 /* Override any GCC internal prototype to avoid an error.
9827 Use char because int might match the return type of a GCC
9828 builtin and then its argument prototype would still apply. */
9829 #ifdef __cplusplus
9830 extern "C"
9831 #endif
9832 char png_get_channels ();
9833 int
9834 main ()
9835 {
9836 return png_get_channels ();
9837 ;
9838 return 0;
9839 }
9840 _ACEOF
9841 if ac_fn_c_try_link "$LINENO"; then :
9842 ac_cv_lib_png_png_get_channels=yes
9843 else
9844 ac_cv_lib_png_png_get_channels=no
9845 fi
9846 rm -f core conftest.err conftest.$ac_objext \
9847 conftest$ac_exeext conftest.$ac_ext
9848 LIBS=$ac_check_lib_save_LIBS
9849 fi
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
9851 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
9852 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
9853 HAVE_PNG=yes
9854 fi
9855
9856 fi
9857 fi
9858
9859 if test "${HAVE_PNG}" = "yes"; then
9860
9861 $as_echo "#define HAVE_PNG 1" >>confdefs.h
9862
9863 fi
9864 fi
9865
9866 ### Use -ltiff if available, unless `--with-tiff=no'.
9867 HAVE_TIFF=no
9868 if test "${HAVE_X11}" = "yes"; then
9869 if test "${with_tiff}" != "no"; then
9870 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
9871 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
9872 tifflibs="-lz -lm"
9873 # At least one tiff package requires the jpeg library.
9874 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
9876 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
9877 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
9878 $as_echo_n "(cached) " >&6
9879 else
9880 ac_check_lib_save_LIBS=$LIBS
9881 LIBS="-ltiff $tifflibs $LIBS"
9882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883 /* end confdefs.h. */
9884
9885 /* Override any GCC internal prototype to avoid an error.
9886 Use char because int might match the return type of a GCC
9887 builtin and then its argument prototype would still apply. */
9888 #ifdef __cplusplus
9889 extern "C"
9890 #endif
9891 char TIFFGetVersion ();
9892 int
9893 main ()
9894 {
9895 return TIFFGetVersion ();
9896 ;
9897 return 0;
9898 }
9899 _ACEOF
9900 if ac_fn_c_try_link "$LINENO"; then :
9901 ac_cv_lib_tiff_TIFFGetVersion=yes
9902 else
9903 ac_cv_lib_tiff_TIFFGetVersion=no
9904 fi
9905 rm -f core conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907 LIBS=$ac_check_lib_save_LIBS
9908 fi
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9910 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
9911 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
9912 HAVE_TIFF=yes
9913 fi
9914
9915 fi
9916
9917
9918 fi
9919
9920 if test "${HAVE_TIFF}" = "yes"; then
9921
9922 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
9923
9924 fi
9925 fi
9926
9927 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
9928 HAVE_GIF=no
9929 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
9930 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
9931 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
9932 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9933 # Earlier versions can crash Emacs.
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
9935 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
9936 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
9937 $as_echo_n "(cached) " >&6
9938 else
9939 ac_check_lib_save_LIBS=$LIBS
9940 LIBS="-lgif $LIBS"
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9943
9944 /* Override any GCC internal prototype to avoid an error.
9945 Use char because int might match the return type of a GCC
9946 builtin and then its argument prototype would still apply. */
9947 #ifdef __cplusplus
9948 extern "C"
9949 #endif
9950 char EGifPutExtensionLast ();
9951 int
9952 main ()
9953 {
9954 return EGifPutExtensionLast ();
9955 ;
9956 return 0;
9957 }
9958 _ACEOF
9959 if ac_fn_c_try_link "$LINENO"; then :
9960 ac_cv_lib_gif_EGifPutExtensionLast=yes
9961 else
9962 ac_cv_lib_gif_EGifPutExtensionLast=no
9963 fi
9964 rm -f core conftest.err conftest.$ac_objext \
9965 conftest$ac_exeext conftest.$ac_ext
9966 LIBS=$ac_check_lib_save_LIBS
9967 fi
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
9969 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
9970 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
9971 HAVE_GIF=yes
9972 else
9973 try_libungif=yes
9974 fi
9975
9976 fi
9977
9978
9979
9980 if test "$HAVE_GIF" = yes; then
9981 ac_gif_lib_name="-lgif"
9982 fi
9983
9984 # If gif_lib.h but no libgif, try libungif.
9985 if test x"$try_libungif" = xyes; then
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
9987 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
9988 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
9989 $as_echo_n "(cached) " >&6
9990 else
9991 ac_check_lib_save_LIBS=$LIBS
9992 LIBS="-lungif $LIBS"
9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994 /* end confdefs.h. */
9995
9996 /* Override any GCC internal prototype to avoid an error.
9997 Use char because int might match the return type of a GCC
9998 builtin and then its argument prototype would still apply. */
9999 #ifdef __cplusplus
10000 extern "C"
10001 #endif
10002 char EGifPutExtensionLast ();
10003 int
10004 main ()
10005 {
10006 return EGifPutExtensionLast ();
10007 ;
10008 return 0;
10009 }
10010 _ACEOF
10011 if ac_fn_c_try_link "$LINENO"; then :
10012 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10013 else
10014 ac_cv_lib_ungif_EGifPutExtensionLast=no
10015 fi
10016 rm -f core conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10018 LIBS=$ac_check_lib_save_LIBS
10019 fi
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10021 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10022 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10023 HAVE_GIF=yes
10024 fi
10025
10026
10027 if test "$HAVE_GIF" = yes; then
10028
10029 $as_echo "#define LIBGIF -lungif" >>confdefs.h
10030
10031 ac_gif_lib_name="-lungif"
10032 fi
10033 fi
10034
10035 if test "${HAVE_GIF}" = "yes"; then
10036
10037 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10038
10039 fi
10040 fi
10041
10042 if test "${HAVE_X11}" = "yes"; then
10043 MISSING=""
10044 WITH_NO=""
10045 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10046 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10047 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10048 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
10049 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10050 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
10051 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10052 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10053 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10054 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10055
10056 if test "X${MISSING}" != X; then
10057 as_fn_error $? "The following required libraries were not found:
10058 $MISSING
10059 Maybe some development libraries/packages are missing?
10060 If you don't want to link with them give
10061 $WITH_NO
10062 as options to configure" "$LINENO" 5
10063 fi
10064 fi
10065
10066 ### Use -lgpm if available, unless `--with-gpm=no'.
10067 HAVE_GPM=no
10068 if test "${with_gpm}" != "no"; then
10069 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10070 if test "x$ac_cv_header_gpm_h" = x""yes; then :
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10072 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10073 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10074 $as_echo_n "(cached) " >&6
10075 else
10076 ac_check_lib_save_LIBS=$LIBS
10077 LIBS="-lgpm $LIBS"
10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10080
10081 /* Override any GCC internal prototype to avoid an error.
10082 Use char because int might match the return type of a GCC
10083 builtin and then its argument prototype would still apply. */
10084 #ifdef __cplusplus
10085 extern "C"
10086 #endif
10087 char Gpm_Open ();
10088 int
10089 main ()
10090 {
10091 return Gpm_Open ();
10092 ;
10093 return 0;
10094 }
10095 _ACEOF
10096 if ac_fn_c_try_link "$LINENO"; then :
10097 ac_cv_lib_gpm_Gpm_Open=yes
10098 else
10099 ac_cv_lib_gpm_Gpm_Open=no
10100 fi
10101 rm -f core conftest.err conftest.$ac_objext \
10102 conftest$ac_exeext conftest.$ac_ext
10103 LIBS=$ac_check_lib_save_LIBS
10104 fi
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10106 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10107 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
10108 HAVE_GPM=yes
10109 fi
10110
10111 fi
10112
10113
10114 fi
10115
10116 if test "${HAVE_GPM}" = "yes"; then
10117
10118 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10119
10120 fi
10121
10122 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10123 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
10124
10125 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10126
10127 fi
10128
10129
10130
10131 ### Use NeXTstep API to implement GUI.
10132 if test "${HAVE_NS}" = "yes"; then
10133
10134 $as_echo "#define HAVE_NS 1" >>confdefs.h
10135
10136 if test "${NS_IMPL_COCOA}" = "yes"; then
10137
10138 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10139
10140 GNU_OBJC_CFLAGS=
10141 fi
10142 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10143
10144 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10145
10146 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10147 fi
10148 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10149
10150 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10151
10152 fi
10153 # We also have mouse menus.
10154 HAVE_MENUS=yes
10155 OTHER_FILES=ns-app
10156 fi
10157
10158
10159 ### Use session management (-lSM -lICE) if available
10160 HAVE_X_SM=no
10161 if test "${HAVE_X11}" = "yes"; then
10162 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10163 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10165 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10166 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10167 $as_echo_n "(cached) " >&6
10168 else
10169 ac_check_lib_save_LIBS=$LIBS
10170 LIBS="-lSM -lICE $LIBS"
10171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10172 /* end confdefs.h. */
10173
10174 /* Override any GCC internal prototype to avoid an error.
10175 Use char because int might match the return type of a GCC
10176 builtin and then its argument prototype would still apply. */
10177 #ifdef __cplusplus
10178 extern "C"
10179 #endif
10180 char SmcOpenConnection ();
10181 int
10182 main ()
10183 {
10184 return SmcOpenConnection ();
10185 ;
10186 return 0;
10187 }
10188 _ACEOF
10189 if ac_fn_c_try_link "$LINENO"; then :
10190 ac_cv_lib_SM_SmcOpenConnection=yes
10191 else
10192 ac_cv_lib_SM_SmcOpenConnection=no
10193 fi
10194 rm -f core conftest.err conftest.$ac_objext \
10195 conftest$ac_exeext conftest.$ac_ext
10196 LIBS=$ac_check_lib_save_LIBS
10197 fi
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10199 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10200 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
10201 HAVE_X_SM=yes
10202 fi
10203
10204 fi
10205
10206
10207
10208 if test "${HAVE_X_SM}" = "yes"; then
10209
10210 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10211
10212 case "$LIBS" in
10213 *-lSM*) ;;
10214 *) LIBS="-lSM -lICE $LIBS" ;;
10215 esac
10216 fi
10217 fi
10218
10219 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10221 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10222 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10223 $as_echo_n "(cached) " >&6
10224 else
10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226 /* end confdefs.h. */
10227 #include <netdb.h>
10228 int
10229 main ()
10230 {
10231 return h_errno;
10232 ;
10233 return 0;
10234 }
10235 _ACEOF
10236 if ac_fn_c_try_link "$LINENO"; then :
10237 emacs_cv_netdb_declares_h_errno=yes
10238 else
10239 emacs_cv_netdb_declares_h_errno=no
10240 fi
10241 rm -f core conftest.err conftest.$ac_objext \
10242 conftest$ac_exeext conftest.$ac_ext
10243 fi
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10245 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10246 if test $emacs_cv_netdb_declares_h_errno = yes; then
10247
10248 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10249
10250 fi
10251
10252 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10253 # for constant arguments. Useless!
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10255 $as_echo_n "checking for working alloca.h... " >&6; }
10256 if test "${ac_cv_working_alloca_h+set}" = set; then :
10257 $as_echo_n "(cached) " >&6
10258 else
10259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260 /* end confdefs.h. */
10261 #include <alloca.h>
10262 int
10263 main ()
10264 {
10265 char *p = (char *) alloca (2 * sizeof (int));
10266 if (p) return 0;
10267 ;
10268 return 0;
10269 }
10270 _ACEOF
10271 if ac_fn_c_try_link "$LINENO"; then :
10272 ac_cv_working_alloca_h=yes
10273 else
10274 ac_cv_working_alloca_h=no
10275 fi
10276 rm -f core conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext conftest.$ac_ext
10278 fi
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10280 $as_echo "$ac_cv_working_alloca_h" >&6; }
10281 if test $ac_cv_working_alloca_h = yes; then
10282
10283 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10284
10285 fi
10286
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10288 $as_echo_n "checking for alloca... " >&6; }
10289 if test "${ac_cv_func_alloca_works+set}" = set; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293 /* end confdefs.h. */
10294 #ifdef __GNUC__
10295 # define alloca __builtin_alloca
10296 #else
10297 # ifdef _MSC_VER
10298 # include <malloc.h>
10299 # define alloca _alloca
10300 # else
10301 # ifdef HAVE_ALLOCA_H
10302 # include <alloca.h>
10303 # else
10304 # ifdef _AIX
10305 #pragma alloca
10306 # else
10307 # ifndef alloca /* predefined by HP cc +Olibcalls */
10308 char *alloca ();
10309 # endif
10310 # endif
10311 # endif
10312 # endif
10313 #endif
10314
10315 int
10316 main ()
10317 {
10318 char *p = (char *) alloca (1);
10319 if (p) return 0;
10320 ;
10321 return 0;
10322 }
10323 _ACEOF
10324 if ac_fn_c_try_link "$LINENO"; then :
10325 ac_cv_func_alloca_works=yes
10326 else
10327 ac_cv_func_alloca_works=no
10328 fi
10329 rm -f core conftest.err conftest.$ac_objext \
10330 conftest$ac_exeext conftest.$ac_ext
10331 fi
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10333 $as_echo "$ac_cv_func_alloca_works" >&6; }
10334
10335 if test $ac_cv_func_alloca_works = yes; then
10336
10337 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10338
10339 else
10340 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10341 # that cause trouble. Some versions do not even contain alloca or
10342 # contain a buggy version. If you still want to use their alloca,
10343 # use ar to extract alloca.o from them instead of compiling alloca.c.
10344
10345 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10346
10347 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10348
10349
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10351 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10352 if test "${ac_cv_os_cray+set}" = set; then :
10353 $as_echo_n "(cached) " >&6
10354 else
10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10357 #if defined CRAY && ! defined CRAY2
10358 webecray
10359 #else
10360 wenotbecray
10361 #endif
10362
10363 _ACEOF
10364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10365 $EGREP "webecray" >/dev/null 2>&1; then :
10366 ac_cv_os_cray=yes
10367 else
10368 ac_cv_os_cray=no
10369 fi
10370 rm -f conftest*
10371
10372 fi
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10374 $as_echo "$ac_cv_os_cray" >&6; }
10375 if test $ac_cv_os_cray = yes; then
10376 for ac_func in _getb67 GETB67 getb67; do
10377 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10378 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10379 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10380
10381 cat >>confdefs.h <<_ACEOF
10382 #define CRAY_STACKSEG_END $ac_func
10383 _ACEOF
10384
10385 break
10386 fi
10387
10388 done
10389 fi
10390
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10392 $as_echo_n "checking stack direction for C alloca... " >&6; }
10393 if test "${ac_cv_c_stack_direction+set}" = set; then :
10394 $as_echo_n "(cached) " >&6
10395 else
10396 if test "$cross_compiling" = yes; then :
10397 ac_cv_c_stack_direction=0
10398 else
10399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10400 /* end confdefs.h. */
10401 $ac_includes_default
10402 int
10403 find_stack_direction ()
10404 {
10405 static char *addr = 0;
10406 auto char dummy;
10407 if (addr == 0)
10408 {
10409 addr = &dummy;
10410 return find_stack_direction ();
10411 }
10412 else
10413 return (&dummy > addr) ? 1 : -1;
10414 }
10415
10416 int
10417 main ()
10418 {
10419 return find_stack_direction () < 0;
10420 }
10421 _ACEOF
10422 if ac_fn_c_try_run "$LINENO"; then :
10423 ac_cv_c_stack_direction=1
10424 else
10425 ac_cv_c_stack_direction=-1
10426 fi
10427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10428 conftest.$ac_objext conftest.beam conftest.$ac_ext
10429 fi
10430
10431 fi
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10433 $as_echo "$ac_cv_c_stack_direction" >&6; }
10434 cat >>confdefs.h <<_ACEOF
10435 #define STACK_DIRECTION $ac_cv_c_stack_direction
10436 _ACEOF
10437
10438
10439 fi
10440
10441
10442 if test x"$ac_cv_func_alloca_works" != xyes; then
10443 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
10444 fi
10445
10446 # fmod, logb, and frexp are found in -lm on most systems.
10447 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10449 $as_echo_n "checking for sqrt in -lm... " >&6; }
10450 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10451 $as_echo_n "(cached) " >&6
10452 else
10453 ac_check_lib_save_LIBS=$LIBS
10454 LIBS="-lm $LIBS"
10455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10457
10458 /* Override any GCC internal prototype to avoid an error.
10459 Use char because int might match the return type of a GCC
10460 builtin and then its argument prototype would still apply. */
10461 #ifdef __cplusplus
10462 extern "C"
10463 #endif
10464 char sqrt ();
10465 int
10466 main ()
10467 {
10468 return sqrt ();
10469 ;
10470 return 0;
10471 }
10472 _ACEOF
10473 if ac_fn_c_try_link "$LINENO"; then :
10474 ac_cv_lib_m_sqrt=yes
10475 else
10476 ac_cv_lib_m_sqrt=no
10477 fi
10478 rm -f core conftest.err conftest.$ac_objext \
10479 conftest$ac_exeext conftest.$ac_ext
10480 LIBS=$ac_check_lib_save_LIBS
10481 fi
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10483 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10484 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
10485 cat >>confdefs.h <<_ACEOF
10486 #define HAVE_LIBM 1
10487 _ACEOF
10488
10489 LIBS="-lm $LIBS"
10490
10491 fi
10492
10493
10494 # Check for mail-locking functions in a "mail" library. Probably this should
10495 # have the same check as for liblockfile below.
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10497 $as_echo_n "checking for maillock in -lmail... " >&6; }
10498 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10499 $as_echo_n "(cached) " >&6
10500 else
10501 ac_check_lib_save_LIBS=$LIBS
10502 LIBS="-lmail $LIBS"
10503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h. */
10505
10506 /* Override any GCC internal prototype to avoid an error.
10507 Use char because int might match the return type of a GCC
10508 builtin and then its argument prototype would still apply. */
10509 #ifdef __cplusplus
10510 extern "C"
10511 #endif
10512 char maillock ();
10513 int
10514 main ()
10515 {
10516 return maillock ();
10517 ;
10518 return 0;
10519 }
10520 _ACEOF
10521 if ac_fn_c_try_link "$LINENO"; then :
10522 ac_cv_lib_mail_maillock=yes
10523 else
10524 ac_cv_lib_mail_maillock=no
10525 fi
10526 rm -f core conftest.err conftest.$ac_objext \
10527 conftest$ac_exeext conftest.$ac_ext
10528 LIBS=$ac_check_lib_save_LIBS
10529 fi
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10531 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10532 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
10533 cat >>confdefs.h <<_ACEOF
10534 #define HAVE_LIBMAIL 1
10535 _ACEOF
10536
10537 LIBS="-lmail $LIBS"
10538
10539 fi
10540
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10542 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10543 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
10544 $as_echo_n "(cached) " >&6
10545 else
10546 ac_check_lib_save_LIBS=$LIBS
10547 LIBS="-llockfile $LIBS"
10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10549 /* end confdefs.h. */
10550
10551 /* Override any GCC internal prototype to avoid an error.
10552 Use char because int might match the return type of a GCC
10553 builtin and then its argument prototype would still apply. */
10554 #ifdef __cplusplus
10555 extern "C"
10556 #endif
10557 char maillock ();
10558 int
10559 main ()
10560 {
10561 return maillock ();
10562 ;
10563 return 0;
10564 }
10565 _ACEOF
10566 if ac_fn_c_try_link "$LINENO"; then :
10567 ac_cv_lib_lockfile_maillock=yes
10568 else
10569 ac_cv_lib_lockfile_maillock=no
10570 fi
10571 rm -f core conftest.err conftest.$ac_objext \
10572 conftest$ac_exeext conftest.$ac_ext
10573 LIBS=$ac_check_lib_save_LIBS
10574 fi
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
10576 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10577 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
10578 cat >>confdefs.h <<_ACEOF
10579 #define HAVE_LIBLOCKFILE 1
10580 _ACEOF
10581
10582 LIBS="-llockfile $LIBS"
10583
10584 fi
10585
10586 # If we have the shared liblockfile, assume we must use it for mail
10587 # locking (e.g. Debian). If we couldn't link against liblockfile
10588 # (no liblockfile.a installed), ensure that we don't need to.
10589 if test "$ac_cv_lib_lockfile_maillock" = no; then
10590 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10591 set dummy liblockfile.so; ac_word=$2
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10593 $as_echo_n "checking for $ac_word... " >&6; }
10594 if test "${ac_cv_prog_liblockfile+set}" = set; then :
10595 $as_echo_n "(cached) " >&6
10596 else
10597 if test -n "$liblockfile"; then
10598 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10599 else
10600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10602 for as_dir in $as_dummy
10603 do
10604 IFS=$as_save_IFS
10605 test -z "$as_dir" && as_dir=.
10606 for ac_exec_ext in '' $ac_executable_extensions; do
10607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10608 ac_cv_prog_liblockfile="yes"
10609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10610 break 2
10611 fi
10612 done
10613 done
10614 IFS=$as_save_IFS
10615
10616 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10617 fi
10618 fi
10619 liblockfile=$ac_cv_prog_liblockfile
10620 if test -n "$liblockfile"; then
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
10622 $as_echo "$liblockfile" >&6; }
10623 else
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625 $as_echo "no" >&6; }
10626 fi
10627
10628
10629 if test $ac_cv_prog_liblockfile = yes; then
10630 as_fn_error $? "Shared liblockfile found but can't link against it.
10631 This probably means that movemail could lose mail.
10632 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
10633 else :
10634 fi
10635 fi
10636 for ac_func in touchlock
10637 do :
10638 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
10639 if test "x$ac_cv_func_touchlock" = x""yes; then :
10640 cat >>confdefs.h <<_ACEOF
10641 #define HAVE_TOUCHLOCK 1
10642 _ACEOF
10643
10644 fi
10645 done
10646
10647 for ac_header in maillock.h
10648 do :
10649 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
10650 if test "x$ac_cv_header_maillock_h" = x""yes; then :
10651 cat >>confdefs.h <<_ACEOF
10652 #define HAVE_MAILLOCK_H 1
10653 _ACEOF
10654
10655 fi
10656
10657 done
10658
10659
10660 for ac_func in gethostname getdomainname dup2 \
10661 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
10662 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
10663 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
10664 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
10665 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10666 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10667 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10668 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10669 cfmakeraw cfsetspeed
10670 do :
10671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10672 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10673 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10674 cat >>confdefs.h <<_ACEOF
10675 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10676 _ACEOF
10677
10678 fi
10679 done
10680
10681
10682 for ac_header in sys/un.h
10683 do :
10684 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
10685 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
10686 cat >>confdefs.h <<_ACEOF
10687 #define HAVE_SYS_UN_H 1
10688 _ACEOF
10689
10690 fi
10691
10692 done
10693
10694
10695
10696
10697
10698
10699
10700 for ac_func in $ac_func_list
10701 do :
10702 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10703 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10704 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10705 cat >>confdefs.h <<_ACEOF
10706 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10707 _ACEOF
10708
10709 fi
10710 done
10711
10712
10713
10714
10715
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10717 $as_echo_n "checking for working mktime... " >&6; }
10718 if test "${ac_cv_func_working_mktime+set}" = set; then :
10719 $as_echo_n "(cached) " >&6
10720 else
10721 if test "$cross_compiling" = yes; then :
10722 ac_cv_func_working_mktime=no
10723 else
10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10726 /* Test program from Paul Eggert and Tony Leneis. */
10727 #ifdef TIME_WITH_SYS_TIME
10728 # include <sys/time.h>
10729 # include <time.h>
10730 #else
10731 # ifdef HAVE_SYS_TIME_H
10732 # include <sys/time.h>
10733 # else
10734 # include <time.h>
10735 # endif
10736 #endif
10737
10738 #include <limits.h>
10739 #include <stdlib.h>
10740
10741 #ifdef HAVE_UNISTD_H
10742 # include <unistd.h>
10743 #endif
10744
10745 #ifndef HAVE_ALARM
10746 # define alarm(X) /* empty */
10747 #endif
10748
10749 /* Work around redefinition to rpl_putenv by other config tests. */
10750 #undef putenv
10751
10752 static time_t time_t_max;
10753 static time_t time_t_min;
10754
10755 /* Values we'll use to set the TZ environment variable. */
10756 static const char *tz_strings[] = {
10757 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10758 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10759 };
10760 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10761
10762 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
10763 Based on a problem report from Andreas Jaeger. */
10764 static int
10765 spring_forward_gap ()
10766 {
10767 /* glibc (up to about 1998-10-07) failed this test. */
10768 struct tm tm;
10769
10770 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10771 instead of "TZ=America/Vancouver" in order to detect the bug even
10772 on systems that don't support the Olson extension, or don't have the
10773 full zoneinfo tables installed. */
10774 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10775
10776 tm.tm_year = 98;
10777 tm.tm_mon = 3;
10778 tm.tm_mday = 5;
10779 tm.tm_hour = 2;
10780 tm.tm_min = 0;
10781 tm.tm_sec = 0;
10782 tm.tm_isdst = -1;
10783 return mktime (&tm) != (time_t) -1;
10784 }
10785
10786 static int
10787 mktime_test1 (time_t now)
10788 {
10789 struct tm *lt;
10790 return ! (lt = localtime (&now)) || mktime (lt) == now;
10791 }
10792
10793 static int
10794 mktime_test (time_t now)
10795 {
10796 return (mktime_test1 (now)
10797 && mktime_test1 ((time_t) (time_t_max - now))
10798 && mktime_test1 ((time_t) (time_t_min + now)));
10799 }
10800
10801 static int
10802 irix_6_4_bug ()
10803 {
10804 /* Based on code from Ariel Faigon. */
10805 struct tm tm;
10806 tm.tm_year = 96;
10807 tm.tm_mon = 3;
10808 tm.tm_mday = 0;
10809 tm.tm_hour = 0;
10810 tm.tm_min = 0;
10811 tm.tm_sec = 0;
10812 tm.tm_isdst = -1;
10813 mktime (&tm);
10814 return tm.tm_mon == 2 && tm.tm_mday == 31;
10815 }
10816
10817 static int
10818 bigtime_test (int j)
10819 {
10820 struct tm tm;
10821 time_t now;
10822 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10823 now = mktime (&tm);
10824 if (now != (time_t) -1)
10825 {
10826 struct tm *lt = localtime (&now);
10827 if (! (lt
10828 && lt->tm_year == tm.tm_year
10829 && lt->tm_mon == tm.tm_mon
10830 && lt->tm_mday == tm.tm_mday
10831 && lt->tm_hour == tm.tm_hour
10832 && lt->tm_min == tm.tm_min
10833 && lt->tm_sec == tm.tm_sec
10834 && lt->tm_yday == tm.tm_yday
10835 && lt->tm_wday == tm.tm_wday
10836 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10837 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10838 return 0;
10839 }
10840 return 1;
10841 }
10842
10843 static int
10844 year_2050_test ()
10845 {
10846 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
10847 ignoring leap seconds. */
10848 unsigned long int answer = 2527315200UL;
10849
10850 struct tm tm;
10851 time_t t;
10852 tm.tm_year = 2050 - 1900;
10853 tm.tm_mon = 2 - 1;
10854 tm.tm_mday = 1;
10855 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
10856 tm.tm_isdst = -1;
10857
10858 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10859 instead of "TZ=America/Vancouver" in order to detect the bug even
10860 on systems that don't support the Olson extension, or don't have the
10861 full zoneinfo tables installed. */
10862 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
10863
10864 t = mktime (&tm);
10865
10866 /* Check that the result is either a failure, or close enough
10867 to the correct answer that we can assume the discrepancy is
10868 due to leap seconds. */
10869 return (t == (time_t) -1
10870 || (0 < t && answer - 120 <= t && t <= answer + 120));
10871 }
10872
10873 int
10874 main ()
10875 {
10876 time_t t, delta;
10877 int i, j;
10878
10879 /* This test makes some buggy mktime implementations loop.
10880 Give up after 60 seconds; a mktime slower than that
10881 isn't worth using anyway. */
10882 alarm (60);
10883
10884 for (;;)
10885 {
10886 t = (time_t_max << 1) + 1;
10887 if (t <= time_t_max)
10888 break;
10889 time_t_max = t;
10890 }
10891 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
10892
10893 delta = time_t_max / 997; /* a suitable prime number */
10894 for (i = 0; i < N_STRINGS; i++)
10895 {
10896 if (tz_strings[i])
10897 putenv ((char*) tz_strings[i]);
10898
10899 for (t = 0; t <= time_t_max - delta; t += delta)
10900 if (! mktime_test (t))
10901 return 1;
10902 if (! (mktime_test ((time_t) 1)
10903 && mktime_test ((time_t) (60 * 60))
10904 && mktime_test ((time_t) (60 * 60 * 24))))
10905 return 1;
10906
10907 for (j = 1; ; j <<= 1)
10908 if (! bigtime_test (j))
10909 return 1;
10910 else if (INT_MAX / 2 < j)
10911 break;
10912 if (! bigtime_test (INT_MAX))
10913 return 1;
10914 }
10915 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10916 }
10917 _ACEOF
10918 if ac_fn_c_try_run "$LINENO"; then :
10919 ac_cv_func_working_mktime=yes
10920 else
10921 ac_cv_func_working_mktime=no
10922 fi
10923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10924 conftest.$ac_objext conftest.beam conftest.$ac_ext
10925 fi
10926
10927 fi
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
10929 $as_echo "$ac_cv_func_working_mktime" >&6; }
10930 if test $ac_cv_func_working_mktime = no; then
10931 case " $LIBOBJS " in
10932 *" mktime.$ac_objext "* ) ;;
10933 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
10934 ;;
10935 esac
10936
10937 fi
10938
10939 if test "$ac_cv_func_working_mktime" = no; then
10940
10941 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
10942
10943 fi
10944
10945 ac_have_func=no # yes means we've found a way to get the load average.
10946
10947 # Make sure getloadavg.c is where it belongs, at configure-time.
10948 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
10949 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
10950
10951 ac_save_LIBS=$LIBS
10952
10953 # Check for getloadavg, but be sure not to touch the cache variable.
10954 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
10955 if test "x$ac_cv_func_getloadavg" = x""yes; then :
10956 exit 0
10957 else
10958 exit 1
10959 fi
10960 ) && ac_have_func=yes
10961
10962 # On HPUX9, an unprivileged user can get load averages through this function.
10963 for ac_func in pstat_getdynamic
10964 do :
10965 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
10966 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
10967 cat >>confdefs.h <<_ACEOF
10968 #define HAVE_PSTAT_GETDYNAMIC 1
10969 _ACEOF
10970
10971 fi
10972 done
10973
10974
10975 # Solaris has libkstat which does not require root.
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
10977 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
10978 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
10979 $as_echo_n "(cached) " >&6
10980 else
10981 ac_check_lib_save_LIBS=$LIBS
10982 LIBS="-lkstat $LIBS"
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h. */
10985
10986 /* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
10989 #ifdef __cplusplus
10990 extern "C"
10991 #endif
10992 char kstat_open ();
10993 int
10994 main ()
10995 {
10996 return kstat_open ();
10997 ;
10998 return 0;
10999 }
11000 _ACEOF
11001 if ac_fn_c_try_link "$LINENO"; then :
11002 ac_cv_lib_kstat_kstat_open=yes
11003 else
11004 ac_cv_lib_kstat_kstat_open=no
11005 fi
11006 rm -f core conftest.err conftest.$ac_objext \
11007 conftest$ac_exeext conftest.$ac_ext
11008 LIBS=$ac_check_lib_save_LIBS
11009 fi
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11011 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11012 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11013 cat >>confdefs.h <<_ACEOF
11014 #define HAVE_LIBKSTAT 1
11015 _ACEOF
11016
11017 LIBS="-lkstat $LIBS"
11018
11019 fi
11020
11021 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11022
11023 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11024 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11025 # to get the right answer into the cache.
11026 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11027 if test $ac_have_func = no; then
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11029 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11030 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 ac_check_lib_save_LIBS=$LIBS
11034 LIBS="-lelf $LIBS"
11035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11037
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 char elf_begin ();
11045 int
11046 main ()
11047 {
11048 return elf_begin ();
11049 ;
11050 return 0;
11051 }
11052 _ACEOF
11053 if ac_fn_c_try_link "$LINENO"; then :
11054 ac_cv_lib_elf_elf_begin=yes
11055 else
11056 ac_cv_lib_elf_elf_begin=no
11057 fi
11058 rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11060 LIBS=$ac_check_lib_save_LIBS
11061 fi
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11063 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11064 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
11065 LIBS="-lelf $LIBS"
11066 fi
11067
11068 fi
11069 if test $ac_have_func = no; then
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11071 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11072 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 ac_check_lib_save_LIBS=$LIBS
11076 LIBS="-lkvm $LIBS"
11077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11079
11080 /* Override any GCC internal prototype to avoid an error.
11081 Use char because int might match the return type of a GCC
11082 builtin and then its argument prototype would still apply. */
11083 #ifdef __cplusplus
11084 extern "C"
11085 #endif
11086 char kvm_open ();
11087 int
11088 main ()
11089 {
11090 return kvm_open ();
11091 ;
11092 return 0;
11093 }
11094 _ACEOF
11095 if ac_fn_c_try_link "$LINENO"; then :
11096 ac_cv_lib_kvm_kvm_open=yes
11097 else
11098 ac_cv_lib_kvm_kvm_open=no
11099 fi
11100 rm -f core conftest.err conftest.$ac_objext \
11101 conftest$ac_exeext conftest.$ac_ext
11102 LIBS=$ac_check_lib_save_LIBS
11103 fi
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11105 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11106 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
11107 LIBS="-lkvm $LIBS"
11108 fi
11109
11110 # Check for the 4.4BSD definition of getloadavg.
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11112 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11113 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11114 $as_echo_n "(cached) " >&6
11115 else
11116 ac_check_lib_save_LIBS=$LIBS
11117 LIBS="-lutil $LIBS"
11118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h. */
11120
11121 /* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
11124 #ifdef __cplusplus
11125 extern "C"
11126 #endif
11127 char getloadavg ();
11128 int
11129 main ()
11130 {
11131 return getloadavg ();
11132 ;
11133 return 0;
11134 }
11135 _ACEOF
11136 if ac_fn_c_try_link "$LINENO"; then :
11137 ac_cv_lib_util_getloadavg=yes
11138 else
11139 ac_cv_lib_util_getloadavg=no
11140 fi
11141 rm -f core conftest.err conftest.$ac_objext \
11142 conftest$ac_exeext conftest.$ac_ext
11143 LIBS=$ac_check_lib_save_LIBS
11144 fi
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11146 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11147 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
11148 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11149 fi
11150
11151 fi
11152
11153 if test $ac_have_func = no; then
11154 # There is a commonly available library for RS/6000 AIX.
11155 # Since it is not a standard part of AIX, it might be installed locally.
11156 ac_getloadavg_LIBS=$LIBS
11157 LIBS="-L/usr/local/lib $LIBS"
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11159 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11160 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11161 $as_echo_n "(cached) " >&6
11162 else
11163 ac_check_lib_save_LIBS=$LIBS
11164 LIBS="-lgetloadavg $LIBS"
11165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11166 /* end confdefs.h. */
11167
11168 /* Override any GCC internal prototype to avoid an error.
11169 Use char because int might match the return type of a GCC
11170 builtin and then its argument prototype would still apply. */
11171 #ifdef __cplusplus
11172 extern "C"
11173 #endif
11174 char getloadavg ();
11175 int
11176 main ()
11177 {
11178 return getloadavg ();
11179 ;
11180 return 0;
11181 }
11182 _ACEOF
11183 if ac_fn_c_try_link "$LINENO"; then :
11184 ac_cv_lib_getloadavg_getloadavg=yes
11185 else
11186 ac_cv_lib_getloadavg_getloadavg=no
11187 fi
11188 rm -f core conftest.err conftest.$ac_objext \
11189 conftest$ac_exeext conftest.$ac_ext
11190 LIBS=$ac_check_lib_save_LIBS
11191 fi
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11193 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11194 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
11195 LIBS="-lgetloadavg $LIBS"
11196 else
11197 LIBS=$ac_getloadavg_LIBS
11198 fi
11199
11200 fi
11201
11202 # Make sure it is really in the library, if we think we found it,
11203 # otherwise set up the replacement function.
11204 for ac_func in getloadavg
11205 do :
11206 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11207 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11208 cat >>confdefs.h <<_ACEOF
11209 #define HAVE_GETLOADAVG 1
11210 _ACEOF
11211
11212 else
11213 case " $LIBOBJS " in
11214 *" getloadavg.$ac_objext "* ) ;;
11215 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11216 ;;
11217 esac
11218
11219
11220 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11221
11222 # Figure out what our getloadavg.c needs.
11223 ac_have_func=no
11224 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11225 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
11226 ac_have_func=yes
11227
11228 $as_echo "#define DGUX 1" >>confdefs.h
11229
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11231 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11232 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11233 $as_echo_n "(cached) " >&6
11234 else
11235 ac_check_lib_save_LIBS=$LIBS
11236 LIBS="-ldgc $LIBS"
11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11239
11240 /* Override any GCC internal prototype to avoid an error.
11241 Use char because int might match the return type of a GCC
11242 builtin and then its argument prototype would still apply. */
11243 #ifdef __cplusplus
11244 extern "C"
11245 #endif
11246 char dg_sys_info ();
11247 int
11248 main ()
11249 {
11250 return dg_sys_info ();
11251 ;
11252 return 0;
11253 }
11254 _ACEOF
11255 if ac_fn_c_try_link "$LINENO"; then :
11256 ac_cv_lib_dgc_dg_sys_info=yes
11257 else
11258 ac_cv_lib_dgc_dg_sys_info=no
11259 fi
11260 rm -f core conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
11262 LIBS=$ac_check_lib_save_LIBS
11263 fi
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11265 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11266 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
11267 cat >>confdefs.h <<_ACEOF
11268 #define HAVE_LIBDGC 1
11269 _ACEOF
11270
11271 LIBS="-ldgc $LIBS"
11272
11273 fi
11274
11275 fi
11276
11277
11278
11279 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11280 if test "x$ac_cv_header_locale_h" = x""yes; then :
11281
11282 fi
11283
11284
11285 for ac_func in setlocale
11286 do :
11287 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
11288 if test "x$ac_cv_func_setlocale" = x""yes; then :
11289 cat >>confdefs.h <<_ACEOF
11290 #define HAVE_SETLOCALE 1
11291 _ACEOF
11292
11293 fi
11294 done
11295
11296
11297 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11298 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11299 # Irix 4.0.5F has the header but not the library.
11300 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11301 ac_have_func=yes
11302
11303 $as_echo "#define SVR4 1" >>confdefs.h
11304
11305 fi
11306
11307 if test $ac_have_func = no; then
11308 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11309 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
11310 ac_have_func=yes
11311
11312 $as_echo "#define UMAX 1" >>confdefs.h
11313
11314
11315 $as_echo "#define UMAX4_3 1" >>confdefs.h
11316
11317 fi
11318
11319
11320 fi
11321
11322 if test $ac_have_func = no; then
11323 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11324 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
11325 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
11326
11327 fi
11328
11329
11330 fi
11331
11332 if test $ac_have_func = no; then
11333 for ac_header in mach/mach.h
11334 do :
11335 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11336 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
11337 cat >>confdefs.h <<_ACEOF
11338 #define HAVE_MACH_MACH_H 1
11339 _ACEOF
11340
11341 fi
11342
11343 done
11344
11345 fi
11346
11347 for ac_header in nlist.h
11348 do :
11349 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11350 if test "x$ac_cv_header_nlist_h" = x""yes; then :
11351 cat >>confdefs.h <<_ACEOF
11352 #define HAVE_NLIST_H 1
11353 _ACEOF
11354 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11355 "
11356 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
11357
11358 cat >>confdefs.h <<_ACEOF
11359 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11360 _ACEOF
11361
11362
11363 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11364
11365 fi
11366
11367
11368 fi
11369
11370 done
11371
11372 fi
11373 done
11374
11375
11376 # Some definitions of getloadavg require that the program be installed setgid.
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11378 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11379 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11384 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11385 #ifdef LDAV_PRIVILEGED
11386 Yowza Am I SETGID yet
11387 #endif
11388 _ACEOF
11389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11390 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
11391 ac_cv_func_getloadavg_setgid=yes
11392 else
11393 ac_cv_func_getloadavg_setgid=no
11394 fi
11395 rm -f conftest*
11396
11397 fi
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11399 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11400 if test $ac_cv_func_getloadavg_setgid = yes; then
11401 NEED_SETGID=true
11402
11403 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11404
11405 else
11406 NEED_SETGID=false
11407 fi
11408
11409 if test $ac_cv_func_getloadavg_setgid = yes; then
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11411 $as_echo_n "checking group of /dev/kmem... " >&6; }
11412 if test "${ac_cv_group_kmem+set}" = set; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11416 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11417 # If we got an error (system does not support symlinks), try without -L.
11418 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11419 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
11420 | sed -ne 's/[ ][ ]*/ /g;
11421 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11422 / /s/.* //;p;'`
11423
11424 fi
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11426 $as_echo "$ac_cv_group_kmem" >&6; }
11427 KMEM_GROUP=$ac_cv_group_kmem
11428 fi
11429 if test "x$ac_save_LIBS" = x; then
11430 GETLOADAVG_LIBS=$LIBS
11431 else
11432 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11433 fi
11434 LIBS=$ac_save_LIBS
11435
11436
11437
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11439 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11440 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 while :; do
11444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445 /* end confdefs.h. */
11446 #include <sys/types.h> /* for off_t */
11447 #include <stdio.h>
11448 int
11449 main ()
11450 {
11451 int (*fp) (FILE *, off_t, int) = fseeko;
11452 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11453 ;
11454 return 0;
11455 }
11456 _ACEOF
11457 if ac_fn_c_try_link "$LINENO"; then :
11458 ac_cv_sys_largefile_source=no; break
11459 fi
11460 rm -f core conftest.err conftest.$ac_objext \
11461 conftest$ac_exeext conftest.$ac_ext
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464 #define _LARGEFILE_SOURCE 1
11465 #include <sys/types.h> /* for off_t */
11466 #include <stdio.h>
11467 int
11468 main ()
11469 {
11470 int (*fp) (FILE *, off_t, int) = fseeko;
11471 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11472 ;
11473 return 0;
11474 }
11475 _ACEOF
11476 if ac_fn_c_try_link "$LINENO"; then :
11477 ac_cv_sys_largefile_source=1; break
11478 fi
11479 rm -f core conftest.err conftest.$ac_objext \
11480 conftest$ac_exeext conftest.$ac_ext
11481 ac_cv_sys_largefile_source=unknown
11482 break
11483 done
11484 fi
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11486 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11487 case $ac_cv_sys_largefile_source in #(
11488 no | unknown) ;;
11489 *)
11490 cat >>confdefs.h <<_ACEOF
11491 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11492 _ACEOF
11493 ;;
11494 esac
11495 rm -rf conftest*
11496
11497 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11498 # in glibc 2.1.3, but that breaks too many other things.
11499 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11500 if test $ac_cv_sys_largefile_source != unknown; then
11501
11502 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11503
11504 fi
11505
11506
11507 # Configure getopt.
11508 # getopt.m4 serial 10
11509
11510 # The getopt module assume you want GNU getopt, with getopt_long etc,
11511 # rather than vanilla POSIX getopt. This means your your code should
11512 # always include <getopt.h> for the getopt prototypes.
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524 # Prerequisites of lib/getopt*.
11525
11526
11527
11528
11529 GETOPT_H=
11530 for ac_header in getopt.h
11531 do :
11532 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11533 if test "x$ac_cv_header_getopt_h" = x""yes; then :
11534 cat >>confdefs.h <<_ACEOF
11535 #define HAVE_GETOPT_H 1
11536 _ACEOF
11537
11538 else
11539 GETOPT_H=getopt.h
11540 fi
11541
11542 done
11543
11544 if test -z "$GETOPT_H"; then
11545 for ac_func in getopt_long_only
11546 do :
11547 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11548 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
11549 cat >>confdefs.h <<_ACEOF
11550 #define HAVE_GETOPT_LONG_ONLY 1
11551 _ACEOF
11552
11553 else
11554 GETOPT_H=getopt.h
11555 fi
11556 done
11557
11558 fi
11559
11560 if test -z "$GETOPT_H"; then
11561 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11562 "
11563 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
11564 GETOPT_H=getopt.h
11565 fi
11566
11567 fi
11568
11569 if test -z "$GETOPT_H"; then
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11571 $as_echo_n "checking for working GNU getopt function... " >&6; }
11572 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
11573 $as_echo_n "(cached) " >&6
11574 else
11575 if test "$cross_compiling" = yes; then :
11576 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11577 "
11578 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
11579 gl_cv_func_gnu_getopt=no
11580 else
11581 gl_cv_func_gnu_getopt=yes
11582 fi
11583
11584 else
11585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h. */
11587 #include <getopt.h>
11588 int
11589 main ()
11590 {
11591
11592 char *myargv[3];
11593 myargv[0] = "conftest";
11594 myargv[1] = "-+";
11595 myargv[2] = 0;
11596 return getopt (2, myargv, "+a") != '?';
11597
11598 ;
11599 return 0;
11600 }
11601 _ACEOF
11602 if ac_fn_c_try_run "$LINENO"; then :
11603 gl_cv_func_gnu_getopt=yes
11604 else
11605 gl_cv_func_gnu_getopt=no
11606 fi
11607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11608 conftest.$ac_objext conftest.beam conftest.$ac_ext
11609 fi
11610
11611 fi
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
11613 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11614 if test "$gl_cv_func_gnu_getopt" = "no"; then
11615 GETOPT_H=getopt.h
11616 fi
11617 fi
11618
11619
11620
11621 if test -n "$GETOPT_H"; then :
11622
11623
11624 GETOPT_H=getopt.h
11625
11626 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11627
11628
11629
11630 :
11631 GETOPTOBJS='getopt.o getopt1.o'
11632
11633 fi
11634
11635
11636
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11638 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11639 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 # Use it with a single arg.
11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11645 $ac_includes_default
11646 int
11647 main ()
11648 {
11649 getpgrp (0);
11650 ;
11651 return 0;
11652 }
11653 _ACEOF
11654 if ac_fn_c_try_compile "$LINENO"; then :
11655 ac_cv_func_getpgrp_void=no
11656 else
11657 ac_cv_func_getpgrp_void=yes
11658 fi
11659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660
11661 fi
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11663 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
11664 if test $ac_cv_func_getpgrp_void = yes; then
11665
11666 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
11667
11668 fi
11669
11670
11671 for ac_func in strftime
11672 do :
11673 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
11674 if test "x$ac_cv_func_strftime" = x""yes; then :
11675 cat >>confdefs.h <<_ACEOF
11676 #define HAVE_STRFTIME 1
11677 _ACEOF
11678
11679 else
11680 # strftime is in -lintl on SCO UNIX.
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11682 $as_echo_n "checking for strftime in -lintl... " >&6; }
11683 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 ac_check_lib_save_LIBS=$LIBS
11687 LIBS="-lintl $LIBS"
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11690
11691 /* Override any GCC internal prototype to avoid an error.
11692 Use char because int might match the return type of a GCC
11693 builtin and then its argument prototype would still apply. */
11694 #ifdef __cplusplus
11695 extern "C"
11696 #endif
11697 char strftime ();
11698 int
11699 main ()
11700 {
11701 return strftime ();
11702 ;
11703 return 0;
11704 }
11705 _ACEOF
11706 if ac_fn_c_try_link "$LINENO"; then :
11707 ac_cv_lib_intl_strftime=yes
11708 else
11709 ac_cv_lib_intl_strftime=no
11710 fi
11711 rm -f core conftest.err conftest.$ac_objext \
11712 conftest$ac_exeext conftest.$ac_ext
11713 LIBS=$ac_check_lib_save_LIBS
11714 fi
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11716 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11717 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
11718 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11719
11720 LIBS="-lintl $LIBS"
11721 fi
11722
11723 fi
11724 done
11725
11726
11727 # UNIX98 PTYs.
11728 for ac_func in grantpt
11729 do :
11730 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
11731 if test "x$ac_cv_func_grantpt" = x""yes; then :
11732 cat >>confdefs.h <<_ACEOF
11733 #define HAVE_GRANTPT 1
11734 _ACEOF
11735
11736 fi
11737 done
11738
11739
11740 # PTY-related GNU extensions.
11741 for ac_func in getpt
11742 do :
11743 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
11744 if test "x$ac_cv_func_getpt" = x""yes; then :
11745 cat >>confdefs.h <<_ACEOF
11746 #define HAVE_GETPT 1
11747 _ACEOF
11748
11749 fi
11750 done
11751
11752
11753 # Check this now, so that we will NOT find the above functions in ncurses.
11754 # That is because we have not set up to link ncurses in lib-src.
11755 # It's better to believe a function is not available
11756 # than to expect to find it in ncurses.
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm in -lncurses" >&5
11758 $as_echo_n "checking for tparm in -lncurses... " >&6; }
11759 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then :
11760 $as_echo_n "(cached) " >&6
11761 else
11762 ac_check_lib_save_LIBS=$LIBS
11763 LIBS="-lncurses $LIBS"
11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h. */
11766
11767 /* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
11770 #ifdef __cplusplus
11771 extern "C"
11772 #endif
11773 char tparm ();
11774 int
11775 main ()
11776 {
11777 return tparm ();
11778 ;
11779 return 0;
11780 }
11781 _ACEOF
11782 if ac_fn_c_try_link "$LINENO"; then :
11783 ac_cv_lib_ncurses_tparm=yes
11784 else
11785 ac_cv_lib_ncurses_tparm=no
11786 fi
11787 rm -f core conftest.err conftest.$ac_objext \
11788 conftest$ac_exeext conftest.$ac_ext
11789 LIBS=$ac_check_lib_save_LIBS
11790 fi
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tparm" >&5
11792 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
11793 if test "x$ac_cv_lib_ncurses_tparm" = x""yes; then :
11794 cat >>confdefs.h <<_ACEOF
11795 #define HAVE_LIBNCURSES 1
11796 _ACEOF
11797
11798 LIBS="-lncurses $LIBS"
11799
11800 fi
11801
11802
11803 # Do we have res_init, for detecting changes in /etc/resolv.conf?
11804
11805 resolv=no
11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807 /* end confdefs.h. */
11808 #include <netinet/in.h>
11809 #include <arpa/nameser.h>
11810 #include <resolv.h>
11811 int
11812 main ()
11813 {
11814 return res_init();
11815 ;
11816 return 0;
11817 }
11818 _ACEOF
11819 if ac_fn_c_try_link "$LINENO"; then :
11820 have_res_init=yes
11821 else
11822 have_res_init=no
11823 fi
11824 rm -f core conftest.err conftest.$ac_objext \
11825 conftest$ac_exeext conftest.$ac_ext
11826 if test "$have_res_init" = no; then
11827 OLIBS="$LIBS"
11828 LIBS="$LIBS -lresolv"
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
11830 $as_echo_n "checking for res_init with -lresolv... " >&6; }
11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h. */
11833 #include <netinet/in.h>
11834 #include <arpa/nameser.h>
11835 #include <resolv.h>
11836 int
11837 main ()
11838 {
11839 return res_init();
11840 ;
11841 return 0;
11842 }
11843 _ACEOF
11844 if ac_fn_c_try_link "$LINENO"; then :
11845 have_res_init=yes
11846 else
11847 have_res_init=no
11848 fi
11849 rm -f core conftest.err conftest.$ac_objext \
11850 conftest$ac_exeext conftest.$ac_ext
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
11852 $as_echo "$have_res_init" >&6; }
11853 if test "$have_res_init" = yes ; then
11854 resolv=yes
11855 fi
11856 LIBS="$OLIBS"
11857 fi
11858
11859 if test "$have_res_init" = yes; then
11860
11861 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
11862
11863 fi
11864
11865 # Do we need the Hesiod library to provide the support routines?
11866 if test "$with_hesiod" != no ; then
11867 # Don't set $LIBS here -- see comments above.
11868 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
11869 if test "x$ac_cv_func_res_send" = x""yes; then :
11870
11871 else
11872 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
11873 if test "x$ac_cv_func___res_send" = x""yes; then :
11874
11875 else
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
11877 $as_echo_n "checking for res_send in -lresolv... " >&6; }
11878 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
11879 $as_echo_n "(cached) " >&6
11880 else
11881 ac_check_lib_save_LIBS=$LIBS
11882 LIBS="-lresolv $LIBS"
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h. */
11885
11886 /* Override any GCC internal prototype to avoid an error.
11887 Use char because int might match the return type of a GCC
11888 builtin and then its argument prototype would still apply. */
11889 #ifdef __cplusplus
11890 extern "C"
11891 #endif
11892 char res_send ();
11893 int
11894 main ()
11895 {
11896 return res_send ();
11897 ;
11898 return 0;
11899 }
11900 _ACEOF
11901 if ac_fn_c_try_link "$LINENO"; then :
11902 ac_cv_lib_resolv_res_send=yes
11903 else
11904 ac_cv_lib_resolv_res_send=no
11905 fi
11906 rm -f core conftest.err conftest.$ac_objext \
11907 conftest$ac_exeext conftest.$ac_ext
11908 LIBS=$ac_check_lib_save_LIBS
11909 fi
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
11911 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
11912 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
11913 resolv=yes
11914 else
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
11916 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
11917 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
11918 $as_echo_n "(cached) " >&6
11919 else
11920 ac_check_lib_save_LIBS=$LIBS
11921 LIBS="-lresolv $LIBS"
11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11924
11925 /* Override any GCC internal prototype to avoid an error.
11926 Use char because int might match the return type of a GCC
11927 builtin and then its argument prototype would still apply. */
11928 #ifdef __cplusplus
11929 extern "C"
11930 #endif
11931 char __res_send ();
11932 int
11933 main ()
11934 {
11935 return __res_send ();
11936 ;
11937 return 0;
11938 }
11939 _ACEOF
11940 if ac_fn_c_try_link "$LINENO"; then :
11941 ac_cv_lib_resolv___res_send=yes
11942 else
11943 ac_cv_lib_resolv___res_send=no
11944 fi
11945 rm -f core conftest.err conftest.$ac_objext \
11946 conftest$ac_exeext conftest.$ac_ext
11947 LIBS=$ac_check_lib_save_LIBS
11948 fi
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
11950 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
11951 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
11952 resolv=yes
11953 fi
11954
11955 fi
11956
11957 fi
11958
11959 fi
11960
11961 if test "$resolv" = yes ; then
11962 RESOLVLIB=-lresolv
11963 else
11964 RESOLVLIB=
11965 fi
11966 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
11967 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
11968
11969 else
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
11971 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
11972 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
11973 $as_echo_n "(cached) " >&6
11974 else
11975 ac_check_lib_save_LIBS=$LIBS
11976 LIBS="-lhesiod $RESOLVLIB $LIBS"
11977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978 /* end confdefs.h. */
11979
11980 /* Override any GCC internal prototype to avoid an error.
11981 Use char because int might match the return type of a GCC
11982 builtin and then its argument prototype would still apply. */
11983 #ifdef __cplusplus
11984 extern "C"
11985 #endif
11986 char hes_getmailhost ();
11987 int
11988 main ()
11989 {
11990 return hes_getmailhost ();
11991 ;
11992 return 0;
11993 }
11994 _ACEOF
11995 if ac_fn_c_try_link "$LINENO"; then :
11996 ac_cv_lib_hesiod_hes_getmailhost=yes
11997 else
11998 ac_cv_lib_hesiod_hes_getmailhost=no
11999 fi
12000 rm -f core conftest.err conftest.$ac_objext \
12001 conftest$ac_exeext conftest.$ac_ext
12002 LIBS=$ac_check_lib_save_LIBS
12003 fi
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12005 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12006 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
12007
12008 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12009
12010 else
12011 :
12012 fi
12013
12014 fi
12015
12016 fi
12017
12018 # Do we need libresolv (due to res_init or Hesiod)?
12019 if test "$resolv" = yes ; then
12020
12021 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12022
12023 fi
12024
12025 # These tell us which Kerberos-related libraries to use.
12026 if test "${with_kerberos}" != no; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12028 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12029 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 ac_check_lib_save_LIBS=$LIBS
12033 LIBS="-lcom_err $LIBS"
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12036
12037 /* Override any GCC internal prototype to avoid an error.
12038 Use char because int might match the return type of a GCC
12039 builtin and then its argument prototype would still apply. */
12040 #ifdef __cplusplus
12041 extern "C"
12042 #endif
12043 char com_err ();
12044 int
12045 main ()
12046 {
12047 return com_err ();
12048 ;
12049 return 0;
12050 }
12051 _ACEOF
12052 if ac_fn_c_try_link "$LINENO"; then :
12053 ac_cv_lib_com_err_com_err=yes
12054 else
12055 ac_cv_lib_com_err_com_err=no
12056 fi
12057 rm -f core conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
12059 LIBS=$ac_check_lib_save_LIBS
12060 fi
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12062 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12063 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
12064 cat >>confdefs.h <<_ACEOF
12065 #define HAVE_LIBCOM_ERR 1
12066 _ACEOF
12067
12068 LIBS="-lcom_err $LIBS"
12069
12070 fi
12071
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12073 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12074 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12075 $as_echo_n "(cached) " >&6
12076 else
12077 ac_check_lib_save_LIBS=$LIBS
12078 LIBS="-lk5crypto $LIBS"
12079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h. */
12081
12082 /* Override any GCC internal prototype to avoid an error.
12083 Use char because int might match the return type of a GCC
12084 builtin and then its argument prototype would still apply. */
12085 #ifdef __cplusplus
12086 extern "C"
12087 #endif
12088 char mit_des_cbc_encrypt ();
12089 int
12090 main ()
12091 {
12092 return mit_des_cbc_encrypt ();
12093 ;
12094 return 0;
12095 }
12096 _ACEOF
12097 if ac_fn_c_try_link "$LINENO"; then :
12098 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12099 else
12100 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12101 fi
12102 rm -f core conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
12104 LIBS=$ac_check_lib_save_LIBS
12105 fi
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12107 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12108 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
12109 cat >>confdefs.h <<_ACEOF
12110 #define HAVE_LIBK5CRYPTO 1
12111 _ACEOF
12112
12113 LIBS="-lk5crypto $LIBS"
12114
12115 fi
12116
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12118 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12119 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12120 $as_echo_n "(cached) " >&6
12121 else
12122 ac_check_lib_save_LIBS=$LIBS
12123 LIBS="-lcrypto $LIBS"
12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h. */
12126
12127 /* Override any GCC internal prototype to avoid an error.
12128 Use char because int might match the return type of a GCC
12129 builtin and then its argument prototype would still apply. */
12130 #ifdef __cplusplus
12131 extern "C"
12132 #endif
12133 char mit_des_cbc_encrypt ();
12134 int
12135 main ()
12136 {
12137 return mit_des_cbc_encrypt ();
12138 ;
12139 return 0;
12140 }
12141 _ACEOF
12142 if ac_fn_c_try_link "$LINENO"; then :
12143 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12144 else
12145 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12146 fi
12147 rm -f core conftest.err conftest.$ac_objext \
12148 conftest$ac_exeext conftest.$ac_ext
12149 LIBS=$ac_check_lib_save_LIBS
12150 fi
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12152 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12153 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
12154 cat >>confdefs.h <<_ACEOF
12155 #define HAVE_LIBCRYPTO 1
12156 _ACEOF
12157
12158 LIBS="-lcrypto $LIBS"
12159
12160 fi
12161
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12163 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12164 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12165 $as_echo_n "(cached) " >&6
12166 else
12167 ac_check_lib_save_LIBS=$LIBS
12168 LIBS="-lkrb5 $LIBS"
12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12171
12172 /* Override any GCC internal prototype to avoid an error.
12173 Use char because int might match the return type of a GCC
12174 builtin and then its argument prototype would still apply. */
12175 #ifdef __cplusplus
12176 extern "C"
12177 #endif
12178 char krb5_init_context ();
12179 int
12180 main ()
12181 {
12182 return krb5_init_context ();
12183 ;
12184 return 0;
12185 }
12186 _ACEOF
12187 if ac_fn_c_try_link "$LINENO"; then :
12188 ac_cv_lib_krb5_krb5_init_context=yes
12189 else
12190 ac_cv_lib_krb5_krb5_init_context=no
12191 fi
12192 rm -f core conftest.err conftest.$ac_objext \
12193 conftest$ac_exeext conftest.$ac_ext
12194 LIBS=$ac_check_lib_save_LIBS
12195 fi
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12197 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12198 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
12199 cat >>confdefs.h <<_ACEOF
12200 #define HAVE_LIBKRB5 1
12201 _ACEOF
12202
12203 LIBS="-lkrb5 $LIBS"
12204
12205 fi
12206
12207 if test "${with_kerberos5}" = no; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12209 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12210 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12211 $as_echo_n "(cached) " >&6
12212 else
12213 ac_check_lib_save_LIBS=$LIBS
12214 LIBS="-ldes425 $LIBS"
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12217
12218 /* Override any GCC internal prototype to avoid an error.
12219 Use char because int might match the return type of a GCC
12220 builtin and then its argument prototype would still apply. */
12221 #ifdef __cplusplus
12222 extern "C"
12223 #endif
12224 char des_cbc_encrypt ();
12225 int
12226 main ()
12227 {
12228 return des_cbc_encrypt ();
12229 ;
12230 return 0;
12231 }
12232 _ACEOF
12233 if ac_fn_c_try_link "$LINENO"; then :
12234 ac_cv_lib_des425_des_cbc_encrypt=yes
12235 else
12236 ac_cv_lib_des425_des_cbc_encrypt=no
12237 fi
12238 rm -f core conftest.err conftest.$ac_objext \
12239 conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12241 fi
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12243 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12244 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
12245 cat >>confdefs.h <<_ACEOF
12246 #define HAVE_LIBDES425 1
12247 _ACEOF
12248
12249 LIBS="-ldes425 $LIBS"
12250
12251 else
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12253 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12254 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12255 $as_echo_n "(cached) " >&6
12256 else
12257 ac_check_lib_save_LIBS=$LIBS
12258 LIBS="-ldes $LIBS"
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12261
12262 /* Override any GCC internal prototype to avoid an error.
12263 Use char because int might match the return type of a GCC
12264 builtin and then its argument prototype would still apply. */
12265 #ifdef __cplusplus
12266 extern "C"
12267 #endif
12268 char des_cbc_encrypt ();
12269 int
12270 main ()
12271 {
12272 return des_cbc_encrypt ();
12273 ;
12274 return 0;
12275 }
12276 _ACEOF
12277 if ac_fn_c_try_link "$LINENO"; then :
12278 ac_cv_lib_des_des_cbc_encrypt=yes
12279 else
12280 ac_cv_lib_des_des_cbc_encrypt=no
12281 fi
12282 rm -f core conftest.err conftest.$ac_objext \
12283 conftest$ac_exeext conftest.$ac_ext
12284 LIBS=$ac_check_lib_save_LIBS
12285 fi
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12287 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12288 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
12289 cat >>confdefs.h <<_ACEOF
12290 #define HAVE_LIBDES 1
12291 _ACEOF
12292
12293 LIBS="-ldes $LIBS"
12294
12295 fi
12296
12297 fi
12298
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12300 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12301 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12302 $as_echo_n "(cached) " >&6
12303 else
12304 ac_check_lib_save_LIBS=$LIBS
12305 LIBS="-lkrb4 $LIBS"
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12308
12309 /* Override any GCC internal prototype to avoid an error.
12310 Use char because int might match the return type of a GCC
12311 builtin and then its argument prototype would still apply. */
12312 #ifdef __cplusplus
12313 extern "C"
12314 #endif
12315 char krb_get_cred ();
12316 int
12317 main ()
12318 {
12319 return krb_get_cred ();
12320 ;
12321 return 0;
12322 }
12323 _ACEOF
12324 if ac_fn_c_try_link "$LINENO"; then :
12325 ac_cv_lib_krb4_krb_get_cred=yes
12326 else
12327 ac_cv_lib_krb4_krb_get_cred=no
12328 fi
12329 rm -f core conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12331 LIBS=$ac_check_lib_save_LIBS
12332 fi
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12334 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12335 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
12336 cat >>confdefs.h <<_ACEOF
12337 #define HAVE_LIBKRB4 1
12338 _ACEOF
12339
12340 LIBS="-lkrb4 $LIBS"
12341
12342 else
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12344 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12345 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 ac_check_lib_save_LIBS=$LIBS
12349 LIBS="-lkrb $LIBS"
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12352
12353 /* Override any GCC internal prototype to avoid an error.
12354 Use char because int might match the return type of a GCC
12355 builtin and then its argument prototype would still apply. */
12356 #ifdef __cplusplus
12357 extern "C"
12358 #endif
12359 char krb_get_cred ();
12360 int
12361 main ()
12362 {
12363 return krb_get_cred ();
12364 ;
12365 return 0;
12366 }
12367 _ACEOF
12368 if ac_fn_c_try_link "$LINENO"; then :
12369 ac_cv_lib_krb_krb_get_cred=yes
12370 else
12371 ac_cv_lib_krb_krb_get_cred=no
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext \
12374 conftest$ac_exeext conftest.$ac_ext
12375 LIBS=$ac_check_lib_save_LIBS
12376 fi
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
12378 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12379 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
12380 cat >>confdefs.h <<_ACEOF
12381 #define HAVE_LIBKRB 1
12382 _ACEOF
12383
12384 LIBS="-lkrb $LIBS"
12385
12386 fi
12387
12388 fi
12389
12390 fi
12391
12392 if test "${with_kerberos5}" != no; then
12393 for ac_header in krb5.h
12394 do :
12395 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
12396 if test "x$ac_cv_header_krb5_h" = x""yes; then :
12397 cat >>confdefs.h <<_ACEOF
12398 #define HAVE_KRB5_H 1
12399 _ACEOF
12400 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
12401 "
12402 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
12403
12404 cat >>confdefs.h <<_ACEOF
12405 #define HAVE_KRB5_ERROR_TEXT 1
12406 _ACEOF
12407
12408
12409 fi
12410 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
12411 "
12412 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
12413
12414 cat >>confdefs.h <<_ACEOF
12415 #define HAVE_KRB5_ERROR_E_TEXT 1
12416 _ACEOF
12417
12418
12419 fi
12420
12421 fi
12422
12423 done
12424
12425 else
12426 for ac_header in des.h
12427 do :
12428 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
12429 if test "x$ac_cv_header_des_h" = x""yes; then :
12430 cat >>confdefs.h <<_ACEOF
12431 #define HAVE_DES_H 1
12432 _ACEOF
12433
12434 else
12435 for ac_header in kerberosIV/des.h
12436 do :
12437 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
12438 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
12439 cat >>confdefs.h <<_ACEOF
12440 #define HAVE_KERBEROSIV_DES_H 1
12441 _ACEOF
12442
12443 else
12444 for ac_header in kerberos/des.h
12445 do :
12446 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
12447 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
12448 cat >>confdefs.h <<_ACEOF
12449 #define HAVE_KERBEROS_DES_H 1
12450 _ACEOF
12451
12452 fi
12453
12454 done
12455
12456 fi
12457
12458 done
12459
12460 fi
12461
12462 done
12463
12464 for ac_header in krb.h
12465 do :
12466 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
12467 if test "x$ac_cv_header_krb_h" = x""yes; then :
12468 cat >>confdefs.h <<_ACEOF
12469 #define HAVE_KRB_H 1
12470 _ACEOF
12471
12472 else
12473 for ac_header in kerberosIV/krb.h
12474 do :
12475 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
12476 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
12477 cat >>confdefs.h <<_ACEOF
12478 #define HAVE_KERBEROSIV_KRB_H 1
12479 _ACEOF
12480
12481 else
12482 for ac_header in kerberos/krb.h
12483 do :
12484 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
12485 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
12486 cat >>confdefs.h <<_ACEOF
12487 #define HAVE_KERBEROS_KRB_H 1
12488 _ACEOF
12489
12490 fi
12491
12492 done
12493
12494 fi
12495
12496 done
12497
12498 fi
12499
12500 done
12501
12502 fi
12503 for ac_header in com_err.h
12504 do :
12505 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
12506 if test "x$ac_cv_header_com_err_h" = x""yes; then :
12507 cat >>confdefs.h <<_ACEOF
12508 #define HAVE_COM_ERR_H 1
12509 _ACEOF
12510
12511 fi
12512
12513 done
12514
12515 fi
12516
12517 # Solaris requires -lintl if you want strerror (which calls dgettext)
12518 # to return localized messages.
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
12520 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12521 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 ac_check_lib_save_LIBS=$LIBS
12525 LIBS="-lintl $LIBS"
12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12528
12529 /* Override any GCC internal prototype to avoid an error.
12530 Use char because int might match the return type of a GCC
12531 builtin and then its argument prototype would still apply. */
12532 #ifdef __cplusplus
12533 extern "C"
12534 #endif
12535 char dgettext ();
12536 int
12537 main ()
12538 {
12539 return dgettext ();
12540 ;
12541 return 0;
12542 }
12543 _ACEOF
12544 if ac_fn_c_try_link "$LINENO"; then :
12545 ac_cv_lib_intl_dgettext=yes
12546 else
12547 ac_cv_lib_intl_dgettext=no
12548 fi
12549 rm -f core conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
12551 LIBS=$ac_check_lib_save_LIBS
12552 fi
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
12554 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12555 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
12556 cat >>confdefs.h <<_ACEOF
12557 #define HAVE_LIBINTL 1
12558 _ACEOF
12559
12560 LIBS="-lintl $LIBS"
12561
12562 fi
12563
12564
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
12566 $as_echo_n "checking whether localtime caches TZ... " >&6; }
12567 if test "${emacs_cv_localtime_cache+set}" = set; then :
12568 $as_echo_n "(cached) " >&6
12569 else
12570 if test x$ac_cv_func_tzset = xyes; then
12571 if test "$cross_compiling" = yes; then :
12572 # If we have tzset, assume the worst when cross-compiling.
12573 emacs_cv_localtime_cache=yes
12574 else
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12577 #include <time.h>
12578 extern char **environ;
12579 unset_TZ ()
12580 {
12581 char **from, **to;
12582 for (to = from = environ; (*to = *from); from++)
12583 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
12584 to++;
12585 }
12586 char TZ_GMT0[] = "TZ=GMT0";
12587 char TZ_PST8[] = "TZ=PST8";
12588 main()
12589 {
12590 time_t now = time ((time_t *) 0);
12591 int hour_GMT0, hour_unset;
12592 if (putenv (TZ_GMT0) != 0)
12593 exit (1);
12594 hour_GMT0 = localtime (&now)->tm_hour;
12595 unset_TZ ();
12596 hour_unset = localtime (&now)->tm_hour;
12597 if (putenv (TZ_PST8) != 0)
12598 exit (1);
12599 if (localtime (&now)->tm_hour == hour_GMT0)
12600 exit (1);
12601 unset_TZ ();
12602 if (localtime (&now)->tm_hour != hour_unset)
12603 exit (1);
12604 exit (0);
12605 }
12606 _ACEOF
12607 if ac_fn_c_try_run "$LINENO"; then :
12608 emacs_cv_localtime_cache=no
12609 else
12610 emacs_cv_localtime_cache=yes
12611 fi
12612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12613 conftest.$ac_objext conftest.beam conftest.$ac_ext
12614 fi
12615
12616 else
12617 # If we lack tzset, report that localtime does not cache TZ,
12618 # since we can't invalidate the cache if we don't have tzset.
12619 emacs_cv_localtime_cache=no
12620 fi
12621 fi
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
12623 $as_echo "$emacs_cv_localtime_cache" >&6; }
12624 if test $emacs_cv_localtime_cache = yes; then
12625
12626 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
12627
12628 fi
12629
12630 if test "x$HAVE_TIMEVAL" = xyes; then
12631 for ac_func in gettimeofday
12632 do :
12633 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12634 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
12635 cat >>confdefs.h <<_ACEOF
12636 #define HAVE_GETTIMEOFDAY 1
12637 _ACEOF
12638
12639 fi
12640 done
12641
12642 if test $ac_cv_func_gettimeofday = yes; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
12644 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12645 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h. */
12650
12651 #ifdef TIME_WITH_SYS_TIME
12652 #include <sys/time.h>
12653 #include <time.h>
12654 #else
12655 #ifdef HAVE_SYS_TIME_H
12656 #include <sys/time.h>
12657 #else
12658 #include <time.h>
12659 #endif
12660 #endif
12661 int
12662 main ()
12663 {
12664 struct timeval time;
12665 gettimeofday (&time, 0);
12666 ;
12667 return 0;
12668 }
12669 _ACEOF
12670 if ac_fn_c_try_compile "$LINENO"; then :
12671 emacs_cv_gettimeofday_two_arguments=yes
12672 else
12673 emacs_cv_gettimeofday_two_arguments=no
12674 fi
12675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12676 fi
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
12678 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
12679 if test $emacs_cv_gettimeofday_two_arguments = no; then
12680
12681 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
12682
12683 fi
12684 fi
12685 fi
12686
12687 ok_so_far=yes
12688 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
12689 if test "x$ac_cv_func_socket" = x""yes; then :
12690
12691 else
12692 ok_so_far=no
12693 fi
12694
12695 if test $ok_so_far = yes; then
12696 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12697 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
12698
12699 else
12700 ok_so_far=no
12701 fi
12702
12703
12704 fi
12705 if test $ok_so_far = yes; then
12706 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
12707 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
12708
12709 else
12710 ok_so_far=no
12711 fi
12712
12713
12714 fi
12715 if test $ok_so_far = yes; then
12716
12717 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
12718
12719 fi
12720
12721 for ac_header in sys/ioctl.h
12722 do :
12723 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12724 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
12725 cat >>confdefs.h <<_ACEOF
12726 #define HAVE_SYS_IOCTL_H 1
12727 _ACEOF
12728
12729 fi
12730
12731 done
12732
12733
12734 if test -f /usr/lpp/X11/bin/smt.exp; then
12735
12736 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
12737
12738 fi
12739
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
12741 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
12742 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12744 $as_echo "yes" >&6; }
12745
12746 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
12747
12748 else
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12751 fi
12752
12753 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12754 if test "x$ac_cv_type_pid_t" = x""yes; then :
12755
12756 else
12757
12758 cat >>confdefs.h <<_ACEOF
12759 #define pid_t int
12760 _ACEOF
12761
12762 fi
12763
12764 for ac_header in vfork.h
12765 do :
12766 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12767 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12768 cat >>confdefs.h <<_ACEOF
12769 #define HAVE_VFORK_H 1
12770 _ACEOF
12771
12772 fi
12773
12774 done
12775
12776 for ac_func in fork vfork
12777 do :
12778 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12779 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12780 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12781 cat >>confdefs.h <<_ACEOF
12782 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12783 _ACEOF
12784
12785 fi
12786 done
12787
12788 if test "x$ac_cv_func_fork" = xyes; then
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12790 $as_echo_n "checking for working fork... " >&6; }
12791 if test "${ac_cv_func_fork_works+set}" = set; then :
12792 $as_echo_n "(cached) " >&6
12793 else
12794 if test "$cross_compiling" = yes; then :
12795 ac_cv_func_fork_works=cross
12796 else
12797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12798 /* end confdefs.h. */
12799 $ac_includes_default
12800 int
12801 main ()
12802 {
12803
12804 /* By Ruediger Kuhlmann. */
12805 return fork () < 0;
12806
12807 ;
12808 return 0;
12809 }
12810 _ACEOF
12811 if ac_fn_c_try_run "$LINENO"; then :
12812 ac_cv_func_fork_works=yes
12813 else
12814 ac_cv_func_fork_works=no
12815 fi
12816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12817 conftest.$ac_objext conftest.beam conftest.$ac_ext
12818 fi
12819
12820 fi
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12822 $as_echo "$ac_cv_func_fork_works" >&6; }
12823
12824 else
12825 ac_cv_func_fork_works=$ac_cv_func_fork
12826 fi
12827 if test "x$ac_cv_func_fork_works" = xcross; then
12828 case $host in
12829 *-*-amigaos* | *-*-msdosdjgpp*)
12830 # Override, as these systems have only a dummy fork() stub
12831 ac_cv_func_fork_works=no
12832 ;;
12833 *)
12834 ac_cv_func_fork_works=yes
12835 ;;
12836 esac
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12838 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12839 fi
12840 ac_cv_func_vfork_works=$ac_cv_func_vfork
12841 if test "x$ac_cv_func_vfork" = xyes; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12843 $as_echo_n "checking for working vfork... " >&6; }
12844 if test "${ac_cv_func_vfork_works+set}" = set; then :
12845 $as_echo_n "(cached) " >&6
12846 else
12847 if test "$cross_compiling" = yes; then :
12848 ac_cv_func_vfork_works=cross
12849 else
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12852 /* Thanks to Paul Eggert for this test. */
12853 $ac_includes_default
12854 #include <sys/wait.h>
12855 #ifdef HAVE_VFORK_H
12856 # include <vfork.h>
12857 #endif
12858 /* On some sparc systems, changes by the child to local and incoming
12859 argument registers are propagated back to the parent. The compiler
12860 is told about this with #include <vfork.h>, but some compilers
12861 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12862 static variable whose address is put into a register that is
12863 clobbered by the vfork. */
12864 static void
12865 #ifdef __cplusplus
12866 sparc_address_test (int arg)
12867 # else
12868 sparc_address_test (arg) int arg;
12869 #endif
12870 {
12871 static pid_t child;
12872 if (!child) {
12873 child = vfork ();
12874 if (child < 0) {
12875 perror ("vfork");
12876 _exit(2);
12877 }
12878 if (!child) {
12879 arg = getpid();
12880 write(-1, "", 0);
12881 _exit (arg);
12882 }
12883 }
12884 }
12885
12886 int
12887 main ()
12888 {
12889 pid_t parent = getpid ();
12890 pid_t child;
12891
12892 sparc_address_test (0);
12893
12894 child = vfork ();
12895
12896 if (child == 0) {
12897 /* Here is another test for sparc vfork register problems. This
12898 test uses lots of local variables, at least as many local
12899 variables as main has allocated so far including compiler
12900 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12901 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12902 reuse the register of parent for one of the local variables,
12903 since it will think that parent can't possibly be used any more
12904 in this routine. Assigning to the local variable will thus
12905 munge parent in the parent process. */
12906 pid_t
12907 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12908 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12909 /* Convince the compiler that p..p7 are live; otherwise, it might
12910 use the same hardware register for all 8 local variables. */
12911 if (p != p1 || p != p2 || p != p3 || p != p4
12912 || p != p5 || p != p6 || p != p7)
12913 _exit(1);
12914
12915 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12916 from child file descriptors. If the child closes a descriptor
12917 before it execs or exits, this munges the parent's descriptor
12918 as well. Test for this by closing stdout in the child. */
12919 _exit(close(fileno(stdout)) != 0);
12920 } else {
12921 int status;
12922 struct stat st;
12923
12924 while (wait(&status) != child)
12925 ;
12926 return (
12927 /* Was there some problem with vforking? */
12928 child < 0
12929
12930 /* Did the child fail? (This shouldn't happen.) */
12931 || status
12932
12933 /* Did the vfork/compiler bug occur? */
12934 || parent != getpid()
12935
12936 /* Did the file descriptor bug occur? */
12937 || fstat(fileno(stdout), &st) != 0
12938 );
12939 }
12940 }
12941 _ACEOF
12942 if ac_fn_c_try_run "$LINENO"; then :
12943 ac_cv_func_vfork_works=yes
12944 else
12945 ac_cv_func_vfork_works=no
12946 fi
12947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12948 conftest.$ac_objext conftest.beam conftest.$ac_ext
12949 fi
12950
12951 fi
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12953 $as_echo "$ac_cv_func_vfork_works" >&6; }
12954
12955 fi;
12956 if test "x$ac_cv_func_fork_works" = xcross; then
12957 ac_cv_func_vfork_works=$ac_cv_func_vfork
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12959 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12960 fi
12961
12962 if test "x$ac_cv_func_vfork_works" = xyes; then
12963
12964 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12965
12966 else
12967
12968 $as_echo "#define vfork fork" >>confdefs.h
12969
12970 fi
12971 if test "x$ac_cv_func_fork_works" = xyes; then
12972
12973 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12974
12975 fi
12976
12977
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12979 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12980 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
12981 $as_echo_n "(cached) " >&6
12982 else
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h. */
12985 #include <langinfo.h>
12986 int
12987 main ()
12988 {
12989 char* cs = nl_langinfo(CODESET);
12990 ;
12991 return 0;
12992 }
12993 _ACEOF
12994 if ac_fn_c_try_link "$LINENO"; then :
12995 emacs_cv_langinfo_codeset=yes
12996 else
12997 emacs_cv_langinfo_codeset=no
12998 fi
12999 rm -f core conftest.err conftest.$ac_objext \
13000 conftest$ac_exeext conftest.$ac_ext
13001
13002 fi
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13004 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13005 if test $emacs_cv_langinfo_codeset = yes; then
13006
13007 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13008
13009 fi
13010
13011 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13012 if test "x$ac_cv_type_size_t" = x""yes; then :
13013
13014 cat >>confdefs.h <<_ACEOF
13015 #define HAVE_SIZE_T 1
13016 _ACEOF
13017
13018
13019 fi
13020
13021
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13023 $as_echo_n "checking for mbstate_t... " >&6; }
13024 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13029 $ac_includes_default
13030 # include <wchar.h>
13031 int
13032 main ()
13033 {
13034 mbstate_t x; return sizeof x;
13035 ;
13036 return 0;
13037 }
13038 _ACEOF
13039 if ac_fn_c_try_compile "$LINENO"; then :
13040 ac_cv_type_mbstate_t=yes
13041 else
13042 ac_cv_type_mbstate_t=no
13043 fi
13044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13045 fi
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13047 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13048 if test $ac_cv_type_mbstate_t = yes; then
13049
13050 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13051
13052 else
13053
13054 $as_echo "#define mbstate_t int" >>confdefs.h
13055
13056 fi
13057
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13059 $as_echo_n "checking for C restrict keyword... " >&6; }
13060 if test "${emacs_cv_c_restrict+set}" = set; then :
13061 $as_echo_n "(cached) " >&6
13062 else
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13065 void fred (int *restrict x);
13066 int
13067 main ()
13068 {
13069
13070 ;
13071 return 0;
13072 }
13073 _ACEOF
13074 if ac_fn_c_try_compile "$LINENO"; then :
13075 emacs_cv_c_restrict=yes
13076 else
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13079 void fred (int *__restrict x);
13080 int
13081 main ()
13082 {
13083
13084 ;
13085 return 0;
13086 }
13087 _ACEOF
13088 if ac_fn_c_try_compile "$LINENO"; then :
13089 emacs_cv_c_restrict=__restrict
13090 else
13091 emacs_cv_c_restrict=no
13092 fi
13093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13094 fi
13095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13096 fi
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13098 $as_echo "$emacs_cv_c_restrict" >&6; }
13099 case "$emacs_cv_c_restrict" in
13100 yes) emacs_restrict=restrict;;
13101 no) emacs_restrict="";;
13102 *) emacs_restrict="$emacs_cv_c_restrict";;
13103 esac
13104 if test "$emacs_restrict" != __restrict; then
13105
13106 cat >>confdefs.h <<_ACEOF
13107 #define __restrict $emacs_restrict
13108 _ACEOF
13109
13110 fi
13111
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13113 $as_echo_n "checking for C restricted array declarations... " >&6; }
13114 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13115 $as_echo_n "(cached) " >&6
13116 else
13117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118 /* end confdefs.h. */
13119 void fred (int x[__restrict]);
13120 int
13121 main ()
13122 {
13123
13124 ;
13125 return 0;
13126 }
13127 _ACEOF
13128 if ac_fn_c_try_compile "$LINENO"; then :
13129 emacs_cv_c_restrict_arr=yes
13130 else
13131 emacs_cv_c_restrict_arr=no
13132 fi
13133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13134 fi
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13136 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13137 if test "$emacs_cv_c_restrict_arr" = yes; then
13138
13139 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13140
13141 fi
13142
13143
13144
13145 # Set up the CFLAGS for real compilation, so we can substitute it.
13146 CFLAGS="$REAL_CFLAGS"
13147 CPPFLAGS="$REAL_CPPFLAGS"
13148
13149 ## Hack to detect a buggy GCC version.
13150 if test "x$GCC" = xyes \
13151 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13152 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
13153 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
13154 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
13155 fi
13156
13157 #### Find out which version of Emacs this is.
13158 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13159 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13160 if test x"${version}" = x; then
13161 as_fn_error $? "can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5
13162 fi
13163 if test x"${version}" != x"$PACKAGE_VERSION"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13165 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13166 fi
13167
13168 ### Specify what sort of things we'll be editing into Makefile and config.h.
13169 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214 cat >>confdefs.h <<_ACEOF
13215 #define EMACS_CONFIGURATION "${canonical}"
13216 _ACEOF
13217
13218
13219 cat >>confdefs.h <<_ACEOF
13220 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13221 _ACEOF
13222
13223
13224 cat >>confdefs.h <<_ACEOF
13225 #define config_machfile "${machfile}"
13226 _ACEOF
13227
13228
13229 cat >>confdefs.h <<_ACEOF
13230 #define config_opsysfile "${opsysfile}"
13231 _ACEOF
13232
13233
13234 cat >>confdefs.h <<_ACEOF
13235 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
13236 _ACEOF
13237
13238
13239 cat >>confdefs.h <<_ACEOF
13240 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
13241 _ACEOF
13242
13243
13244 cat >>confdefs.h <<_ACEOF
13245 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
13246 _ACEOF
13247
13248
13249 cat >>confdefs.h <<_ACEOF
13250 #define UNEXEC_SRC ${UNEXEC_SRC}
13251 _ACEOF
13252
13253
13254 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13255
13256 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13257
13258 fi
13259 if test "${USE_X_TOOLKIT}" != "none" ; then
13260
13261 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13262
13263 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13264
13265 $as_echo "#define USE_LUCID 1" >>confdefs.h
13266
13267 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13268
13269 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13270
13271 fi
13272 fi
13273 if test "${HAVE_X11}" = "yes" ; then
13274
13275 $as_echo "#define HAVE_X11 1" >>confdefs.h
13276
13277 fi
13278 if test "${HAVE_MENUS}" = "yes" ; then
13279
13280 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
13281
13282 fi
13283 if test "${GNU_MALLOC}" = "yes" ; then
13284
13285 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
13286
13287 fi
13288 if test "${REL_ALLOC}" = "yes" ; then
13289
13290 $as_echo "#define REL_ALLOC 1" >>confdefs.h
13291
13292 fi
13293
13294
13295
13296
13297 #### Report on what we decided to do.
13298 #### Report GTK as a toolkit, even if it doesn't use Xt.
13299 #### It makes printing result more understandable as using GTK sets
13300 #### toolkit_scroll_bars to yes by default.
13301 if test "${HAVE_GTK}" = "yes"; then
13302 USE_X_TOOLKIT=GTK
13303 fi
13304
13305 echo "
13306 Configured for \`${canonical}'.
13307
13308 Where should the build process find the source code? ${srcdir}
13309 What operating system and machine description files should Emacs use?
13310 \`${opsysfile}' and \`${machfile}'
13311 What compiler should emacs be built with? ${CC} ${CFLAGS}
13312 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13313 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
13314 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
13315 What window system should Emacs use? ${window_system}
13316 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
13317
13318 if test -n "${x_includes}"; then
13319 echo " Where do we find X Windows header files? ${x_includes}"
13320 else
13321 echo " Where do we find X Windows header files? Standard dirs"
13322 fi
13323 if test -n "${x_libraries}"; then
13324 echo " Where do we find X Windows libraries? ${x_libraries}"
13325 else
13326 echo " Where do we find X Windows libraries? Standard dirs"
13327 fi
13328
13329 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
13330 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
13331 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
13332 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
13333 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
13334 echo " Does Emacs use -lpng? ${HAVE_PNG}"
13335 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
13336 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
13337 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
13338 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
13339
13340 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
13341 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
13342 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
13343 echo " Does Emacs use -lxft? ${HAVE_XFT}"
13344
13345 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
13346 echo
13347
13348 if test $USE_XASSERTS = yes; then
13349 echo " Compiling with asserts turned on."
13350 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
13351 fi
13352
13353 echo
13354
13355 if test "$HAVE_NS" = "yes"; then
13356 echo
13357 echo "You must run \"make install\" in order to test the built application.
13358 The installed application will go to nextstep/Emacs.app and can be
13359 run or moved from there."
13360 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
13361 echo "The application will be fully self-contained."
13362 else
13363 echo "The lisp resources for the application will be installed under ${prefix}.
13364 You may need to run \"make install\" with sudo. The application will fail
13365 to run if these resources are not installed."
13366 fi
13367 echo
13368 fi
13369
13370 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
13371 echo "D-Bus integration has been tested for GNU/Linux only."
13372 echo
13373 fi
13374
13375
13376 # Remove any trailing slashes in these variables.
13377 test "${prefix}" != NONE &&
13378 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
13379 test "${exec_prefix}" != NONE &&
13380 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
13381
13382 # Now get this: Some word that is part of the ${srcdir} directory name
13383 # or the ${configuration} value might, just might, happen to be an
13384 # identifier like `sun4' or `i386' or something, and be predefined by
13385 # the C preprocessor to some helpful value like 1, or maybe the empty
13386 # string. Needless to say consequent macro substitutions are less
13387 # than conducive to the makefile finding the correct directory.
13388 cpp_undefs="`echo $srcdir $configuration $canonical unix |
13389 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13390 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
13391
13392 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
13393 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
13394 ## from Makefile.c can correctly provide the arg `-traditional' to the
13395 ## C preprocessor.
13396
13397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13399 yes..yes
13400 _ACEOF
13401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13402 $EGREP "yes..yes" >/dev/null 2>&1; then :
13403 CPP_NEED_TRADITIONAL=no
13404 else
13405 CPP_NEED_TRADITIONAL=yes
13406 fi
13407 rm -f conftest*
13408
13409
13410 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"
13411
13412 ac_config_commands="$ac_config_commands default"
13413
13414 cat >confcache <<\_ACEOF
13415 # This file is a shell script that caches the results of configure
13416 # tests run on this system so they can be shared between configure
13417 # scripts and configure runs, see configure's option --config-cache.
13418 # It is not useful on other systems. If it contains results you don't
13419 # want to keep, you may remove or edit it.
13420 #
13421 # config.status only pays attention to the cache file if you give it
13422 # the --recheck option to rerun configure.
13423 #
13424 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13425 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13426 # following values.
13427
13428 _ACEOF
13429
13430 # The following way of writing the cache mishandles newlines in values,
13431 # but we know of no workaround that is simple, portable, and efficient.
13432 # So, we kill variables containing newlines.
13433 # Ultrix sh set writes to stderr and can't be redirected directly,
13434 # and sets the high bit in the cache file unless we assign to the vars.
13435 (
13436 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13437 eval ac_val=\$$ac_var
13438 case $ac_val in #(
13439 *${as_nl}*)
13440 case $ac_var in #(
13441 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13442 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13443 esac
13444 case $ac_var in #(
13445 _ | IFS | as_nl) ;; #(
13446 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13447 *) { eval $ac_var=; unset $ac_var;} ;;
13448 esac ;;
13449 esac
13450 done
13451
13452 (set) 2>&1 |
13453 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13454 *${as_nl}ac_space=\ *)
13455 # `set' does not quote correctly, so add quotes: double-quote
13456 # substitution turns \\\\ into \\, and sed turns \\ into \.
13457 sed -n \
13458 "s/'/'\\\\''/g;
13459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13460 ;; #(
13461 *)
13462 # `set' quotes correctly as required by POSIX, so do not add quotes.
13463 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13464 ;;
13465 esac |
13466 sort
13467 ) |
13468 sed '
13469 /^ac_cv_env_/b end
13470 t clear
13471 :clear
13472 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13473 t end
13474 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13475 :end' >>confcache
13476 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13477 if test -w "$cache_file"; then
13478 test "x$cache_file" != "x/dev/null" &&
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13480 $as_echo "$as_me: updating cache $cache_file" >&6;}
13481 cat confcache >$cache_file
13482 else
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13484 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13485 fi
13486 fi
13487 rm -f confcache
13488
13489 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13490 # Let make expand exec_prefix.
13491 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13492
13493 DEFS=-DHAVE_CONFIG_H
13494
13495 ac_libobjs=
13496 ac_ltlibobjs=
13497 U=
13498 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13499 # 1. Remove the extension, and $U if already installed.
13500 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13501 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13502 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13503 # will be set to the directory where LIBOBJS objects are built.
13504 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13505 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13506 done
13507 LIBOBJS=$ac_libobjs
13508
13509 LTLIBOBJS=$ac_ltlibobjs
13510
13511
13512
13513 : ${CONFIG_STATUS=./config.status}
13514 ac_write_fail=0
13515 ac_clean_files_save=$ac_clean_files
13516 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13518 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13519 as_write_fail=0
13520 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13521 #! $SHELL
13522 # Generated by $as_me.
13523 # Run this file to recreate the current configuration.
13524 # Compiler output produced by configure, useful for debugging
13525 # configure, is in config.log if it exists.
13526
13527 debug=false
13528 ac_cs_recheck=false
13529 ac_cs_silent=false
13530
13531 SHELL=\${CONFIG_SHELL-$SHELL}
13532 export SHELL
13533 _ASEOF
13534 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13535 ## -------------------- ##
13536 ## M4sh Initialization. ##
13537 ## -------------------- ##
13538
13539 # Be more Bourne compatible
13540 DUALCASE=1; export DUALCASE # for MKS sh
13541 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13542 emulate sh
13543 NULLCMD=:
13544 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13545 # is contrary to our usage. Disable this feature.
13546 alias -g '${1+"$@"}'='"$@"'
13547 setopt NO_GLOB_SUBST
13548 else
13549 case `(set -o) 2>/dev/null` in #(
13550 *posix*) :
13551 set -o posix ;; #(
13552 *) :
13553 ;;
13554 esac
13555 fi
13556
13557
13558 as_nl='
13559 '
13560 export as_nl
13561 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13562 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13563 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13564 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13565 # Prefer a ksh shell builtin over an external printf program on Solaris,
13566 # but without wasting forks for bash or zsh.
13567 if test -z "$BASH_VERSION$ZSH_VERSION" \
13568 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13569 as_echo='print -r --'
13570 as_echo_n='print -rn --'
13571 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13572 as_echo='printf %s\n'
13573 as_echo_n='printf %s'
13574 else
13575 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13576 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13577 as_echo_n='/usr/ucb/echo -n'
13578 else
13579 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13580 as_echo_n_body='eval
13581 arg=$1;
13582 case $arg in #(
13583 *"$as_nl"*)
13584 expr "X$arg" : "X\\(.*\\)$as_nl";
13585 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13586 esac;
13587 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13588 '
13589 export as_echo_n_body
13590 as_echo_n='sh -c $as_echo_n_body as_echo'
13591 fi
13592 export as_echo_body
13593 as_echo='sh -c $as_echo_body as_echo'
13594 fi
13595
13596 # The user is always right.
13597 if test "${PATH_SEPARATOR+set}" != set; then
13598 PATH_SEPARATOR=:
13599 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13600 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13601 PATH_SEPARATOR=';'
13602 }
13603 fi
13604
13605
13606 # IFS
13607 # We need space, tab and new line, in precisely that order. Quoting is
13608 # there to prevent editors from complaining about space-tab.
13609 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13610 # splitting by setting IFS to empty value.)
13611 IFS=" "" $as_nl"
13612
13613 # Find who we are. Look in the path if we contain no directory separator.
13614 case $0 in #((
13615 *[\\/]* ) as_myself=$0 ;;
13616 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13617 for as_dir in $PATH
13618 do
13619 IFS=$as_save_IFS
13620 test -z "$as_dir" && as_dir=.
13621 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13622 done
13623 IFS=$as_save_IFS
13624
13625 ;;
13626 esac
13627 # We did not find ourselves, most probably we were run as `sh COMMAND'
13628 # in which case we are not to be found in the path.
13629 if test "x$as_myself" = x; then
13630 as_myself=$0
13631 fi
13632 if test ! -f "$as_myself"; then
13633 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13634 exit 1
13635 fi
13636
13637 # Unset variables that we do not need and which cause bugs (e.g. in
13638 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13639 # suppresses any "Segmentation fault" message there. '((' could
13640 # trigger a bug in pdksh 5.2.14.
13641 for as_var in BASH_ENV ENV MAIL MAILPATH
13642 do eval test x\${$as_var+set} = xset \
13643 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13644 done
13645 PS1='$ '
13646 PS2='> '
13647 PS4='+ '
13648
13649 # NLS nuisances.
13650 LC_ALL=C
13651 export LC_ALL
13652 LANGUAGE=C
13653 export LANGUAGE
13654
13655 # CDPATH.
13656 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13657
13658
13659 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13660 # ----------------------------------------
13661 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13662 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13663 # script with STATUS, using 1 if that was 0.
13664 as_fn_error ()
13665 {
13666 as_status=$1; test $as_status -eq 0 && as_status=1
13667 if test "$4"; then
13668 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13669 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13670 fi
13671 $as_echo "$as_me: error: $2" >&2
13672 as_fn_exit $as_status
13673 } # as_fn_error
13674
13675
13676 # as_fn_set_status STATUS
13677 # -----------------------
13678 # Set $? to STATUS, without forking.
13679 as_fn_set_status ()
13680 {
13681 return $1
13682 } # as_fn_set_status
13683
13684 # as_fn_exit STATUS
13685 # -----------------
13686 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13687 as_fn_exit ()
13688 {
13689 set +e
13690 as_fn_set_status $1
13691 exit $1
13692 } # as_fn_exit
13693
13694 # as_fn_unset VAR
13695 # ---------------
13696 # Portably unset VAR.
13697 as_fn_unset ()
13698 {
13699 { eval $1=; unset $1;}
13700 }
13701 as_unset=as_fn_unset
13702 # as_fn_append VAR VALUE
13703 # ----------------------
13704 # Append the text in VALUE to the end of the definition contained in VAR. Take
13705 # advantage of any shell optimizations that allow amortized linear growth over
13706 # repeated appends, instead of the typical quadratic growth present in naive
13707 # implementations.
13708 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13709 eval 'as_fn_append ()
13710 {
13711 eval $1+=\$2
13712 }'
13713 else
13714 as_fn_append ()
13715 {
13716 eval $1=\$$1\$2
13717 }
13718 fi # as_fn_append
13719
13720 # as_fn_arith ARG...
13721 # ------------------
13722 # Perform arithmetic evaluation on the ARGs, and store the result in the
13723 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13724 # must be portable across $(()) and expr.
13725 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13726 eval 'as_fn_arith ()
13727 {
13728 as_val=$(( $* ))
13729 }'
13730 else
13731 as_fn_arith ()
13732 {
13733 as_val=`expr "$@" || test $? -eq 1`
13734 }
13735 fi # as_fn_arith
13736
13737
13738 if expr a : '\(a\)' >/dev/null 2>&1 &&
13739 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13740 as_expr=expr
13741 else
13742 as_expr=false
13743 fi
13744
13745 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13746 as_basename=basename
13747 else
13748 as_basename=false
13749 fi
13750
13751 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13752 as_dirname=dirname
13753 else
13754 as_dirname=false
13755 fi
13756
13757 as_me=`$as_basename -- "$0" ||
13758 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13759 X"$0" : 'X\(//\)$' \| \
13760 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13761 $as_echo X/"$0" |
13762 sed '/^.*\/\([^/][^/]*\)\/*$/{
13763 s//\1/
13764 q
13765 }
13766 /^X\/\(\/\/\)$/{
13767 s//\1/
13768 q
13769 }
13770 /^X\/\(\/\).*/{
13771 s//\1/
13772 q
13773 }
13774 s/.*/./; q'`
13775
13776 # Avoid depending upon Character Ranges.
13777 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13778 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13779 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13780 as_cr_digits='0123456789'
13781 as_cr_alnum=$as_cr_Letters$as_cr_digits
13782
13783 ECHO_C= ECHO_N= ECHO_T=
13784 case `echo -n x` in #(((((
13785 -n*)
13786 case `echo 'xy\c'` in
13787 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13788 xy) ECHO_C='\c';;
13789 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13790 ECHO_T=' ';;
13791 esac;;
13792 *)
13793 ECHO_N='-n';;
13794 esac
13795
13796 rm -f conf$$ conf$$.exe conf$$.file
13797 if test -d conf$$.dir; then
13798 rm -f conf$$.dir/conf$$.file
13799 else
13800 rm -f conf$$.dir
13801 mkdir conf$$.dir 2>/dev/null
13802 fi
13803 if (echo >conf$$.file) 2>/dev/null; then
13804 if ln -s conf$$.file conf$$ 2>/dev/null; then
13805 as_ln_s='ln -s'
13806 # ... but there are two gotchas:
13807 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13808 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13809 # In both cases, we have to default to `cp -p'.
13810 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13811 as_ln_s='cp -p'
13812 elif ln conf$$.file conf$$ 2>/dev/null; then
13813 as_ln_s=ln
13814 else
13815 as_ln_s='cp -p'
13816 fi
13817 else
13818 as_ln_s='cp -p'
13819 fi
13820 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13821 rmdir conf$$.dir 2>/dev/null
13822
13823
13824 # as_fn_mkdir_p
13825 # -------------
13826 # Create "$as_dir" as a directory, including parents if necessary.
13827 as_fn_mkdir_p ()
13828 {
13829
13830 case $as_dir in #(
13831 -*) as_dir=./$as_dir;;
13832 esac
13833 test -d "$as_dir" || eval $as_mkdir_p || {
13834 as_dirs=
13835 while :; do
13836 case $as_dir in #(
13837 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13838 *) as_qdir=$as_dir;;
13839 esac
13840 as_dirs="'$as_qdir' $as_dirs"
13841 as_dir=`$as_dirname -- "$as_dir" ||
13842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13843 X"$as_dir" : 'X\(//\)[^/]' \| \
13844 X"$as_dir" : 'X\(//\)$' \| \
13845 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13846 $as_echo X"$as_dir" |
13847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13848 s//\1/
13849 q
13850 }
13851 /^X\(\/\/\)[^/].*/{
13852 s//\1/
13853 q
13854 }
13855 /^X\(\/\/\)$/{
13856 s//\1/
13857 q
13858 }
13859 /^X\(\/\).*/{
13860 s//\1/
13861 q
13862 }
13863 s/.*/./; q'`
13864 test -d "$as_dir" && break
13865 done
13866 test -z "$as_dirs" || eval "mkdir $as_dirs"
13867 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13868
13869
13870 } # as_fn_mkdir_p
13871 if mkdir -p . 2>/dev/null; then
13872 as_mkdir_p='mkdir -p "$as_dir"'
13873 else
13874 test -d ./-p && rmdir ./-p
13875 as_mkdir_p=false
13876 fi
13877
13878 if test -x / >/dev/null 2>&1; then
13879 as_test_x='test -x'
13880 else
13881 if ls -dL / >/dev/null 2>&1; then
13882 as_ls_L_option=L
13883 else
13884 as_ls_L_option=
13885 fi
13886 as_test_x='
13887 eval sh -c '\''
13888 if test -d "$1"; then
13889 test -d "$1/.";
13890 else
13891 case $1 in #(
13892 -*)set "./$1";;
13893 esac;
13894 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13895 ???[sx]*):;;*)false;;esac;fi
13896 '\'' sh
13897 '
13898 fi
13899 as_executable_p=$as_test_x
13900
13901 # Sed expression to map a string onto a valid CPP name.
13902 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13903
13904 # Sed expression to map a string onto a valid variable name.
13905 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13906
13907
13908 exec 6>&1
13909 ## ----------------------------------- ##
13910 ## Main body of $CONFIG_STATUS script. ##
13911 ## ----------------------------------- ##
13912 _ASEOF
13913 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13914
13915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13916 # Save the log message, to keep $0 and so on meaningful, and to
13917 # report actual input values of CONFIG_FILES etc. instead of their
13918 # values after options handling.
13919 ac_log="
13920 This file was extended by emacs $as_me 23.2.50, which was
13921 generated by GNU Autoconf 2.67. Invocation command line was
13922
13923 CONFIG_FILES = $CONFIG_FILES
13924 CONFIG_HEADERS = $CONFIG_HEADERS
13925 CONFIG_LINKS = $CONFIG_LINKS
13926 CONFIG_COMMANDS = $CONFIG_COMMANDS
13927 $ $0 $@
13928
13929 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13930 "
13931
13932 _ACEOF
13933
13934 case $ac_config_files in *"
13935 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13936 esac
13937
13938 case $ac_config_headers in *"
13939 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13940 esac
13941
13942
13943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13944 # Files that config.status was made for.
13945 config_files="$ac_config_files"
13946 config_headers="$ac_config_headers"
13947 config_commands="$ac_config_commands"
13948
13949 _ACEOF
13950
13951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13952 ac_cs_usage="\
13953 \`$as_me' instantiates files and other configuration actions
13954 from templates according to the current configuration. Unless the files
13955 and actions are specified as TAGs, all are instantiated by default.
13956
13957 Usage: $0 [OPTION]... [TAG]...
13958
13959 -h, --help print this help, then exit
13960 -V, --version print version number and configuration settings, then exit
13961 --config print configuration, then exit
13962 -q, --quiet, --silent
13963 do not print progress messages
13964 -d, --debug don't remove temporary files
13965 --recheck update $as_me by reconfiguring in the same conditions
13966 --file=FILE[:TEMPLATE]
13967 instantiate the configuration file FILE
13968 --header=FILE[:TEMPLATE]
13969 instantiate the configuration header FILE
13970
13971 Configuration files:
13972 $config_files
13973
13974 Configuration headers:
13975 $config_headers
13976
13977 Configuration commands:
13978 $config_commands
13979
13980 Report bugs to the package provider."
13981
13982 _ACEOF
13983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13984 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13985 ac_cs_version="\\
13986 emacs config.status 23.2.50
13987 configured by $0, generated by GNU Autoconf 2.67,
13988 with options \\"\$ac_cs_config\\"
13989
13990 Copyright (C) 2010 Free Software Foundation, Inc.
13991 This config.status script is free software; the Free Software Foundation
13992 gives unlimited permission to copy, distribute and modify it."
13993
13994 ac_pwd='$ac_pwd'
13995 srcdir='$srcdir'
13996 INSTALL='$INSTALL'
13997 test -n "\$AWK" || AWK=awk
13998 _ACEOF
13999
14000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14001 # The default lists apply if the user does not specify any file.
14002 ac_need_defaults=:
14003 while test $# != 0
14004 do
14005 case $1 in
14006 --*=?*)
14007 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14008 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14009 ac_shift=:
14010 ;;
14011 --*=)
14012 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14013 ac_optarg=
14014 ac_shift=:
14015 ;;
14016 *)
14017 ac_option=$1
14018 ac_optarg=$2
14019 ac_shift=shift
14020 ;;
14021 esac
14022
14023 case $ac_option in
14024 # Handling of the options.
14025 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14026 ac_cs_recheck=: ;;
14027 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14028 $as_echo "$ac_cs_version"; exit ;;
14029 --config | --confi | --conf | --con | --co | --c )
14030 $as_echo "$ac_cs_config"; exit ;;
14031 --debug | --debu | --deb | --de | --d | -d )
14032 debug=: ;;
14033 --file | --fil | --fi | --f )
14034 $ac_shift
14035 case $ac_optarg in
14036 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14037 '') as_fn_error $? "missing file argument" ;;
14038 esac
14039 as_fn_append CONFIG_FILES " '$ac_optarg'"
14040 ac_need_defaults=false;;
14041 --header | --heade | --head | --hea )
14042 $ac_shift
14043 case $ac_optarg in
14044 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14045 esac
14046 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14047 ac_need_defaults=false;;
14048 --he | --h)
14049 # Conflict between --help and --header
14050 as_fn_error $? "ambiguous option: \`$1'
14051 Try \`$0 --help' for more information.";;
14052 --help | --hel | -h )
14053 $as_echo "$ac_cs_usage"; exit ;;
14054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14055 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14056 ac_cs_silent=: ;;
14057
14058 # This is an error.
14059 -*) as_fn_error $? "unrecognized option: \`$1'
14060 Try \`$0 --help' for more information." ;;
14061
14062 *) as_fn_append ac_config_targets " $1"
14063 ac_need_defaults=false ;;
14064
14065 esac
14066 shift
14067 done
14068
14069 ac_configure_extra_args=
14070
14071 if $ac_cs_silent; then
14072 exec 6>/dev/null
14073 ac_configure_extra_args="$ac_configure_extra_args --silent"
14074 fi
14075
14076 _ACEOF
14077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14078 if \$ac_cs_recheck; then
14079 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14080 shift
14081 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14082 CONFIG_SHELL='$SHELL'
14083 export CONFIG_SHELL
14084 exec "\$@"
14085 fi
14086
14087 _ACEOF
14088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14089 exec 5>>config.log
14090 {
14091 echo
14092 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14093 ## Running $as_me. ##
14094 _ASBOX
14095 $as_echo "$ac_log"
14096 } >&5
14097
14098 _ACEOF
14099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14100 #
14101 # INIT-COMMANDS
14102 #
14103 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
14104
14105 _ACEOF
14106
14107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14108
14109 # Handling of arguments.
14110 for ac_config_target in $ac_config_targets
14111 do
14112 case $ac_config_target in
14113 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
14114 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14115 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
14116 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
14117 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
14118 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
14119 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
14120 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
14121 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
14122 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
14123 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
14124 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
14125 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14126
14127 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14128 esac
14129 done
14130
14131
14132 # If the user did not use the arguments to specify the items to instantiate,
14133 # then the envvar interface is used. Set only those that are not.
14134 # We use the long form for the default assignment because of an extremely
14135 # bizarre bug on SunOS 4.1.3.
14136 if $ac_need_defaults; then
14137 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14138 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14139 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14140 fi
14141
14142 # Have a temporary directory for convenience. Make it in the build tree
14143 # simply because there is no reason against having it here, and in addition,
14144 # creating and moving files from /tmp can sometimes cause problems.
14145 # Hook for its removal unless debugging.
14146 # Note that there is a small window in which the directory will not be cleaned:
14147 # after its creation but before its name has been assigned to `$tmp'.
14148 $debug ||
14149 {
14150 tmp=
14151 trap 'exit_status=$?
14152 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14153 ' 0
14154 trap 'as_fn_exit 1' 1 2 13 15
14155 }
14156 # Create a (secure) tmp directory for tmp files.
14157
14158 {
14159 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14160 test -n "$tmp" && test -d "$tmp"
14161 } ||
14162 {
14163 tmp=./conf$$-$RANDOM
14164 (umask 077 && mkdir "$tmp")
14165 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14166
14167 # Set up the scripts for CONFIG_FILES section.
14168 # No need to generate them if there are no CONFIG_FILES.
14169 # This happens for instance with `./config.status config.h'.
14170 if test -n "$CONFIG_FILES"; then
14171
14172
14173 ac_cr=`echo X | tr X '\015'`
14174 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14175 # But we know of no other shell where ac_cr would be empty at this
14176 # point, so we can use a bashism as a fallback.
14177 if test "x$ac_cr" = x; then
14178 eval ac_cr=\$\'\\r\'
14179 fi
14180 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14181 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14182 ac_cs_awk_cr='\\r'
14183 else
14184 ac_cs_awk_cr=$ac_cr
14185 fi
14186
14187 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14188 _ACEOF
14189
14190
14191 {
14192 echo "cat >conf$$subs.awk <<_ACEOF" &&
14193 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14194 echo "_ACEOF"
14195 } >conf$$subs.sh ||
14196 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14197 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14198 ac_delim='%!_!# '
14199 for ac_last_try in false false false false false :; do
14200 . ./conf$$subs.sh ||
14201 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14202
14203 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14204 if test $ac_delim_n = $ac_delim_num; then
14205 break
14206 elif $ac_last_try; then
14207 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14208 else
14209 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14210 fi
14211 done
14212 rm -f conf$$subs.sh
14213
14214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14215 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14216 _ACEOF
14217 sed -n '
14218 h
14219 s/^/S["/; s/!.*/"]=/
14220 p
14221 g
14222 s/^[^!]*!//
14223 :repl
14224 t repl
14225 s/'"$ac_delim"'$//
14226 t delim
14227 :nl
14228 h
14229 s/\(.\{148\}\)..*/\1/
14230 t more1
14231 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14232 p
14233 n
14234 b repl
14235 :more1
14236 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14237 p
14238 g
14239 s/.\{148\}//
14240 t nl
14241 :delim
14242 h
14243 s/\(.\{148\}\)..*/\1/
14244 t more2
14245 s/["\\]/\\&/g; s/^/"/; s/$/"/
14246 p
14247 b
14248 :more2
14249 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14250 p
14251 g
14252 s/.\{148\}//
14253 t delim
14254 ' <conf$$subs.awk | sed '
14255 /^[^""]/{
14256 N
14257 s/\n//
14258 }
14259 ' >>$CONFIG_STATUS || ac_write_fail=1
14260 rm -f conf$$subs.awk
14261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14262 _ACAWK
14263 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14264 for (key in S) S_is_set[key] = 1
14265 FS = "\a"
14266
14267 }
14268 {
14269 line = $ 0
14270 nfields = split(line, field, "@")
14271 substed = 0
14272 len = length(field[1])
14273 for (i = 2; i < nfields; i++) {
14274 key = field[i]
14275 keylen = length(key)
14276 if (S_is_set[key]) {
14277 value = S[key]
14278 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14279 len += length(value) + length(field[++i])
14280 substed = 1
14281 } else
14282 len += 1 + keylen
14283 }
14284
14285 print line
14286 }
14287
14288 _ACAWK
14289 _ACEOF
14290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14291 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14292 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14293 else
14294 cat
14295 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14296 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14297 _ACEOF
14298
14299 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14300 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14301 # trailing colons and then remove the whole line if VPATH becomes empty
14302 # (actually we leave an empty line to preserve line numbers).
14303 if test "x$srcdir" = x.; then
14304 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14305 h
14306 s///
14307 s/^/:/
14308 s/[ ]*$/:/
14309 s/:\$(srcdir):/:/g
14310 s/:\${srcdir}:/:/g
14311 s/:@srcdir@:/:/g
14312 s/^:*//
14313 s/:*$//
14314 x
14315 s/\(=[ ]*\).*/\1/
14316 G
14317 s/\n//
14318 s/^[^=]*=[ ]*$//
14319 }'
14320 fi
14321
14322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14323 fi # test -n "$CONFIG_FILES"
14324
14325 # Set up the scripts for CONFIG_HEADERS section.
14326 # No need to generate them if there are no CONFIG_HEADERS.
14327 # This happens for instance with `./config.status Makefile'.
14328 if test -n "$CONFIG_HEADERS"; then
14329 cat >"$tmp/defines.awk" <<\_ACAWK ||
14330 BEGIN {
14331 _ACEOF
14332
14333 # Transform confdefs.h into an awk script `defines.awk', embedded as
14334 # here-document in config.status, that substitutes the proper values into
14335 # config.h.in to produce config.h.
14336
14337 # Create a delimiter string that does not exist in confdefs.h, to ease
14338 # handling of long lines.
14339 ac_delim='%!_!# '
14340 for ac_last_try in false false :; do
14341 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14342 if test -z "$ac_t"; then
14343 break
14344 elif $ac_last_try; then
14345 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14346 else
14347 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14348 fi
14349 done
14350
14351 # For the awk script, D is an array of macro values keyed by name,
14352 # likewise P contains macro parameters if any. Preserve backslash
14353 # newline sequences.
14354
14355 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14356 sed -n '
14357 s/.\{148\}/&'"$ac_delim"'/g
14358 t rset
14359 :rset
14360 s/^[ ]*#[ ]*define[ ][ ]*/ /
14361 t def
14362 d
14363 :def
14364 s/\\$//
14365 t bsnl
14366 s/["\\]/\\&/g
14367 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14368 D["\1"]=" \3"/p
14369 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14370 d
14371 :bsnl
14372 s/["\\]/\\&/g
14373 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14374 D["\1"]=" \3\\\\\\n"\\/p
14375 t cont
14376 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14377 t cont
14378 d
14379 :cont
14380 n
14381 s/.\{148\}/&'"$ac_delim"'/g
14382 t clear
14383 :clear
14384 s/\\$//
14385 t bsnlc
14386 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14387 d
14388 :bsnlc
14389 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14390 b cont
14391 ' <confdefs.h | sed '
14392 s/'"$ac_delim"'/"\\\
14393 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14394
14395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14396 for (key in D) D_is_set[key] = 1
14397 FS = "\a"
14398 }
14399 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14400 line = \$ 0
14401 split(line, arg, " ")
14402 if (arg[1] == "#") {
14403 defundef = arg[2]
14404 mac1 = arg[3]
14405 } else {
14406 defundef = substr(arg[1], 2)
14407 mac1 = arg[2]
14408 }
14409 split(mac1, mac2, "(") #)
14410 macro = mac2[1]
14411 prefix = substr(line, 1, index(line, defundef) - 1)
14412 if (D_is_set[macro]) {
14413 # Preserve the white space surrounding the "#".
14414 print prefix "define", macro P[macro] D[macro]
14415 next
14416 } else {
14417 # Replace #undef with comments. This is necessary, for example,
14418 # in the case of _POSIX_SOURCE, which is predefined and required
14419 # on some systems where configure will not decide to define it.
14420 if (defundef == "undef") {
14421 print "/*", prefix defundef, macro, "*/"
14422 next
14423 }
14424 }
14425 }
14426 { print }
14427 _ACAWK
14428 _ACEOF
14429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14430 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14431 fi # test -n "$CONFIG_HEADERS"
14432
14433
14434 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14435 shift
14436 for ac_tag
14437 do
14438 case $ac_tag in
14439 :[FHLC]) ac_mode=$ac_tag; continue;;
14440 esac
14441 case $ac_mode$ac_tag in
14442 :[FHL]*:*);;
14443 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14444 :[FH]-) ac_tag=-:-;;
14445 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14446 esac
14447 ac_save_IFS=$IFS
14448 IFS=:
14449 set x $ac_tag
14450 IFS=$ac_save_IFS
14451 shift
14452 ac_file=$1
14453 shift
14454
14455 case $ac_mode in
14456 :L) ac_source=$1;;
14457 :[FH])
14458 ac_file_inputs=
14459 for ac_f
14460 do
14461 case $ac_f in
14462 -) ac_f="$tmp/stdin";;
14463 *) # Look for the file first in the build tree, then in the source tree
14464 # (if the path is not absolute). The absolute path cannot be DOS-style,
14465 # because $ac_f cannot contain `:'.
14466 test -f "$ac_f" ||
14467 case $ac_f in
14468 [\\/$]*) false;;
14469 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14470 esac ||
14471 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14472 esac
14473 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14474 as_fn_append ac_file_inputs " '$ac_f'"
14475 done
14476
14477 # Let's still pretend it is `configure' which instantiates (i.e., don't
14478 # use $as_me), people would be surprised to read:
14479 # /* config.h. Generated by config.status. */
14480 configure_input='Generated from '`
14481 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14482 `' by configure.'
14483 if test x"$ac_file" != x-; then
14484 configure_input="$ac_file. $configure_input"
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14486 $as_echo "$as_me: creating $ac_file" >&6;}
14487 fi
14488 # Neutralize special characters interpreted by sed in replacement strings.
14489 case $configure_input in #(
14490 *\&* | *\|* | *\\* )
14491 ac_sed_conf_input=`$as_echo "$configure_input" |
14492 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14493 *) ac_sed_conf_input=$configure_input;;
14494 esac
14495
14496 case $ac_tag in
14497 *:-:* | *:-) cat >"$tmp/stdin" \
14498 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14499 esac
14500 ;;
14501 esac
14502
14503 ac_dir=`$as_dirname -- "$ac_file" ||
14504 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14505 X"$ac_file" : 'X\(//\)[^/]' \| \
14506 X"$ac_file" : 'X\(//\)$' \| \
14507 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14508 $as_echo X"$ac_file" |
14509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14510 s//\1/
14511 q
14512 }
14513 /^X\(\/\/\)[^/].*/{
14514 s//\1/
14515 q
14516 }
14517 /^X\(\/\/\)$/{
14518 s//\1/
14519 q
14520 }
14521 /^X\(\/\).*/{
14522 s//\1/
14523 q
14524 }
14525 s/.*/./; q'`
14526 as_dir="$ac_dir"; as_fn_mkdir_p
14527 ac_builddir=.
14528
14529 case "$ac_dir" in
14530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14531 *)
14532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14533 # A ".." for each directory in $ac_dir_suffix.
14534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14535 case $ac_top_builddir_sub in
14536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14538 esac ;;
14539 esac
14540 ac_abs_top_builddir=$ac_pwd
14541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14542 # for backward compatibility:
14543 ac_top_builddir=$ac_top_build_prefix
14544
14545 case $srcdir in
14546 .) # We are building in place.
14547 ac_srcdir=.
14548 ac_top_srcdir=$ac_top_builddir_sub
14549 ac_abs_top_srcdir=$ac_pwd ;;
14550 [\\/]* | ?:[\\/]* ) # Absolute name.
14551 ac_srcdir=$srcdir$ac_dir_suffix;
14552 ac_top_srcdir=$srcdir
14553 ac_abs_top_srcdir=$srcdir ;;
14554 *) # Relative name.
14555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14556 ac_top_srcdir=$ac_top_build_prefix$srcdir
14557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14558 esac
14559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14560
14561
14562 case $ac_mode in
14563 :F)
14564 #
14565 # CONFIG_FILE
14566 #
14567
14568 case $INSTALL in
14569 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14570 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14571 esac
14572 _ACEOF
14573
14574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14575 # If the template does not know about datarootdir, expand it.
14576 # FIXME: This hack should be removed a few years after 2.60.
14577 ac_datarootdir_hack=; ac_datarootdir_seen=
14578 ac_sed_dataroot='
14579 /datarootdir/ {
14580 p
14581 q
14582 }
14583 /@datadir@/p
14584 /@docdir@/p
14585 /@infodir@/p
14586 /@localedir@/p
14587 /@mandir@/p'
14588 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14589 *datarootdir*) ac_datarootdir_seen=yes;;
14590 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14592 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14593 _ACEOF
14594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14595 ac_datarootdir_hack='
14596 s&@datadir@&$datadir&g
14597 s&@docdir@&$docdir&g
14598 s&@infodir@&$infodir&g
14599 s&@localedir@&$localedir&g
14600 s&@mandir@&$mandir&g
14601 s&\\\${datarootdir}&$datarootdir&g' ;;
14602 esac
14603 _ACEOF
14604
14605 # Neutralize VPATH when `$srcdir' = `.'.
14606 # Shell code in configure.ac might set extrasub.
14607 # FIXME: do we really want to maintain this feature?
14608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14609 ac_sed_extra="$ac_vpsub
14610 $extrasub
14611 _ACEOF
14612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14613 :t
14614 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14615 s|@configure_input@|$ac_sed_conf_input|;t t
14616 s&@top_builddir@&$ac_top_builddir_sub&;t t
14617 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14618 s&@srcdir@&$ac_srcdir&;t t
14619 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14620 s&@top_srcdir@&$ac_top_srcdir&;t t
14621 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14622 s&@builddir@&$ac_builddir&;t t
14623 s&@abs_builddir@&$ac_abs_builddir&;t t
14624 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14625 s&@INSTALL@&$ac_INSTALL&;t t
14626 $ac_datarootdir_hack
14627 "
14628 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14629 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14630
14631 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14632 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14633 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14635 which seems to be undefined. Please make sure it is defined" >&5
14636 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14637 which seems to be undefined. Please make sure it is defined" >&2;}
14638
14639 rm -f "$tmp/stdin"
14640 case $ac_file in
14641 -) cat "$tmp/out" && rm -f "$tmp/out";;
14642 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14643 esac \
14644 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14645 ;;
14646 :H)
14647 #
14648 # CONFIG_HEADER
14649 #
14650 if test x"$ac_file" != x-; then
14651 {
14652 $as_echo "/* $configure_input */" \
14653 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14654 } >"$tmp/config.h" \
14655 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14656 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14658 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14659 else
14660 rm -f "$ac_file"
14661 mv "$tmp/config.h" "$ac_file" \
14662 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14663 fi
14664 else
14665 $as_echo "/* $configure_input */" \
14666 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14667 || as_fn_error $? "could not create -" "$LINENO" 5
14668 fi
14669 ;;
14670
14671 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14672 $as_echo "$as_me: executing $ac_file commands" >&6;}
14673 ;;
14674 esac
14675
14676
14677 case $ac_file$ac_mode in
14678 "default":C)
14679
14680 ### Make the necessary directories, if they don't exist.
14681 for dir in etc lisp ; do
14682 test -d ${dir} || mkdir ${dir}
14683 done
14684
14685 # Build src/Makefile from ${srcdir}/src/Makefile.c
14686 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
14687 # This must be done after src/config.h is built, since we rely on that file.
14688
14689 echo creating src/epaths.h
14690 ${MAKE-make} epaths-force
14691
14692 # As of 2000-11-19, newest development versions of GNU cpp preprocess
14693 # `..' to `. .' unless invoked with -traditional
14694
14695 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
14696 CPPFLAGS="$CPPFLAGS -traditional"
14697 fi
14698
14699 echo creating lib-src/Makefile
14700 ( cd lib-src
14701 rm -f junk.c junk1.c junk2.c
14702 sed -e '/start of cpp stuff/q' \
14703 < Makefile.c > junk1.c
14704 sed -e '1,/start of cpp stuff/d'\
14705 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14706 < Makefile.c > junk.c
14707 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
14708 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14709 cat junk1.c junk2.c > Makefile.new
14710 rm -f junk.c junk1.c junk2.c
14711 chmod 444 Makefile.new
14712 mv -f Makefile.new Makefile
14713 )
14714
14715 echo creating src/Makefile
14716 ( cd src
14717 rm -f junk.c junk1.c junk2.c
14718 sed -e '/start of cpp stuff/q' \
14719 < Makefile.c > junk1.c
14720 sed -e '1,/start of cpp stuff/d'\
14721 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14722 < Makefile.c > junk.c
14723 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
14724 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14725 cat junk1.c junk2.c > Makefile.new
14726 rm -f junk.c junk1.c junk2.c
14727 chmod 444 Makefile.new
14728 mv -f Makefile.new Makefile
14729 )
14730
14731 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
14732 echo creating src/.gdbinit
14733 echo source $srcdir/src/.gdbinit > src/.gdbinit
14734 fi
14735
14736 ;;
14737
14738 esac
14739 done # for ac_tag
14740
14741
14742 as_fn_exit 0
14743 _ACEOF
14744 ac_clean_files=$ac_clean_files_save
14745
14746 test $ac_write_fail = 0 ||
14747 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14748
14749
14750 # configure is writing to config.log, and then calls config.status.
14751 # config.status does its own redirection, appending to config.log.
14752 # Unfortunately, on DOS this fails, as config.log is still kept open
14753 # by configure, so config.status won't be able to write to it; its
14754 # output is simply discarded. So we exec the FD to /dev/null,
14755 # effectively closing config.log, so it can be properly (re)opened and
14756 # appended to by config.status. When coming back to configure, we
14757 # need to make the FD available again.
14758 if test "$no_create" != yes; then
14759 ac_cs_success=:
14760 ac_config_status_args=
14761 test "$silent" = yes &&
14762 ac_config_status_args="$ac_config_status_args --quiet"
14763 exec 5>/dev/null
14764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14765 exec 5>>config.log
14766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14767 # would make configure fail if this is the last instruction.
14768 $ac_cs_success || as_fn_exit 1
14769 fi
14770 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14772 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14773 fi
14774
14775