]> code.delx.au - gnu-emacs/blob - configure
Regenerate configure.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_config_libobj_dir=src
595 ac_header_list=
596 ac_func_list=
597 ac_subst_vars='LTLIBOBJS
598 XOBJ
599 XMENU_OBJ
600 OTHER_FILES
601 LIB_SRC_EXTRA_INSTALLABLES
602 GNU_OBJC_CFLAGS
603 GNUSTEP_SYSTEM_LIBRARIES
604 GNUSTEP_SYSTEM_HEADERS
605 GNUSTEP_MAKEFILES
606 ns_appsrc
607 ns_appresdir
608 ns_appbindir
609 ns_appdir
610 opsysfile
611 machfile
612 X_TOOLKIT_TYPE
613 C_SWITCH_X_SITE
614 LD_SWITCH_X_SITE_AUX
615 LD_SWITCH_X_SITE
616 c_switch_machine
617 c_switch_system
618 gameuser
619 gamedir
620 bitmapdir
621 archlibdir
622 etcdir
623 x_default_search_path
624 lisppath
625 locallisppath
626 lispdir
627 srcdir
628 canonical
629 configuration
630 version
631 KRB4LIB
632 DESLIB
633 KRB5LIB
634 CRYPTOLIB
635 COM_ERRLIB
636 LIBRESOLV
637 LIBHESIOD
638 GETOPTOBJS
639 GETOPT_H
640 GETLOADAVG_LIBS
641 KMEM_GROUP
642 NEED_SETGID
643 LIBOBJS
644 LIBS_MAIL
645 liblockfile
646 ALLOCA
647 LIBXSM
648 LIBGPM
649 LIBGIF
650 LIBTIFF
651 LIBPNG
652 LIBJPEG
653 LIBXPM
654 FREETYPE_LIBS
655 FREETYPE_CFLAGS
656 M17N_FLT_LIBS
657 M17N_FLT_CFLAGS
658 LIBOTF_LIBS
659 LIBOTF_CFLAGS
660 XFT_LIBS
661 XFT_CFLAGS
662 FONTCONFIG_LIBS
663 FONTCONFIG_CFLAGS
664 LIBSELINUX_LIBS
665 GCONF_LIBS
666 GCONF_CFLAGS
667 DBUS_OBJ
668 DBUS_LIBS
669 DBUS_CFLAGS
670 GTK_OBJ
671 GTK_LIBS
672 GTK_CFLAGS
673 RSVG_LIBS
674 RSVG_CFLAGS
675 HAVE_XSERVER
676 XMKMF
677 SET_MAKE
678 CFLAGS_SOUND
679 ALSA_LIBS
680 ALSA_CFLAGS
681 PKG_CONFIG
682 LIBSOUND
683 MAKEINFO
684 GZIP_PROG
685 INSTALL_INFO
686 RANLIB
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 LN_S
691 EGREP
692 GREP
693 CPP
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
700 CC
701 host_os
702 host_vendor
703 host_cpu
704 host
705 build_os
706 build_vendor
707 build_cpu
708 build
709 MAINT
710 target_alias
711 host_alias
712 build_alias
713 LIBS
714 ECHO_T
715 ECHO_N
716 ECHO_C
717 DEFS
718 mandir
719 localedir
720 libdir
721 psdir
722 pdfdir
723 dvidir
724 htmldir
725 infodir
726 docdir
727 oldincludedir
728 includedir
729 localstatedir
730 sharedstatedir
731 sysconfdir
732 datadir
733 datarootdir
734 libexecdir
735 sbindir
736 bindir
737 program_transform_name
738 prefix
739 exec_prefix
740 PACKAGE_URL
741 PACKAGE_BUGREPORT
742 PACKAGE_STRING
743 PACKAGE_VERSION
744 PACKAGE_TARNAME
745 PACKAGE_NAME
746 PATH_SEPARATOR
747 SHELL'
748 ac_subst_files=''
749 ac_user_opts='
750 enable_option_checking
751 with_pop
752 with_kerberos
753 with_kerberos5
754 with_hesiod
755 with_mmdf
756 with_mail_unlink
757 with_mailhost
758 with_sound
759 with_sync_input
760 with_x_toolkit
761 with_xpm
762 with_jpeg
763 with_tiff
764 with_gif
765 with_png
766 with_rsvg
767 with_xft
768 with_libotf
769 with_m17n_flt
770 with_toolkit_scroll_bars
771 with_xaw3d
772 with_xim
773 with_ns
774 with_gpm
775 with_dbus
776 with_gconf
777 with_selinux
778 with_makeinfo
779 with_gtk
780 with_gcc
781 with_pkg_config_prog
782 with_gnustep_conf
783 enable_ns_self_contained
784 enable_asserts
785 enable_maintainer_mode
786 enable_locallisppath
787 enable_checking
788 enable_profiling
789 enable_autodepend
790 enable_largefile
791 with_x
792 '
793 ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 LIBS
800 CPPFLAGS
801 CPP
802 XMKMF'
803
804
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 ac_unrecognized_opts=
809 ac_unrecognized_sep=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
812 cache_file=/dev/null
813 exec_prefix=NONE
814 no_create=
815 no_recursion=
816 prefix=NONE
817 program_prefix=NONE
818 program_suffix=NONE
819 program_transform_name=s,x,x,
820 silent=
821 site=
822 srcdir=
823 verbose=
824 x_includes=NONE
825 x_libraries=NONE
826
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
845 htmldir='${docdir}'
846 dvidir='${docdir}'
847 pdfdir='${docdir}'
848 psdir='${docdir}'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
852
853 ac_prev=
854 ac_dashdash=
855 for ac_option
856 do
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
860 ac_prev=
861 continue
862 fi
863
864 case $ac_option in
865 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 *) ac_optarg=yes ;;
867 esac
868
869 # Accept the important Cygnus configure options, so we can diagnose typos.
870
871 case $ac_dashdash$ac_option in
872 --)
873 ac_dashdash=yes ;;
874
875 -bindir | --bindir | --bindi | --bind | --bin | --bi)
876 ac_prev=bindir ;;
877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878 bindir=$ac_optarg ;;
879
880 -build | --build | --buil | --bui | --bu)
881 ac_prev=build_alias ;;
882 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883 build_alias=$ac_optarg ;;
884
885 -cache-file | --cache-file | --cache-fil | --cache-fi \
886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887 ac_prev=cache_file ;;
888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890 cache_file=$ac_optarg ;;
891
892 --config-cache | -C)
893 cache_file=config.cache ;;
894
895 -datadir | --datadir | --datadi | --datad)
896 ac_prev=datadir ;;
897 -datadir=* | --datadir=* | --datadi=* | --datad=*)
898 datadir=$ac_optarg ;;
899
900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901 | --dataroo | --dataro | --datar)
902 ac_prev=datarootdir ;;
903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905 datarootdir=$ac_optarg ;;
906
907 -disable-* | --disable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error "invalid feature name: $ac_useropt"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
915 *"
916 "enable_$ac_useropt"
917 "*) ;;
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
920 esac
921 eval enable_$ac_useropt=no ;;
922
923 -docdir | --docdir | --docdi | --doc | --do)
924 ac_prev=docdir ;;
925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926 docdir=$ac_optarg ;;
927
928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929 ac_prev=dvidir ;;
930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931 dvidir=$ac_optarg ;;
932
933 -enable-* | --enable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
941 *"
942 "enable_$ac_useropt"
943 "*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=\$ac_optarg ;;
948
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
957
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
961
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
968
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
973
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
979
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
986
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
991
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
996
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1003
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1008
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1015
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1020
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1024
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1028
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1032
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1041
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1046
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1053
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1060
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1077
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1082
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1087
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1091
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1097
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1108
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1113
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1118
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1125
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1130
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1133
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1136
1137 -with-* | --with-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=\$ac_optarg ;;
1152
1153 -without-* | --without-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162 "with_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=no ;;
1168
1169 --x)
1170 # Obsolete; use --with-x.
1171 with_x=yes ;;
1172
1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174 | --x-incl | --x-inc | --x-in | --x-i)
1175 ac_prev=x_includes ;;
1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178 x_includes=$ac_optarg ;;
1179
1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182 ac_prev=x_libraries ;;
1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185 x_libraries=$ac_optarg ;;
1186
1187 -*) as_fn_error "unrecognized option: \`$ac_option'
1188 Try \`$0 --help' for more information."
1189 ;;
1190
1191 *=*)
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 case $ac_envvar in #(
1195 '' | [0-9]* | *[!_$as_cr_alnum]* )
1196 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1197 esac
1198 eval $ac_envvar=\$ac_optarg
1199 export $ac_envvar ;;
1200
1201 *)
1202 # FIXME: should be removed in autoconf 3.0.
1203 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1207 ;;
1208
1209 esac
1210 done
1211
1212 if test -n "$ac_prev"; then
1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214 as_fn_error "missing argument to $ac_option"
1215 fi
1216
1217 if test -n "$ac_unrecognized_opts"; then
1218 case $enable_option_checking in
1219 no) ;;
1220 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1221 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222 esac
1223 fi
1224
1225 # Check all directory arguments for consistency.
1226 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227 datadir sysconfdir sharedstatedir localstatedir includedir \
1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229 libdir localedir mandir
1230 do
1231 eval ac_val=\$$ac_var
1232 # Remove trailing slashes.
1233 case $ac_val in
1234 */ )
1235 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236 eval $ac_var=\$ac_val;;
1237 esac
1238 # Be sure to have absolute directory names.
1239 case $ac_val in
1240 [\\/$]* | ?:[\\/]* ) continue;;
1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242 esac
1243 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1244 done
1245
1246 # There might be people who depend on the old broken behavior: `$host'
1247 # used to hold the argument of --host etc.
1248 # FIXME: To remove some day.
1249 build=$build_alias
1250 host=$host_alias
1251 target=$target_alias
1252
1253 # FIXME: To remove some day.
1254 if test "x$host_alias" != x; then
1255 if test "x$build_alias" = x; then
1256 cross_compiling=maybe
1257 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1258 If a cross compiler is detected then cross compile mode will be used." >&2
1259 elif test "x$build_alias" != "x$host_alias"; then
1260 cross_compiling=yes
1261 fi
1262 fi
1263
1264 ac_tool_prefix=
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266
1267 test "$silent" = yes && exec 6>/dev/null
1268
1269
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273 as_fn_error "working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275 as_fn_error "pwd does not report name of working directory"
1276
1277
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 $as_echo X"$as_myself" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)[^/].*/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\).*/{
1301 s//\1/
1302 q
1303 }
1304 s/.*/./; q'`
1305 srcdir=$ac_confdir
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 srcdir=..
1308 fi
1309 else
1310 ac_srcdir_defaulted=no
1311 fi
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1315 fi
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 ac_abs_confdir=`(
1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1319 pwd)`
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1322 srcdir=.
1323 fi
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1327 case $srcdir in
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 esac
1330 for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335 done
1336
1337 #
1338 # Report the --help message.
1339 #
1340 if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1343 cat <<_ACEOF
1344 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1345
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1347
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE. See below for descriptions of some of the useful variables.
1350
1351 Defaults for the options are specified in brackets.
1352
1353 Configuration:
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
1358 -q, --quiet, --silent do not print \`checking...' messages
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1363
1364 Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1368 [PREFIX]
1369
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1374
1375 For better control, use the options below.
1376
1377 Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
1392 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1397 _ACEOF
1398
1399 cat <<\_ACEOF
1400
1401 Program names:
1402 --program-prefix=PREFIX prepend PREFIX to installed program names
1403 --program-suffix=SUFFIX append SUFFIX to installed program names
1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1405
1406 X features:
1407 --x-includes=DIR X include files are in DIR
1408 --x-libraries=DIR X library files are in DIR
1409
1410 System types:
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 _ACEOF
1414 fi
1415
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1419 esac
1420 cat <<\_ACEOF
1421
1422 Optional Features:
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --disable-ns-self-contained
1427 disable self contained build under NeXTstep
1428 --enable-asserts compile code with asserts enabled
1429 --enable-maintainer-mode
1430 enable make rules and dependencies not useful (and
1431 sometimes confusing) to the casual installer
1432 --enable-locallisppath=PATH
1433 directories Emacs should search for lisp files
1434 specific to this site
1435 --enable-checking[=LIST]
1436 enable expensive run-time checks. With LIST, enable
1437 only specific categories of checks. Categories are:
1438 all,yes,no. Flags are: stringbytes, stringoverrun,
1439 stringfreelist, xmallocoverrun, conslist
1440 --enable-profiling build emacs with profiling support. This might not
1441 work on all platforms
1442 --enable-autodepend automatically generate dependencies to .h-files.
1443 Requires GNU Make and Gcc. Enabled if GNU Make and
1444 Gcc is found
1445 --disable-largefile omit support for large files
1446
1447 Optional Packages:
1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1450 --without-pop don't support POP mail retrieval with movemail
1451 --with-kerberos support Kerberos-authenticated POP
1452 --with-kerberos5 support Kerberos version 5 authenticated POP
1453 --with-hesiod support Hesiod to get the POP server host
1454 --with-mmdf support MMDF mailboxes
1455 --with-mail-unlink unlink, rather than empty, mail spool after reading
1456 --with-mailhost=HOSTNAME
1457 string giving default POP mail host
1458 --without-sound don't compile with sound support
1459 --without-sync-input process async input synchronously
1460 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1461 athena, motif, no)
1462 --without-xpm don't compile with XPM image support
1463 --without-jpeg don't compile with JPEG image support
1464 --without-tiff don't compile with TIFF image support
1465 --without-gif don't compile with GIF image support
1466 --without-png don't compile with PNG image support
1467 --without-rsvg don't compile with SVG image support
1468 --without-xft don't use XFT for anti aliased fonts
1469 --without-libotf don't use libotf for OpenType font support
1470 --without-m17n-flt don't use m17n-flt for text shaping
1471 --without-toolkit-scroll-bars
1472 don't use Motif or Xaw3d scroll bars
1473 --without-xaw3d don't use Xaw3d
1474 --without-xim don't use X11 XIM
1475 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1476 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1477 console
1478 --without-dbus don't compile with D-Bus support
1479 --without-gconf don't compile with GConf support
1480 --without-selinux don't compile with SELinux support
1481 --without-makeinfo don't require makeinfo for building manuals
1482
1483 --with-pkg-config-prog=PATH
1484 path to pkg-config for finding GTK and librsvg
1485 --with-gnustep-conf=PATH
1486 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1487 or /etc/GNUstep/GNUstep.conf
1488 --with-x use the X Window System
1489
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1498 CPP C preprocessor
1499 XMKMF Path to xmkmf, Makefile generator for X Window System
1500
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1503
1504 Report bugs to the package provider.
1505 _ACEOF
1506 ac_status=$?
1507 fi
1508
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514 continue
1515 ac_builddir=.
1516
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *)
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1532
1533 case $srcdir in
1534 .) # We are building in place.
1535 ac_srcdir=.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1542 *) # Relative name.
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1557 else
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 fi || ac_status=$?
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1561 done
1562 fi
1563
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566 cat <<\_ACEOF
1567 emacs configure 24.0.50
1568 generated by GNU Autoconf 2.65
1569
1570 Copyright (C) 2009 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574 exit
1575 fi
1576
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1580
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613 fi
1614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1615 as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_compile
1618
1619 # ac_fn_c_try_link LINENO
1620 # -----------------------
1621 # Try to link conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_link ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext conftest$ac_exeext
1626 if { { ac_try="$ac_link"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_link") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1639 fi
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest$ac_exeext && {
1645 test "$cross_compiling" = yes ||
1646 $as_test_x conftest$ac_exeext
1647 }; then :
1648 ac_retval=0
1649 else
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1652
1653 ac_retval=1
1654 fi
1655 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1656 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1657 # interfere with the next link command; also delete a directory that is
1658 # left behind by Apple's compiler. We do this before executing the actions.
1659 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1661 as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_link
1664
1665 # ac_fn_c_try_cpp LINENO
1666 # ----------------------
1667 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1668 ac_fn_c_try_cpp ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_cpp conftest.$ac_ext"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } >/dev/null && {
1687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 }; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696 fi
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698 as_fn_set_status $ac_retval
1699
1700 } # ac_fn_c_try_cpp
1701
1702 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1703 # -------------------------------------------------------
1704 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1705 # the include files in INCLUDES and setting the cache variable VAR
1706 # accordingly.
1707 ac_fn_c_check_header_mongrel ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1714 $as_echo_n "(cached) " >&6
1715 fi
1716 eval ac_res=\$$3
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718 $as_echo "$ac_res" >&6; }
1719 else
1720 # Is the header compilable?
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1722 $as_echo_n "checking $2 usability... " >&6; }
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 $4
1726 #include <$2>
1727 _ACEOF
1728 if ac_fn_c_try_compile "$LINENO"; then :
1729 ac_header_compiler=yes
1730 else
1731 ac_header_compiler=no
1732 fi
1733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1735 $as_echo "$ac_header_compiler" >&6; }
1736
1737 # Is the header present?
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1739 $as_echo_n "checking $2 presence... " >&6; }
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1742 #include <$2>
1743 _ACEOF
1744 if ac_fn_c_try_cpp "$LINENO"; then :
1745 ac_header_preproc=yes
1746 else
1747 ac_header_preproc=no
1748 fi
1749 rm -f conftest.err conftest.$ac_ext
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1751 $as_echo "$ac_header_preproc" >&6; }
1752
1753 # So? What about this header?
1754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1755 yes:no: )
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1757 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1759 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1760 ;;
1761 no:yes:* )
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1763 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1765 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1767 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1769 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1771 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1772 ;;
1773 esac
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1778 else
1779 eval "$3=\$ac_header_compiler"
1780 fi
1781 eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1784 fi
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786
1787 } # ac_fn_c_check_header_mongrel
1788
1789 # ac_fn_c_try_run LINENO
1790 # ----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1792 # that executables *can* be run.
1793 ac_fn_c_try_run ()
1794 {
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 if { { ac_try="$ac_link"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>&5
1804 ac_status=$?
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1807 { { case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_try") 2>&5
1814 ac_status=$?
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; }; }; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: program exited with status $ac_status" >&5
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=$ac_status
1824 fi
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 as_fn_set_status $ac_retval
1828
1829 } # ac_fn_c_try_run
1830
1831 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1832 # -------------------------------------------------------
1833 # Tests whether HEADER exists and can be compiled using the include files in
1834 # INCLUDES, setting the cache variable VAR accordingly.
1835 ac_fn_c_check_header_compile ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1841 $as_echo_n "(cached) " >&6
1842 else
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 $4
1846 #include <$2>
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849 eval "$3=yes"
1850 else
1851 eval "$3=no"
1852 fi
1853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 fi
1855 eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859
1860 } # ac_fn_c_check_header_compile
1861
1862 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1863 # ----------------------------------------------
1864 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1865 ac_fn_c_check_header_preproc ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1871 $as_echo_n "(cached) " >&6
1872 else
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 #include <$2>
1876 _ACEOF
1877 if ac_fn_c_try_cpp "$LINENO"; then :
1878 eval "$3=yes"
1879 else
1880 eval "$3=no"
1881 fi
1882 rm -f conftest.err conftest.$ac_ext
1883 fi
1884 eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888
1889 } # ac_fn_c_check_header_preproc
1890
1891 # ac_fn_c_check_decl LINENO SYMBOL VAR
1892 # ------------------------------------
1893 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1894 ac_fn_c_check_decl ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1898 $as_echo_n "checking whether $2 is declared... " >&6; }
1899 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 $4
1905 int
1906 main ()
1907 {
1908 #ifndef $2
1909 (void) $2;
1910 #endif
1911
1912 ;
1913 return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 eval "$3=yes"
1918 else
1919 eval "$3=no"
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 fi
1923 eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1927
1928 } # ac_fn_c_check_decl
1929
1930 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1931 # ----------------------------------------------------
1932 # Tries to find if the field MEMBER exists in type AGGR, after including
1933 # INCLUDES, setting cache variable VAR accordingly.
1934 ac_fn_c_check_member ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1938 $as_echo_n "checking for $2.$3... " >&6; }
1939 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1940 $as_echo_n "(cached) " >&6
1941 else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 $5
1945 int
1946 main ()
1947 {
1948 static $2 ac_aggr;
1949 if (ac_aggr.$3)
1950 return 0;
1951 ;
1952 return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 eval "$4=yes"
1957 else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 $5
1961 int
1962 main ()
1963 {
1964 static $2 ac_aggr;
1965 if (sizeof ac_aggr.$3)
1966 return 0;
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$4=yes"
1973 else
1974 eval "$4=no"
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 fi
1980 eval ac_res=\$$4
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984
1985 } # ac_fn_c_check_member
1986
1987 # ac_fn_c_check_func LINENO FUNC VAR
1988 # ----------------------------------
1989 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1990 ac_fn_c_check_func ()
1991 {
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1996 $as_echo_n "(cached) " >&6
1997 else
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2002 #define $2 innocuous_$2
2003
2004 /* System header to define __stub macros and hopefully few prototypes,
2005 which can conflict with char $2 (); below.
2006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2007 <limits.h> exists even on freestanding compilers. */
2008
2009 #ifdef __STDC__
2010 # include <limits.h>
2011 #else
2012 # include <assert.h>
2013 #endif
2014
2015 #undef $2
2016
2017 /* Override any GCC internal prototype to avoid an error.
2018 Use char because int might match the return type of a GCC
2019 builtin and then its argument prototype would still apply. */
2020 #ifdef __cplusplus
2021 extern "C"
2022 #endif
2023 char $2 ();
2024 /* The GNU C library defines this for functions which it implements
2025 to always fail with ENOSYS. Some functions are actually named
2026 something starting with __ and the normal name is an alias. */
2027 #if defined __stub_$2 || defined __stub___$2
2028 choke me
2029 #endif
2030
2031 int
2032 main ()
2033 {
2034 return $2 ();
2035 ;
2036 return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_link "$LINENO"; then :
2040 eval "$3=yes"
2041 else
2042 eval "$3=no"
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext \
2045 conftest$ac_exeext conftest.$ac_ext
2046 fi
2047 eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051
2052 } # ac_fn_c_check_func
2053
2054 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2055 # -------------------------------------------
2056 # Tests whether TYPE exists after having included INCLUDES, setting cache
2057 # variable VAR accordingly.
2058 ac_fn_c_check_type ()
2059 {
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2064 $as_echo_n "(cached) " >&6
2065 else
2066 eval "$3=no"
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 $4
2070 int
2071 main ()
2072 {
2073 if (sizeof ($2))
2074 return 0;
2075 ;
2076 return 0;
2077 }
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2082 $4
2083 int
2084 main ()
2085 {
2086 if (sizeof (($2)))
2087 return 0;
2088 ;
2089 return 0;
2090 }
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093
2094 else
2095 eval "$3=yes"
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 fi
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2105
2106 } # ac_fn_c_check_type
2107 cat >config.log <<_ACEOF
2108 This file contains any messages produced by compilers while
2109 running configure, to aid debugging if configure makes a mistake.
2110
2111 It was created by emacs $as_me 24.0.50, which was
2112 generated by GNU Autoconf 2.65. Invocation command line was
2113
2114 $ $0 $@
2115
2116 _ACEOF
2117 exec 5>>config.log
2118 {
2119 cat <<_ASUNAME
2120 ## --------- ##
2121 ## Platform. ##
2122 ## --------- ##
2123
2124 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2125 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2126 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2127 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2128 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2129
2130 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2131 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2132
2133 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2134 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2135 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2136 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2137 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2138 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2139 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2140
2141 _ASUNAME
2142
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146 IFS=$as_save_IFS
2147 test -z "$as_dir" && as_dir=.
2148 $as_echo "PATH: $as_dir"
2149 done
2150 IFS=$as_save_IFS
2151
2152 } >&5
2153
2154 cat >&5 <<_ACEOF
2155
2156
2157 ## ----------- ##
2158 ## Core tests. ##
2159 ## ----------- ##
2160
2161 _ACEOF
2162
2163
2164 # Keep a trace of the command line.
2165 # Strip out --no-create and --no-recursion so they do not pile up.
2166 # Strip out --silent because we don't want to record it for future runs.
2167 # Also quote any args containing shell meta-characters.
2168 # Make two passes to allow for proper duplicate-argument suppression.
2169 ac_configure_args=
2170 ac_configure_args0=
2171 ac_configure_args1=
2172 ac_must_keep_next=false
2173 for ac_pass in 1 2
2174 do
2175 for ac_arg
2176 do
2177 case $ac_arg in
2178 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2180 | -silent | --silent | --silen | --sile | --sil)
2181 continue ;;
2182 *\'*)
2183 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2184 esac
2185 case $ac_pass in
2186 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2187 2)
2188 as_fn_append ac_configure_args1 " '$ac_arg'"
2189 if test $ac_must_keep_next = true; then
2190 ac_must_keep_next=false # Got value, back to normal.
2191 else
2192 case $ac_arg in
2193 *=* | --config-cache | -C | -disable-* | --disable-* \
2194 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2195 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2196 | -with-* | --with-* | -without-* | --without-* | --x)
2197 case "$ac_configure_args0 " in
2198 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2199 esac
2200 ;;
2201 -* ) ac_must_keep_next=true ;;
2202 esac
2203 fi
2204 as_fn_append ac_configure_args " '$ac_arg'"
2205 ;;
2206 esac
2207 done
2208 done
2209 { ac_configure_args0=; unset ac_configure_args0;}
2210 { ac_configure_args1=; unset ac_configure_args1;}
2211
2212 # When interrupted or exit'd, cleanup temporary files, and complete
2213 # config.log. We remove comments because anyway the quotes in there
2214 # would cause problems or look ugly.
2215 # WARNING: Use '\'' to represent an apostrophe within the trap.
2216 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2217 trap 'exit_status=$?
2218 # Save into config.log some information that might help in debugging.
2219 {
2220 echo
2221
2222 cat <<\_ASBOX
2223 ## ---------------- ##
2224 ## Cache variables. ##
2225 ## ---------------- ##
2226 _ASBOX
2227 echo
2228 # The following way of writing the cache mishandles newlines in values,
2229 (
2230 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2231 eval ac_val=\$$ac_var
2232 case $ac_val in #(
2233 *${as_nl}*)
2234 case $ac_var in #(
2235 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2236 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2237 esac
2238 case $ac_var in #(
2239 _ | IFS | as_nl) ;; #(
2240 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2241 *) { eval $ac_var=; unset $ac_var;} ;;
2242 esac ;;
2243 esac
2244 done
2245 (set) 2>&1 |
2246 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2247 *${as_nl}ac_space=\ *)
2248 sed -n \
2249 "s/'\''/'\''\\\\'\'''\''/g;
2250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2251 ;; #(
2252 *)
2253 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2254 ;;
2255 esac |
2256 sort
2257 )
2258 echo
2259
2260 cat <<\_ASBOX
2261 ## ----------------- ##
2262 ## Output variables. ##
2263 ## ----------------- ##
2264 _ASBOX
2265 echo
2266 for ac_var in $ac_subst_vars
2267 do
2268 eval ac_val=\$$ac_var
2269 case $ac_val in
2270 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271 esac
2272 $as_echo "$ac_var='\''$ac_val'\''"
2273 done | sort
2274 echo
2275
2276 if test -n "$ac_subst_files"; then
2277 cat <<\_ASBOX
2278 ## ------------------- ##
2279 ## File substitutions. ##
2280 ## ------------------- ##
2281 _ASBOX
2282 echo
2283 for ac_var in $ac_subst_files
2284 do
2285 eval ac_val=\$$ac_var
2286 case $ac_val in
2287 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2288 esac
2289 $as_echo "$ac_var='\''$ac_val'\''"
2290 done | sort
2291 echo
2292 fi
2293
2294 if test -s confdefs.h; then
2295 cat <<\_ASBOX
2296 ## ----------- ##
2297 ## confdefs.h. ##
2298 ## ----------- ##
2299 _ASBOX
2300 echo
2301 cat confdefs.h
2302 echo
2303 fi
2304 test "$ac_signal" != 0 &&
2305 $as_echo "$as_me: caught signal $ac_signal"
2306 $as_echo "$as_me: exit $exit_status"
2307 } >&5
2308 rm -f core *.core core.conftest.* &&
2309 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2310 exit $exit_status
2311 ' 0
2312 for ac_signal in 1 2 13 15; do
2313 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2314 done
2315 ac_signal=0
2316
2317 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2318 rm -f -r conftest* confdefs.h
2319
2320 $as_echo "/* confdefs.h */" > confdefs.h
2321
2322 # Predefined preprocessor variables.
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_NAME "$PACKAGE_NAME"
2326 _ACEOF
2327
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2330 _ACEOF
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2334 _ACEOF
2335
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_STRING "$PACKAGE_STRING"
2338 _ACEOF
2339
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2342 _ACEOF
2343
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_URL "$PACKAGE_URL"
2346 _ACEOF
2347
2348
2349 # Let the site file select an alternate cache file if it wants to.
2350 # Prefer an explicitly selected file to automatically selected ones.
2351 ac_site_file1=NONE
2352 ac_site_file2=NONE
2353 if test -n "$CONFIG_SITE"; then
2354 ac_site_file1=$CONFIG_SITE
2355 elif test "x$prefix" != xNONE; then
2356 ac_site_file1=$prefix/share/config.site
2357 ac_site_file2=$prefix/etc/config.site
2358 else
2359 ac_site_file1=$ac_default_prefix/share/config.site
2360 ac_site_file2=$ac_default_prefix/etc/config.site
2361 fi
2362 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2363 do
2364 test "x$ac_site_file" = xNONE && continue
2365 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2367 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2368 sed 's/^/| /' "$ac_site_file" >&5
2369 . "$ac_site_file"
2370 fi
2371 done
2372
2373 if test -r "$cache_file"; then
2374 # Some versions of bash will fail to source /dev/null (special files
2375 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2376 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2378 $as_echo "$as_me: loading cache $cache_file" >&6;}
2379 case $cache_file in
2380 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2381 *) . "./$cache_file";;
2382 esac
2383 fi
2384 else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2386 $as_echo "$as_me: creating cache $cache_file" >&6;}
2387 >$cache_file
2388 fi
2389
2390 as_fn_append ac_header_list " stdlib.h"
2391 as_fn_append ac_header_list " unistd.h"
2392 as_fn_append ac_header_list " sys/param.h"
2393 as_fn_append ac_header_list " sys/time.h"
2394 as_fn_append ac_func_list " alarm"
2395 # Check that the precious variables saved in the cache have kept the same
2396 # value.
2397 ac_cache_corrupted=false
2398 for ac_var in $ac_precious_vars; do
2399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2400 eval ac_new_set=\$ac_env_${ac_var}_set
2401 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2402 eval ac_new_val=\$ac_env_${ac_var}_value
2403 case $ac_old_set,$ac_new_set in
2404 set,)
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2406 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2407 ac_cache_corrupted=: ;;
2408 ,set)
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2410 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2411 ac_cache_corrupted=: ;;
2412 ,);;
2413 *)
2414 if test "x$ac_old_val" != "x$ac_new_val"; then
2415 # differences in whitespace do not lead to failure.
2416 ac_old_val_w=`echo x $ac_old_val`
2417 ac_new_val_w=`echo x $ac_new_val`
2418 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2420 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2421 ac_cache_corrupted=:
2422 else
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2424 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2425 eval $ac_var=\$ac_old_val
2426 fi
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2428 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2430 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2431 fi;;
2432 esac
2433 # Pass precious variables to config.status.
2434 if test "$ac_new_set" = set; then
2435 case $ac_new_val in
2436 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2437 *) ac_arg=$ac_var=$ac_new_val ;;
2438 esac
2439 case " $ac_configure_args " in
2440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2441 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2442 esac
2443 fi
2444 done
2445 if $ac_cache_corrupted; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2449 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2450 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2451 fi
2452 ## -------------------- ##
2453 ## Main body of script. ##
2454 ## -------------------- ##
2455
2456 ac_ext=c
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461
2462
2463 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2464
2465
2466
2467 test "$program_prefix" != NONE &&
2468 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2469 # Use a double $ so make ignores it.
2470 test "$program_suffix" != NONE &&
2471 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2472 # Double any \ or $.
2473 # By default was `s,x,x', remove it if useless.
2474 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2475 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2476
2477
2478 lispdir='${datadir}/emacs/${version}/lisp'
2479 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2480 '${datadir}/emacs/site-lisp'
2481 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2482 etcdir='${datadir}/emacs/${version}/etc'
2483 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2484 docdir='${datadir}/emacs/${version}/etc'
2485 gamedir='${localstatedir}/games/emacs'
2486
2487 gameuser=games
2488
2489
2490
2491
2492 # Check whether --with-pop was given.
2493 if test "${with_pop+set}" = set; then :
2494 withval=$with_pop;
2495 else
2496 with_pop=yes
2497 fi
2498
2499 if test "$with_pop" = yes; then
2500 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2501
2502 fi
2503
2504
2505 # Check whether --with-kerberos was given.
2506 if test "${with_kerberos+set}" = set; then :
2507 withval=$with_kerberos;
2508 else
2509 with_kerberos=no
2510 fi
2511
2512 if test "$with_kerberos" != no; then
2513 $as_echo "#define KERBEROS 1" >>confdefs.h
2514
2515 fi
2516
2517
2518 # Check whether --with-kerberos5 was given.
2519 if test "${with_kerberos5+set}" = set; then :
2520 withval=$with_kerberos5;
2521 else
2522 with_kerberos5=no
2523 fi
2524
2525 if test "${with_kerberos5}" != no; then
2526 if test "${with_kerberos}" = no; then
2527 with_kerberos=yes
2528 $as_echo "#define KERBEROS 1" >>confdefs.h
2529
2530 fi
2531
2532 $as_echo "#define KERBEROS5 1" >>confdefs.h
2533
2534 fi
2535
2536
2537 # Check whether --with-hesiod was given.
2538 if test "${with_hesiod+set}" = set; then :
2539 withval=$with_hesiod;
2540 else
2541 with_hesiod=no
2542 fi
2543
2544 if test "$with_hesiod" != no; then
2545
2546 $as_echo "#define HESIOD 1" >>confdefs.h
2547
2548 fi
2549
2550
2551 # Check whether --with-mmdf was given.
2552 if test "${with_mmdf+set}" = set; then :
2553 withval=$with_mmdf;
2554 else
2555 with_mmdf=no
2556 fi
2557
2558 if test "$with_mmdf" != no; then
2559
2560 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2561
2562 fi
2563
2564
2565 # Check whether --with-mail-unlink was given.
2566 if test "${with_mail_unlink+set}" = set; then :
2567 withval=$with_mail_unlink;
2568 else
2569 with_mail_unlink=no
2570 fi
2571
2572 if test "$with_mail_unlink" != no; then
2573
2574 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2575
2576 fi
2577
2578
2579 # Check whether --with-mailhost was given.
2580 if test "${with_mailhost+set}" = set; then :
2581 withval=$with_mailhost;
2582 cat >>confdefs.h <<_ACEOF
2583 #define MAILHOST "$withval"
2584 _ACEOF
2585
2586 fi
2587
2588
2589
2590 # Check whether --with-sound was given.
2591 if test "${with_sound+set}" = set; then :
2592 withval=$with_sound;
2593 else
2594 with_sound=yes
2595 fi
2596
2597
2598
2599 # Check whether --with-sync-input was given.
2600 if test "${with_sync_input+set}" = set; then :
2601 withval=$with_sync_input;
2602 else
2603 with_sync_input=yes
2604 fi
2605
2606 if test "$with_sync_input" = yes; then
2607
2608 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2609
2610 fi
2611
2612
2613 # Check whether --with-x-toolkit was given.
2614 if test "${with_x_toolkit+set}" = set; then :
2615 withval=$with_x_toolkit; case "${withval}" in
2616 y | ye | yes ) val=gtk ;;
2617 n | no ) val=no ;;
2618 l | lu | luc | luci | lucid ) val=lucid ;;
2619 a | at | ath | athe | athen | athena ) val=athena ;;
2620 m | mo | mot | moti | motif ) val=motif ;;
2621 g | gt | gtk ) val=gtk ;;
2622 * )
2623 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2624 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2625 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2626 ;;
2627 esac
2628 with_x_toolkit=$val
2629
2630 fi
2631
2632
2633
2634 # Check whether --with-xpm was given.
2635 if test "${with_xpm+set}" = set; then :
2636 withval=$with_xpm;
2637 else
2638 with_xpm=yes
2639 fi
2640
2641
2642 # Check whether --with-jpeg was given.
2643 if test "${with_jpeg+set}" = set; then :
2644 withval=$with_jpeg;
2645 else
2646 with_jpeg=yes
2647 fi
2648
2649
2650 # Check whether --with-tiff was given.
2651 if test "${with_tiff+set}" = set; then :
2652 withval=$with_tiff;
2653 else
2654 with_tiff=yes
2655 fi
2656
2657
2658 # Check whether --with-gif was given.
2659 if test "${with_gif+set}" = set; then :
2660 withval=$with_gif;
2661 else
2662 with_gif=yes
2663 fi
2664
2665
2666 # Check whether --with-png was given.
2667 if test "${with_png+set}" = set; then :
2668 withval=$with_png;
2669 else
2670 with_png=yes
2671 fi
2672
2673
2674 # Check whether --with-rsvg was given.
2675 if test "${with_rsvg+set}" = set; then :
2676 withval=$with_rsvg;
2677 else
2678 with_rsvg=yes
2679 fi
2680
2681
2682
2683 # Check whether --with-xft was given.
2684 if test "${with_xft+set}" = set; then :
2685 withval=$with_xft;
2686 else
2687 with_xft=yes
2688 fi
2689
2690
2691 # Check whether --with-libotf was given.
2692 if test "${with_libotf+set}" = set; then :
2693 withval=$with_libotf;
2694 else
2695 with_libotf=yes
2696 fi
2697
2698
2699 # Check whether --with-m17n-flt was given.
2700 if test "${with_m17n_flt+set}" = set; then :
2701 withval=$with_m17n_flt;
2702 else
2703 with_m17n_flt=yes
2704 fi
2705
2706
2707
2708 # Check whether --with-toolkit-scroll-bars was given.
2709 if test "${with_toolkit_scroll_bars+set}" = set; then :
2710 withval=$with_toolkit_scroll_bars;
2711 else
2712 with_toolkit_scroll_bars=yes
2713 fi
2714
2715
2716 # Check whether --with-xaw3d was given.
2717 if test "${with_xaw3d+set}" = set; then :
2718 withval=$with_xaw3d;
2719 else
2720 with_xaw3d=yes
2721 fi
2722
2723
2724 # Check whether --with-xim was given.
2725 if test "${with_xim+set}" = set; then :
2726 withval=$with_xim;
2727 else
2728 with_xim=yes
2729 fi
2730
2731
2732 # Check whether --with-ns was given.
2733 if test "${with_ns+set}" = set; then :
2734 withval=$with_ns;
2735 else
2736 with_ns=no
2737 fi
2738
2739
2740
2741 # Check whether --with-gpm was given.
2742 if test "${with_gpm+set}" = set; then :
2743 withval=$with_gpm;
2744 else
2745 with_gpm=yes
2746 fi
2747
2748
2749 # Check whether --with-dbus was given.
2750 if test "${with_dbus+set}" = set; then :
2751 withval=$with_dbus;
2752 else
2753 with_dbus=yes
2754 fi
2755
2756
2757 # Check whether --with-gconf was given.
2758 if test "${with_gconf+set}" = set; then :
2759 withval=$with_gconf;
2760 else
2761 with_gconf=yes
2762 fi
2763
2764
2765 # Check whether --with-selinux was given.
2766 if test "${with_selinux+set}" = set; then :
2767 withval=$with_selinux;
2768 else
2769 with_selinux=yes
2770 fi
2771
2772
2773 ## For the times when you want to build Emacs but don't have
2774 ## a suitable makeinfo, and can live without the manuals.
2775
2776 # Check whether --with-makeinfo was given.
2777 if test "${with_makeinfo+set}" = set; then :
2778 withval=$with_makeinfo;
2779 else
2780 with_makeinfo=yes
2781 fi
2782
2783
2784
2785 # Check whether --with-gtk was given.
2786 if test "${with_gtk+set}" = set; then :
2787 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use --with-x-toolkit to
2788 specify a toolkit." "$LINENO" 5
2789 fi
2790
2791
2792
2793 # Check whether --with-gcc was given.
2794 if test "${with_gcc+set}" = set; then :
2795 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \`CC' environment
2796 variable to specify a compiler." "$LINENO" 5
2797 fi
2798
2799
2800
2801 # Check whether --with-pkg-config-prog was given.
2802 if test "${with_pkg_config_prog+set}" = set; then :
2803 withval=$with_pkg_config_prog;
2804 fi
2805
2806 if test "X${with_pkg_config_prog}" != X; then
2807 if test "${with_pkg_config_prog}" != yes; then
2808 PKG_CONFIG="${with_pkg_config_prog}"
2809 fi
2810 fi
2811
2812
2813 # Check whether --with-gnustep-conf was given.
2814 if test "${with_gnustep_conf+set}" = set; then :
2815 withval=$with_gnustep_conf;
2816 fi
2817
2818 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2819 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2820 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2821 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2822
2823 # Check whether --enable-ns-self-contained was given.
2824 if test "${enable_ns_self_contained+set}" = set; then :
2825 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2826 else
2827 EN_NS_SELF_CONTAINED=yes
2828 fi
2829
2830
2831 # Check whether --enable-asserts was given.
2832 if test "${enable_asserts+set}" = set; then :
2833 enableval=$enable_asserts; USE_XASSERTS=$enableval
2834 else
2835 USE_XASSERTS=no
2836 fi
2837
2838
2839 # Check whether --enable-maintainer-mode was given.
2840 if test "${enable_maintainer_mode+set}" = set; then :
2841 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2842 else
2843 USE_MAINTAINER_MODE=no
2844 fi
2845
2846 if test $USE_MAINTAINER_MODE = yes; then
2847 MAINT=
2848 else
2849 MAINT=#
2850 fi
2851
2852
2853 # Check whether --enable-locallisppath was given.
2854 if test "${enable_locallisppath+set}" = set; then :
2855 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2856 locallisppath=
2857 elif test "${enableval}" != "yes"; then
2858 locallisppath=${enableval}
2859 fi
2860 fi
2861
2862
2863 # Check whether --enable-checking was given.
2864 if test "${enable_checking+set}" = set; then :
2865 enableval=$enable_checking; ac_checking_flags="${enableval}"
2866 fi
2867
2868 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2869 for check in $ac_checking_flags
2870 do
2871 case $check in
2872 # these set all the flags to specific states
2873 yes) ac_enable_checking=1 ;;
2874 no) ac_enable_checking= ;
2875 ac_gc_check_stringbytes= ;
2876 ac_gc_check_string_overrun= ;
2877 ac_gc_check_string_free_list= ;
2878 ac_xmalloc_overrun= ;
2879 ac_gc_check_cons_list= ;;
2880 all) ac_enable_checking=1 ;
2881 ac_gc_check_stringbytes=1 ;
2882 ac_gc_check_string_overrun=1 ;
2883 ac_gc_check_string_free_list=1 ;
2884 ac_xmalloc_overrun=1 ;
2885 ac_gc_check_cons_list=1 ;;
2886 # these enable particular checks
2887 stringbytes) ac_gc_check_stringbytes=1 ;;
2888 stringoverrun) ac_gc_check_string_overrun=1 ;;
2889 stringfreelist) ac_gc_check_string_free_list=1 ;;
2890 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2891 conslist) ac_gc_check_cons_list=1 ;;
2892 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2893 esac
2894 done
2895 IFS="$ac_save_IFS"
2896
2897 if test x$ac_enable_checking != x ; then
2898
2899 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2900
2901 fi
2902 if test x$ac_gc_check_stringbytes != x ; then
2903
2904 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2905
2906 fi
2907 if test x$ac_gc_check_stringoverrun != x ; then
2908
2909 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2910
2911 fi
2912 if test x$ac_gc_check_string_free_list != x ; then
2913
2914 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2915
2916 fi
2917 if test x$ac_xmalloc_overrun != x ; then
2918
2919 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2920
2921 fi
2922 if test x$ac_gc_check_cons_list != x ; then
2923
2924 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2925
2926 fi
2927
2928 # Check whether --enable-profiling was given.
2929 if test "${enable_profiling+set}" = set; then :
2930 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2931 fi
2932
2933 if test x$ac_enable_profiling != x ; then
2934 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2935 PROFILING_LDFLAGS="-pg"
2936 else
2937 PROFILING_CFLAGS=
2938 PROFILING_LDFLAGS=
2939 fi
2940
2941 # Check whether --enable-autodepend was given.
2942 if test "${enable_autodepend+set}" = set; then :
2943 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2944 else
2945 ac_enable_autodepend=yes
2946 fi
2947
2948
2949 #### Make srcdir absolute, if it isn't already. It's important to
2950 #### avoid running the path through pwd unnecessarily, since pwd can
2951 #### give you automounter prefixes, which can go away. We do all this
2952 #### so Emacs can find its files when run uninstalled.
2953 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2954 unset CDPATH
2955 case "${srcdir}" in
2956 /* ) ;;
2957 . )
2958 ## We may be able to use the $PWD environment variable to make this
2959 ## absolute. But sometimes PWD is inaccurate.
2960 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2961 ## but that tested only for a well-formed and valid PWD,
2962 ## it did not object when PWD was well-formed and valid but just wrong.
2963 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2964 then
2965 srcdir="$PWD"
2966 else
2967 srcdir="`(cd ${srcdir}; pwd)`"
2968 fi
2969 ;;
2970 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2971 esac
2972
2973 #### Check if the source directory already has a configured system in it.
2974 if test `pwd` != `(cd ${srcdir} && pwd)` \
2975 && test -f "${srcdir}/src/config.h" ; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
2977 as a build directory right now; it has been configured in its own
2978 right. To configure in another directory as well, you MUST
2979 use GNU make. If you do not have GNU make, then you must
2980 now do \`make distclean' in ${srcdir},
2981 and then run $0 again." >&5
2982 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2983 as a build directory right now; it has been configured in its own
2984 right. To configure in another directory as well, you MUST
2985 use GNU make. If you do not have GNU make, then you must
2986 now do \`make distclean' in ${srcdir},
2987 and then run $0 again." >&2;}
2988 fi
2989
2990 #### Given the configuration name, set machfile and opsysfile to the
2991 #### names of the m/*.h and s/*.h files we should use.
2992
2993 ### Canonicalize the configuration name.
2994
2995 ac_aux_dir=
2996 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2997 for ac_t in install-sh install.sh shtool; do
2998 if test -f "$ac_dir/$ac_t"; then
2999 ac_aux_dir=$ac_dir
3000 ac_install_sh="$ac_aux_dir/$ac_t -c"
3001 break 2
3002 fi
3003 done
3004 done
3005 if test -z "$ac_aux_dir"; then
3006 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3007 fi
3008
3009 # These three variables are undocumented and unsupported,
3010 # and are intended to be withdrawn in a future Autoconf release.
3011 # They can cause serious problems if a builder's source tree is in a directory
3012 # whose full name contains unusual characters.
3013 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3014 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3015 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3016
3017
3018 # Make sure we can run config.sub.
3019 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3020 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3021
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3023 $as_echo_n "checking build system type... " >&6; }
3024 if test "${ac_cv_build+set}" = set; then :
3025 $as_echo_n "(cached) " >&6
3026 else
3027 ac_build_alias=$build_alias
3028 test "x$ac_build_alias" = x &&
3029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3030 test "x$ac_build_alias" = x &&
3031 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3032 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3033 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3034
3035 fi
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3037 $as_echo "$ac_cv_build" >&6; }
3038 case $ac_cv_build in
3039 *-*-*) ;;
3040 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3041 esac
3042 build=$ac_cv_build
3043 ac_save_IFS=$IFS; IFS='-'
3044 set x $ac_cv_build
3045 shift
3046 build_cpu=$1
3047 build_vendor=$2
3048 shift; shift
3049 # Remember, the first character of IFS is used to create $*,
3050 # except with old shells:
3051 build_os=$*
3052 IFS=$ac_save_IFS
3053 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3054
3055
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3057 $as_echo_n "checking host system type... " >&6; }
3058 if test "${ac_cv_host+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 if test "x$host_alias" = x; then
3062 ac_cv_host=$ac_cv_build
3063 else
3064 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3065 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3066 fi
3067
3068 fi
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3070 $as_echo "$ac_cv_host" >&6; }
3071 case $ac_cv_host in
3072 *-*-*) ;;
3073 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3074 esac
3075 host=$ac_cv_host
3076 ac_save_IFS=$IFS; IFS='-'
3077 set x $ac_cv_host
3078 shift
3079 host_cpu=$1
3080 host_vendor=$2
3081 shift; shift
3082 # Remember, the first character of IFS is used to create $*,
3083 # except with old shells:
3084 host_os=$*
3085 IFS=$ac_save_IFS
3086 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3087
3088
3089 canonical=$host
3090 configuration=${host_alias-${build_alias-$host}}
3091
3092
3093
3094 ### If you add support for a new configuration, add code to this
3095 ### switch statement to recognize your configuration name and select
3096 ### the appropriate operating system and machine description files.
3097
3098 ### You would hope that you could choose an m/*.h file pretty much
3099 ### based on the machine portion of the configuration name, and an s-
3100 ### file based on the operating system portion. However, it turns out
3101 ### that each m/*.h file is pretty manufacturer-specific - for
3102 ### example mips.h is MIPS
3103 ### So we basically have to have a special case for each
3104 ### configuration name.
3105 ###
3106 ### As far as handling version numbers on operating systems is
3107 ### concerned, make sure things will fail in a fixable way. If
3108 ### /etc/MACHINES doesn't say anything about version numbers, be
3109 ### prepared to handle anything reasonably. If version numbers
3110 ### matter, be sure /etc/MACHINES says something about it.
3111 ###
3112 ### Eric Raymond says we should accept strings like "sysvr4" to mean
3113 ### "System V Release 4"; he writes, "The old convention encouraged
3114 ### confusion between `system' and `release' levels'."
3115
3116 machine='' opsys='' unported=no
3117 case "${canonical}" in
3118
3119 ## FreeBSD ports
3120 *-*-freebsd* )
3121 opsys=freebsd
3122 case "${canonical}" in
3123 alpha*-*-freebsd*) machine=alpha ;;
3124 arm*-*-freebsd*) machine=arm ;;
3125 ia64-*-freebsd*) machine=ia64 ;;
3126 sparc-*-freebsd*) machine=sparc ;;
3127 sparc64-*-freebsd*) machine=sparc ;;
3128 powerpc-*-freebsd*) machine=macppc ;;
3129 i[3456]86-*-freebsd*) machine=intel386 ;;
3130 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
3131 esac
3132 ;;
3133
3134 ## FreeBSD kernel + glibc based userland
3135 *-*-kfreebsd*gnu* )
3136 opsys=gnu-kfreebsd
3137 case "${canonical}" in
3138 alpha*-*-kfreebsd*) machine=alpha ;;
3139 ia64-*-kfreebsd*) machine=ia64 ;;
3140 sparc-*-kfreebsd*) machine=sparc ;;
3141 sparc64-*-kfreebsd*) machine=sparc ;;
3142 powerpc-*-kfreebsd*) machine=macppc ;;
3143 i[3456]86-*-kfreebsd*) machine=intel386 ;;
3144 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
3145 esac
3146 ;;
3147
3148 ## NetBSD ports
3149 *-*-netbsd* )
3150 opsys=netbsd
3151 if test -f /usr/lib/crti.o; then
3152
3153 $as_echo "#define HAVE_CRTIN /**/" >>confdefs.h
3154
3155 fi
3156
3157 case "${canonical}" in
3158 alpha*-*-netbsd*) machine=alpha ;;
3159 i[3456]86-*-netbsd*) machine=intel386 ;;
3160 mips-*-netbsd*) machine=mips ;;
3161 mipsel-*-netbsd*) machine=mips ;;
3162 mipseb-*-netbsd*) machine=mips ;;
3163 powerpc-*-netbsd*) machine=macppc ;;
3164 sparc*-*-netbsd*) machine=sparc ;;
3165 vax-*-netbsd*) machine=vax ;;
3166 arm-*-netbsd*) machine=arm ;;
3167 x86_64-*-netbsd*) machine=amdx86-64 ;;
3168 hppa-*-netbsd*) machine=hp800 ;;
3169 m68k-*-netbsd*) machine=m68k ;;
3170 esac
3171 ;;
3172
3173 ## OpenBSD ports
3174 *-*-openbsd* )
3175 opsys=openbsd
3176 case "${canonical}" in
3177 alpha*-*-openbsd*) machine=alpha ;;
3178 arm-*-openbsd*) machine=arm ;;
3179 i386-*-openbsd*) machine=intel386 ;;
3180 powerpc-*-openbsd*) machine=macppc ;;
3181 sparc*-*-openbsd*) machine=sparc ;;
3182 vax-*-openbsd*) machine=vax ;;
3183 x86_64-*-openbsd*) machine=amdx86-64 ;;
3184 hppa-*-openbsd*) machine=hp800 ;;
3185 esac
3186 ;;
3187
3188 alpha*-*-linux-gnu* )
3189 machine=alpha opsys=gnu-linux
3190 ;;
3191
3192 arm*-*-linux-gnu* )
3193 machine=arm opsys=gnu-linux
3194 ;;
3195
3196 ## Apple Darwin / Mac OS X
3197 *-apple-darwin* )
3198 case "${canonical}" in
3199 i[3456]86-* ) machine=intel386 ;;
3200 powerpc-* ) machine=macppc ;;
3201 x86_64-* ) machine=amdx86-64 ;;
3202 * ) unported=yes ;;
3203 esac
3204 opsys=darwin
3205 # Define CPP as follows to make autoconf work correctly.
3206 CPP="${CC-cc} -E -no-cpp-precomp"
3207 # Use fink packages if available.
3208 if test -d /sw/include && test -d /sw/lib; then
3209 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3210 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3211 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3212 fi
3213 ;;
3214
3215 ## HP 9000 series 700 and 800, running HP/UX
3216 hppa*-hp-hpux10.2* )
3217 machine=hp800 opsys=hpux10-20
3218 ;;
3219 hppa*-hp-hpux1[1-9]* )
3220 machine=hp800 opsys=hpux11
3221 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3222 ;;
3223
3224 hppa*-*-linux-gnu* )
3225 machine=hp800 opsys=gnu-linux
3226 ;;
3227
3228 ## IBM machines
3229 s390-*-linux-gnu* )
3230 machine=ibms390 opsys=gnu-linux
3231 ;;
3232 s390x-*-linux-gnu* )
3233 machine=ibms390x opsys=gnu-linux
3234 ;;
3235 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
3236 machine=ibmrs6000 opsys=aix4-2
3237 ;;
3238 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
3239 machine=ibmrs6000 opsys=aix4-2
3240 ;;
3241 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
3242 machine=ibmrs6000 opsys=aix4-2
3243 ;;
3244 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
3245 machine=ibmrs6000 opsys=aix4-2
3246 ;;
3247
3248 ## Macintosh PowerPC
3249 powerpc*-*-linux-gnu* )
3250 machine=macppc opsys=gnu-linux
3251 ;;
3252
3253 ## Silicon Graphics machines
3254 ## Iris 4D
3255 mips-sgi-irix6.5 )
3256 machine=iris4d opsys=irix6-5
3257 # Without defining _LANGUAGE_C, things get masked out in the headers
3258 # so that, for instance, grepping for `free' in stdlib.h fails and
3259 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3260 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3261 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3262 ;;
3263
3264 ## Suns
3265 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3266 machine=sparc opsys=gnu-linux
3267 ;;
3268
3269 *-sun-solaris* \
3270 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3271 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3272 case "${canonical}" in
3273 i[3456]86-*-* ) machine=intel386 ;;
3274 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3275 sparc* ) machine=sparc ;;
3276 * ) unported=yes ;;
3277 esac
3278 case "${canonical}" in
3279 *-sunos5.6* | *-solaris2.6* )
3280 opsys=sol2-6
3281 NON_GNU_CPP=/usr/ccs/lib/cpp
3282 RANLIB="ar -ts"
3283 ;;
3284 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3285 opsys=sol2-6
3286 emacs_check_sunpro_c=yes
3287 NON_GNU_CPP=/usr/ccs/lib/cpp
3288 ;;
3289 *-sunos5* | *-solaris* )
3290 opsys=sol2-10
3291 emacs_check_sunpro_c=yes
3292 NON_GNU_CPP=/usr/ccs/lib/cpp
3293 ;;
3294 esac
3295 ## Watch out for a compiler that we know will not work.
3296 case "${canonical}" in
3297 *-solaris* | *-sunos5* )
3298 if [ "x$CC" = x/usr/ucb/cc ]; then
3299 ## /usr/ucb/cc doesn't work;
3300 ## we should find some other compiler that does work.
3301 unset CC
3302 fi
3303 ;;
3304 *) ;;
3305 esac
3306 ;;
3307
3308 ## IA-64
3309 ia64*-*-linux* )
3310 machine=ia64 opsys=gnu-linux
3311 ;;
3312
3313 ## Intel 386 machines where we don't care about the manufacturer
3314 i[3456]86-*-* )
3315 machine=intel386
3316 case "${canonical}" in
3317 *-cygwin ) opsys=cygwin ;;
3318 *-darwin* ) opsys=darwin
3319 CPP="${CC-cc} -E -no-cpp-precomp"
3320 ;;
3321 *-linux-gnu* ) opsys=gnu-linux ;;
3322 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3323 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3324 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3325 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3326 esac
3327 ;;
3328
3329 ## m68k Linux-based GNU system
3330 m68k-*-linux-gnu* )
3331 machine=m68k opsys=gnu-linux
3332 ;;
3333
3334 ## Mips Linux-based GNU system
3335 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3336 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3337 machine=mips opsys=gnu-linux
3338 ;;
3339
3340 ## AMD x86-64 Linux-based GNU system
3341 x86_64-*-linux-gnu* )
3342 machine=amdx86-64 opsys=gnu-linux
3343 ;;
3344
3345 ## Tensilica Xtensa Linux-based GNU system
3346 xtensa*-*-linux-gnu* )
3347 machine=xtensa opsys=gnu-linux
3348 ;;
3349
3350 ## SuperH Linux-based GNU system
3351 sh[34]*-*-linux-gnu* )
3352 machine=sh3 opsys=gnu-linux
3353 ;;
3354
3355 * )
3356 unported=yes
3357 ;;
3358 esac
3359
3360 ### If the code above didn't choose an operating system, just choose
3361 ### an operating system based on the configuration name. You really
3362 ### only want to use this when you have no idea what the right
3363 ### operating system is; if you know what operating systems a machine
3364 ### runs, it's cleaner to make it explicit in the case statement
3365 ### above.
3366 if test x"${opsys}" = x; then
3367 case "${canonical}" in
3368 *-gnu* ) opsys=gnu ;;
3369 * )
3370 unported=yes
3371 ;;
3372 esac
3373 fi
3374
3375
3376
3377 if test $unported = yes; then
3378 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
3379 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3380 fi
3381
3382 machfile="m/${machine}.h"
3383 opsysfile="s/${opsys}.h"
3384
3385
3386 #### Choose a compiler.
3387 test -n "$CC" && cc_specified=yes
3388
3389 # Save the value of CFLAGS that the user specified.
3390 SPECIFIED_CFLAGS="$CFLAGS"
3391
3392 ac_ext=c
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397 if test -n "$ac_tool_prefix"; then
3398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if test "${ac_cv_prog_CC+set}" = set; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 if test -n "$CC"; then
3406 ac_cv_prog_CC="$CC" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2
3418 fi
3419 done
3420 done
3421 IFS=$as_save_IFS
3422
3423 fi
3424 fi
3425 CC=$ac_cv_prog_CC
3426 if test -n "$CC"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3428 $as_echo "$CC" >&6; }
3429 else
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3432 fi
3433
3434
3435 fi
3436 if test -z "$ac_cv_prog_CC"; then
3437 ac_ct_CC=$CC
3438 # Extract the first word of "gcc", so it can be a program name with args.
3439 set dummy gcc; ac_word=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3443 $as_echo_n "(cached) " >&6
3444 else
3445 if test -n "$ac_ct_CC"; then
3446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3450 do
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 ac_cv_prog_ac_ct_CC="gcc"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 break 2
3458 fi
3459 done
3460 done
3461 IFS=$as_save_IFS
3462
3463 fi
3464 fi
3465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3466 if test -n "$ac_ct_CC"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3468 $as_echo "$ac_ct_CC" >&6; }
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3472 fi
3473
3474 if test "x$ac_ct_CC" = x; then
3475 CC=""
3476 else
3477 case $cross_compiling:$ac_tool_warned in
3478 yes:)
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3481 ac_tool_warned=yes ;;
3482 esac
3483 CC=$ac_ct_CC
3484 fi
3485 else
3486 CC="$ac_cv_prog_CC"
3487 fi
3488
3489 if test -z "$CC"; then
3490 if test -n "$ac_tool_prefix"; then
3491 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3492 set dummy ${ac_tool_prefix}cc; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if test "${ac_cv_prog_CC+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508 ac_cv_prog_CC="${ac_tool_prefix}cc"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3511 fi
3512 done
3513 done
3514 IFS=$as_save_IFS
3515
3516 fi
3517 fi
3518 CC=$ac_cv_prog_CC
3519 if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3522 else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3525 fi
3526
3527
3528 fi
3529 fi
3530 if test -z "$CC"; then
3531 # Extract the first word of "cc", so it can be a program name with args.
3532 set dummy cc; ac_word=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if test "${ac_cv_prog_CC+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 if test -n "$CC"; then
3539 ac_cv_prog_CC="$CC" # Let the user override the test.
3540 else
3541 ac_prog_rejected=no
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3544 do
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3550 ac_prog_rejected=yes
3551 continue
3552 fi
3553 ac_cv_prog_CC="cc"
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 break 2
3556 fi
3557 done
3558 done
3559 IFS=$as_save_IFS
3560
3561 if test $ac_prog_rejected = yes; then
3562 # We found a bogon in the path, so make sure we never use it.
3563 set dummy $ac_cv_prog_CC
3564 shift
3565 if test $# != 0; then
3566 # We chose a different compiler from the bogus one.
3567 # However, it has the same basename, so the bogon will be chosen
3568 # first if we set CC to just the basename; use the full file name.
3569 shift
3570 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3571 fi
3572 fi
3573 fi
3574 fi
3575 CC=$ac_cv_prog_CC
3576 if test -n "$CC"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3578 $as_echo "$CC" >&6; }
3579 else
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3582 fi
3583
3584
3585 fi
3586 if test -z "$CC"; then
3587 if test -n "$ac_tool_prefix"; then
3588 for ac_prog in cl.exe
3589 do
3590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if test "${ac_cv_prog_CC+set}" = set; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 if test -n "$CC"; then
3598 ac_cv_prog_CC="$CC" # Let the user override the test.
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3602 do
3603 IFS=$as_save_IFS
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3607 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 break 2
3610 fi
3611 done
3612 done
3613 IFS=$as_save_IFS
3614
3615 fi
3616 fi
3617 CC=$ac_cv_prog_CC
3618 if test -n "$CC"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620 $as_echo "$CC" >&6; }
3621 else
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3624 fi
3625
3626
3627 test -n "$CC" && break
3628 done
3629 fi
3630 if test -z "$CC"; then
3631 ac_ct_CC=$CC
3632 for ac_prog in cl.exe
3633 do
3634 # Extract the first word of "$ac_prog", so it can be a program name with args.
3635 set dummy $ac_prog; ac_word=$2
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3637 $as_echo_n "checking for $ac_word... " >&6; }
3638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3639 $as_echo_n "(cached) " >&6
3640 else
3641 if test -n "$ac_ct_CC"; then
3642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3643 else
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 for as_dir in $PATH
3646 do
3647 IFS=$as_save_IFS
3648 test -z "$as_dir" && as_dir=.
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3651 ac_cv_prog_ac_ct_CC="$ac_prog"
3652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 break 2
3654 fi
3655 done
3656 done
3657 IFS=$as_save_IFS
3658
3659 fi
3660 fi
3661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3662 if test -n "$ac_ct_CC"; then
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3664 $as_echo "$ac_ct_CC" >&6; }
3665 else
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667 $as_echo "no" >&6; }
3668 fi
3669
3670
3671 test -n "$ac_ct_CC" && break
3672 done
3673
3674 if test "x$ac_ct_CC" = x; then
3675 CC=""
3676 else
3677 case $cross_compiling:$ac_tool_warned in
3678 yes:)
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3681 ac_tool_warned=yes ;;
3682 esac
3683 CC=$ac_ct_CC
3684 fi
3685 fi
3686
3687 fi
3688
3689
3690 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692 as_fn_error "no acceptable C compiler found in \$PATH
3693 See \`config.log' for more details." "$LINENO" 5; }
3694
3695 # Provide some information about the compiler.
3696 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3697 set X $ac_compile
3698 ac_compiler=$2
3699 for ac_option in --version -v -V -qversion; do
3700 { { ac_try="$ac_compiler $ac_option >&5"
3701 case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706 $as_echo "$ac_try_echo"; } >&5
3707 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3708 ac_status=$?
3709 if test -s conftest.err; then
3710 sed '10a\
3711 ... rest of stderr output deleted ...
3712 10q' conftest.err >conftest.er1
3713 cat conftest.er1 >&5
3714 fi
3715 rm -f conftest.er1 conftest.err
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }
3718 done
3719
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3722
3723 int
3724 main ()
3725 {
3726
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 ac_clean_files_save=$ac_clean_files
3732 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3733 # Try to create an executable without -o first, disregard a.out.
3734 # It will help us diagnose broken compilers, and finding out an intuition
3735 # of exeext.
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3737 $as_echo_n "checking whether the C compiler works... " >&6; }
3738 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3739
3740 # The possible output files:
3741 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3742
3743 ac_rmfiles=
3744 for ac_file in $ac_files
3745 do
3746 case $ac_file in
3747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3748 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3749 esac
3750 done
3751 rm -f $ac_rmfiles
3752
3753 if { { ac_try="$ac_link_default"
3754 case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757 esac
3758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759 $as_echo "$ac_try_echo"; } >&5
3760 (eval "$ac_link_default") 2>&5
3761 ac_status=$?
3762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763 test $ac_status = 0; }; then :
3764 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3765 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3766 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3767 # so that the user can short-circuit this test for compilers unknown to
3768 # Autoconf.
3769 for ac_file in $ac_files ''
3770 do
3771 test -f "$ac_file" || continue
3772 case $ac_file in
3773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3774 ;;
3775 [ab].out )
3776 # We found the default executable, but exeext='' is most
3777 # certainly right.
3778 break;;
3779 *.* )
3780 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3781 then :; else
3782 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3783 fi
3784 # We set ac_cv_exeext here because the later test for it is not
3785 # safe: cross compilers may not add the suffix if given an `-o'
3786 # argument, so we may need to know it at that point already.
3787 # Even if this section looks crufty: it has the advantage of
3788 # actually working.
3789 break;;
3790 * )
3791 break;;
3792 esac
3793 done
3794 test "$ac_cv_exeext" = no && ac_cv_exeext=
3795
3796 else
3797 ac_file=''
3798 fi
3799 if test -z "$ac_file"; then :
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 $as_echo "no" >&6; }
3802 $as_echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3804
3805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807 { as_fn_set_status 77
3808 as_fn_error "C compiler cannot create executables
3809 See \`config.log' for more details." "$LINENO" 5; }; }
3810 else
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3812 $as_echo "yes" >&6; }
3813 fi
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3815 $as_echo_n "checking for C compiler default output file name... " >&6; }
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3817 $as_echo "$ac_file" >&6; }
3818 ac_exeext=$ac_cv_exeext
3819
3820 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3821 ac_clean_files=$ac_clean_files_save
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3823 $as_echo_n "checking for suffix of executables... " >&6; }
3824 if { { ac_try="$ac_link"
3825 case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828 esac
3829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830 $as_echo "$ac_try_echo"; } >&5
3831 (eval "$ac_link") 2>&5
3832 ac_status=$?
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }; then :
3835 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3836 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3837 # work properly (i.e., refer to `conftest.exe'), while it won't with
3838 # `rm'.
3839 for ac_file in conftest.exe conftest conftest.*; do
3840 test -f "$ac_file" || continue
3841 case $ac_file in
3842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3843 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3844 break;;
3845 * ) break;;
3846 esac
3847 done
3848 else
3849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3851 as_fn_error "cannot compute suffix of executables: cannot compile and link
3852 See \`config.log' for more details." "$LINENO" 5; }
3853 fi
3854 rm -f conftest conftest$ac_cv_exeext
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3856 $as_echo "$ac_cv_exeext" >&6; }
3857
3858 rm -f conftest.$ac_ext
3859 EXEEXT=$ac_cv_exeext
3860 ac_exeext=$EXEEXT
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3863 #include <stdio.h>
3864 int
3865 main ()
3866 {
3867 FILE *f = fopen ("conftest.out", "w");
3868 return ferror (f) || fclose (f) != 0;
3869
3870 ;
3871 return 0;
3872 }
3873 _ACEOF
3874 ac_clean_files="$ac_clean_files conftest.out"
3875 # Check that the compiler produces executables we can run. If not, either
3876 # the compiler is broken, or we cross compile.
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3878 $as_echo_n "checking whether we are cross compiling... " >&6; }
3879 if test "$cross_compiling" != yes; then
3880 { { ac_try="$ac_link"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886 $as_echo "$ac_try_echo"; } >&5
3887 (eval "$ac_link") 2>&5
3888 ac_status=$?
3889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }
3891 if { ac_try='./conftest$ac_cv_exeext'
3892 { { case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3895 esac
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_try") 2>&5
3899 ac_status=$?
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }; }; then
3902 cross_compiling=no
3903 else
3904 if test "$cross_compiling" = maybe; then
3905 cross_compiling=yes
3906 else
3907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3909 as_fn_error "cannot run C compiled programs.
3910 If you meant to cross compile, use \`--host'.
3911 See \`config.log' for more details." "$LINENO" 5; }
3912 fi
3913 fi
3914 fi
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3916 $as_echo "$cross_compiling" >&6; }
3917
3918 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3919 ac_clean_files=$ac_clean_files_save
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3921 $as_echo_n "checking for suffix of object files... " >&6; }
3922 if test "${ac_cv_objext+set}" = set; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3927
3928 int
3929 main ()
3930 {
3931
3932 ;
3933 return 0;
3934 }
3935 _ACEOF
3936 rm -f conftest.o conftest.obj
3937 if { { ac_try="$ac_compile"
3938 case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941 esac
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 $as_echo "$ac_try_echo"; } >&5
3944 (eval "$ac_compile") 2>&5
3945 ac_status=$?
3946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947 test $ac_status = 0; }; then :
3948 for ac_file in conftest.o conftest.obj conftest.*; do
3949 test -f "$ac_file" || continue;
3950 case $ac_file in
3951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3952 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3953 break;;
3954 esac
3955 done
3956 else
3957 $as_echo "$as_me: failed program was:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3959
3960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3962 as_fn_error "cannot compute suffix of object files: cannot compile
3963 See \`config.log' for more details." "$LINENO" 5; }
3964 fi
3965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3966 fi
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3968 $as_echo "$ac_cv_objext" >&6; }
3969 OBJEXT=$ac_cv_objext
3970 ac_objext=$OBJEXT
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3972 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3973 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3978
3979 int
3980 main ()
3981 {
3982 #ifndef __GNUC__
3983 choke me
3984 #endif
3985
3986 ;
3987 return 0;
3988 }
3989 _ACEOF
3990 if ac_fn_c_try_compile "$LINENO"; then :
3991 ac_compiler_gnu=yes
3992 else
3993 ac_compiler_gnu=no
3994 fi
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3997
3998 fi
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4000 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4001 if test $ac_compiler_gnu = yes; then
4002 GCC=yes
4003 else
4004 GCC=
4005 fi
4006 ac_test_CFLAGS=${CFLAGS+set}
4007 ac_save_CFLAGS=$CFLAGS
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4009 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4010 if test "${ac_cv_prog_cc_g+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4013 ac_save_c_werror_flag=$ac_c_werror_flag
4014 ac_c_werror_flag=yes
4015 ac_cv_prog_cc_g=no
4016 CFLAGS="-g"
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019
4020 int
4021 main ()
4022 {
4023
4024 ;
4025 return 0;
4026 }
4027 _ACEOF
4028 if ac_fn_c_try_compile "$LINENO"; then :
4029 ac_cv_prog_cc_g=yes
4030 else
4031 CFLAGS=""
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4034
4035 int
4036 main ()
4037 {
4038
4039 ;
4040 return 0;
4041 }
4042 _ACEOF
4043 if ac_fn_c_try_compile "$LINENO"; then :
4044
4045 else
4046 ac_c_werror_flag=$ac_save_c_werror_flag
4047 CFLAGS="-g"
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4050
4051 int
4052 main ()
4053 {
4054
4055 ;
4056 return 0;
4057 }
4058 _ACEOF
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060 ac_cv_prog_cc_g=yes
4061 fi
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 fi
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_c_werror_flag=$ac_save_c_werror_flag
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4070 $as_echo "$ac_cv_prog_cc_g" >&6; }
4071 if test "$ac_test_CFLAGS" = set; then
4072 CFLAGS=$ac_save_CFLAGS
4073 elif test $ac_cv_prog_cc_g = yes; then
4074 if test "$GCC" = yes; then
4075 CFLAGS="-g -O2"
4076 else
4077 CFLAGS="-g"
4078 fi
4079 else
4080 if test "$GCC" = yes; then
4081 CFLAGS="-O2"
4082 else
4083 CFLAGS=
4084 fi
4085 fi
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4087 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4088 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 ac_cv_prog_cc_c89=no
4092 ac_save_CC=$CC
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 #include <stdarg.h>
4096 #include <stdio.h>
4097 #include <sys/types.h>
4098 #include <sys/stat.h>
4099 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4100 struct buf { int x; };
4101 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4102 static char *e (p, i)
4103 char **p;
4104 int i;
4105 {
4106 return p[i];
4107 }
4108 static char *f (char * (*g) (char **, int), char **p, ...)
4109 {
4110 char *s;
4111 va_list v;
4112 va_start (v,p);
4113 s = g (p, va_arg (v,int));
4114 va_end (v);
4115 return s;
4116 }
4117
4118 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4119 function prototypes and stuff, but not '\xHH' hex character constants.
4120 These don't provoke an error unfortunately, instead are silently treated
4121 as 'x'. The following induces an error, until -std is added to get
4122 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4123 array size at least. It's necessary to write '\x00'==0 to get something
4124 that's true only with -std. */
4125 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4126
4127 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4128 inside strings and character constants. */
4129 #define FOO(x) 'x'
4130 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4131
4132 int test (int i, double x);
4133 struct s1 {int (*f) (int a);};
4134 struct s2 {int (*f) (double a);};
4135 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4136 int argc;
4137 char **argv;
4138 int
4139 main ()
4140 {
4141 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4142 ;
4143 return 0;
4144 }
4145 _ACEOF
4146 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4147 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4148 do
4149 CC="$ac_save_CC $ac_arg"
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_cv_prog_cc_c89=$ac_arg
4152 fi
4153 rm -f core conftest.err conftest.$ac_objext
4154 test "x$ac_cv_prog_cc_c89" != "xno" && break
4155 done
4156 rm -f conftest.$ac_ext
4157 CC=$ac_save_CC
4158
4159 fi
4160 # AC_CACHE_VAL
4161 case "x$ac_cv_prog_cc_c89" in
4162 x)
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4164 $as_echo "none needed" >&6; } ;;
4165 xno)
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4167 $as_echo "unsupported" >&6; } ;;
4168 *)
4169 CC="$CC $ac_cv_prog_cc_c89"
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4171 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4172 esac
4173 if test "x$ac_cv_prog_cc_c89" != xno; then :
4174
4175 fi
4176
4177 ac_ext=c
4178 ac_cpp='$CPP $CPPFLAGS'
4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182
4183
4184 # On Suns, sometimes $CPP names a directory.
4185 if test -n "$CPP" && test -d "$CPP"; then
4186 CPP=
4187 fi
4188
4189 ## If not using gcc, and on Solaris, and no CPP specified, see if
4190 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4191 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4192 test x"$CPP" = x; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4194 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4195
4196 if test "${emacs_cv_sunpro_c+set}" = set; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201
4202 int
4203 main ()
4204 {
4205 #ifndef __SUNPRO_C
4206 fail;
4207 #endif
4208
4209 ;
4210 return 0;
4211 }
4212 _ACEOF
4213 if ac_fn_c_try_link "$LINENO"; then :
4214 emacs_cv_sunpro_c=yes
4215 else
4216 emacs_cv_sunpro_c=no
4217 fi
4218 rm -f core conftest.err conftest.$ac_objext \
4219 conftest$ac_exeext conftest.$ac_ext
4220 fi
4221
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4223 $as_echo "$emacs_cv_sunpro_c" >&6; }
4224
4225 if test x"$emacs_cv_sunpro_c" = xyes; then
4226 NON_GNU_CPP="$CC -E -Xs"
4227 fi
4228 fi
4229
4230 #### Some systems specify a CPP to use unless we are using GCC.
4231 #### Now that we know whether we are using GCC, we can decide whether
4232 #### to use that one.
4233 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4234 then
4235 CPP="$NON_GNU_CPP"
4236 fi
4237
4238 #### Some systems specify a CC to use unless we are using GCC.
4239 #### Now that we know whether we are using GCC, we can decide whether
4240 #### to use that one.
4241 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4242 test x$cc_specified != xyes
4243 then
4244 CC="$NON_GNU_CC"
4245 fi
4246
4247 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4248 then
4249 CC="$CC $GCC_TEST_OPTIONS"
4250 fi
4251
4252 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4253 then
4254 CC="$CC $NON_GCC_TEST_OPTIONS"
4255 fi
4256
4257 ac_ext=c
4258 ac_cpp='$CPP $CPPFLAGS'
4259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4263 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4264 # On Suns, sometimes $CPP names a directory.
4265 if test -n "$CPP" && test -d "$CPP"; then
4266 CPP=
4267 fi
4268 if test -z "$CPP"; then
4269 if test "${ac_cv_prog_CPP+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 # Double quotes because CPP needs to be expanded
4273 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4274 do
4275 ac_preproc_ok=false
4276 for ac_c_preproc_warn_flag in '' yes
4277 do
4278 # Use a header file that comes with gcc, so configuring glibc
4279 # with a fresh cross-compiler works.
4280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4281 # <limits.h> exists even on freestanding compilers.
4282 # On the NeXT, cc -E runs the code through the compiler's parser,
4283 # not just through cpp. "Syntax error" is here to catch this case.
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 #ifdef __STDC__
4287 # include <limits.h>
4288 #else
4289 # include <assert.h>
4290 #endif
4291 Syntax error
4292 _ACEOF
4293 if ac_fn_c_try_cpp "$LINENO"; then :
4294
4295 else
4296 # Broken: fails on valid input.
4297 continue
4298 fi
4299 rm -f conftest.err conftest.$ac_ext
4300
4301 # OK, works on sane cases. Now check whether nonexistent headers
4302 # can be detected and how.
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4305 #include <ac_nonexistent.h>
4306 _ACEOF
4307 if ac_fn_c_try_cpp "$LINENO"; then :
4308 # Broken: success on invalid input.
4309 continue
4310 else
4311 # Passes both tests.
4312 ac_preproc_ok=:
4313 break
4314 fi
4315 rm -f conftest.err conftest.$ac_ext
4316
4317 done
4318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4319 rm -f conftest.err conftest.$ac_ext
4320 if $ac_preproc_ok; then :
4321 break
4322 fi
4323
4324 done
4325 ac_cv_prog_CPP=$CPP
4326
4327 fi
4328 CPP=$ac_cv_prog_CPP
4329 else
4330 ac_cv_prog_CPP=$CPP
4331 fi
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4333 $as_echo "$CPP" >&6; }
4334 ac_preproc_ok=false
4335 for ac_c_preproc_warn_flag in '' yes
4336 do
4337 # Use a header file that comes with gcc, so configuring glibc
4338 # with a fresh cross-compiler works.
4339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4340 # <limits.h> exists even on freestanding compilers.
4341 # On the NeXT, cc -E runs the code through the compiler's parser,
4342 # not just through cpp. "Syntax error" is here to catch this case.
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4345 #ifdef __STDC__
4346 # include <limits.h>
4347 #else
4348 # include <assert.h>
4349 #endif
4350 Syntax error
4351 _ACEOF
4352 if ac_fn_c_try_cpp "$LINENO"; then :
4353
4354 else
4355 # Broken: fails on valid input.
4356 continue
4357 fi
4358 rm -f conftest.err conftest.$ac_ext
4359
4360 # OK, works on sane cases. Now check whether nonexistent headers
4361 # can be detected and how.
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4364 #include <ac_nonexistent.h>
4365 _ACEOF
4366 if ac_fn_c_try_cpp "$LINENO"; then :
4367 # Broken: success on invalid input.
4368 continue
4369 else
4370 # Passes both tests.
4371 ac_preproc_ok=:
4372 break
4373 fi
4374 rm -f conftest.err conftest.$ac_ext
4375
4376 done
4377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4378 rm -f conftest.err conftest.$ac_ext
4379 if $ac_preproc_ok; then :
4380
4381 else
4382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4384 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4385 See \`config.log' for more details." "$LINENO" 5; }
4386 fi
4387
4388 ac_ext=c
4389 ac_cpp='$CPP $CPPFLAGS'
4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393
4394
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4396 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4397 if test "${ac_cv_path_GREP+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -z "$GREP"; then
4401 ac_path_GREP_found=false
4402 # Loop through the user's path and test for each of PROGNAME-LIST
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4405 do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_prog in grep ggrep; do
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4411 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4412 # Check for GNU ac_path_GREP and select it if it is found.
4413 # Check for GNU $ac_path_GREP
4414 case `"$ac_path_GREP" --version 2>&1` in
4415 *GNU*)
4416 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4417 *)
4418 ac_count=0
4419 $as_echo_n 0123456789 >"conftest.in"
4420 while :
4421 do
4422 cat "conftest.in" "conftest.in" >"conftest.tmp"
4423 mv "conftest.tmp" "conftest.in"
4424 cp "conftest.in" "conftest.nl"
4425 $as_echo 'GREP' >> "conftest.nl"
4426 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4428 as_fn_arith $ac_count + 1 && ac_count=$as_val
4429 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4430 # Best one so far, save it but keep looking for a better one
4431 ac_cv_path_GREP="$ac_path_GREP"
4432 ac_path_GREP_max=$ac_count
4433 fi
4434 # 10*(2^10) chars as input seems more than enough
4435 test $ac_count -gt 10 && break
4436 done
4437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4438 esac
4439
4440 $ac_path_GREP_found && break 3
4441 done
4442 done
4443 done
4444 IFS=$as_save_IFS
4445 if test -z "$ac_cv_path_GREP"; then
4446 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4447 fi
4448 else
4449 ac_cv_path_GREP=$GREP
4450 fi
4451
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4454 $as_echo "$ac_cv_path_GREP" >&6; }
4455 GREP="$ac_cv_path_GREP"
4456
4457
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4459 $as_echo_n "checking for egrep... " >&6; }
4460 if test "${ac_cv_path_EGREP+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4464 then ac_cv_path_EGREP="$GREP -E"
4465 else
4466 if test -z "$EGREP"; then
4467 ac_path_EGREP_found=false
4468 # Loop through the user's path and test for each of PROGNAME-LIST
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4471 do
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_prog in egrep; do
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4477 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4478 # Check for GNU ac_path_EGREP and select it if it is found.
4479 # Check for GNU $ac_path_EGREP
4480 case `"$ac_path_EGREP" --version 2>&1` in
4481 *GNU*)
4482 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4483 *)
4484 ac_count=0
4485 $as_echo_n 0123456789 >"conftest.in"
4486 while :
4487 do
4488 cat "conftest.in" "conftest.in" >"conftest.tmp"
4489 mv "conftest.tmp" "conftest.in"
4490 cp "conftest.in" "conftest.nl"
4491 $as_echo 'EGREP' >> "conftest.nl"
4492 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4494 as_fn_arith $ac_count + 1 && ac_count=$as_val
4495 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4496 # Best one so far, save it but keep looking for a better one
4497 ac_cv_path_EGREP="$ac_path_EGREP"
4498 ac_path_EGREP_max=$ac_count
4499 fi
4500 # 10*(2^10) chars as input seems more than enough
4501 test $ac_count -gt 10 && break
4502 done
4503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4504 esac
4505
4506 $ac_path_EGREP_found && break 3
4507 done
4508 done
4509 done
4510 IFS=$as_save_IFS
4511 if test -z "$ac_cv_path_EGREP"; then
4512 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4513 fi
4514 else
4515 ac_cv_path_EGREP=$EGREP
4516 fi
4517
4518 fi
4519 fi
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4521 $as_echo "$ac_cv_path_EGREP" >&6; }
4522 EGREP="$ac_cv_path_EGREP"
4523
4524
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4526 $as_echo_n "checking for ANSI C header files... " >&6; }
4527 if test "${ac_cv_header_stdc+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4532 #include <stdlib.h>
4533 #include <stdarg.h>
4534 #include <string.h>
4535 #include <float.h>
4536
4537 int
4538 main ()
4539 {
4540
4541 ;
4542 return 0;
4543 }
4544 _ACEOF
4545 if ac_fn_c_try_compile "$LINENO"; then :
4546 ac_cv_header_stdc=yes
4547 else
4548 ac_cv_header_stdc=no
4549 fi
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551
4552 if test $ac_cv_header_stdc = yes; then
4553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556 #include <string.h>
4557
4558 _ACEOF
4559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4560 $EGREP "memchr" >/dev/null 2>&1; then :
4561
4562 else
4563 ac_cv_header_stdc=no
4564 fi
4565 rm -f conftest*
4566
4567 fi
4568
4569 if test $ac_cv_header_stdc = yes; then
4570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4573 #include <stdlib.h>
4574
4575 _ACEOF
4576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4577 $EGREP "free" >/dev/null 2>&1; then :
4578
4579 else
4580 ac_cv_header_stdc=no
4581 fi
4582 rm -f conftest*
4583
4584 fi
4585
4586 if test $ac_cv_header_stdc = yes; then
4587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4588 if test "$cross_compiling" = yes; then :
4589 :
4590 else
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <ctype.h>
4594 #include <stdlib.h>
4595 #if ((' ' & 0x0FF) == 0x020)
4596 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4597 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4598 #else
4599 # define ISLOWER(c) \
4600 (('a' <= (c) && (c) <= 'i') \
4601 || ('j' <= (c) && (c) <= 'r') \
4602 || ('s' <= (c) && (c) <= 'z'))
4603 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4604 #endif
4605
4606 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4607 int
4608 main ()
4609 {
4610 int i;
4611 for (i = 0; i < 256; i++)
4612 if (XOR (islower (i), ISLOWER (i))
4613 || toupper (i) != TOUPPER (i))
4614 return 2;
4615 return 0;
4616 }
4617 _ACEOF
4618 if ac_fn_c_try_run "$LINENO"; then :
4619
4620 else
4621 ac_cv_header_stdc=no
4622 fi
4623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4624 conftest.$ac_objext conftest.beam conftest.$ac_ext
4625 fi
4626
4627 fi
4628 fi
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4630 $as_echo "$ac_cv_header_stdc" >&6; }
4631 if test $ac_cv_header_stdc = yes; then
4632
4633 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4634
4635 fi
4636
4637 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4638 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4639 inttypes.h stdint.h unistd.h
4640 do :
4641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4642 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4643 "
4644 eval as_val=\$$as_ac_Header
4645 if test "x$as_val" = x""yes; then :
4646 cat >>confdefs.h <<_ACEOF
4647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4648 _ACEOF
4649
4650 fi
4651
4652 done
4653
4654
4655
4656 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4657 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4658 MINIX=yes
4659 else
4660 MINIX=
4661 fi
4662
4663
4664 if test "$MINIX" = yes; then
4665
4666 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4667
4668
4669 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4670
4671
4672 $as_echo "#define _MINIX 1" >>confdefs.h
4673
4674 fi
4675
4676
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4678 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4679 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4684
4685 # define __EXTENSIONS__ 1
4686 $ac_includes_default
4687 int
4688 main ()
4689 {
4690
4691 ;
4692 return 0;
4693 }
4694 _ACEOF
4695 if ac_fn_c_try_compile "$LINENO"; then :
4696 ac_cv_safe_to_define___extensions__=yes
4697 else
4698 ac_cv_safe_to_define___extensions__=no
4699 fi
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4703 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4704 test $ac_cv_safe_to_define___extensions__ = yes &&
4705 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4706
4707 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4708
4709 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4710
4711 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4712
4713 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4714
4715
4716
4717 ### Use -Wno-pointer-sign if the compiler supports it
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4719 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4720 SAVE_CFLAGS="$CFLAGS"
4721 CFLAGS="$CFLAGS -Wno-pointer-sign"
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724
4725 int
4726 main ()
4727 {
4728
4729 ;
4730 return 0;
4731 }
4732 _ACEOF
4733 if ac_fn_c_try_compile "$LINENO"; then :
4734 has_option=yes
4735 else
4736 has_option=no
4737 fi
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 if test $has_option = yes; then
4740 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4741 fi
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4743 $as_echo "$has_option" >&6; }
4744 CFLAGS="$SAVE_CFLAGS"
4745 unset has_option
4746 unset SAVE_CFLAGS
4747
4748 ### Use -Wdeclaration-after-statement if the compiler supports it
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4750 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4751 SAVE_CFLAGS="$CFLAGS"
4752 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4755
4756 int
4757 main ()
4758 {
4759
4760 ;
4761 return 0;
4762 }
4763 _ACEOF
4764 if ac_fn_c_try_compile "$LINENO"; then :
4765 has_option=yes
4766 else
4767 has_option=no
4768 fi
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 if test $has_option = yes; then
4771 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4772 fi
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4774 $as_echo "$has_option" >&6; }
4775 CFLAGS="$SAVE_CFLAGS"
4776 unset has_option
4777 unset SAVE_CFLAGS
4778
4779 #### Some other nice autoconf tests.
4780
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4782 $as_echo_n "checking whether ln -s works... " >&6; }
4783 LN_S=$as_ln_s
4784 if test "$LN_S" = "ln -s"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4786 $as_echo "yes" >&6; }
4787 else
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4789 $as_echo "no, using $LN_S" >&6; }
4790 fi
4791
4792 ac_ext=c
4793 ac_cpp='$CPP $CPPFLAGS'
4794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4798 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4799 # On Suns, sometimes $CPP names a directory.
4800 if test -n "$CPP" && test -d "$CPP"; then
4801 CPP=
4802 fi
4803 if test -z "$CPP"; then
4804 if test "${ac_cv_prog_CPP+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 # Double quotes because CPP needs to be expanded
4808 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4809 do
4810 ac_preproc_ok=false
4811 for ac_c_preproc_warn_flag in '' yes
4812 do
4813 # Use a header file that comes with gcc, so configuring glibc
4814 # with a fresh cross-compiler works.
4815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4816 # <limits.h> exists even on freestanding compilers.
4817 # On the NeXT, cc -E runs the code through the compiler's parser,
4818 # not just through cpp. "Syntax error" is here to catch this case.
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821 #ifdef __STDC__
4822 # include <limits.h>
4823 #else
4824 # include <assert.h>
4825 #endif
4826 Syntax error
4827 _ACEOF
4828 if ac_fn_c_try_cpp "$LINENO"; then :
4829
4830 else
4831 # Broken: fails on valid input.
4832 continue
4833 fi
4834 rm -f conftest.err conftest.$ac_ext
4835
4836 # OK, works on sane cases. Now check whether nonexistent headers
4837 # can be detected and how.
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4840 #include <ac_nonexistent.h>
4841 _ACEOF
4842 if ac_fn_c_try_cpp "$LINENO"; then :
4843 # Broken: success on invalid input.
4844 continue
4845 else
4846 # Passes both tests.
4847 ac_preproc_ok=:
4848 break
4849 fi
4850 rm -f conftest.err conftest.$ac_ext
4851
4852 done
4853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4854 rm -f conftest.err conftest.$ac_ext
4855 if $ac_preproc_ok; then :
4856 break
4857 fi
4858
4859 done
4860 ac_cv_prog_CPP=$CPP
4861
4862 fi
4863 CPP=$ac_cv_prog_CPP
4864 else
4865 ac_cv_prog_CPP=$CPP
4866 fi
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4868 $as_echo "$CPP" >&6; }
4869 ac_preproc_ok=false
4870 for ac_c_preproc_warn_flag in '' yes
4871 do
4872 # Use a header file that comes with gcc, so configuring glibc
4873 # with a fresh cross-compiler works.
4874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4875 # <limits.h> exists even on freestanding compilers.
4876 # On the NeXT, cc -E runs the code through the compiler's parser,
4877 # not just through cpp. "Syntax error" is here to catch this case.
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 #ifdef __STDC__
4881 # include <limits.h>
4882 #else
4883 # include <assert.h>
4884 #endif
4885 Syntax error
4886 _ACEOF
4887 if ac_fn_c_try_cpp "$LINENO"; then :
4888
4889 else
4890 # Broken: fails on valid input.
4891 continue
4892 fi
4893 rm -f conftest.err conftest.$ac_ext
4894
4895 # OK, works on sane cases. Now check whether nonexistent headers
4896 # can be detected and how.
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899 #include <ac_nonexistent.h>
4900 _ACEOF
4901 if ac_fn_c_try_cpp "$LINENO"; then :
4902 # Broken: success on invalid input.
4903 continue
4904 else
4905 # Passes both tests.
4906 ac_preproc_ok=:
4907 break
4908 fi
4909 rm -f conftest.err conftest.$ac_ext
4910
4911 done
4912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4913 rm -f conftest.err conftest.$ac_ext
4914 if $ac_preproc_ok; then :
4915
4916 else
4917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4919 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4920 See \`config.log' for more details." "$LINENO" 5; }
4921 fi
4922
4923 ac_ext=c
4924 ac_cpp='$CPP $CPPFLAGS'
4925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4928
4929 # Find a good install program. We prefer a C program (faster),
4930 # so one script is as good as another. But avoid the broken or
4931 # incompatible versions:
4932 # SysV /etc/install, /usr/sbin/install
4933 # SunOS /usr/etc/install
4934 # IRIX /sbin/install
4935 # AIX /bin/install
4936 # AmigaOS /C/install, which installs bootblocks on floppy discs
4937 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4938 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4939 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4940 # OS/2's system install, which has a completely different semantic
4941 # ./install, which can be erroneously created by make from ./install.sh.
4942 # Reject install programs that cannot install multiple files.
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4944 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4945 if test -z "$INSTALL"; then
4946 if test "${ac_cv_path_install+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 # Account for people who put trailing slashes in PATH elements.
4955 case $as_dir/ in #((
4956 ./ | .// | /[cC]/* | \
4957 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4958 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4959 /usr/ucb/* ) ;;
4960 *)
4961 # OSF1 and SCO ODT 3.0 have their own names for install.
4962 # Don't use installbsd from OSF since it installs stuff as root
4963 # by default.
4964 for ac_prog in ginstall scoinst install; do
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4967 if test $ac_prog = install &&
4968 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4969 # AIX install. It has an incompatible calling convention.
4970 :
4971 elif test $ac_prog = install &&
4972 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4973 # program-specific install script used by HP pwplus--don't use.
4974 :
4975 else
4976 rm -rf conftest.one conftest.two conftest.dir
4977 echo one > conftest.one
4978 echo two > conftest.two
4979 mkdir conftest.dir
4980 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4981 test -s conftest.one && test -s conftest.two &&
4982 test -s conftest.dir/conftest.one &&
4983 test -s conftest.dir/conftest.two
4984 then
4985 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4986 break 3
4987 fi
4988 fi
4989 fi
4990 done
4991 done
4992 ;;
4993 esac
4994
4995 done
4996 IFS=$as_save_IFS
4997
4998 rm -rf conftest.one conftest.two conftest.dir
4999
5000 fi
5001 if test "${ac_cv_path_install+set}" = set; then
5002 INSTALL=$ac_cv_path_install
5003 else
5004 # As a last resort, use the slow shell script. Don't cache a
5005 # value for INSTALL within a source directory, because that will
5006 # break other packages using the cache if that directory is
5007 # removed, or if the value is a relative name.
5008 INSTALL=$ac_install_sh
5009 fi
5010 fi
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5012 $as_echo "$INSTALL" >&6; }
5013
5014 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5015 # It thinks the first close brace ends the variable substitution.
5016 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5017
5018 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5019
5020 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5021
5022 if test "x$RANLIB" = x; then
5023 if test -n "$ac_tool_prefix"; then
5024 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5025 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 $as_echo_n "checking for $ac_word... " >&6; }
5028 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5029 $as_echo_n "(cached) " >&6
5030 else
5031 if test -n "$RANLIB"; then
5032 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5033 else
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5036 do
5037 IFS=$as_save_IFS
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 break 2
5044 fi
5045 done
5046 done
5047 IFS=$as_save_IFS
5048
5049 fi
5050 fi
5051 RANLIB=$ac_cv_prog_RANLIB
5052 if test -n "$RANLIB"; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5054 $as_echo "$RANLIB" >&6; }
5055 else
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 $as_echo "no" >&6; }
5058 fi
5059
5060
5061 fi
5062 if test -z "$ac_cv_prog_RANLIB"; then
5063 ac_ct_RANLIB=$RANLIB
5064 # Extract the first word of "ranlib", so it can be a program name with args.
5065 set dummy ranlib; ac_word=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5069 $as_echo_n "(cached) " >&6
5070 else
5071 if test -n "$ac_ct_RANLIB"; then
5072 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_prog_ac_ct_RANLIB="ranlib"
5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5084 fi
5085 done
5086 done
5087 IFS=$as_save_IFS
5088
5089 fi
5090 fi
5091 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5092 if test -n "$ac_ct_RANLIB"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5094 $as_echo "$ac_ct_RANLIB" >&6; }
5095 else
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5098 fi
5099
5100 if test "x$ac_ct_RANLIB" = x; then
5101 RANLIB=":"
5102 else
5103 case $cross_compiling:$ac_tool_warned in
5104 yes:)
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5107 ac_tool_warned=yes ;;
5108 esac
5109 RANLIB=$ac_ct_RANLIB
5110 fi
5111 else
5112 RANLIB="$ac_cv_prog_RANLIB"
5113 fi
5114
5115 fi
5116 # Extract the first word of "install-info", so it can be a program name with args.
5117 set dummy install-info; ac_word=$2
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119 $as_echo_n "checking for $ac_word... " >&6; }
5120 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 case $INSTALL_INFO in
5124 [\\/]* | ?:[\\/]*)
5125 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5126 ;;
5127 *)
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5130 do
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5135 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5138 fi
5139 done
5140 done
5141 IFS=$as_save_IFS
5142
5143 ;;
5144 esac
5145 fi
5146 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5147 if test -n "$INSTALL_INFO"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5149 $as_echo "$INSTALL_INFO" >&6; }
5150 else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5153 fi
5154
5155
5156 # Extract the first word of "install-info", so it can be a program name with args.
5157 set dummy install-info; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 case $INSTALL_INFO in
5164 [\\/]* | ?:[\\/]*)
5165 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5166 ;;
5167 *)
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in /usr/sbin
5170 do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5178 fi
5179 done
5180 done
5181 IFS=$as_save_IFS
5182
5183 ;;
5184 esac
5185 fi
5186 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5187 if test -n "$INSTALL_INFO"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5189 $as_echo "$INSTALL_INFO" >&6; }
5190 else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5193 fi
5194
5195
5196 # Extract the first word of "install-info", so it can be a program name with args.
5197 set dummy install-info; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 case $INSTALL_INFO in
5204 [\\/]* | ?:[\\/]*)
5205 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5206 ;;
5207 *)
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in /sbin
5210 do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5218 fi
5219 done
5220 done
5221 IFS=$as_save_IFS
5222
5223 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5224 ;;
5225 esac
5226 fi
5227 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5228 if test -n "$INSTALL_INFO"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5230 $as_echo "$INSTALL_INFO" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 fi
5235
5236
5237 # Extract the first word of "gzip", so it can be a program name with args.
5238 set dummy gzip; ac_word=$2
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5240 $as_echo_n "checking for $ac_word... " >&6; }
5241 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 case $GZIP_PROG in
5245 [\\/]* | ?:[\\/]*)
5246 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5247 ;;
5248 *)
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5251 do
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5259 fi
5260 done
5261 done
5262 IFS=$as_save_IFS
5263
5264 ;;
5265 esac
5266 fi
5267 GZIP_PROG=$ac_cv_path_GZIP_PROG
5268 if test -n "$GZIP_PROG"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5270 $as_echo "$GZIP_PROG" >&6; }
5271 else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5274 fi
5275
5276
5277
5278
5279 ## Need makeinfo >= 4.6 (?) to build the manuals.
5280 # Extract the first word of "makeinfo", so it can be a program name with args.
5281 set dummy makeinfo; ac_word=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 case $MAKEINFO in
5288 [\\/]* | ?:[\\/]*)
5289 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5290 ;;
5291 *)
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 for as_dir in $PATH
5294 do
5295 IFS=$as_save_IFS
5296 test -z "$as_dir" && as_dir=.
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5299 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5301 break 2
5302 fi
5303 done
5304 done
5305 IFS=$as_save_IFS
5306
5307 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5308 ;;
5309 esac
5310 fi
5311 MAKEINFO=$ac_cv_path_MAKEINFO
5312 if test -n "$MAKEINFO"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5314 $as_echo "$MAKEINFO" >&6; }
5315 else
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5318 fi
5319
5320
5321 if test "$MAKEINFO" != "no" && \
5322 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
5323 MAKEINFO=no
5324 fi
5325
5326 ## Makeinfo is unusual. For a released Emacs, the manuals are
5327 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5328 ## therefore in the category of "special tools" not normally required, which
5329 ## configure does not have to check for (eg autoconf itself).
5330 ## In a Bazaar checkout on the other hand, the manuals are not included.
5331 ## So makeinfo is a requirement to build from Bazaar, and configure
5332 ## should test for it as it does for any other build requirement.
5333 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5334 ## with pre-built manuals, from a Bazaar checkout.
5335 if test "$MAKEINFO" = "no"; then
5336 if test "x${with_makeinfo}" = "xno"; then
5337 MAKEINFO=off
5338 elif test ! -e $srcdir/info/emacs; then
5339 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5340 source tree does not seem to have pre-built manuals in the \`info' directory.
5341 Either install a suitable version of makeinfo, or re-run configure
5342 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5343 fi
5344 fi
5345
5346
5347 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5348 then
5349 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5350 fi
5351
5352 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5353 then
5354 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5355 fi
5356
5357
5358 late_LDFLAGS=$LDFLAGS
5359 if test "$GCC" = yes; then
5360 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5361 else
5362 LDFLAGS="$LDFLAGS -znocombreloc"
5363 fi
5364
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5366 $as_echo_n "checking for -znocombreloc... " >&6; }
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5369 main(){return 0;}
5370 _ACEOF
5371 if ac_fn_c_try_link "$LINENO"; then :
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5373 $as_echo "yes" >&6; }
5374 else
5375 LDFLAGS=$late_LDFLAGS
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5378 fi
5379 rm -f core conftest.err conftest.$ac_objext \
5380 conftest$ac_exeext conftest.$ac_ext
5381
5382 #### Extract some information from the operating system and machine files.
5383
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5385 - which libraries the lib-src programs will want, and
5386 - whether the GNU malloc routines are usable..." >&5
5387 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5388 - which libraries the lib-src programs will want, and
5389 - whether the GNU malloc routines are usable..." >&6;}
5390
5391 ### First figure out CFLAGS (which we use for running the compiler here)
5392 ### and REAL_CFLAGS (which we use for real compilation).
5393 ### The two are the same except on a few systems, where they are made
5394 ### different to work around various lossages. For example,
5395 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5396 ### as implying static linking.
5397
5398 ### If the CFLAGS env var is specified, we use that value
5399 ### instead of the default.
5400
5401 ### It's not important that this name contain the PID; you can't run
5402 ### two configures in the same directory and have anything work
5403 ### anyway.
5404 tempcname="conftest.c"
5405
5406 echo '
5407 #include "'${srcdir}'/src/'${opsysfile}'"
5408 #include "'${srcdir}'/src/'${machfile}'"
5409 #ifndef LIBS_MACHINE
5410 #define LIBS_MACHINE
5411 #endif
5412 #ifndef LIBS_SYSTEM
5413 #define LIBS_SYSTEM
5414 #endif
5415 #ifndef C_SWITCH_SYSTEM
5416 #define C_SWITCH_SYSTEM
5417 #endif
5418 #ifndef C_SWITCH_MACHINE
5419 #define C_SWITCH_MACHINE
5420 #endif
5421 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5422 configure___ c_switch_system=C_SWITCH_SYSTEM
5423 configure___ c_switch_machine=C_SWITCH_MACHINE
5424
5425 #ifndef LIB_X11_LIB
5426 #define LIB_X11_LIB -lX11
5427 #endif
5428
5429 configure___ LIBX=LIB_X11_LIB
5430
5431 #ifdef UNEXEC
5432 configure___ unexec=UNEXEC
5433 #else
5434 configure___ unexec=unexec.o
5435 #endif
5436
5437 #ifdef SYSTEM_MALLOC
5438 configure___ system_malloc=yes
5439 #else
5440 configure___ system_malloc=no
5441 #endif
5442
5443 #ifdef USE_MMAP_FOR_BUFFERS
5444 configure___ use_mmap_for_buffers=yes
5445 #else
5446 configure___ use_mmap_for_buffers=no
5447 #endif
5448
5449 #ifndef C_OPTIMIZE_SWITCH
5450 #ifdef __GNUC__
5451 #define C_OPTIMIZE_SWITCH -O2
5452 #else
5453 #define C_OPTIMIZE_SWITCH -O
5454 #endif
5455 #endif
5456
5457 #ifndef C_WARNINGS_SWITCH
5458 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5459 #endif
5460
5461 #ifndef LD_SWITCH_MACHINE
5462 #define LD_SWITCH_MACHINE
5463 #endif
5464
5465 #ifndef LD_SWITCH_SYSTEM
5466 #define LD_SWITCH_SYSTEM
5467 #endif
5468
5469 #ifndef LD_SWITCH_X_SITE_AUX
5470 #define LD_SWITCH_X_SITE_AUX
5471 #endif
5472
5473 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5474 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5475
5476 #ifdef THIS_IS_CONFIGURE
5477
5478 /* Get the CFLAGS for tests in configure. */
5479 #ifdef __GNUC__
5480 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5481 #else
5482 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5483 #endif
5484
5485 #else /* not THIS_IS_CONFIGURE */
5486
5487 /* Get the CFLAGS for real compilation. */
5488 #ifdef __GNUC__
5489 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5490 #else
5491 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5492 #endif
5493
5494 #endif /* not THIS_IS_CONFIGURE */
5495 ' > ${tempcname}
5496
5497 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5498
5499 # The value of CPP is a quoted variable reference, so we need to do this
5500 # to get its actual value...
5501 CPP=`eval "echo $CPP"`
5502 eval `${CPP} -Isrc ${tempcname} \
5503 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5504 if test "x$SPECIFIED_CFLAGS" = x; then
5505 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5506 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5507 else
5508 REAL_CFLAGS="$CFLAGS"
5509 fi
5510 rm ${tempcname}
5511
5512 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5513
5514 ### Make sure subsequent tests use flags consistent with the build flags.
5515
5516 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5517 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5518 else
5519 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5520 fi
5521
5522
5523
5524 # Check whether --enable-largefile was given.
5525 if test "${enable_largefile+set}" = set; then :
5526 enableval=$enable_largefile;
5527 fi
5528
5529 if test "$enable_largefile" != no; then
5530
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5532 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5533 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 ac_cv_sys_largefile_CC=no
5537 if test "$GCC" != yes; then
5538 ac_save_CC=$CC
5539 while :; do
5540 # IRIX 6.2 and later do not support large files by default,
5541 # so use the C compiler's -n32 option if that helps.
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5544 #include <sys/types.h>
5545 /* Check that off_t can represent 2**63 - 1 correctly.
5546 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5547 since some C++ compilers masquerading as C compilers
5548 incorrectly reject 9223372036854775807. */
5549 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5550 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5551 && LARGE_OFF_T % 2147483647 == 1)
5552 ? 1 : -1];
5553 int
5554 main ()
5555 {
5556
5557 ;
5558 return 0;
5559 }
5560 _ACEOF
5561 if ac_fn_c_try_compile "$LINENO"; then :
5562 break
5563 fi
5564 rm -f core conftest.err conftest.$ac_objext
5565 CC="$CC -n32"
5566 if ac_fn_c_try_compile "$LINENO"; then :
5567 ac_cv_sys_largefile_CC=' -n32'; break
5568 fi
5569 rm -f core conftest.err conftest.$ac_objext
5570 break
5571 done
5572 CC=$ac_save_CC
5573 rm -f conftest.$ac_ext
5574 fi
5575 fi
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5577 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5578 if test "$ac_cv_sys_largefile_CC" != no; then
5579 CC=$CC$ac_cv_sys_largefile_CC
5580 fi
5581
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5583 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5584 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 while :; do
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 #include <sys/types.h>
5591 /* Check that off_t can represent 2**63 - 1 correctly.
5592 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5593 since some C++ compilers masquerading as C compilers
5594 incorrectly reject 9223372036854775807. */
5595 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5596 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5597 && LARGE_OFF_T % 2147483647 == 1)
5598 ? 1 : -1];
5599 int
5600 main ()
5601 {
5602
5603 ;
5604 return 0;
5605 }
5606 _ACEOF
5607 if ac_fn_c_try_compile "$LINENO"; then :
5608 ac_cv_sys_file_offset_bits=no; break
5609 fi
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613 #define _FILE_OFFSET_BITS 64
5614 #include <sys/types.h>
5615 /* Check that off_t can represent 2**63 - 1 correctly.
5616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5617 since some C++ compilers masquerading as C compilers
5618 incorrectly reject 9223372036854775807. */
5619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5621 && LARGE_OFF_T % 2147483647 == 1)
5622 ? 1 : -1];
5623 int
5624 main ()
5625 {
5626
5627 ;
5628 return 0;
5629 }
5630 _ACEOF
5631 if ac_fn_c_try_compile "$LINENO"; then :
5632 ac_cv_sys_file_offset_bits=64; break
5633 fi
5634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 ac_cv_sys_file_offset_bits=unknown
5636 break
5637 done
5638 fi
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5640 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5641 case $ac_cv_sys_file_offset_bits in #(
5642 no | unknown) ;;
5643 *)
5644 cat >>confdefs.h <<_ACEOF
5645 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5646 _ACEOF
5647 ;;
5648 esac
5649 rm -rf conftest*
5650 if test $ac_cv_sys_file_offset_bits = unknown; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5652 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5653 if test "${ac_cv_sys_large_files+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5655 else
5656 while :; do
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 #include <sys/types.h>
5660 /* Check that off_t can represent 2**63 - 1 correctly.
5661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5662 since some C++ compilers masquerading as C compilers
5663 incorrectly reject 9223372036854775807. */
5664 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5666 && LARGE_OFF_T % 2147483647 == 1)
5667 ? 1 : -1];
5668 int
5669 main ()
5670 {
5671
5672 ;
5673 return 0;
5674 }
5675 _ACEOF
5676 if ac_fn_c_try_compile "$LINENO"; then :
5677 ac_cv_sys_large_files=no; break
5678 fi
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 #define _LARGE_FILES 1
5683 #include <sys/types.h>
5684 /* Check that off_t can represent 2**63 - 1 correctly.
5685 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5686 since some C++ compilers masquerading as C compilers
5687 incorrectly reject 9223372036854775807. */
5688 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5689 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5690 && LARGE_OFF_T % 2147483647 == 1)
5691 ? 1 : -1];
5692 int
5693 main ()
5694 {
5695
5696 ;
5697 return 0;
5698 }
5699 _ACEOF
5700 if ac_fn_c_try_compile "$LINENO"; then :
5701 ac_cv_sys_large_files=1; break
5702 fi
5703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5704 ac_cv_sys_large_files=unknown
5705 break
5706 done
5707 fi
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5709 $as_echo "$ac_cv_sys_large_files" >&6; }
5710 case $ac_cv_sys_large_files in #(
5711 no | unknown) ;;
5712 *)
5713 cat >>confdefs.h <<_ACEOF
5714 #define _LARGE_FILES $ac_cv_sys_large_files
5715 _ACEOF
5716 ;;
5717 esac
5718 rm -rf conftest*
5719 fi
5720 fi
5721
5722
5723
5724 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5725 ### be located in either /usr/lib64 or /usr/lib.
5726 ### In some rare cases, /usr/lib64 exists but does not contain the
5727 ### relevant files (bug#1287). Hence test for crtn.o.
5728 case "${canonical}" in
5729 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5730 if test -e /usr/lib64/crtn.o; then
5731
5732 $as_echo "#define HAVE_LIB64_DIR 1" >>confdefs.h
5733
5734 fi
5735 esac
5736
5737
5738
5739
5740 if test "${with_sound}" != "no"; then
5741 # Sound support for GNU/Linux and the free BSDs.
5742 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5743 do :
5744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5745 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5746 eval as_val=\$$as_ac_Header
5747 if test "x$as_val" = x""yes; then :
5748 cat >>confdefs.h <<_ACEOF
5749 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5750 _ACEOF
5751
5752 fi
5753
5754 done
5755
5756 # Emulation library used on NetBSD.
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5758 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5759 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 ac_check_lib_save_LIBS=$LIBS
5763 LIBS="-lossaudio $LIBS"
5764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5766
5767 /* Override any GCC internal prototype to avoid an error.
5768 Use char because int might match the return type of a GCC
5769 builtin and then its argument prototype would still apply. */
5770 #ifdef __cplusplus
5771 extern "C"
5772 #endif
5773 char _oss_ioctl ();
5774 int
5775 main ()
5776 {
5777 return _oss_ioctl ();
5778 ;
5779 return 0;
5780 }
5781 _ACEOF
5782 if ac_fn_c_try_link "$LINENO"; then :
5783 ac_cv_lib_ossaudio__oss_ioctl=yes
5784 else
5785 ac_cv_lib_ossaudio__oss_ioctl=no
5786 fi
5787 rm -f core conftest.err conftest.$ac_objext \
5788 conftest$ac_exeext conftest.$ac_ext
5789 LIBS=$ac_check_lib_save_LIBS
5790 fi
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5792 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5793 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5794 LIBSOUND=-lossaudio
5795 else
5796 LIBSOUND=
5797 fi
5798
5799
5800
5801 ALSA_REQUIRED=1.0.0
5802 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5803
5804 succeeded=no
5805
5806 # Extract the first word of "pkg-config", so it can be a program name with args.
5807 set dummy pkg-config; ac_word=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 case $PKG_CONFIG in
5814 [\\/]* | ?:[\\/]*)
5815 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5816 ;;
5817 *)
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821 IFS=$as_save_IFS
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5825 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 break 2
5828 fi
5829 done
5830 done
5831 IFS=$as_save_IFS
5832
5833 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5834 ;;
5835 esac
5836 fi
5837 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5838 if test -n "$PKG_CONFIG"; then
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5840 $as_echo "$PKG_CONFIG" >&6; }
5841 else
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5844 fi
5845
5846
5847
5848 if test "$PKG_CONFIG" = "no" ; then
5849 HAVE_ALSA=no
5850 else
5851 PKG_CONFIG_MIN_VERSION=0.9.0
5852 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
5854 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
5855
5856 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5858 $as_echo "yes" >&6; }
5859 succeeded=yes
5860
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
5862 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
5863 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
5865 $as_echo "$ALSA_CFLAGS" >&6; }
5866
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
5868 $as_echo_n "checking ALSA_LIBS... " >&6; }
5869 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
5871 $as_echo "$ALSA_LIBS" >&6; }
5872 else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5875 ALSA_CFLAGS=""
5876 ALSA_LIBS=""
5877 ## If we have a custom action on failure, don't print errors, but
5878 ## do set a variable so people can do so.
5879 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5880
5881 fi
5882
5883
5884
5885 else
5886 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5887 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5888 fi
5889 fi
5890
5891 if test $succeeded = yes; then
5892 HAVE_ALSA=yes
5893 else
5894 HAVE_ALSA=no
5895 fi
5896
5897 if test $HAVE_ALSA = yes; then
5898 SAVE_CFLAGS="$CFLAGS"
5899 SAVE_LDFLAGS="$LDFLAGS"
5900 CFLAGS="$ALSA_CFLAGS $CFLAGS"
5901 LDFLAGS="$ALSA_LIBS $LDFLAGS"
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5904 #include <asoundlib.h>
5905 int
5906 main ()
5907 {
5908 snd_lib_error_set_handler (0);
5909 ;
5910 return 0;
5911 }
5912 _ACEOF
5913 if ac_fn_c_try_compile "$LINENO"; then :
5914 emacs_alsa_normal=yes
5915 else
5916 emacs_alsa_normal=no
5917 fi
5918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5919 if test "$emacs_alsa_normal" != yes; then
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5922 #include <alsa/asoundlib.h>
5923 int
5924 main ()
5925 {
5926 snd_lib_error_set_handler (0);
5927 ;
5928 return 0;
5929 }
5930 _ACEOF
5931 if ac_fn_c_try_compile "$LINENO"; then :
5932 emacs_alsa_subdir=yes
5933 else
5934 emacs_alsa_subdir=no
5935 fi
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937 if test "$emacs_alsa_subdir" != yes; then
5938 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
5939 fi
5940 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
5941 fi
5942
5943 CFLAGS="$SAVE_CFLAGS"
5944 LDFLAGS="$SAVE_LDFLAGS"
5945 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5946 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5947
5948 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
5949
5950 fi
5951
5952 fi
5953
5954 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5955 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5956 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5957 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5958 sys/utsname.h pwd.h utmp.h
5959 do :
5960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5961 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5962 eval as_val=\$$as_ac_Header
5963 if test "x$as_val" = x""yes; then :
5964 cat >>confdefs.h <<_ACEOF
5965 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5966 _ACEOF
5967
5968 fi
5969
5970 done
5971
5972
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
5974 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976 /* end confdefs.h. */
5977 #include <sys/personality.h>
5978 int
5979 main ()
5980 {
5981 personality (PER_LINUX32)
5982 ;
5983 return 0;
5984 }
5985 _ACEOF
5986 if ac_fn_c_try_compile "$LINENO"; then :
5987 emacs_cv_personality_linux32=yes
5988 else
5989 emacs_cv_personality_linux32=no
5990 fi
5991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
5993 $as_echo "$emacs_cv_personality_linux32" >&6; }
5994
5995 if test $emacs_cv_personality_linux32 = yes; then
5996
5997 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
5998
5999 fi
6000
6001 for ac_header in term.h
6002 do :
6003 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6004 if test "x$ac_cv_header_term_h" = x""yes; then :
6005 cat >>confdefs.h <<_ACEOF
6006 #define HAVE_TERM_H 1
6007 _ACEOF
6008
6009 fi
6010
6011 done
6012
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6014 $as_echo_n "checking for ANSI C header files... " >&6; }
6015 if test "${ac_cv_header_stdc+set}" = set; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h. */
6020 #include <stdlib.h>
6021 #include <stdarg.h>
6022 #include <string.h>
6023 #include <float.h>
6024
6025 int
6026 main ()
6027 {
6028
6029 ;
6030 return 0;
6031 }
6032 _ACEOF
6033 if ac_fn_c_try_compile "$LINENO"; then :
6034 ac_cv_header_stdc=yes
6035 else
6036 ac_cv_header_stdc=no
6037 fi
6038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6039
6040 if test $ac_cv_header_stdc = yes; then
6041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 #include <string.h>
6045
6046 _ACEOF
6047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6048 $EGREP "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6061 #include <stdlib.h>
6062
6063 _ACEOF
6064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065 $EGREP "free" >/dev/null 2>&1; then :
6066
6067 else
6068 ac_cv_header_stdc=no
6069 fi
6070 rm -f conftest*
6071
6072 fi
6073
6074 if test $ac_cv_header_stdc = yes; then
6075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6076 if test "$cross_compiling" = yes; then :
6077 :
6078 else
6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6081 #include <ctype.h>
6082 #include <stdlib.h>
6083 #if ((' ' & 0x0FF) == 0x020)
6084 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6085 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6086 #else
6087 # define ISLOWER(c) \
6088 (('a' <= (c) && (c) <= 'i') \
6089 || ('j' <= (c) && (c) <= 'r') \
6090 || ('s' <= (c) && (c) <= 'z'))
6091 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6092 #endif
6093
6094 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6095 int
6096 main ()
6097 {
6098 int i;
6099 for (i = 0; i < 256; i++)
6100 if (XOR (islower (i), ISLOWER (i))
6101 || toupper (i) != TOUPPER (i))
6102 return 2;
6103 return 0;
6104 }
6105 _ACEOF
6106 if ac_fn_c_try_run "$LINENO"; then :
6107
6108 else
6109 ac_cv_header_stdc=no
6110 fi
6111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6112 conftest.$ac_objext conftest.beam conftest.$ac_ext
6113 fi
6114
6115 fi
6116 fi
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6118 $as_echo "$ac_cv_header_stdc" >&6; }
6119 if test $ac_cv_header_stdc = yes; then
6120
6121 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6122
6123 fi
6124
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6126 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6127 if test "${ac_cv_header_time+set}" = set; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 #include <sys/types.h>
6133 #include <sys/time.h>
6134 #include <time.h>
6135
6136 int
6137 main ()
6138 {
6139 if ((struct tm *) 0)
6140 return 0;
6141 ;
6142 return 0;
6143 }
6144 _ACEOF
6145 if ac_fn_c_try_compile "$LINENO"; then :
6146 ac_cv_header_time=yes
6147 else
6148 ac_cv_header_time=no
6149 fi
6150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151 fi
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6153 $as_echo "$ac_cv_header_time" >&6; }
6154 if test $ac_cv_header_time = yes; then
6155
6156 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6157
6158 fi
6159
6160 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6161 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6162 ac_have_decl=1
6163 else
6164 ac_have_decl=0
6165 fi
6166
6167 cat >>confdefs.h <<_ACEOF
6168 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6169 _ACEOF
6170
6171 if test $ac_cv_have_decl_sys_siglist != yes; then
6172 # For Tru64, at least:
6173 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6174 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6175 ac_have_decl=1
6176 else
6177 ac_have_decl=0
6178 fi
6179
6180 cat >>confdefs.h <<_ACEOF
6181 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6182 _ACEOF
6183
6184 if test $ac_cv_have_decl___sys_siglist = yes; then
6185
6186 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6187
6188 fi
6189 fi
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6191 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6192 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6193 $as_echo_n "(cached) " >&6
6194 else
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6197 #include <sys/types.h>
6198 #include <sys/wait.h>
6199 #ifndef WEXITSTATUS
6200 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6201 #endif
6202 #ifndef WIFEXITED
6203 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6204 #endif
6205
6206 int
6207 main ()
6208 {
6209 int s;
6210 wait (&s);
6211 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6212 ;
6213 return 0;
6214 }
6215 _ACEOF
6216 if ac_fn_c_try_compile "$LINENO"; then :
6217 ac_cv_header_sys_wait_h=yes
6218 else
6219 ac_cv_header_sys_wait_h=no
6220 fi
6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 fi
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6224 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6225 if test $ac_cv_header_sys_wait_h = yes; then
6226
6227 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6228
6229 fi
6230
6231
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6233 $as_echo_n "checking for struct utimbuf... " >&6; }
6234 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6239 #ifdef TIME_WITH_SYS_TIME
6240 #include <sys/time.h>
6241 #include <time.h>
6242 #else
6243 #ifdef HAVE_SYS_TIME_H
6244 #include <sys/time.h>
6245 #else
6246 #include <time.h>
6247 #endif
6248 #endif
6249 #ifdef HAVE_UTIME_H
6250 #include <utime.h>
6251 #endif
6252 int
6253 main ()
6254 {
6255 static struct utimbuf x; x.actime = x.modtime;
6256 ;
6257 return 0;
6258 }
6259 _ACEOF
6260 if ac_fn_c_try_compile "$LINENO"; then :
6261 emacs_cv_struct_utimbuf=yes
6262 else
6263 emacs_cv_struct_utimbuf=no
6264 fi
6265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6266 fi
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6268 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6269 if test $emacs_cv_struct_utimbuf = yes; then
6270
6271 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6272
6273 fi
6274
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6276 $as_echo_n "checking return type of signal handlers... " >&6; }
6277 if test "${ac_cv_type_signal+set}" = set; then :
6278 $as_echo_n "(cached) " >&6
6279 else
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6282 #include <sys/types.h>
6283 #include <signal.h>
6284
6285 int
6286 main ()
6287 {
6288 return *(signal (0, 0)) (0) == 1;
6289 ;
6290 return 0;
6291 }
6292 _ACEOF
6293 if ac_fn_c_try_compile "$LINENO"; then :
6294 ac_cv_type_signal=int
6295 else
6296 ac_cv_type_signal=void
6297 fi
6298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6299 fi
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6301 $as_echo "$ac_cv_type_signal" >&6; }
6302
6303 cat >>confdefs.h <<_ACEOF
6304 #define RETSIGTYPE $ac_cv_type_signal
6305 _ACEOF
6306
6307
6308
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6310 $as_echo_n "checking for speed_t... " >&6; }
6311 if test "${emacs_cv_speed_t+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6316 #include <termios.h>
6317 int
6318 main ()
6319 {
6320 speed_t x = 1;
6321 ;
6322 return 0;
6323 }
6324 _ACEOF
6325 if ac_fn_c_try_compile "$LINENO"; then :
6326 emacs_cv_speed_t=yes
6327 else
6328 emacs_cv_speed_t=no
6329 fi
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 fi
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6333 $as_echo "$emacs_cv_speed_t" >&6; }
6334 if test $emacs_cv_speed_t = yes; then
6335
6336 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6337
6338 fi
6339
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6341 $as_echo_n "checking for struct timeval... " >&6; }
6342 if test "${emacs_cv_struct_timeval+set}" = set; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6347 #ifdef TIME_WITH_SYS_TIME
6348 #include <sys/time.h>
6349 #include <time.h>
6350 #else
6351 #ifdef HAVE_SYS_TIME_H
6352 #include <sys/time.h>
6353 #else
6354 #include <time.h>
6355 #endif
6356 #endif
6357 int
6358 main ()
6359 {
6360 static struct timeval x; x.tv_sec = x.tv_usec;
6361 ;
6362 return 0;
6363 }
6364 _ACEOF
6365 if ac_fn_c_try_compile "$LINENO"; then :
6366 emacs_cv_struct_timeval=yes
6367 else
6368 emacs_cv_struct_timeval=no
6369 fi
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371 fi
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6373 $as_echo "$emacs_cv_struct_timeval" >&6; }
6374 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6375 if test $emacs_cv_struct_timeval = yes; then
6376
6377 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6378
6379 fi
6380
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6382 $as_echo_n "checking for struct exception... " >&6; }
6383 if test "${emacs_cv_struct_exception+set}" = set; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6388 #include <math.h>
6389 int
6390 main ()
6391 {
6392 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6393 ;
6394 return 0;
6395 }
6396 _ACEOF
6397 if ac_fn_c_try_compile "$LINENO"; then :
6398 emacs_cv_struct_exception=yes
6399 else
6400 emacs_cv_struct_exception=no
6401 fi
6402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403 fi
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6405 $as_echo "$emacs_cv_struct_exception" >&6; }
6406 HAVE_EXCEPTION=$emacs_cv_struct_exception
6407 if test $emacs_cv_struct_exception != yes; then
6408
6409 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6410
6411 fi
6412
6413 for ac_header in sys/socket.h
6414 do :
6415 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6416 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6417 cat >>confdefs.h <<_ACEOF
6418 #define HAVE_SYS_SOCKET_H 1
6419 _ACEOF
6420
6421 fi
6422
6423 done
6424
6425 for ac_header in net/if.h
6426 do :
6427 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6428 #if HAVE_SYS_SOCKET_H
6429 #include <sys/socket.h>
6430 #endif
6431 "
6432 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6433 cat >>confdefs.h <<_ACEOF
6434 #define HAVE_NET_IF_H 1
6435 _ACEOF
6436
6437 fi
6438
6439 done
6440
6441
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6443 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6444 if test "${ac_cv_struct_tm+set}" = set; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6449 #include <sys/types.h>
6450 #include <time.h>
6451
6452 int
6453 main ()
6454 {
6455 struct tm tm;
6456 int *p = &tm.tm_sec;
6457 return !p;
6458 ;
6459 return 0;
6460 }
6461 _ACEOF
6462 if ac_fn_c_try_compile "$LINENO"; then :
6463 ac_cv_struct_tm=time.h
6464 else
6465 ac_cv_struct_tm=sys/time.h
6466 fi
6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468 fi
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6470 $as_echo "$ac_cv_struct_tm" >&6; }
6471 if test $ac_cv_struct_tm = sys/time.h; then
6472
6473 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6474
6475 fi
6476
6477 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6478 #include <$ac_cv_struct_tm>
6479
6480 "
6481 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6482
6483 cat >>confdefs.h <<_ACEOF
6484 #define HAVE_STRUCT_TM_TM_ZONE 1
6485 _ACEOF
6486
6487
6488 fi
6489
6490 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6491
6492 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6493
6494 else
6495 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6496 "
6497 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6498 ac_have_decl=1
6499 else
6500 ac_have_decl=0
6501 fi
6502
6503 cat >>confdefs.h <<_ACEOF
6504 #define HAVE_DECL_TZNAME $ac_have_decl
6505 _ACEOF
6506
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6508 $as_echo_n "checking for tzname... " >&6; }
6509 if test "${ac_cv_var_tzname+set}" = set; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6514 #include <time.h>
6515 #if !HAVE_DECL_TZNAME
6516 extern char *tzname[];
6517 #endif
6518
6519 int
6520 main ()
6521 {
6522 return tzname[0][0];
6523 ;
6524 return 0;
6525 }
6526 _ACEOF
6527 if ac_fn_c_try_link "$LINENO"; then :
6528 ac_cv_var_tzname=yes
6529 else
6530 ac_cv_var_tzname=no
6531 fi
6532 rm -f core conftest.err conftest.$ac_objext \
6533 conftest$ac_exeext conftest.$ac_ext
6534 fi
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6536 $as_echo "$ac_cv_var_tzname" >&6; }
6537 if test $ac_cv_var_tzname = yes; then
6538
6539 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6540
6541 fi
6542 fi
6543
6544 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6545 "
6546 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6547
6548 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6549
6550 fi
6551
6552 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6553 #if HAVE_SYS_SOCKET_H
6554 #include <sys/socket.h>
6555 #endif
6556 #if HAVE_NET_IF_H
6557 #include <net/if.h>
6558 #endif
6559 "
6560 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6561
6562 cat >>confdefs.h <<_ACEOF
6563 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6564 _ACEOF
6565
6566
6567 fi
6568 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6569 #if HAVE_SYS_SOCKET_H
6570 #include <sys/socket.h>
6571 #endif
6572 #if HAVE_NET_IF_H
6573 #include <net/if.h>
6574 #endif
6575 "
6576 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6577
6578 cat >>confdefs.h <<_ACEOF
6579 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6580 _ACEOF
6581
6582
6583 fi
6584 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6585 #if HAVE_SYS_SOCKET_H
6586 #include <sys/socket.h>
6587 #endif
6588 #if HAVE_NET_IF_H
6589 #include <net/if.h>
6590 #endif
6591 "
6592 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6593
6594 cat >>confdefs.h <<_ACEOF
6595 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6596 _ACEOF
6597
6598
6599 fi
6600 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6601 #if HAVE_SYS_SOCKET_H
6602 #include <sys/socket.h>
6603 #endif
6604 #if HAVE_NET_IF_H
6605 #include <net/if.h>
6606 #endif
6607 "
6608 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6609
6610 cat >>confdefs.h <<_ACEOF
6611 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6612 _ACEOF
6613
6614
6615 fi
6616 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6617 #if HAVE_SYS_SOCKET_H
6618 #include <sys/socket.h>
6619 #endif
6620 #if HAVE_NET_IF_H
6621 #include <net/if.h>
6622 #endif
6623 "
6624 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6625
6626 cat >>confdefs.h <<_ACEOF
6627 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6628 _ACEOF
6629
6630
6631 fi
6632
6633
6634
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6636 $as_echo_n "checking for function prototypes... " >&6; }
6637 if test "$ac_cv_prog_cc_c89" != no; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6639 $as_echo "yes" >&6; }
6640
6641 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6642
6643
6644 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6645
6646 else
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6649 fi
6650
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6652 $as_echo_n "checking for working volatile... " >&6; }
6653 if test "${ac_cv_c_volatile+set}" = set; then :
6654 $as_echo_n "(cached) " >&6
6655 else
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6658
6659 int
6660 main ()
6661 {
6662
6663 volatile int x;
6664 int * volatile y = (int *) 0;
6665 return !x && !y;
6666 ;
6667 return 0;
6668 }
6669 _ACEOF
6670 if ac_fn_c_try_compile "$LINENO"; then :
6671 ac_cv_c_volatile=yes
6672 else
6673 ac_cv_c_volatile=no
6674 fi
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676 fi
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6678 $as_echo "$ac_cv_c_volatile" >&6; }
6679 if test $ac_cv_c_volatile = no; then
6680
6681 $as_echo "#define volatile /**/" >>confdefs.h
6682
6683 fi
6684
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6686 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6687 if test "${ac_cv_c_const+set}" = set; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6692
6693 int
6694 main ()
6695 {
6696 /* FIXME: Include the comments suggested by Paul. */
6697 #ifndef __cplusplus
6698 /* Ultrix mips cc rejects this. */
6699 typedef int charset[2];
6700 const charset cs;
6701 /* SunOS 4.1.1 cc rejects this. */
6702 char const *const *pcpcc;
6703 char **ppc;
6704 /* NEC SVR4.0.2 mips cc rejects this. */
6705 struct point {int x, y;};
6706 static struct point const zero = {0,0};
6707 /* AIX XL C 1.02.0.0 rejects this.
6708 It does not let you subtract one const X* pointer from another in
6709 an arm of an if-expression whose if-part is not a constant
6710 expression */
6711 const char *g = "string";
6712 pcpcc = &g + (g ? g-g : 0);
6713 /* HPUX 7.0 cc rejects these. */
6714 ++pcpcc;
6715 ppc = (char**) pcpcc;
6716 pcpcc = (char const *const *) ppc;
6717 { /* SCO 3.2v4 cc rejects this. */
6718 char *t;
6719 char const *s = 0 ? (char *) 0 : (char const *) 0;
6720
6721 *t++ = 0;
6722 if (s) return 0;
6723 }
6724 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6725 int x[] = {25, 17};
6726 const int *foo = &x[0];
6727 ++foo;
6728 }
6729 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6730 typedef const int *iptr;
6731 iptr p = 0;
6732 ++p;
6733 }
6734 { /* AIX XL C 1.02.0.0 rejects this saying
6735 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6736 struct s { int j; const int *ap[3]; };
6737 struct s *b; b->j = 5;
6738 }
6739 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6740 const int foo = 10;
6741 if (!foo) return 0;
6742 }
6743 return !cs[0] && !zero.x;
6744 #endif
6745
6746 ;
6747 return 0;
6748 }
6749 _ACEOF
6750 if ac_fn_c_try_compile "$LINENO"; then :
6751 ac_cv_c_const=yes
6752 else
6753 ac_cv_c_const=no
6754 fi
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756 fi
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6758 $as_echo "$ac_cv_c_const" >&6; }
6759 if test $ac_cv_c_const = no; then
6760
6761 $as_echo "#define const /**/" >>confdefs.h
6762
6763 fi
6764
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6766 $as_echo_n "checking for void * support... " >&6; }
6767 if test "${emacs_cv_void_star+set}" = set; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6771 /* end confdefs.h. */
6772
6773 int
6774 main ()
6775 {
6776 void * foo;
6777 ;
6778 return 0;
6779 }
6780 _ACEOF
6781 if ac_fn_c_try_compile "$LINENO"; then :
6782 emacs_cv_void_star=yes
6783 else
6784 emacs_cv_void_star=no
6785 fi
6786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787 fi
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6789 $as_echo "$emacs_cv_void_star" >&6; }
6790 if test $emacs_cv_void_star = yes; then
6791 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6792
6793 else
6794 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6795
6796 fi
6797
6798
6799
6800
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6802 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6803 set x ${MAKE-make}
6804 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6805 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6806 $as_echo_n "(cached) " >&6
6807 else
6808 cat >conftest.make <<\_ACEOF
6809 SHELL = /bin/sh
6810 all:
6811 @echo '@@@%%%=$(MAKE)=@@@%%%'
6812 _ACEOF
6813 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6814 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6815 *@@@%%%=?*=@@@%%%*)
6816 eval ac_cv_prog_make_${ac_make}_set=yes;;
6817 *)
6818 eval ac_cv_prog_make_${ac_make}_set=no;;
6819 esac
6820 rm -f conftest.make
6821 fi
6822 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6824 $as_echo "yes" >&6; }
6825 SET_MAKE=
6826 else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
6829 SET_MAKE="MAKE=${MAKE-make}"
6830 fi
6831
6832
6833 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
6835 $as_echo_n "checking whether we are using GNU Make... " >&6; }
6836 HAVE_GNU_MAKE=no
6837 testval=`make --version 2>/dev/null | grep 'GNU Make'`
6838 if test "x$testval" != x; then
6839 HAVE_GNU_MAKE=yes
6840 else
6841 ac_enable_autodepend=no
6842 fi
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
6844 $as_echo "$HAVE_GNU_MAKE" >&6; }
6845 if test $HAVE_GNU_MAKE = yes; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
6847 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6848 SAVE_CFLAGS="$CFLAGS"
6849 CFLAGS="$CFLAGS -MMD -MF deps.d"
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852
6853 int
6854 main ()
6855 {
6856
6857 ;
6858 return 0;
6859 }
6860 _ACEOF
6861 if ac_fn_c_try_compile "$LINENO"; then :
6862
6863 else
6864 ac_enable_autodepend=no
6865 fi
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 CFLAGS="$SAVE_CFLAGS"
6868 test -f deps.d || ac_enable_autodepend=no
6869 rm -rf deps.d
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
6871 $as_echo "$ac_enable_autodepend" >&6; }
6872 fi
6873 if test $ac_enable_autodepend = yes; then
6874
6875 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h
6876
6877 fi
6878 fi
6879
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
6881 $as_echo_n "checking for long file names... " >&6; }
6882 if test "${ac_cv_sys_long_file_names+set}" = set; then :
6883 $as_echo_n "(cached) " >&6
6884 else
6885 ac_cv_sys_long_file_names=yes
6886 # Test for long file names in all the places we know might matter:
6887 # . the current directory, where building will happen
6888 # $prefix/lib where we will be installing things
6889 # $exec_prefix/lib likewise
6890 # $TMPDIR if set, where it might want to write temporary files
6891 # /tmp where it might want to write temporary files
6892 # /var/tmp likewise
6893 # /usr/tmp likewise
6894 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
6895 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
6896 # in the usual case where exec_prefix is '${prefix}'.
6897 case $ac_dir in #(
6898 . | /* | ?:[\\/]*) ;; #(
6899 *) continue;;
6900 esac
6901 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
6902 ac_xdir=$ac_dir/cf$$
6903 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
6904 ac_tf1=$ac_xdir/conftest9012345
6905 ac_tf2=$ac_xdir/conftest9012346
6906 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
6907 ac_cv_sys_long_file_names=no
6908 rm -f -r "$ac_xdir" 2>/dev/null
6909 test $ac_cv_sys_long_file_names = no && break
6910 done
6911 fi
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
6913 $as_echo "$ac_cv_sys_long_file_names" >&6; }
6914 if test $ac_cv_sys_long_file_names = yes; then
6915
6916 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
6917
6918 fi
6919
6920
6921 #### Choose a window system.
6922
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6924 $as_echo_n "checking for X... " >&6; }
6925
6926
6927 # Check whether --with-x was given.
6928 if test "${with_x+set}" = set; then :
6929 withval=$with_x;
6930 fi
6931
6932 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6933 if test "x$with_x" = xno; then
6934 # The user explicitly disabled X.
6935 have_x=disabled
6936 else
6937 case $x_includes,$x_libraries in #(
6938 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6939 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6940 $as_echo_n "(cached) " >&6
6941 else
6942 # One or both of the vars are not set, and there is no cached value.
6943 ac_x_includes=no ac_x_libraries=no
6944 rm -f -r conftest.dir
6945 if mkdir conftest.dir; then
6946 cd conftest.dir
6947 cat >Imakefile <<'_ACEOF'
6948 incroot:
6949 @echo incroot='${INCROOT}'
6950 usrlibdir:
6951 @echo usrlibdir='${USRLIBDIR}'
6952 libdir:
6953 @echo libdir='${LIBDIR}'
6954 _ACEOF
6955 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6956 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6957 for ac_var in incroot usrlibdir libdir; do
6958 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6959 done
6960 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6961 for ac_extension in a so sl dylib la dll; do
6962 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6963 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6964 ac_im_usrlibdir=$ac_im_libdir; break
6965 fi
6966 done
6967 # Screen out bogus values from the imake configuration. They are
6968 # bogus both because they are the default anyway, and because
6969 # using them would break gcc on systems where it needs fixed includes.
6970 case $ac_im_incroot in
6971 /usr/include) ac_x_includes= ;;
6972 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6973 esac
6974 case $ac_im_usrlibdir in
6975 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6976 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6977 esac
6978 fi
6979 cd ..
6980 rm -f -r conftest.dir
6981 fi
6982
6983 # Standard set of common directories for X headers.
6984 # Check X11 before X11Rn because it is often a symlink to the current release.
6985 ac_x_header_dirs='
6986 /usr/X11/include
6987 /usr/X11R7/include
6988 /usr/X11R6/include
6989 /usr/X11R5/include
6990 /usr/X11R4/include
6991
6992 /usr/include/X11
6993 /usr/include/X11R7
6994 /usr/include/X11R6
6995 /usr/include/X11R5
6996 /usr/include/X11R4
6997
6998 /usr/local/X11/include
6999 /usr/local/X11R7/include
7000 /usr/local/X11R6/include
7001 /usr/local/X11R5/include
7002 /usr/local/X11R4/include
7003
7004 /usr/local/include/X11
7005 /usr/local/include/X11R7
7006 /usr/local/include/X11R6
7007 /usr/local/include/X11R5
7008 /usr/local/include/X11R4
7009
7010 /usr/X386/include
7011 /usr/x386/include
7012 /usr/XFree86/include/X11
7013
7014 /usr/include
7015 /usr/local/include
7016 /usr/unsupported/include
7017 /usr/athena/include
7018 /usr/local/x11r5/include
7019 /usr/lpp/Xamples/include
7020
7021 /usr/openwin/include
7022 /usr/openwin/share/include'
7023
7024 if test "$ac_x_includes" = no; then
7025 # Guess where to find include files, by looking for Xlib.h.
7026 # First, try using that file with no special directory specified.
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7029 #include <X11/Xlib.h>
7030 _ACEOF
7031 if ac_fn_c_try_cpp "$LINENO"; then :
7032 # We can compile using X headers with no special include directory.
7033 ac_x_includes=
7034 else
7035 for ac_dir in $ac_x_header_dirs; do
7036 if test -r "$ac_dir/X11/Xlib.h"; then
7037 ac_x_includes=$ac_dir
7038 break
7039 fi
7040 done
7041 fi
7042 rm -f conftest.err conftest.$ac_ext
7043 fi # $ac_x_includes = no
7044
7045 if test "$ac_x_libraries" = no; then
7046 # Check for the libraries.
7047 # See if we find them without any special options.
7048 # Don't add to $LIBS permanently.
7049 ac_save_LIBS=$LIBS
7050 LIBS="-lX11 $LIBS"
7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7053 #include <X11/Xlib.h>
7054 int
7055 main ()
7056 {
7057 XrmInitialize ()
7058 ;
7059 return 0;
7060 }
7061 _ACEOF
7062 if ac_fn_c_try_link "$LINENO"; then :
7063 LIBS=$ac_save_LIBS
7064 # We can link X programs with no special library path.
7065 ac_x_libraries=
7066 else
7067 LIBS=$ac_save_LIBS
7068 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7069 do
7070 # Don't even attempt the hair of trying to link an X program!
7071 for ac_extension in a so sl dylib la dll; do
7072 if test -r "$ac_dir/libX11.$ac_extension"; then
7073 ac_x_libraries=$ac_dir
7074 break 2
7075 fi
7076 done
7077 done
7078 fi
7079 rm -f core conftest.err conftest.$ac_objext \
7080 conftest$ac_exeext conftest.$ac_ext
7081 fi # $ac_x_libraries = no
7082
7083 case $ac_x_includes,$ac_x_libraries in #(
7084 no,* | *,no | *\'*)
7085 # Didn't find X, or a directory has "'" in its name.
7086 ac_cv_have_x="have_x=no";; #(
7087 *)
7088 # Record where we found X for the cache.
7089 ac_cv_have_x="have_x=yes\
7090 ac_x_includes='$ac_x_includes'\
7091 ac_x_libraries='$ac_x_libraries'"
7092 esac
7093 fi
7094 ;; #(
7095 *) have_x=yes;;
7096 esac
7097 eval "$ac_cv_have_x"
7098 fi # $with_x != no
7099
7100 if test "$have_x" != yes; then
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7102 $as_echo "$have_x" >&6; }
7103 no_x=yes
7104 else
7105 # If each of the values was on the command line, it overrides each guess.
7106 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7107 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7108 # Update the cache value to reflect the command line values.
7109 ac_cv_have_x="have_x=yes\
7110 ac_x_includes='$x_includes'\
7111 ac_x_libraries='$x_libraries'"
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7113 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7114 fi
7115
7116 if test "$no_x" = yes; then
7117 window_system=none
7118 else
7119 window_system=x11
7120 fi
7121
7122 ## Workaround for bug in autoconf <= 2.62.
7123 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7124 ## No need to do anything special for these standard directories.
7125 ## This is an experiment, take it out if it causes problems.
7126 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7127
7128 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7129
7130 fi
7131
7132 if test "${x_libraries}" != NONE; then
7133 if test -n "${x_libraries}"; then
7134 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7135 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7136 fi
7137 x_default_search_path=""
7138 x_search_path=${x_libraries}
7139 if test -z "${x_search_path}"; then
7140 x_search_path=/usr/lib
7141 fi
7142 for x_library in `echo ${x_search_path}: | \
7143 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7144 x_search_path="\
7145 ${x_library}/X11/%L/%T/%N%C%S:\
7146 ${x_library}/X11/%l/%T/%N%C%S:\
7147 ${x_library}/X11/%T/%N%C%S:\
7148 ${x_library}/X11/%L/%T/%N%S:\
7149 ${x_library}/X11/%l/%T/%N%S:\
7150 ${x_library}/X11/%T/%N%S"
7151 if test x"${x_default_search_path}" = x; then
7152 x_default_search_path=${x_search_path}
7153 else
7154 x_default_search_path="${x_search_path}:${x_default_search_path}"
7155 fi
7156 done
7157 fi
7158 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7159 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7160 fi
7161
7162 if test x"${x_includes}" = x; then
7163 bitmapdir=/usr/include/X11/bitmaps
7164 else
7165 # accumulate include directories that have X11 bitmap subdirectories
7166 bmd_acc="dummyval"
7167 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7168 if test -d "${bmd}/X11/bitmaps"; then
7169 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7170 fi
7171 if test -d "${bmd}/bitmaps"; then
7172 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7173 fi
7174 done
7175 if test ${bmd_acc} != "dummyval"; then
7176 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7177 fi
7178 fi
7179
7180 HAVE_NS=no
7181 NS_IMPL_COCOA=no
7182 NS_IMPL_GNUSTEP=no
7183 tmp_CPPFLAGS="$CPPFLAGS"
7184 tmp_CFLAGS="$CFLAGS"
7185 CPPFLAGS="$CPPFLAGS -x objective-c"
7186 CFLAGS="$CFLAGS -x objective-c"
7187 if test "${with_ns}" != no; then
7188 if test "${opsys}" = darwin; then
7189 NS_IMPL_COCOA=yes
7190 ns_appdir=`pwd`/nextstep/Emacs.app
7191 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
7192 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
7193 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7194 elif test -f $GNUSTEP_CONFIG_FILE; then
7195 NS_IMPL_GNUSTEP=yes
7196 ns_appdir=`pwd`/nextstep/Emacs.app
7197 ns_appbindir=`pwd`/nextstep/Emacs.app
7198 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
7199 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7200 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
7201 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7202 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7203 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7204 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7205 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7206 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7207 fi
7208 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7209 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7210 HAVE_NS=yes
7211 else
7212 as_fn_error "\`--with-ns' was specified, but the include
7213 files are missing or cannot be compiled." "$LINENO" 5
7214 fi
7215
7216
7217 NS_HAVE_NSINTEGER=yes
7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7220 #include <Foundation/NSObjCRuntime.h>
7221 int
7222 main ()
7223 {
7224 NSInteger i;
7225 ;
7226 return 0;
7227 }
7228 _ACEOF
7229 if ac_fn_c_try_compile "$LINENO"; then :
7230 ns_have_nsinteger=yes
7231 else
7232 ns_have_nsinteger=no
7233 fi
7234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7235 if test $ns_have_nsinteger = no; then
7236 NS_HAVE_NSINTEGER=no
7237 fi
7238 fi
7239 if test "${HAVE_NS}" = yes; then
7240 window_system=nextstep
7241 with_xft=no
7242 # set up packaging dirs
7243 exec_prefix=${ns_appbindir}
7244 libexecdir=${ns_appbindir}/libexec
7245 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7246 prefix=${ns_appresdir}
7247 fi
7248 fi
7249 CFLAGS="$tmp_CFLAGS"
7250 CPPFLAGS="$tmp_CPPFLAGS"
7251
7252 case "${window_system}" in
7253 x11 )
7254 HAVE_X_WINDOWS=yes
7255 HAVE_X11=yes
7256 case "${with_x_toolkit}" in
7257 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7258 motif ) USE_X_TOOLKIT=MOTIF ;;
7259 gtk ) with_gtk=yes
7260 USE_X_TOOLKIT=none ;;
7261 no ) USE_X_TOOLKIT=none ;;
7262 * ) USE_X_TOOLKIT=maybe ;;
7263 esac
7264 ;;
7265 nextstep | none )
7266 HAVE_X_WINDOWS=no
7267 HAVE_X11=no
7268 USE_X_TOOLKIT=none
7269 ;;
7270 esac
7271
7272 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7273 # Extract the first word of "X", so it can be a program name with args.
7274 set dummy X; ac_word=$2
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 if test -n "$HAVE_XSERVER"; then
7281 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7282 else
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286 IFS=$as_save_IFS
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290 ac_cv_prog_HAVE_XSERVER="true"
7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 break 2
7293 fi
7294 done
7295 done
7296 IFS=$as_save_IFS
7297
7298 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7299 fi
7300 fi
7301 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7302 if test -n "$HAVE_XSERVER"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7304 $as_echo "$HAVE_XSERVER" >&6; }
7305 else
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7308 fi
7309
7310
7311 if test "$HAVE_XSERVER" = true ||
7312 test -n "$DISPLAY" ||
7313 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7314 as_fn_error "You seem to be running X, but no X development libraries
7315 were found. You should install the relevant development files for X
7316 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7317 sure you have development files for image handling, i.e.
7318 tiff, gif, jpeg, png and xpm.
7319 If you are sure you want Emacs compiled without X window support, pass
7320 --without-x
7321 to configure." "$LINENO" 5
7322 fi
7323 fi
7324
7325 ### If we're using X11, we should use the X menu package.
7326 HAVE_MENUS=no
7327 case ${HAVE_X11} in
7328 yes ) HAVE_MENUS=yes ;;
7329 esac
7330
7331 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7332 # Assume not, until told otherwise.
7333 GNU_MALLOC=yes
7334 doug_lea_malloc=yes
7335 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7336 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7337
7338 else
7339 doug_lea_malloc=no
7340 fi
7341
7342 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7343 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7344
7345 else
7346 doug_lea_malloc=no
7347 fi
7348
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7350 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7351 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7356 extern void (* __after_morecore_hook)();
7357 int
7358 main ()
7359 {
7360 __after_morecore_hook = 0
7361 ;
7362 return 0;
7363 }
7364 _ACEOF
7365 if ac_fn_c_try_link "$LINENO"; then :
7366 emacs_cv_var___after_morecore_hook=yes
7367 else
7368 emacs_cv_var___after_morecore_hook=no
7369 fi
7370 rm -f core conftest.err conftest.$ac_objext \
7371 conftest$ac_exeext conftest.$ac_ext
7372 fi
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7374 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7375 if test $emacs_cv_var___after_morecore_hook = no; then
7376 doug_lea_malloc=no
7377 fi
7378 if test "${system_malloc}" = "yes"; then
7379 GNU_MALLOC=no
7380 GNU_MALLOC_reason="
7381 (The GNU allocators don't work with this system configuration.)"
7382 fi
7383 if test "$doug_lea_malloc" = "yes" ; then
7384 if test "$GNU_MALLOC" = yes ; then
7385 GNU_MALLOC_reason="
7386 (Using Doug Lea's new malloc from the GNU C Library.)"
7387 fi
7388
7389 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7390
7391 fi
7392
7393 if test x"${REL_ALLOC}" = x; then
7394 REL_ALLOC=${GNU_MALLOC}
7395 fi
7396
7397
7398
7399
7400
7401 for ac_header in $ac_header_list
7402 do :
7403 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7404 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7405 "
7406 eval as_val=\$$as_ac_Header
7407 if test "x$as_val" = x""yes; then :
7408 cat >>confdefs.h <<_ACEOF
7409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7410 _ACEOF
7411
7412 fi
7413
7414 done
7415
7416
7417
7418
7419
7420
7421
7422
7423 for ac_func in getpagesize
7424 do :
7425 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7426 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7427 cat >>confdefs.h <<_ACEOF
7428 #define HAVE_GETPAGESIZE 1
7429 _ACEOF
7430
7431 fi
7432 done
7433
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7435 $as_echo_n "checking for working mmap... " >&6; }
7436 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 if test "$cross_compiling" = yes; then :
7440 ac_cv_func_mmap_fixed_mapped=no
7441 else
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7444 $ac_includes_default
7445 /* malloc might have been renamed as rpl_malloc. */
7446 #undef malloc
7447
7448 /* Thanks to Mike Haertel and Jim Avera for this test.
7449 Here is a matrix of mmap possibilities:
7450 mmap private not fixed
7451 mmap private fixed at somewhere currently unmapped
7452 mmap private fixed at somewhere already mapped
7453 mmap shared not fixed
7454 mmap shared fixed at somewhere currently unmapped
7455 mmap shared fixed at somewhere already mapped
7456 For private mappings, we should verify that changes cannot be read()
7457 back from the file, nor mmap's back from the file at a different
7458 address. (There have been systems where private was not correctly
7459 implemented like the infamous i386 svr4.0, and systems where the
7460 VM page cache was not coherent with the file system buffer cache
7461 like early versions of FreeBSD and possibly contemporary NetBSD.)
7462 For shared mappings, we should conversely verify that changes get
7463 propagated back to all the places they're supposed to be.
7464
7465 Grep wants private fixed already mapped.
7466 The main things grep needs to know about mmap are:
7467 * does it exist and is it safe to write into the mmap'd area
7468 * how to use it (BSD variants) */
7469
7470 #include <fcntl.h>
7471 #include <sys/mman.h>
7472
7473 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7474 char *malloc ();
7475 #endif
7476
7477 /* This mess was copied from the GNU getpagesize.h. */
7478 #ifndef HAVE_GETPAGESIZE
7479 # ifdef _SC_PAGESIZE
7480 # define getpagesize() sysconf(_SC_PAGESIZE)
7481 # else /* no _SC_PAGESIZE */
7482 # ifdef HAVE_SYS_PARAM_H
7483 # include <sys/param.h>
7484 # ifdef EXEC_PAGESIZE
7485 # define getpagesize() EXEC_PAGESIZE
7486 # else /* no EXEC_PAGESIZE */
7487 # ifdef NBPG
7488 # define getpagesize() NBPG * CLSIZE
7489 # ifndef CLSIZE
7490 # define CLSIZE 1
7491 # endif /* no CLSIZE */
7492 # else /* no NBPG */
7493 # ifdef NBPC
7494 # define getpagesize() NBPC
7495 # else /* no NBPC */
7496 # ifdef PAGESIZE
7497 # define getpagesize() PAGESIZE
7498 # endif /* PAGESIZE */
7499 # endif /* no NBPC */
7500 # endif /* no NBPG */
7501 # endif /* no EXEC_PAGESIZE */
7502 # else /* no HAVE_SYS_PARAM_H */
7503 # define getpagesize() 8192 /* punt totally */
7504 # endif /* no HAVE_SYS_PARAM_H */
7505 # endif /* no _SC_PAGESIZE */
7506
7507 #endif /* no HAVE_GETPAGESIZE */
7508
7509 int
7510 main ()
7511 {
7512 char *data, *data2, *data3;
7513 int i, pagesize;
7514 int fd, fd2;
7515
7516 pagesize = getpagesize ();
7517
7518 /* First, make a file with some known garbage in it. */
7519 data = (char *) malloc (pagesize);
7520 if (!data)
7521 return 1;
7522 for (i = 0; i < pagesize; ++i)
7523 *(data + i) = rand ();
7524 umask (0);
7525 fd = creat ("conftest.mmap", 0600);
7526 if (fd < 0)
7527 return 2;
7528 if (write (fd, data, pagesize) != pagesize)
7529 return 3;
7530 close (fd);
7531
7532 /* Next, check that the tail of a page is zero-filled. File must have
7533 non-zero length, otherwise we risk SIGBUS for entire page. */
7534 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7535 if (fd2 < 0)
7536 return 4;
7537 data2 = "";
7538 if (write (fd2, data2, 1) != 1)
7539 return 5;
7540 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7541 if (data2 == MAP_FAILED)
7542 return 6;
7543 for (i = 0; i < pagesize; ++i)
7544 if (*(data2 + i))
7545 return 7;
7546 close (fd2);
7547 if (munmap (data2, pagesize))
7548 return 8;
7549
7550 /* Next, try to mmap the file at a fixed address which already has
7551 something else allocated at it. If we can, also make sure that
7552 we see the same garbage. */
7553 fd = open ("conftest.mmap", O_RDWR);
7554 if (fd < 0)
7555 return 9;
7556 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7557 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7558 return 10;
7559 for (i = 0; i < pagesize; ++i)
7560 if (*(data + i) != *(data2 + i))
7561 return 11;
7562
7563 /* Finally, make sure that changes to the mapped area do not
7564 percolate back to the file as seen by read(). (This is a bug on
7565 some variants of i386 svr4.0.) */
7566 for (i = 0; i < pagesize; ++i)
7567 *(data2 + i) = *(data2 + i) + 1;
7568 data3 = (char *) malloc (pagesize);
7569 if (!data3)
7570 return 12;
7571 if (read (fd, data3, pagesize) != pagesize)
7572 return 13;
7573 for (i = 0; i < pagesize; ++i)
7574 if (*(data + i) != *(data3 + i))
7575 return 14;
7576 close (fd);
7577 return 0;
7578 }
7579 _ACEOF
7580 if ac_fn_c_try_run "$LINENO"; then :
7581 ac_cv_func_mmap_fixed_mapped=yes
7582 else
7583 ac_cv_func_mmap_fixed_mapped=no
7584 fi
7585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7586 conftest.$ac_objext conftest.beam conftest.$ac_ext
7587 fi
7588
7589 fi
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7591 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7592 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7593
7594 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7595
7596 fi
7597 rm -f conftest.mmap conftest.txt
7598
7599 if test $use_mmap_for_buffers = yes; then
7600 REL_ALLOC=no
7601 fi
7602
7603 LIBS="$libsrc_libs $LIBS"
7604
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7606 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7607 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7608 $as_echo_n "(cached) " >&6
7609 else
7610 ac_check_lib_save_LIBS=$LIBS
7611 LIBS="-ldnet $LIBS"
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7614
7615 /* Override any GCC internal prototype to avoid an error.
7616 Use char because int might match the return type of a GCC
7617 builtin and then its argument prototype would still apply. */
7618 #ifdef __cplusplus
7619 extern "C"
7620 #endif
7621 char dnet_ntoa ();
7622 int
7623 main ()
7624 {
7625 return dnet_ntoa ();
7626 ;
7627 return 0;
7628 }
7629 _ACEOF
7630 if ac_fn_c_try_link "$LINENO"; then :
7631 ac_cv_lib_dnet_dnet_ntoa=yes
7632 else
7633 ac_cv_lib_dnet_dnet_ntoa=no
7634 fi
7635 rm -f core conftest.err conftest.$ac_objext \
7636 conftest$ac_exeext conftest.$ac_ext
7637 LIBS=$ac_check_lib_save_LIBS
7638 fi
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7640 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7641 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7642 cat >>confdefs.h <<_ACEOF
7643 #define HAVE_LIBDNET 1
7644 _ACEOF
7645
7646 LIBS="-ldnet $LIBS"
7647
7648 fi
7649
7650
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7652 $as_echo_n "checking for main in -lXbsd... " >&6; }
7653 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 ac_check_lib_save_LIBS=$LIBS
7657 LIBS="-lXbsd $LIBS"
7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7660
7661
7662 int
7663 main ()
7664 {
7665 return main ();
7666 ;
7667 return 0;
7668 }
7669 _ACEOF
7670 if ac_fn_c_try_link "$LINENO"; then :
7671 ac_cv_lib_Xbsd_main=yes
7672 else
7673 ac_cv_lib_Xbsd_main=no
7674 fi
7675 rm -f core conftest.err conftest.$ac_objext \
7676 conftest$ac_exeext conftest.$ac_ext
7677 LIBS=$ac_check_lib_save_LIBS
7678 fi
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7680 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7681 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
7682 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7683 fi
7684
7685
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7687 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7688 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7690 else
7691 ac_check_lib_save_LIBS=$LIBS
7692 LIBS="-lpthreads $LIBS"
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7695
7696 /* Override any GCC internal prototype to avoid an error.
7697 Use char because int might match the return type of a GCC
7698 builtin and then its argument prototype would still apply. */
7699 #ifdef __cplusplus
7700 extern "C"
7701 #endif
7702 char cma_open ();
7703 int
7704 main ()
7705 {
7706 return cma_open ();
7707 ;
7708 return 0;
7709 }
7710 _ACEOF
7711 if ac_fn_c_try_link "$LINENO"; then :
7712 ac_cv_lib_pthreads_cma_open=yes
7713 else
7714 ac_cv_lib_pthreads_cma_open=no
7715 fi
7716 rm -f core conftest.err conftest.$ac_objext \
7717 conftest$ac_exeext conftest.$ac_ext
7718 LIBS=$ac_check_lib_save_LIBS
7719 fi
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7721 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7722 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
7723 cat >>confdefs.h <<_ACEOF
7724 #define HAVE_LIBPTHREADS 1
7725 _ACEOF
7726
7727 LIBS="-lpthreads $LIBS"
7728
7729 fi
7730
7731
7732
7733 case ${host_os} in
7734 aix*)
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
7736 $as_echo_n "checking for -bbigtoc option... " >&6; }
7737 if test "${gdb_cv_bigtoc+set}" = set; then :
7738 $as_echo_n "(cached) " >&6
7739 else
7740
7741 case $GCC in
7742 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7743 *) gdb_cv_bigtoc=-bbigtoc ;;
7744 esac
7745
7746 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h. */
7749
7750 int
7751 main ()
7752 {
7753 int i;
7754 ;
7755 return 0;
7756 }
7757 _ACEOF
7758 if ac_fn_c_try_link "$LINENO"; then :
7759
7760 else
7761 gdb_cv_bigtoc=
7762 fi
7763 rm -f core conftest.err conftest.$ac_objext \
7764 conftest$ac_exeext conftest.$ac_ext
7765
7766 fi
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
7768 $as_echo "$gdb_cv_bigtoc" >&6; }
7769 ;;
7770 esac
7771
7772 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7773 # used for the tests that follow. We set them back to REAL_CFLAGS and
7774 # REAL_CPPFLAGS later on.
7775
7776 REAL_CPPFLAGS="$CPPFLAGS"
7777
7778 if test "${HAVE_X11}" = "yes"; then
7779 DEFS="$C_SWITCH_X_SITE $DEFS"
7780 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7781 LIBS="$LIBX $LIBS"
7782 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7783 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7784
7785 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7786 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7787 # but it's more convenient here to set LD_RUN_PATH
7788 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7789 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7790 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7791 export LD_RUN_PATH
7792 fi
7793
7794 if test "${opsys}" = "gnu-linux"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
7796 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7799
7800 int
7801 main ()
7802 {
7803 XOpenDisplay ("foo");
7804 ;
7805 return 0;
7806 }
7807 _ACEOF
7808 if ac_fn_c_try_link "$LINENO"; then :
7809 xlinux_first_failure=no
7810 else
7811 xlinux_first_failure=yes
7812 fi
7813 rm -f core conftest.err conftest.$ac_objext \
7814 conftest$ac_exeext conftest.$ac_ext
7815 if test "${xlinux_first_failure}" = "yes"; then
7816 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7817 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7818 OLD_CPPFLAGS="$CPPFLAGS"
7819 OLD_LIBS="$LIBS"
7820 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7821 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7822 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7823 LIBS="$LIBS -b i486-linuxaout"
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7826
7827 int
7828 main ()
7829 {
7830 XOpenDisplay ("foo");
7831 ;
7832 return 0;
7833 }
7834 _ACEOF
7835 if ac_fn_c_try_link "$LINENO"; then :
7836 xlinux_second_failure=no
7837 else
7838 xlinux_second_failure=yes
7839 fi
7840 rm -f core conftest.err conftest.$ac_objext \
7841 conftest$ac_exeext conftest.$ac_ext
7842 if test "${xlinux_second_failure}" = "yes"; then
7843 # If we get the same failure with -b, there is no use adding -b.
7844 # So take it out. This plays safe.
7845 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7846 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7847 CPPFLAGS="$OLD_CPPFLAGS"
7848 LIBS="$OLD_LIBS"
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7851 else
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7853 $as_echo "yes" >&6; }
7854 fi
7855 else
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857 $as_echo "no" >&6; }
7858 fi
7859 fi
7860
7861 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7862 # header files included from there.
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
7864 $as_echo_n "checking for Xkb... " >&6; }
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7867 #include <X11/Xlib.h>
7868 #include <X11/XKBlib.h>
7869 int
7870 main ()
7871 {
7872 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7873 ;
7874 return 0;
7875 }
7876 _ACEOF
7877 if ac_fn_c_try_link "$LINENO"; then :
7878 emacs_xkb=yes
7879 else
7880 emacs_xkb=no
7881 fi
7882 rm -f core conftest.err conftest.$ac_objext \
7883 conftest$ac_exeext conftest.$ac_ext
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
7885 $as_echo "$emacs_xkb" >&6; }
7886 if test $emacs_xkb = yes; then
7887
7888 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
7889
7890 fi
7891
7892 for ac_func in XrmSetDatabase XScreenResourceString \
7893 XScreenNumberOfScreen XSetWMProtocols
7894 do :
7895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7896 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7897 eval as_val=\$$as_ac_var
7898 if test "x$as_val" = x""yes; then :
7899 cat >>confdefs.h <<_ACEOF
7900 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7901 _ACEOF
7902
7903 fi
7904 done
7905
7906 fi
7907
7908 if test "${window_system}" = "x11"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
7910 $as_echo_n "checking X11 version 6... " >&6; }
7911 if test "${emacs_cv_x11_version_6+set}" = set; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h. */
7916 #include <X11/Xlib.h>
7917 int
7918 main ()
7919 {
7920 #if XlibSpecificationRelease < 6
7921 fail;
7922 #endif
7923
7924 ;
7925 return 0;
7926 }
7927 _ACEOF
7928 if ac_fn_c_try_link "$LINENO"; then :
7929 emacs_cv_x11_version_6=yes
7930 else
7931 emacs_cv_x11_version_6=no
7932 fi
7933 rm -f core conftest.err conftest.$ac_objext \
7934 conftest$ac_exeext conftest.$ac_ext
7935 fi
7936
7937 if test $emacs_cv_x11_version_6 = yes; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
7939 $as_echo "6 or newer" >&6; }
7940
7941 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
7942
7943 else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
7945 $as_echo "before 6" >&6; }
7946 fi
7947 fi
7948
7949
7950 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
7951 HAVE_RSVG=no
7952 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
7953 if test "${with_rsvg}" != "no"; then
7954 RSVG_REQUIRED=2.11.0
7955 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
7956
7957
7958 succeeded=no
7959
7960 # Extract the first word of "pkg-config", so it can be a program name with args.
7961 set dummy pkg-config; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 case $PKG_CONFIG in
7968 [\\/]* | ?:[\\/]*)
7969 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7970 ;;
7971 *)
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in $PATH
7974 do
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7979 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 break 2
7982 fi
7983 done
7984 done
7985 IFS=$as_save_IFS
7986
7987 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7988 ;;
7989 esac
7990 fi
7991 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7992 if test -n "$PKG_CONFIG"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7994 $as_echo "$PKG_CONFIG" >&6; }
7995 else
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
7998 fi
7999
8000
8001
8002 if test "$PKG_CONFIG" = "no" ; then
8003 :
8004 else
8005 PKG_CONFIG_MIN_VERSION=0.9.0
8006 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8008 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8009
8010 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8012 $as_echo "yes" >&6; }
8013 succeeded=yes
8014
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8016 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8017 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8019 $as_echo "$RSVG_CFLAGS" >&6; }
8020
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8022 $as_echo_n "checking RSVG_LIBS... " >&6; }
8023 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8025 $as_echo "$RSVG_LIBS" >&6; }
8026 else
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8029 RSVG_CFLAGS=""
8030 RSVG_LIBS=""
8031 ## If we have a custom action on failure, don't print errors, but
8032 ## do set a variable so people can do so.
8033 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8034
8035 fi
8036
8037
8038
8039 else
8040 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8041 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8042 fi
8043 fi
8044
8045 if test $succeeded = yes; then
8046 :
8047 else
8048 :
8049 fi
8050
8051
8052
8053
8054 if test ".${RSVG_CFLAGS}" != "."; then
8055 HAVE_RSVG=yes
8056
8057 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8058
8059 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8060 LIBS="$RSVG_LIBS $LIBS"
8061 fi
8062 fi
8063 fi
8064
8065
8066 HAVE_GTK=no
8067 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8068 GLIB_REQUIRED=2.6
8069 GTK_REQUIRED=2.6
8070 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8071
8072
8073 succeeded=no
8074
8075 # Extract the first word of "pkg-config", so it can be a program name with args.
8076 set dummy pkg-config; ac_word=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 case $PKG_CONFIG in
8083 [\\/]* | ?:[\\/]*)
8084 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8085 ;;
8086 *)
8087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 for as_dir in $PATH
8089 do
8090 IFS=$as_save_IFS
8091 test -z "$as_dir" && as_dir=.
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8094 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 break 2
8097 fi
8098 done
8099 done
8100 IFS=$as_save_IFS
8101
8102 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8103 ;;
8104 esac
8105 fi
8106 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8107 if test -n "$PKG_CONFIG"; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8109 $as_echo "$PKG_CONFIG" >&6; }
8110 else
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8113 fi
8114
8115
8116
8117 if test "$PKG_CONFIG" = "no" ; then
8118 pkg_check_gtk=no
8119 else
8120 PKG_CONFIG_MIN_VERSION=0.9.0
8121 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8123 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8124
8125 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8127 $as_echo "yes" >&6; }
8128 succeeded=yes
8129
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8131 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8132 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8134 $as_echo "$GTK_CFLAGS" >&6; }
8135
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8137 $as_echo_n "checking GTK_LIBS... " >&6; }
8138 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8140 $as_echo "$GTK_LIBS" >&6; }
8141 else
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8144 GTK_CFLAGS=""
8145 GTK_LIBS=""
8146 ## If we have a custom action on failure, don't print errors, but
8147 ## do set a variable so people can do so.
8148 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8149
8150 fi
8151
8152
8153
8154 else
8155 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8156 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8157 fi
8158 fi
8159
8160 if test $succeeded = yes; then
8161 pkg_check_gtk=yes
8162 else
8163 pkg_check_gtk=no
8164 fi
8165
8166 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8167 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8168 fi
8169 fi
8170
8171
8172 GTK_OBJ=
8173 if test x"$pkg_check_gtk" = xyes; then
8174
8175
8176
8177 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8178 CFLAGS="$CFLAGS $GTK_CFLAGS"
8179 LIBS="$GTK_LIBS $LIBS"
8180 GTK_COMPILES=no
8181 for ac_func in gtk_main
8182 do :
8183 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8184 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8185 cat >>confdefs.h <<_ACEOF
8186 #define HAVE_GTK_MAIN 1
8187 _ACEOF
8188 GTK_COMPILES=yes
8189 fi
8190 done
8191
8192 if test "${GTK_COMPILES}" != "yes"; then
8193 if test "$USE_X_TOOLKIT" != "maybe"; then
8194 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8195 fi
8196 else
8197 HAVE_GTK=yes
8198
8199 $as_echo "#define USE_GTK 1" >>confdefs.h
8200
8201 GTK_OBJ=gtkutil.o
8202 USE_X_TOOLKIT=none
8203 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8204 :
8205 else
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8207 closing open displays. This is no problem if you just use
8208 one display, but if you use more than one and close one of them
8209 Emacs may crash." >&5
8210 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8211 closing open displays. This is no problem if you just use
8212 one display, but if you use more than one and close one of them
8213 Emacs may crash." >&2;}
8214 sleep 3
8215 fi
8216 fi
8217
8218 fi
8219
8220
8221
8222 if test "${HAVE_GTK}" = "yes"; then
8223
8224 if test "$with_toolkit_scroll_bars" != no; then
8225 with_toolkit_scroll_bars=yes
8226 fi
8227
8228 HAVE_GTK_MULTIDISPLAY=no
8229 for ac_func in gdk_display_open
8230 do :
8231 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8232 if test "x$ac_cv_func_gdk_display_open" = x""yes; then :
8233 cat >>confdefs.h <<_ACEOF
8234 #define HAVE_GDK_DISPLAY_OPEN 1
8235 _ACEOF
8236 HAVE_GTK_MULTIDISPLAY=yes
8237 fi
8238 done
8239
8240 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8241
8242 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8243
8244 fi
8245
8246 HAVE_GTK_FILE_SELECTION=no
8247 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8248 #include <gtk/gtk.h>
8249 "
8250 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
8251 HAVE_GTK_FILE_SELECTION=yes
8252 else
8253 HAVE_GTK_FILE_SELECTION=no
8254 fi
8255
8256 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8257 for ac_func in gtk_file_selection_new
8258 do :
8259 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8260 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
8261 cat >>confdefs.h <<_ACEOF
8262 #define HAVE_GTK_FILE_SELECTION_NEW 1
8263 _ACEOF
8264 HAVE_GTK_FILE_SELECTION=yes
8265 else
8266 HAVE_GTK_FILE_SELECTION=no
8267 fi
8268 done
8269
8270 fi
8271
8272 HAVE_GTK_FILE_CHOOSER=no
8273 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8274 #include <gtk/gtk.h>
8275 "
8276 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then :
8277 HAVE_GTK_FILE_CHOOSER=yes
8278 else
8279 HAVE_GTK_FILE_CHOOSER=no
8280 fi
8281
8282 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8283 for ac_func in gtk_file_chooser_dialog_new
8284 do :
8285 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8286 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then :
8287 cat >>confdefs.h <<_ACEOF
8288 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8289 _ACEOF
8290 HAVE_GTK_FILE_CHOOSER=yes
8291 else
8292 HAVE_GTK_FILE_CHOOSER=no
8293 fi
8294 done
8295
8296 fi
8297
8298 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8299 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8300
8301 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8302
8303 fi
8304
8305 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8306 HAVE_GTK_AND_PTHREAD=no
8307 for ac_header in pthread.h
8308 do :
8309 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8310 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8311 cat >>confdefs.h <<_ACEOF
8312 #define HAVE_PTHREAD_H 1
8313 _ACEOF
8314
8315 fi
8316
8317 done
8318
8319 if test "$ac_cv_header_pthread_h"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8321 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8322 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8323 $as_echo_n "(cached) " >&6
8324 else
8325 ac_check_lib_save_LIBS=$LIBS
8326 LIBS="-lpthread $LIBS"
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8329
8330 /* Override any GCC internal prototype to avoid an error.
8331 Use char because int might match the return type of a GCC
8332 builtin and then its argument prototype would still apply. */
8333 #ifdef __cplusplus
8334 extern "C"
8335 #endif
8336 char pthread_self ();
8337 int
8338 main ()
8339 {
8340 return pthread_self ();
8341 ;
8342 return 0;
8343 }
8344 _ACEOF
8345 if ac_fn_c_try_link "$LINENO"; then :
8346 ac_cv_lib_pthread_pthread_self=yes
8347 else
8348 ac_cv_lib_pthread_pthread_self=no
8349 fi
8350 rm -f core conftest.err conftest.$ac_objext \
8351 conftest$ac_exeext conftest.$ac_ext
8352 LIBS=$ac_check_lib_save_LIBS
8353 fi
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8355 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8356 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
8357 HAVE_GTK_AND_PTHREAD=yes
8358 fi
8359
8360 fi
8361 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8362 case "${canonical}" in
8363 *-hpux*) ;;
8364 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8365 esac
8366
8367 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8368
8369 fi
8370 fi
8371 fi
8372
8373 HAVE_DBUS=no
8374 DBUS_OBJ=
8375 if test "${with_dbus}" = "yes"; then
8376
8377 succeeded=no
8378
8379 # Extract the first word of "pkg-config", so it can be a program name with args.
8380 set dummy pkg-config; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 case $PKG_CONFIG in
8387 [\\/]* | ?:[\\/]*)
8388 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8389 ;;
8390 *)
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 for as_dir in $PATH
8393 do
8394 IFS=$as_save_IFS
8395 test -z "$as_dir" && as_dir=.
8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8398 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 break 2
8401 fi
8402 done
8403 done
8404 IFS=$as_save_IFS
8405
8406 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8407 ;;
8408 esac
8409 fi
8410 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8411 if test -n "$PKG_CONFIG"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8413 $as_echo "$PKG_CONFIG" >&6; }
8414 else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8417 fi
8418
8419
8420
8421 if test "$PKG_CONFIG" = "no" ; then
8422 HAVE_DBUS=no
8423 else
8424 PKG_CONFIG_MIN_VERSION=0.9.0
8425 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8427 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8428
8429 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8431 $as_echo "yes" >&6; }
8432 succeeded=yes
8433
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8435 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8436 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8438 $as_echo "$DBUS_CFLAGS" >&6; }
8439
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8441 $as_echo_n "checking DBUS_LIBS... " >&6; }
8442 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8444 $as_echo "$DBUS_LIBS" >&6; }
8445 else
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8448 DBUS_CFLAGS=""
8449 DBUS_LIBS=""
8450 ## If we have a custom action on failure, don't print errors, but
8451 ## do set a variable so people can do so.
8452 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8453
8454 fi
8455
8456
8457
8458 else
8459 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8460 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8461 fi
8462 fi
8463
8464 if test $succeeded = yes; then
8465 HAVE_DBUS=yes
8466 else
8467 HAVE_DBUS=no
8468 fi
8469
8470 if test "$HAVE_DBUS" = yes; then
8471 LIBS="$LIBS $DBUS_LIBS"
8472
8473 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8474
8475 for ac_func in dbus_watch_get_unix_fd
8476 do :
8477 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8478 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
8479 cat >>confdefs.h <<_ACEOF
8480 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8481 _ACEOF
8482
8483 fi
8484 done
8485
8486 DBUS_OBJ=dbusbind.o
8487 fi
8488 fi
8489
8490
8491 HAVE_GCONF=no
8492 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8493
8494 succeeded=no
8495
8496 # Extract the first word of "pkg-config", so it can be a program name with args.
8497 set dummy pkg-config; ac_word=$2
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499 $as_echo_n "checking for $ac_word... " >&6; }
8500 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 case $PKG_CONFIG in
8504 [\\/]* | ?:[\\/]*)
8505 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8506 ;;
8507 *)
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8510 do
8511 IFS=$as_save_IFS
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8515 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8517 break 2
8518 fi
8519 done
8520 done
8521 IFS=$as_save_IFS
8522
8523 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8524 ;;
8525 esac
8526 fi
8527 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8528 if test -n "$PKG_CONFIG"; then
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8530 $as_echo "$PKG_CONFIG" >&6; }
8531 else
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533 $as_echo "no" >&6; }
8534 fi
8535
8536
8537
8538 if test "$PKG_CONFIG" = "no" ; then
8539 HAVE_GCONF=no
8540 else
8541 PKG_CONFIG_MIN_VERSION=0.9.0
8542 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8544 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8545
8546 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8548 $as_echo "yes" >&6; }
8549 succeeded=yes
8550
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8552 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8553 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8555 $as_echo "$GCONF_CFLAGS" >&6; }
8556
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8558 $as_echo_n "checking GCONF_LIBS... " >&6; }
8559 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8561 $as_echo "$GCONF_LIBS" >&6; }
8562 else
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8565 GCONF_CFLAGS=""
8566 GCONF_LIBS=""
8567 ## If we have a custom action on failure, don't print errors, but
8568 ## do set a variable so people can do so.
8569 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8570
8571 fi
8572
8573
8574
8575 else
8576 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8577 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8578 fi
8579 fi
8580
8581 if test $succeeded = yes; then
8582 HAVE_GCONF=yes
8583 else
8584 HAVE_GCONF=no
8585 fi
8586
8587 if test "$HAVE_GCONF" = yes; then
8588
8589 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8590
8591 fi
8592 fi
8593
8594 HAVE_LIBSELINUX=no
8595 LIBSELINUX_LIBS=
8596 if test "${with_selinux}" = "yes"; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
8598 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
8599 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
8600 $as_echo_n "(cached) " >&6
8601 else
8602 ac_check_lib_save_LIBS=$LIBS
8603 LIBS="-lselinux $LIBS"
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606
8607 /* Override any GCC internal prototype to avoid an error.
8608 Use char because int might match the return type of a GCC
8609 builtin and then its argument prototype would still apply. */
8610 #ifdef __cplusplus
8611 extern "C"
8612 #endif
8613 char lgetfilecon ();
8614 int
8615 main ()
8616 {
8617 return lgetfilecon ();
8618 ;
8619 return 0;
8620 }
8621 _ACEOF
8622 if ac_fn_c_try_link "$LINENO"; then :
8623 ac_cv_lib_selinux_lgetfilecon=yes
8624 else
8625 ac_cv_lib_selinux_lgetfilecon=no
8626 fi
8627 rm -f core conftest.err conftest.$ac_objext \
8628 conftest$ac_exeext conftest.$ac_ext
8629 LIBS=$ac_check_lib_save_LIBS
8630 fi
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
8632 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
8633 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
8634 HAVE_LIBSELINUX=yes
8635 else
8636 HAVE_LIBSELINUX=no
8637 fi
8638
8639 if test "$HAVE_LIBSELINUX" = yes; then
8640
8641 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
8642
8643 LIBSELINUX_LIBS=-lselinux
8644 fi
8645 fi
8646
8647
8648 HAVE_XAW3D=no
8649 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
8650 if test "$with_xaw3d" != no; then
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
8652 $as_echo_n "checking for xaw3d... " >&6; }
8653 if test "${emacs_cv_xaw3d+set}" = set; then :
8654 $as_echo_n "(cached) " >&6
8655 else
8656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h. */
8658
8659 #include <X11/Intrinsic.h>
8660 #include <X11/Xaw3d/Simple.h>
8661 int
8662 main ()
8663 {
8664
8665 ;
8666 return 0;
8667 }
8668 _ACEOF
8669 if ac_fn_c_try_link "$LINENO"; then :
8670 emacs_cv_xaw3d=yes
8671 else
8672 emacs_cv_xaw3d=no
8673 fi
8674 rm -f core conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676 fi
8677
8678 else
8679 emacs_cv_xaw3d=no
8680 fi
8681 if test $emacs_cv_xaw3d = yes; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8683 $as_echo "yes; using Lucid toolkit" >&6; }
8684 USE_X_TOOLKIT=LUCID
8685 HAVE_XAW3D=yes
8686
8687 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
8688
8689 else
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
8693 $as_echo_n "checking for libXaw... " >&6; }
8694 if test "${emacs_cv_xaw+set}" = set; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8699
8700 #include <X11/Intrinsic.h>
8701 #include <X11/Xaw/Simple.h>
8702 int
8703 main ()
8704 {
8705
8706 ;
8707 return 0;
8708 }
8709 _ACEOF
8710 if ac_fn_c_try_link "$LINENO"; then :
8711 emacs_cv_xaw=yes
8712 else
8713 emacs_cv_xaw=no
8714 fi
8715 rm -f core conftest.err conftest.$ac_objext \
8716 conftest$ac_exeext conftest.$ac_ext
8717 fi
8718
8719 if test $emacs_cv_xaw = yes; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8721 $as_echo "yes; using Lucid toolkit" >&6; }
8722 USE_X_TOOLKIT=LUCID
8723 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
8724 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
8725 else
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
8727 $as_echo "no; do not use toolkit by default" >&6; }
8728 USE_X_TOOLKIT=none
8729 fi
8730 fi
8731 fi
8732
8733 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8734
8735 if test "${USE_X_TOOLKIT}" != "none"; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
8737 $as_echo_n "checking X11 toolkit version... " >&6; }
8738 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
8739 $as_echo_n "(cached) " >&6
8740 else
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8743 #include <X11/Intrinsic.h>
8744 int
8745 main ()
8746 {
8747 #if XtSpecificationRelease < 6
8748 fail;
8749 #endif
8750
8751 ;
8752 return 0;
8753 }
8754 _ACEOF
8755 if ac_fn_c_try_link "$LINENO"; then :
8756 emacs_cv_x11_toolkit_version_6=yes
8757 else
8758 emacs_cv_x11_toolkit_version_6=no
8759 fi
8760 rm -f core conftest.err conftest.$ac_objext \
8761 conftest$ac_exeext conftest.$ac_ext
8762 fi
8763
8764 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8765 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8767 $as_echo "6 or newer" >&6; }
8768
8769 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
8770
8771 else
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8773 $as_echo "before 6" >&6; }
8774 fi
8775
8776 OLDLIBS="$LIBS"
8777 if test x$HAVE_X11XTR6 = xyes; then
8778 LIBS="-lXt -lSM -lICE $LIBS"
8779 else
8780 LIBS="-lXt $LIBS"
8781 fi
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
8783 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8784 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 ac_check_lib_save_LIBS=$LIBS
8788 LIBS="-lXmu $LIBS"
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791
8792 /* Override any GCC internal prototype to avoid an error.
8793 Use char because int might match the return type of a GCC
8794 builtin and then its argument prototype would still apply. */
8795 #ifdef __cplusplus
8796 extern "C"
8797 #endif
8798 char XmuConvertStandardSelection ();
8799 int
8800 main ()
8801 {
8802 return XmuConvertStandardSelection ();
8803 ;
8804 return 0;
8805 }
8806 _ACEOF
8807 if ac_fn_c_try_link "$LINENO"; then :
8808 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8809 else
8810 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8811 fi
8812 rm -f core conftest.err conftest.$ac_objext \
8813 conftest$ac_exeext conftest.$ac_ext
8814 LIBS=$ac_check_lib_save_LIBS
8815 fi
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8817 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8818 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
8819 cat >>confdefs.h <<_ACEOF
8820 #define HAVE_LIBXMU 1
8821 _ACEOF
8822
8823 LIBS="-lXmu $LIBS"
8824
8825 fi
8826
8827 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8828 fi
8829
8830 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8831 if test "${HAVE_X11}" = "yes"; then
8832 if test "${USE_X_TOOLKIT}" != "none"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8834 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8835 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8836 $as_echo_n "(cached) " >&6
8837 else
8838 ac_check_lib_save_LIBS=$LIBS
8839 LIBS="-lXext $LIBS"
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8842
8843 /* Override any GCC internal prototype to avoid an error.
8844 Use char because int might match the return type of a GCC
8845 builtin and then its argument prototype would still apply. */
8846 #ifdef __cplusplus
8847 extern "C"
8848 #endif
8849 char XShapeQueryExtension ();
8850 int
8851 main ()
8852 {
8853 return XShapeQueryExtension ();
8854 ;
8855 return 0;
8856 }
8857 _ACEOF
8858 if ac_fn_c_try_link "$LINENO"; then :
8859 ac_cv_lib_Xext_XShapeQueryExtension=yes
8860 else
8861 ac_cv_lib_Xext_XShapeQueryExtension=no
8862 fi
8863 rm -f core conftest.err conftest.$ac_objext \
8864 conftest$ac_exeext conftest.$ac_ext
8865 LIBS=$ac_check_lib_save_LIBS
8866 fi
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8868 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8869 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8870 cat >>confdefs.h <<_ACEOF
8871 #define HAVE_LIBXEXT 1
8872 _ACEOF
8873
8874 LIBS="-lXext $LIBS"
8875
8876 fi
8877
8878 fi
8879 fi
8880
8881 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
8883 $as_echo_n "checking for Motif version 2.1... " >&6; }
8884 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8889 #include <Xm/Xm.h>
8890 int
8891 main ()
8892 {
8893 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8894 int x = 5;
8895 #else
8896 Motif version prior to 2.1.
8897 #endif
8898 ;
8899 return 0;
8900 }
8901 _ACEOF
8902 if ac_fn_c_try_compile "$LINENO"; then :
8903 emacs_cv_motif_version_2_1=yes
8904 else
8905 emacs_cv_motif_version_2_1=no
8906 fi
8907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8908 fi
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
8910 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
8911 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8912 if test $emacs_cv_motif_version_2_1 = yes; then
8913 HAVE_LIBXP=no
8914
8915 $as_echo "#define HAVE_MOTIF_2_1 1" >>confdefs.h
8916
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
8918 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
8919 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
8920 $as_echo_n "(cached) " >&6
8921 else
8922 ac_check_lib_save_LIBS=$LIBS
8923 LIBS="-lXp $LIBS"
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8926
8927 /* Override any GCC internal prototype to avoid an error.
8928 Use char because int might match the return type of a GCC
8929 builtin and then its argument prototype would still apply. */
8930 #ifdef __cplusplus
8931 extern "C"
8932 #endif
8933 char XpCreateContext ();
8934 int
8935 main ()
8936 {
8937 return XpCreateContext ();
8938 ;
8939 return 0;
8940 }
8941 _ACEOF
8942 if ac_fn_c_try_link "$LINENO"; then :
8943 ac_cv_lib_Xp_XpCreateContext=yes
8944 else
8945 ac_cv_lib_Xp_XpCreateContext=no
8946 fi
8947 rm -f core conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8949 LIBS=$ac_check_lib_save_LIBS
8950 fi
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8952 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
8953 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
8954 HAVE_LIBXP=yes
8955 fi
8956
8957 if test ${HAVE_LIBXP} = yes; then
8958
8959 $as_echo "#define HAVE_LIBXP 1" >>confdefs.h
8960
8961 fi
8962 else
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
8964 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
8965 if test "${emacs_cv_lesstif+set}" = set; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 # We put this in CFLAGS temporarily to precede other -I options
8969 # that might be in CFLAGS temporarily.
8970 # We put this in CPPFLAGS where it precedes the other -I options.
8971 OLD_CPPFLAGS=$CPPFLAGS
8972 OLD_CFLAGS=$CFLAGS
8973 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8974 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8977 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8978 int
8979 main ()
8980 {
8981 int x = 5;
8982 ;
8983 return 0;
8984 }
8985 _ACEOF
8986 if ac_fn_c_try_compile "$LINENO"; then :
8987 emacs_cv_lesstif=yes
8988 else
8989 emacs_cv_lesstif=no
8990 fi
8991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992 fi
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
8994 $as_echo "$emacs_cv_lesstif" >&6; }
8995 if test $emacs_cv_lesstif = yes; then
8996 # Make sure this -I option remains in CPPFLAGS after it is set
8997 # back to REAL_CPPFLAGS.
8998 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8999 # have those other -I options anyway. Ultimately, having this
9000 # directory ultimately in CPPFLAGS will be enough.
9001 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9002 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9003 else
9004 CFLAGS=$OLD_CFLAGS
9005 CPPFLAGS=$OLD_CPPFLAGS
9006 fi
9007 fi
9008 fi
9009
9010
9011 USE_TOOLKIT_SCROLL_BARS=no
9012 if test "${with_toolkit_scroll_bars}" != "no"; then
9013 if test "${USE_X_TOOLKIT}" != "none"; then
9014 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9015 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9016
9017 HAVE_XAW3D=no
9018 USE_TOOLKIT_SCROLL_BARS=yes
9019 elif test "${HAVE_XAW3D}" = "yes"; then
9020 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9021
9022 USE_TOOLKIT_SCROLL_BARS=yes
9023 fi
9024 elif test "${HAVE_GTK}" = "yes"; then
9025 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9026
9027 USE_TOOLKIT_SCROLL_BARS=yes
9028 elif test "${HAVE_NS}" = "yes"; then
9029 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9030
9031 USE_TOOLKIT_SCROLL_BARS=yes
9032 fi
9033 fi
9034
9035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036 /* end confdefs.h. */
9037
9038 #include <X11/Xlib.h>
9039 #include <X11/Xresource.h>
9040 int
9041 main ()
9042 {
9043 XIMProc callback;
9044 ;
9045 return 0;
9046 }
9047 _ACEOF
9048 if ac_fn_c_try_compile "$LINENO"; then :
9049 HAVE_XIM=yes
9050
9051 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9052
9053 else
9054 HAVE_XIM=no
9055 fi
9056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9057
9058
9059 if test "${with_xim}" != "no"; then
9060
9061 $as_echo "#define USE_XIM 1" >>confdefs.h
9062
9063 fi
9064
9065
9066 if test "${HAVE_XIM}" != "no"; then
9067 late_CFLAGS=$CFLAGS
9068 if test "$GCC" = yes; then
9069 CFLAGS="$CFLAGS --pedantic-errors"
9070 fi
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9073
9074 #include <X11/Xlib.h>
9075 #include <X11/Xresource.h>
9076 int
9077 main ()
9078 {
9079 Display *display;
9080 XrmDatabase db;
9081 char *res_name;
9082 char *res_class;
9083 XIMProc callback;
9084 XPointer *client_data;
9085 #ifndef __GNUC__
9086 /* If we're not using GCC, it's probably not XFree86, and this is
9087 probably right, but we can't use something like --pedantic-errors. */
9088 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9089 char*, XIMProc, XPointer*);
9090 #endif
9091 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9092 client_data);
9093 ;
9094 return 0;
9095 }
9096 _ACEOF
9097 if ac_fn_c_try_compile "$LINENO"; then :
9098 emacs_cv_arg6_star=yes
9099 fi
9100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101 if test "$emacs_cv_arg6_star" = yes; then
9102 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9103
9104 else
9105 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9106
9107 fi
9108 CFLAGS=$late_CFLAGS
9109 fi
9110
9111 ### Start of font-backend (under any platform) section.
9112 # (nothing here yet -- this is a placeholder)
9113 ### End of font-backend (under any platform) section.
9114
9115 ### Start of font-backend (under X11) section.
9116 if test "${HAVE_X11}" = "yes"; then
9117
9118 succeeded=no
9119
9120 # Extract the first word of "pkg-config", so it can be a program name with args.
9121 set dummy pkg-config; ac_word=$2
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9123 $as_echo_n "checking for $ac_word... " >&6; }
9124 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9125 $as_echo_n "(cached) " >&6
9126 else
9127 case $PKG_CONFIG in
9128 [\\/]* | ?:[\\/]*)
9129 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9130 ;;
9131 *)
9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 for as_dir in $PATH
9134 do
9135 IFS=$as_save_IFS
9136 test -z "$as_dir" && as_dir=.
9137 for ac_exec_ext in '' $ac_executable_extensions; do
9138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9139 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9141 break 2
9142 fi
9143 done
9144 done
9145 IFS=$as_save_IFS
9146
9147 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9148 ;;
9149 esac
9150 fi
9151 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9152 if test -n "$PKG_CONFIG"; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9154 $as_echo "$PKG_CONFIG" >&6; }
9155 else
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9157 $as_echo "no" >&6; }
9158 fi
9159
9160
9161
9162 if test "$PKG_CONFIG" = "no" ; then
9163 HAVE_FC=no
9164 else
9165 PKG_CONFIG_MIN_VERSION=0.9.0
9166 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9168 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9169
9170 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9172 $as_echo "yes" >&6; }
9173 succeeded=yes
9174
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9176 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9177 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9179 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9180
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9182 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9183 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9185 $as_echo "$FONTCONFIG_LIBS" >&6; }
9186 else
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9189 FONTCONFIG_CFLAGS=""
9190 FONTCONFIG_LIBS=""
9191 ## If we have a custom action on failure, don't print errors, but
9192 ## do set a variable so people can do so.
9193 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9194
9195 fi
9196
9197
9198
9199 else
9200 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9201 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9202 fi
9203 fi
9204
9205 if test $succeeded = yes; then
9206 HAVE_FC=yes
9207 else
9208 HAVE_FC=no
9209 fi
9210
9211
9212 ## Use -lXft if available, unless `--with-xft=no'.
9213 HAVE_XFT=maybe
9214 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
9215 with_xft="no";
9216 fi
9217 if test "x${with_xft}" != "xno"; then
9218
9219
9220 succeeded=no
9221
9222 # Extract the first word of "pkg-config", so it can be a program name with args.
9223 set dummy pkg-config; ac_word=$2
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225 $as_echo_n "checking for $ac_word... " >&6; }
9226 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 case $PKG_CONFIG in
9230 [\\/]* | ?:[\\/]*)
9231 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9232 ;;
9233 *)
9234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235 for as_dir in $PATH
9236 do
9237 IFS=$as_save_IFS
9238 test -z "$as_dir" && as_dir=.
9239 for ac_exec_ext in '' $ac_executable_extensions; do
9240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9241 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9243 break 2
9244 fi
9245 done
9246 done
9247 IFS=$as_save_IFS
9248
9249 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9250 ;;
9251 esac
9252 fi
9253 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9254 if test -n "$PKG_CONFIG"; then
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9256 $as_echo "$PKG_CONFIG" >&6; }
9257 else
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9260 fi
9261
9262
9263
9264 if test "$PKG_CONFIG" = "no" ; then
9265 HAVE_XFT=no
9266 else
9267 PKG_CONFIG_MIN_VERSION=0.9.0
9268 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9270 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9271
9272 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9274 $as_echo "yes" >&6; }
9275 succeeded=yes
9276
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9278 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9279 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9281 $as_echo "$XFT_CFLAGS" >&6; }
9282
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9284 $as_echo_n "checking XFT_LIBS... " >&6; }
9285 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9287 $as_echo "$XFT_LIBS" >&6; }
9288 else
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9290 $as_echo "no" >&6; }
9291 XFT_CFLAGS=""
9292 XFT_LIBS=""
9293 ## If we have a custom action on failure, don't print errors, but
9294 ## do set a variable so people can do so.
9295 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9296
9297 fi
9298
9299
9300
9301 else
9302 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9303 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9304 fi
9305 fi
9306
9307 if test $succeeded = yes; then
9308 :
9309 else
9310 HAVE_XFT=no
9311 fi
9312
9313 ## Because xftfont.c uses XRenderQueryExtension, we also
9314 ## need to link to -lXrender.
9315 HAVE_XRENDER=no
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9317 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9318 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9319 $as_echo_n "(cached) " >&6
9320 else
9321 ac_check_lib_save_LIBS=$LIBS
9322 LIBS="-lXrender $LIBS"
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325
9326 /* Override any GCC internal prototype to avoid an error.
9327 Use char because int might match the return type of a GCC
9328 builtin and then its argument prototype would still apply. */
9329 #ifdef __cplusplus
9330 extern "C"
9331 #endif
9332 char XRenderQueryExtension ();
9333 int
9334 main ()
9335 {
9336 return XRenderQueryExtension ();
9337 ;
9338 return 0;
9339 }
9340 _ACEOF
9341 if ac_fn_c_try_link "$LINENO"; then :
9342 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9343 else
9344 ac_cv_lib_Xrender_XRenderQueryExtension=no
9345 fi
9346 rm -f core conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 LIBS=$ac_check_lib_save_LIBS
9349 fi
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9351 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9352 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
9353 HAVE_XRENDER=yes
9354 fi
9355
9356 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
9357 OLD_CPPFLAGS="$CPPFLAGS"
9358 OLD_CFLAGS="$CFLAGS"
9359 OLD_LIBS="$LIBS"
9360 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
9361 CFLAGS="$CFLAGS $XFT_CFLAGS"
9362 XFT_LIBS="-lXrender $XFT_LIBS"
9363 LIBS="$XFT_LIBS $LIBS"
9364 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9365 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9367 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9368 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9369 $as_echo_n "(cached) " >&6
9370 else
9371 ac_check_lib_save_LIBS=$LIBS
9372 LIBS="-lXft $XFT_LIBS $LIBS"
9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374 /* end confdefs.h. */
9375
9376 /* Override any GCC internal prototype to avoid an error.
9377 Use char because int might match the return type of a GCC
9378 builtin and then its argument prototype would still apply. */
9379 #ifdef __cplusplus
9380 extern "C"
9381 #endif
9382 char XftFontOpen ();
9383 int
9384 main ()
9385 {
9386 return XftFontOpen ();
9387 ;
9388 return 0;
9389 }
9390 _ACEOF
9391 if ac_fn_c_try_link "$LINENO"; then :
9392 ac_cv_lib_Xft_XftFontOpen=yes
9393 else
9394 ac_cv_lib_Xft_XftFontOpen=no
9395 fi
9396 rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9398 LIBS=$ac_check_lib_save_LIBS
9399 fi
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9401 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9402 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
9403 HAVE_XFT=yes
9404 fi
9405
9406 fi
9407
9408
9409
9410 if test "${HAVE_XFT}" = "yes"; then
9411
9412 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9413
9414
9415 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
9416 else
9417 CPPFLAGS="$OLD_CPPFLAGS"
9418 CFLAGS="$OLD_CFLAGS"
9419 LIBS="$OLD_LIBS"
9420 fi # "${HAVE_XFT}" = "yes"
9421 fi # "$HAVE_XFT" != no
9422 fi # "x${with_xft}" != "xno"
9423
9424 if test "$HAVE_XFT" != "yes"; then
9425 HAVE_XFT=no
9426 fi
9427
9428
9429 HAVE_FREETYPE=no
9430 ## We used to allow building with FreeType and without Xft.
9431 ## However, the ftx font backend driver is not in good shape.
9432 if test "${HAVE_XFT}" = "yes"; then
9433 HAVE_FREETYPE=yes
9434 FONTCONFIG_CFLAGS=
9435 FONTCONFIG_LIBS=
9436 fi
9437
9438 HAVE_LIBOTF=no
9439 if test "${HAVE_FREETYPE}" = "yes"; then
9440
9441 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9442
9443 if test "${with_libotf}" != "no"; then
9444
9445 succeeded=no
9446
9447 # Extract the first word of "pkg-config", so it can be a program name with args.
9448 set dummy pkg-config; ac_word=$2
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9450 $as_echo_n "checking for $ac_word... " >&6; }
9451 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 case $PKG_CONFIG in
9455 [\\/]* | ?:[\\/]*)
9456 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9457 ;;
9458 *)
9459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460 for as_dir in $PATH
9461 do
9462 IFS=$as_save_IFS
9463 test -z "$as_dir" && as_dir=.
9464 for ac_exec_ext in '' $ac_executable_extensions; do
9465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9466 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9468 break 2
9469 fi
9470 done
9471 done
9472 IFS=$as_save_IFS
9473
9474 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9475 ;;
9476 esac
9477 fi
9478 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9479 if test -n "$PKG_CONFIG"; then
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9481 $as_echo "$PKG_CONFIG" >&6; }
9482 else
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484 $as_echo "no" >&6; }
9485 fi
9486
9487
9488
9489 if test "$PKG_CONFIG" = "no" ; then
9490 HAVE_LIBOTF=no
9491 else
9492 PKG_CONFIG_MIN_VERSION=0.9.0
9493 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9495 $as_echo_n "checking for libotf... " >&6; }
9496
9497 if $PKG_CONFIG --exists "libotf" 2>&5; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9499 $as_echo "yes" >&6; }
9500 succeeded=yes
9501
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9503 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9504 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9506 $as_echo "$LIBOTF_CFLAGS" >&6; }
9507
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9509 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9510 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9512 $as_echo "$LIBOTF_LIBS" >&6; }
9513 else
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515 $as_echo "no" >&6; }
9516 LIBOTF_CFLAGS=""
9517 LIBOTF_LIBS=""
9518 ## If we have a custom action on failure, don't print errors, but
9519 ## do set a variable so people can do so.
9520 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9521
9522 fi
9523
9524
9525
9526 else
9527 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9528 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9529 fi
9530 fi
9531
9532 if test $succeeded = yes; then
9533 HAVE_LIBOTF=yes
9534 else
9535 HAVE_LIBOTF=no
9536 fi
9537
9538 if test "$HAVE_LIBOTF" = "yes"; then
9539
9540 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9541
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9543 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9544 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 ac_check_lib_save_LIBS=$LIBS
9548 LIBS="-lotf $LIBS"
9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9551
9552 /* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
9555 #ifdef __cplusplus
9556 extern "C"
9557 #endif
9558 char OTF_get_variation_glyphs ();
9559 int
9560 main ()
9561 {
9562 return OTF_get_variation_glyphs ();
9563 ;
9564 return 0;
9565 }
9566 _ACEOF
9567 if ac_fn_c_try_link "$LINENO"; then :
9568 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9569 else
9570 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9571 fi
9572 rm -f core conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext conftest.$ac_ext
9574 LIBS=$ac_check_lib_save_LIBS
9575 fi
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9577 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9578 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
9579 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9580 else
9581 HAVE_OTF_GET_VARIATION_GLYPHS=no
9582 fi
9583
9584 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9585
9586 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9587
9588 fi
9589 fi
9590 fi
9591 fi
9592
9593 HAVE_M17N_FLT=no
9594 if test "${HAVE_LIBOTF}" = yes; then
9595 if test "${with_m17n_flt}" != "no"; then
9596
9597 succeeded=no
9598
9599 # Extract the first word of "pkg-config", so it can be a program name with args.
9600 set dummy pkg-config; ac_word=$2
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9602 $as_echo_n "checking for $ac_word... " >&6; }
9603 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9604 $as_echo_n "(cached) " >&6
9605 else
9606 case $PKG_CONFIG in
9607 [\\/]* | ?:[\\/]*)
9608 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9609 ;;
9610 *)
9611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612 for as_dir in $PATH
9613 do
9614 IFS=$as_save_IFS
9615 test -z "$as_dir" && as_dir=.
9616 for ac_exec_ext in '' $ac_executable_extensions; do
9617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9618 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9620 break 2
9621 fi
9622 done
9623 done
9624 IFS=$as_save_IFS
9625
9626 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9627 ;;
9628 esac
9629 fi
9630 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9631 if test -n "$PKG_CONFIG"; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9633 $as_echo "$PKG_CONFIG" >&6; }
9634 else
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636 $as_echo "no" >&6; }
9637 fi
9638
9639
9640
9641 if test "$PKG_CONFIG" = "no" ; then
9642 HAVE_M17N_FLT=no
9643 else
9644 PKG_CONFIG_MIN_VERSION=0.9.0
9645 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
9647 $as_echo_n "checking for m17n-flt... " >&6; }
9648
9649 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9651 $as_echo "yes" >&6; }
9652 succeeded=yes
9653
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
9655 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9656 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
9658 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9659
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
9661 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9662 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
9664 $as_echo "$M17N_FLT_LIBS" >&6; }
9665 else
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9668 M17N_FLT_CFLAGS=""
9669 M17N_FLT_LIBS=""
9670 ## If we have a custom action on failure, don't print errors, but
9671 ## do set a variable so people can do so.
9672 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
9673
9674 fi
9675
9676
9677
9678 else
9679 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9680 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9681 fi
9682 fi
9683
9684 if test $succeeded = yes; then
9685 HAVE_M17N_FLT=yes
9686 else
9687 HAVE_M17N_FLT=no
9688 fi
9689
9690 if test "$HAVE_M17N_FLT" = "yes"; then
9691
9692 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
9693
9694 fi
9695 fi
9696 fi
9697 else
9698 HAVE_XFT=no
9699 HAVE_FREETYPE=no
9700 HAVE_LIBOTF=no
9701 HAVE_M17N_FLT=no
9702 fi
9703 ### End of font-backend (under X11) section.
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714 ### Use -lXpm if available, unless `--with-xpm=no'.
9715 HAVE_XPM=no
9716 LIBXPM=
9717 if test "${HAVE_X11}" = "yes"; then
9718 if test "${with_xpm}" != "no"; then
9719 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
9720 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
9722 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9723 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
9724 $as_echo_n "(cached) " >&6
9725 else
9726 ac_check_lib_save_LIBS=$LIBS
9727 LIBS="-lXpm -lX11 $LIBS"
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9730
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9734 #ifdef __cplusplus
9735 extern "C"
9736 #endif
9737 char XpmReadFileToPixmap ();
9738 int
9739 main ()
9740 {
9741 return XpmReadFileToPixmap ();
9742 ;
9743 return 0;
9744 }
9745 _ACEOF
9746 if ac_fn_c_try_link "$LINENO"; then :
9747 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9748 else
9749 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9750 fi
9751 rm -f core conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9753 LIBS=$ac_check_lib_save_LIBS
9754 fi
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9756 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9757 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
9758 HAVE_XPM=yes
9759 fi
9760
9761 fi
9762
9763
9764 if test "${HAVE_XPM}" = "yes"; then
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
9766 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 #include "X11/xpm.h"
9770 #ifndef XpmReturnAllocPixels
9771 no_return_alloc_pixels
9772 #endif
9773
9774 _ACEOF
9775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9776 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
9777 HAVE_XPM=no
9778 else
9779 HAVE_XPM=yes
9780 fi
9781 rm -f conftest*
9782
9783
9784 if test "${HAVE_XPM}" = "yes"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9786 $as_echo "yes" >&6; }
9787 else
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9790 fi
9791 fi
9792 fi
9793
9794 if test "${HAVE_XPM}" = "yes"; then
9795
9796 $as_echo "#define HAVE_XPM 1" >>confdefs.h
9797
9798 LIBXPM=-lXpm
9799 fi
9800 fi
9801
9802
9803 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9804 HAVE_JPEG=no
9805 LIBJPEG=
9806 if test "${HAVE_X11}" = "yes"; then
9807 if test "${with_jpeg}" != "no"; then
9808 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
9809 if test "x$ac_cv_header_jerror_h" = x""yes; then :
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
9811 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9812 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
9813 $as_echo_n "(cached) " >&6
9814 else
9815 ac_check_lib_save_LIBS=$LIBS
9816 LIBS="-ljpeg $LIBS"
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9819
9820 /* Override any GCC internal prototype to avoid an error.
9821 Use char because int might match the return type of a GCC
9822 builtin and then its argument prototype would still apply. */
9823 #ifdef __cplusplus
9824 extern "C"
9825 #endif
9826 char jpeg_destroy_compress ();
9827 int
9828 main ()
9829 {
9830 return jpeg_destroy_compress ();
9831 ;
9832 return 0;
9833 }
9834 _ACEOF
9835 if ac_fn_c_try_link "$LINENO"; then :
9836 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9837 else
9838 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9839 fi
9840 rm -f core conftest.err conftest.$ac_objext \
9841 conftest$ac_exeext conftest.$ac_ext
9842 LIBS=$ac_check_lib_save_LIBS
9843 fi
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9845 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
9846 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
9847 HAVE_JPEG=yes
9848 fi
9849
9850 fi
9851
9852
9853 fi
9854
9855 if test "${HAVE_JPEG}" = "yes"; then
9856 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9857
9858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859 /* end confdefs.h. */
9860 #include <jpeglib.h>
9861 version=JPEG_LIB_VERSION
9862
9863 _ACEOF
9864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9865 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
9866 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9867
9868 else
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
9870 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9871 HAVE_JPEG=no
9872 fi
9873 rm -f conftest*
9874
9875 fi
9876 if test "${HAVE_JPEG}" = "yes"; then
9877 LIBJPEG=-ljpeg
9878 fi
9879 fi
9880
9881
9882 ### Use -lpng if available, unless `--with-png=no'.
9883 HAVE_PNG=no
9884 LIBPNG=
9885 if test "${HAVE_X11}" = "yes"; then
9886 if test "${with_png}" != "no"; then
9887 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9888 # in /usr/include/libpng.
9889 for ac_header in png.h libpng/png.h
9890 do :
9891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9892 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9893 eval as_val=\$$as_ac_Header
9894 if test "x$as_val" = x""yes; then :
9895 cat >>confdefs.h <<_ACEOF
9896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9897 _ACEOF
9898
9899 fi
9900
9901 done
9902
9903 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
9905 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
9906 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
9907 $as_echo_n "(cached) " >&6
9908 else
9909 ac_check_lib_save_LIBS=$LIBS
9910 LIBS="-lpng -lz -lm $LIBS"
9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h. */
9913
9914 /* Override any GCC internal prototype to avoid an error.
9915 Use char because int might match the return type of a GCC
9916 builtin and then its argument prototype would still apply. */
9917 #ifdef __cplusplus
9918 extern "C"
9919 #endif
9920 char png_get_channels ();
9921 int
9922 main ()
9923 {
9924 return png_get_channels ();
9925 ;
9926 return 0;
9927 }
9928 _ACEOF
9929 if ac_fn_c_try_link "$LINENO"; then :
9930 ac_cv_lib_png_png_get_channels=yes
9931 else
9932 ac_cv_lib_png_png_get_channels=no
9933 fi
9934 rm -f core conftest.err conftest.$ac_objext \
9935 conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9937 fi
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
9939 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
9940 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
9941 HAVE_PNG=yes
9942 fi
9943
9944 fi
9945 fi
9946
9947 if test "${HAVE_PNG}" = "yes"; then
9948
9949 $as_echo "#define HAVE_PNG 1" >>confdefs.h
9950
9951 LIBPNG="-lpng -lz -lm"
9952 fi
9953 fi
9954
9955
9956 ### Use -ltiff if available, unless `--with-tiff=no'.
9957 HAVE_TIFF=no
9958 LIBTIFF=
9959 if test "${HAVE_X11}" = "yes"; then
9960 if test "${with_tiff}" != "no"; then
9961 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
9962 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
9963 tifflibs="-lz -lm"
9964 # At least one tiff package requires the jpeg library.
9965 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
9967 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
9968 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
9969 $as_echo_n "(cached) " >&6
9970 else
9971 ac_check_lib_save_LIBS=$LIBS
9972 LIBS="-ltiff $tifflibs $LIBS"
9973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974 /* end confdefs.h. */
9975
9976 /* Override any GCC internal prototype to avoid an error.
9977 Use char because int might match the return type of a GCC
9978 builtin and then its argument prototype would still apply. */
9979 #ifdef __cplusplus
9980 extern "C"
9981 #endif
9982 char TIFFGetVersion ();
9983 int
9984 main ()
9985 {
9986 return TIFFGetVersion ();
9987 ;
9988 return 0;
9989 }
9990 _ACEOF
9991 if ac_fn_c_try_link "$LINENO"; then :
9992 ac_cv_lib_tiff_TIFFGetVersion=yes
9993 else
9994 ac_cv_lib_tiff_TIFFGetVersion=no
9995 fi
9996 rm -f core conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9998 LIBS=$ac_check_lib_save_LIBS
9999 fi
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10001 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10002 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10003 HAVE_TIFF=yes
10004 fi
10005
10006 fi
10007
10008
10009 fi
10010
10011 if test "${HAVE_TIFF}" = "yes"; then
10012
10013 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10014
10015 LIBTIFF=-ltiff
10016 fi
10017 fi
10018
10019
10020 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10021 HAVE_GIF=no
10022 LIBGIF=
10023 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10024 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10025 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10026 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10027 # Earlier versions can crash Emacs.
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10029 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10030 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10031 $as_echo_n "(cached) " >&6
10032 else
10033 ac_check_lib_save_LIBS=$LIBS
10034 LIBS="-lgif $LIBS"
10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10037
10038 /* Override any GCC internal prototype to avoid an error.
10039 Use char because int might match the return type of a GCC
10040 builtin and then its argument prototype would still apply. */
10041 #ifdef __cplusplus
10042 extern "C"
10043 #endif
10044 char EGifPutExtensionLast ();
10045 int
10046 main ()
10047 {
10048 return EGifPutExtensionLast ();
10049 ;
10050 return 0;
10051 }
10052 _ACEOF
10053 if ac_fn_c_try_link "$LINENO"; then :
10054 ac_cv_lib_gif_EGifPutExtensionLast=yes
10055 else
10056 ac_cv_lib_gif_EGifPutExtensionLast=no
10057 fi
10058 rm -f core conftest.err conftest.$ac_objext \
10059 conftest$ac_exeext conftest.$ac_ext
10060 LIBS=$ac_check_lib_save_LIBS
10061 fi
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10063 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10064 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10065 HAVE_GIF=yes
10066 else
10067 HAVE_GIF=maybe
10068 fi
10069
10070 fi
10071
10072
10073
10074 if test "$HAVE_GIF" = yes; then
10075 LIBGIF=-lgif
10076 elif test "$HAVE_GIF" = maybe; then
10077 # If gif_lib.h but no libgif, try libungif.
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10079 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10080 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10081 $as_echo_n "(cached) " >&6
10082 else
10083 ac_check_lib_save_LIBS=$LIBS
10084 LIBS="-lungif $LIBS"
10085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086 /* end confdefs.h. */
10087
10088 /* Override any GCC internal prototype to avoid an error.
10089 Use char because int might match the return type of a GCC
10090 builtin and then its argument prototype would still apply. */
10091 #ifdef __cplusplus
10092 extern "C"
10093 #endif
10094 char EGifPutExtensionLast ();
10095 int
10096 main ()
10097 {
10098 return EGifPutExtensionLast ();
10099 ;
10100 return 0;
10101 }
10102 _ACEOF
10103 if ac_fn_c_try_link "$LINENO"; then :
10104 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10105 else
10106 ac_cv_lib_ungif_EGifPutExtensionLast=no
10107 fi
10108 rm -f core conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext conftest.$ac_ext
10110 LIBS=$ac_check_lib_save_LIBS
10111 fi
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10113 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10114 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10115 HAVE_GIF=yes
10116 else
10117 HAVE_GIF=no
10118 fi
10119
10120 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10121 fi
10122
10123 if test "${HAVE_GIF}" = "yes"; then
10124
10125 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10126
10127 fi
10128 fi
10129
10130
10131 if test "${HAVE_X11}" = "yes"; then
10132 MISSING=""
10133 WITH_NO=""
10134 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10135 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10136 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10137 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
10138 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10139 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
10140 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10141 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10142 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10143 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10144
10145 if test "X${MISSING}" != X; then
10146 as_fn_error "The following required libraries were not found:
10147 $MISSING
10148 Maybe some development libraries/packages are missing?
10149 If you don't want to link with them give
10150 $WITH_NO
10151 as options to configure" "$LINENO" 5
10152 fi
10153 fi
10154
10155 ### Use -lgpm if available, unless `--with-gpm=no'.
10156 HAVE_GPM=no
10157 LIBGPM=
10158 if test "${with_gpm}" != "no"; then
10159 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10160 if test "x$ac_cv_header_gpm_h" = x""yes; then :
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10162 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10163 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10164 $as_echo_n "(cached) " >&6
10165 else
10166 ac_check_lib_save_LIBS=$LIBS
10167 LIBS="-lgpm $LIBS"
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10170
10171 /* Override any GCC internal prototype to avoid an error.
10172 Use char because int might match the return type of a GCC
10173 builtin and then its argument prototype would still apply. */
10174 #ifdef __cplusplus
10175 extern "C"
10176 #endif
10177 char Gpm_Open ();
10178 int
10179 main ()
10180 {
10181 return Gpm_Open ();
10182 ;
10183 return 0;
10184 }
10185 _ACEOF
10186 if ac_fn_c_try_link "$LINENO"; then :
10187 ac_cv_lib_gpm_Gpm_Open=yes
10188 else
10189 ac_cv_lib_gpm_Gpm_Open=no
10190 fi
10191 rm -f core conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
10193 LIBS=$ac_check_lib_save_LIBS
10194 fi
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10196 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10197 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
10198 HAVE_GPM=yes
10199 fi
10200
10201 fi
10202
10203
10204
10205 if test "${HAVE_GPM}" = "yes"; then
10206
10207 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10208
10209 LIBGPM=-lgpm
10210 fi
10211 fi
10212
10213
10214 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10215 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
10216
10217 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10218
10219 fi
10220
10221
10222
10223 ### Use NeXTstep API to implement GUI.
10224 if test "${HAVE_NS}" = "yes"; then
10225
10226 $as_echo "#define HAVE_NS 1" >>confdefs.h
10227
10228 if test "${NS_IMPL_COCOA}" = "yes"; then
10229
10230 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10231
10232 GNU_OBJC_CFLAGS=
10233 fi
10234 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10235
10236 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10237
10238 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10239 fi
10240 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10241
10242 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10243
10244 fi
10245 # We also have mouse menus.
10246 HAVE_MENUS=yes
10247 OTHER_FILES=ns-app
10248 fi
10249
10250
10251 ### Use session management (-lSM -lICE) if available
10252 HAVE_X_SM=no
10253 LIBXSM=
10254 if test "${HAVE_X11}" = "yes"; then
10255 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10256 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10258 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10259 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 ac_check_lib_save_LIBS=$LIBS
10263 LIBS="-lSM -lICE $LIBS"
10264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10266
10267 /* Override any GCC internal prototype to avoid an error.
10268 Use char because int might match the return type of a GCC
10269 builtin and then its argument prototype would still apply. */
10270 #ifdef __cplusplus
10271 extern "C"
10272 #endif
10273 char SmcOpenConnection ();
10274 int
10275 main ()
10276 {
10277 return SmcOpenConnection ();
10278 ;
10279 return 0;
10280 }
10281 _ACEOF
10282 if ac_fn_c_try_link "$LINENO"; then :
10283 ac_cv_lib_SM_SmcOpenConnection=yes
10284 else
10285 ac_cv_lib_SM_SmcOpenConnection=no
10286 fi
10287 rm -f core conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
10289 LIBS=$ac_check_lib_save_LIBS
10290 fi
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10292 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10293 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
10294 HAVE_X_SM=yes
10295 fi
10296
10297 fi
10298
10299
10300
10301 if test "${HAVE_X_SM}" = "yes"; then
10302
10303 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10304
10305 LIBXSM="-lSM -lICE"
10306 case "$LIBS" in
10307 *-lSM*) ;;
10308 *) LIBS="$LIBXSM $LIBS" ;;
10309 esac
10310 fi
10311 fi
10312
10313
10314 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10316 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10317 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10318 $as_echo_n "(cached) " >&6
10319 else
10320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10321 /* end confdefs.h. */
10322 #include <netdb.h>
10323 int
10324 main ()
10325 {
10326 return h_errno;
10327 ;
10328 return 0;
10329 }
10330 _ACEOF
10331 if ac_fn_c_try_link "$LINENO"; then :
10332 emacs_cv_netdb_declares_h_errno=yes
10333 else
10334 emacs_cv_netdb_declares_h_errno=no
10335 fi
10336 rm -f core conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10338 fi
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10340 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10341 if test $emacs_cv_netdb_declares_h_errno = yes; then
10342
10343 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10344
10345 fi
10346
10347 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10348 # for constant arguments. Useless!
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10350 $as_echo_n "checking for working alloca.h... " >&6; }
10351 if test "${ac_cv_working_alloca_h+set}" = set; then :
10352 $as_echo_n "(cached) " >&6
10353 else
10354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355 /* end confdefs.h. */
10356 #include <alloca.h>
10357 int
10358 main ()
10359 {
10360 char *p = (char *) alloca (2 * sizeof (int));
10361 if (p) return 0;
10362 ;
10363 return 0;
10364 }
10365 _ACEOF
10366 if ac_fn_c_try_link "$LINENO"; then :
10367 ac_cv_working_alloca_h=yes
10368 else
10369 ac_cv_working_alloca_h=no
10370 fi
10371 rm -f core conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext conftest.$ac_ext
10373 fi
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10375 $as_echo "$ac_cv_working_alloca_h" >&6; }
10376 if test $ac_cv_working_alloca_h = yes; then
10377
10378 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10379
10380 fi
10381
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10383 $as_echo_n "checking for alloca... " >&6; }
10384 if test "${ac_cv_func_alloca_works+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
10386 else
10387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h. */
10389 #ifdef __GNUC__
10390 # define alloca __builtin_alloca
10391 #else
10392 # ifdef _MSC_VER
10393 # include <malloc.h>
10394 # define alloca _alloca
10395 # else
10396 # ifdef HAVE_ALLOCA_H
10397 # include <alloca.h>
10398 # else
10399 # ifdef _AIX
10400 #pragma alloca
10401 # else
10402 # ifndef alloca /* predefined by HP cc +Olibcalls */
10403 char *alloca ();
10404 # endif
10405 # endif
10406 # endif
10407 # endif
10408 #endif
10409
10410 int
10411 main ()
10412 {
10413 char *p = (char *) alloca (1);
10414 if (p) return 0;
10415 ;
10416 return 0;
10417 }
10418 _ACEOF
10419 if ac_fn_c_try_link "$LINENO"; then :
10420 ac_cv_func_alloca_works=yes
10421 else
10422 ac_cv_func_alloca_works=no
10423 fi
10424 rm -f core conftest.err conftest.$ac_objext \
10425 conftest$ac_exeext conftest.$ac_ext
10426 fi
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10428 $as_echo "$ac_cv_func_alloca_works" >&6; }
10429
10430 if test $ac_cv_func_alloca_works = yes; then
10431
10432 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10433
10434 else
10435 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10436 # that cause trouble. Some versions do not even contain alloca or
10437 # contain a buggy version. If you still want to use their alloca,
10438 # use ar to extract alloca.o from them instead of compiling alloca.c.
10439
10440 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10441
10442 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10443
10444
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10446 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10447 if test "${ac_cv_os_cray+set}" = set; then :
10448 $as_echo_n "(cached) " >&6
10449 else
10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10452 #if defined CRAY && ! defined CRAY2
10453 webecray
10454 #else
10455 wenotbecray
10456 #endif
10457
10458 _ACEOF
10459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10460 $EGREP "webecray" >/dev/null 2>&1; then :
10461 ac_cv_os_cray=yes
10462 else
10463 ac_cv_os_cray=no
10464 fi
10465 rm -f conftest*
10466
10467 fi
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10469 $as_echo "$ac_cv_os_cray" >&6; }
10470 if test $ac_cv_os_cray = yes; then
10471 for ac_func in _getb67 GETB67 getb67; do
10472 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10473 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10474 eval as_val=\$$as_ac_var
10475 if test "x$as_val" = x""yes; then :
10476
10477 cat >>confdefs.h <<_ACEOF
10478 #define CRAY_STACKSEG_END $ac_func
10479 _ACEOF
10480
10481 break
10482 fi
10483
10484 done
10485 fi
10486
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10488 $as_echo_n "checking stack direction for C alloca... " >&6; }
10489 if test "${ac_cv_c_stack_direction+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10492 if test "$cross_compiling" = yes; then :
10493 ac_cv_c_stack_direction=0
10494 else
10495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10497 $ac_includes_default
10498 int
10499 find_stack_direction ()
10500 {
10501 static char *addr = 0;
10502 auto char dummy;
10503 if (addr == 0)
10504 {
10505 addr = &dummy;
10506 return find_stack_direction ();
10507 }
10508 else
10509 return (&dummy > addr) ? 1 : -1;
10510 }
10511
10512 int
10513 main ()
10514 {
10515 return find_stack_direction () < 0;
10516 }
10517 _ACEOF
10518 if ac_fn_c_try_run "$LINENO"; then :
10519 ac_cv_c_stack_direction=1
10520 else
10521 ac_cv_c_stack_direction=-1
10522 fi
10523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10524 conftest.$ac_objext conftest.beam conftest.$ac_ext
10525 fi
10526
10527 fi
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10529 $as_echo "$ac_cv_c_stack_direction" >&6; }
10530 cat >>confdefs.h <<_ACEOF
10531 #define STACK_DIRECTION $ac_cv_c_stack_direction
10532 _ACEOF
10533
10534
10535 fi
10536
10537
10538 if test x"$ac_cv_func_alloca_works" != xyes; then
10539 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
10540 fi
10541
10542 # fmod, logb, and frexp are found in -lm on most systems.
10543 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10545 $as_echo_n "checking for sqrt in -lm... " >&6; }
10546 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10547 $as_echo_n "(cached) " >&6
10548 else
10549 ac_check_lib_save_LIBS=$LIBS
10550 LIBS="-lm $LIBS"
10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552 /* end confdefs.h. */
10553
10554 /* Override any GCC internal prototype to avoid an error.
10555 Use char because int might match the return type of a GCC
10556 builtin and then its argument prototype would still apply. */
10557 #ifdef __cplusplus
10558 extern "C"
10559 #endif
10560 char sqrt ();
10561 int
10562 main ()
10563 {
10564 return sqrt ();
10565 ;
10566 return 0;
10567 }
10568 _ACEOF
10569 if ac_fn_c_try_link "$LINENO"; then :
10570 ac_cv_lib_m_sqrt=yes
10571 else
10572 ac_cv_lib_m_sqrt=no
10573 fi
10574 rm -f core conftest.err conftest.$ac_objext \
10575 conftest$ac_exeext conftest.$ac_ext
10576 LIBS=$ac_check_lib_save_LIBS
10577 fi
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10579 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10580 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
10581 cat >>confdefs.h <<_ACEOF
10582 #define HAVE_LIBM 1
10583 _ACEOF
10584
10585 LIBS="-lm $LIBS"
10586
10587 fi
10588
10589
10590 # Check for mail-locking functions in a "mail" library. Probably this should
10591 # have the same check as for liblockfile below.
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10593 $as_echo_n "checking for maillock in -lmail... " >&6; }
10594 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10595 $as_echo_n "(cached) " >&6
10596 else
10597 ac_check_lib_save_LIBS=$LIBS
10598 LIBS="-lmail $LIBS"
10599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10600 /* end confdefs.h. */
10601
10602 /* Override any GCC internal prototype to avoid an error.
10603 Use char because int might match the return type of a GCC
10604 builtin and then its argument prototype would still apply. */
10605 #ifdef __cplusplus
10606 extern "C"
10607 #endif
10608 char maillock ();
10609 int
10610 main ()
10611 {
10612 return maillock ();
10613 ;
10614 return 0;
10615 }
10616 _ACEOF
10617 if ac_fn_c_try_link "$LINENO"; then :
10618 ac_cv_lib_mail_maillock=yes
10619 else
10620 ac_cv_lib_mail_maillock=no
10621 fi
10622 rm -f core conftest.err conftest.$ac_objext \
10623 conftest$ac_exeext conftest.$ac_ext
10624 LIBS=$ac_check_lib_save_LIBS
10625 fi
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10627 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10628 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
10629 have_mail=yes
10630 else
10631 have_mail=no
10632 fi
10633
10634 if test $have_mail = yes; then
10635 LIBS_MAIL=-lmail
10636 LIBS="$LIBS_MAIL $LIBS"
10637
10638 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
10639
10640 else
10641 LIBS_MAIL=
10642 fi
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10644 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10645 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 ac_check_lib_save_LIBS=$LIBS
10649 LIBS="-llockfile $LIBS"
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10652
10653 /* Override any GCC internal prototype to avoid an error.
10654 Use char because int might match the return type of a GCC
10655 builtin and then its argument prototype would still apply. */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 char maillock ();
10660 int
10661 main ()
10662 {
10663 return maillock ();
10664 ;
10665 return 0;
10666 }
10667 _ACEOF
10668 if ac_fn_c_try_link "$LINENO"; then :
10669 ac_cv_lib_lockfile_maillock=yes
10670 else
10671 ac_cv_lib_lockfile_maillock=no
10672 fi
10673 rm -f core conftest.err conftest.$ac_objext \
10674 conftest$ac_exeext conftest.$ac_ext
10675 LIBS=$ac_check_lib_save_LIBS
10676 fi
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
10678 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10679 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
10680 have_lockfile=yes
10681 else
10682 have_lockfile=no
10683 fi
10684
10685 if test $have_lockfile = yes; then
10686 LIBS_MAIL=-llockfile
10687 LIBS="$LIBS_MAIL $LIBS"
10688
10689 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
10690
10691 else
10692 # If we have the shared liblockfile, assume we must use it for mail
10693 # locking (e.g. Debian). If we couldn't link against liblockfile
10694 # (no liblockfile.a installed), ensure that we don't need to.
10695 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10696 set dummy liblockfile.so; ac_word=$2
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10698 $as_echo_n "checking for $ac_word... " >&6; }
10699 if test "${ac_cv_prog_liblockfile+set}" = set; then :
10700 $as_echo_n "(cached) " >&6
10701 else
10702 if test -n "$liblockfile"; then
10703 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10704 else
10705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10706 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10707 for as_dir in $as_dummy
10708 do
10709 IFS=$as_save_IFS
10710 test -z "$as_dir" && as_dir=.
10711 for ac_exec_ext in '' $ac_executable_extensions; do
10712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10713 ac_cv_prog_liblockfile="yes"
10714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10715 break 2
10716 fi
10717 done
10718 done
10719 IFS=$as_save_IFS
10720
10721 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10722 fi
10723 fi
10724 liblockfile=$ac_cv_prog_liblockfile
10725 if test -n "$liblockfile"; then
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
10727 $as_echo "$liblockfile" >&6; }
10728 else
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730 $as_echo "no" >&6; }
10731 fi
10732
10733
10734 if test $ac_cv_prog_liblockfile = yes; then
10735 as_fn_error "Shared liblockfile found but can't link against it.
10736 This probably means that movemail could lose mail.
10737 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
10738 fi
10739 fi
10740 for ac_func in touchlock
10741 do :
10742 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
10743 if test "x$ac_cv_func_touchlock" = x""yes; then :
10744 cat >>confdefs.h <<_ACEOF
10745 #define HAVE_TOUCHLOCK 1
10746 _ACEOF
10747
10748 fi
10749 done
10750
10751 for ac_header in maillock.h
10752 do :
10753 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
10754 if test "x$ac_cv_header_maillock_h" = x""yes; then :
10755 cat >>confdefs.h <<_ACEOF
10756 #define HAVE_MAILLOCK_H 1
10757 _ACEOF
10758
10759 fi
10760
10761 done
10762
10763
10764
10765 for ac_func in gethostname getdomainname dup2 \
10766 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
10767 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
10768 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
10769 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
10770 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10771 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10772 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10773 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10774 cfmakeraw cfsetspeed
10775 do :
10776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10777 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10778 eval as_val=\$$as_ac_var
10779 if test "x$as_val" = x""yes; then :
10780 cat >>confdefs.h <<_ACEOF
10781 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10782 _ACEOF
10783
10784 fi
10785 done
10786
10787
10788 for ac_header in sys/un.h
10789 do :
10790 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
10791 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
10792 cat >>confdefs.h <<_ACEOF
10793 #define HAVE_SYS_UN_H 1
10794 _ACEOF
10795
10796 fi
10797
10798 done
10799
10800
10801
10802
10803
10804
10805
10806 for ac_func in $ac_func_list
10807 do :
10808 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10809 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10810 eval as_val=\$$as_ac_var
10811 if test "x$as_val" = x""yes; then :
10812 cat >>confdefs.h <<_ACEOF
10813 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10814 _ACEOF
10815
10816 fi
10817 done
10818
10819
10820
10821
10822
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10824 $as_echo_n "checking for working mktime... " >&6; }
10825 if test "${ac_cv_func_working_mktime+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10828 if test "$cross_compiling" = yes; then :
10829 ac_cv_func_working_mktime=no
10830 else
10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10833 /* Test program from Paul Eggert and Tony Leneis. */
10834 #ifdef TIME_WITH_SYS_TIME
10835 # include <sys/time.h>
10836 # include <time.h>
10837 #else
10838 # ifdef HAVE_SYS_TIME_H
10839 # include <sys/time.h>
10840 # else
10841 # include <time.h>
10842 # endif
10843 #endif
10844
10845 #include <limits.h>
10846 #include <stdlib.h>
10847
10848 #ifdef HAVE_UNISTD_H
10849 # include <unistd.h>
10850 #endif
10851
10852 #ifndef HAVE_ALARM
10853 # define alarm(X) /* empty */
10854 #endif
10855
10856 /* Work around redefinition to rpl_putenv by other config tests. */
10857 #undef putenv
10858
10859 static time_t time_t_max;
10860 static time_t time_t_min;
10861
10862 /* Values we'll use to set the TZ environment variable. */
10863 static char *tz_strings[] = {
10864 (char *) 0, "TZ=GMT0", "TZ=JST-9",
10865 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10866 };
10867 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10868
10869 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
10870 Based on a problem report from Andreas Jaeger. */
10871 static int
10872 spring_forward_gap ()
10873 {
10874 /* glibc (up to about 1998-10-07) failed this test. */
10875 struct tm tm;
10876
10877 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10878 instead of "TZ=America/Vancouver" in order to detect the bug even
10879 on systems that don't support the Olson extension, or don't have the
10880 full zoneinfo tables installed. */
10881 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10882
10883 tm.tm_year = 98;
10884 tm.tm_mon = 3;
10885 tm.tm_mday = 5;
10886 tm.tm_hour = 2;
10887 tm.tm_min = 0;
10888 tm.tm_sec = 0;
10889 tm.tm_isdst = -1;
10890 return mktime (&tm) != (time_t) -1;
10891 }
10892
10893 static int
10894 mktime_test1 (now)
10895 time_t now;
10896 {
10897 struct tm *lt;
10898 return ! (lt = localtime (&now)) || mktime (lt) == now;
10899 }
10900
10901 static int
10902 mktime_test (now)
10903 time_t now;
10904 {
10905 return (mktime_test1 (now)
10906 && mktime_test1 ((time_t) (time_t_max - now))
10907 && mktime_test1 ((time_t) (time_t_min + now)));
10908 }
10909
10910 static int
10911 irix_6_4_bug ()
10912 {
10913 /* Based on code from Ariel Faigon. */
10914 struct tm tm;
10915 tm.tm_year = 96;
10916 tm.tm_mon = 3;
10917 tm.tm_mday = 0;
10918 tm.tm_hour = 0;
10919 tm.tm_min = 0;
10920 tm.tm_sec = 0;
10921 tm.tm_isdst = -1;
10922 mktime (&tm);
10923 return tm.tm_mon == 2 && tm.tm_mday == 31;
10924 }
10925
10926 static int
10927 bigtime_test (j)
10928 int j;
10929 {
10930 struct tm tm;
10931 time_t now;
10932 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10933 now = mktime (&tm);
10934 if (now != (time_t) -1)
10935 {
10936 struct tm *lt = localtime (&now);
10937 if (! (lt
10938 && lt->tm_year == tm.tm_year
10939 && lt->tm_mon == tm.tm_mon
10940 && lt->tm_mday == tm.tm_mday
10941 && lt->tm_hour == tm.tm_hour
10942 && lt->tm_min == tm.tm_min
10943 && lt->tm_sec == tm.tm_sec
10944 && lt->tm_yday == tm.tm_yday
10945 && lt->tm_wday == tm.tm_wday
10946 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10947 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10948 return 0;
10949 }
10950 return 1;
10951 }
10952
10953 static int
10954 year_2050_test ()
10955 {
10956 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
10957 ignoring leap seconds. */
10958 unsigned long int answer = 2527315200UL;
10959
10960 struct tm tm;
10961 time_t t;
10962 tm.tm_year = 2050 - 1900;
10963 tm.tm_mon = 2 - 1;
10964 tm.tm_mday = 1;
10965 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
10966 tm.tm_isdst = -1;
10967
10968 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10969 instead of "TZ=America/Vancouver" in order to detect the bug even
10970 on systems that don't support the Olson extension, or don't have the
10971 full zoneinfo tables installed. */
10972 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10973
10974 t = mktime (&tm);
10975
10976 /* Check that the result is either a failure, or close enough
10977 to the correct answer that we can assume the discrepancy is
10978 due to leap seconds. */
10979 return (t == (time_t) -1
10980 || (0 < t && answer - 120 <= t && t <= answer + 120));
10981 }
10982
10983 int
10984 main ()
10985 {
10986 time_t t, delta;
10987 int i, j;
10988
10989 /* This test makes some buggy mktime implementations loop.
10990 Give up after 60 seconds; a mktime slower than that
10991 isn't worth using anyway. */
10992 alarm (60);
10993
10994 for (;;)
10995 {
10996 t = (time_t_max << 1) + 1;
10997 if (t <= time_t_max)
10998 break;
10999 time_t_max = t;
11000 }
11001 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11002
11003 delta = time_t_max / 997; /* a suitable prime number */
11004 for (i = 0; i < N_STRINGS; i++)
11005 {
11006 if (tz_strings[i])
11007 putenv (tz_strings[i]);
11008
11009 for (t = 0; t <= time_t_max - delta; t += delta)
11010 if (! mktime_test (t))
11011 return 1;
11012 if (! (mktime_test ((time_t) 1)
11013 && mktime_test ((time_t) (60 * 60))
11014 && mktime_test ((time_t) (60 * 60 * 24))))
11015 return 1;
11016
11017 for (j = 1; ; j <<= 1)
11018 if (! bigtime_test (j))
11019 return 1;
11020 else if (INT_MAX / 2 < j)
11021 break;
11022 if (! bigtime_test (INT_MAX))
11023 return 1;
11024 }
11025 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11026 }
11027 _ACEOF
11028 if ac_fn_c_try_run "$LINENO"; then :
11029 ac_cv_func_working_mktime=yes
11030 else
11031 ac_cv_func_working_mktime=no
11032 fi
11033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11034 conftest.$ac_objext conftest.beam conftest.$ac_ext
11035 fi
11036
11037 fi
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11039 $as_echo "$ac_cv_func_working_mktime" >&6; }
11040 if test $ac_cv_func_working_mktime = no; then
11041 case " $LIBOBJS " in
11042 *" mktime.$ac_objext "* ) ;;
11043 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
11044 ;;
11045 esac
11046
11047 fi
11048
11049 if test "$ac_cv_func_working_mktime" = no; then
11050
11051 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
11052
11053 fi
11054
11055 ac_have_func=no # yes means we've found a way to get the load average.
11056
11057 # Make sure getloadavg.c is where it belongs, at configure-time.
11058 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11059 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11060
11061 ac_save_LIBS=$LIBS
11062
11063 # Check for getloadavg, but be sure not to touch the cache variable.
11064 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11065 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11066 exit 0
11067 else
11068 exit 1
11069 fi
11070 ) && ac_have_func=yes
11071
11072 # On HPUX9, an unprivileged user can get load averages through this function.
11073 for ac_func in pstat_getdynamic
11074 do :
11075 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11076 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
11077 cat >>confdefs.h <<_ACEOF
11078 #define HAVE_PSTAT_GETDYNAMIC 1
11079 _ACEOF
11080
11081 fi
11082 done
11083
11084
11085 # Solaris has libkstat which does not require root.
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11087 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11088 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11089 $as_echo_n "(cached) " >&6
11090 else
11091 ac_check_lib_save_LIBS=$LIBS
11092 LIBS="-lkstat $LIBS"
11093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11095
11096 /* Override any GCC internal prototype to avoid an error.
11097 Use char because int might match the return type of a GCC
11098 builtin and then its argument prototype would still apply. */
11099 #ifdef __cplusplus
11100 extern "C"
11101 #endif
11102 char kstat_open ();
11103 int
11104 main ()
11105 {
11106 return kstat_open ();
11107 ;
11108 return 0;
11109 }
11110 _ACEOF
11111 if ac_fn_c_try_link "$LINENO"; then :
11112 ac_cv_lib_kstat_kstat_open=yes
11113 else
11114 ac_cv_lib_kstat_kstat_open=no
11115 fi
11116 rm -f core conftest.err conftest.$ac_objext \
11117 conftest$ac_exeext conftest.$ac_ext
11118 LIBS=$ac_check_lib_save_LIBS
11119 fi
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11121 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11122 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11123 cat >>confdefs.h <<_ACEOF
11124 #define HAVE_LIBKSTAT 1
11125 _ACEOF
11126
11127 LIBS="-lkstat $LIBS"
11128
11129 fi
11130
11131 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11132
11133 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11134 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11135 # to get the right answer into the cache.
11136 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11137 if test $ac_have_func = no; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11139 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11140 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11141 $as_echo_n "(cached) " >&6
11142 else
11143 ac_check_lib_save_LIBS=$LIBS
11144 LIBS="-lelf $LIBS"
11145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146 /* end confdefs.h. */
11147
11148 /* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11151 #ifdef __cplusplus
11152 extern "C"
11153 #endif
11154 char elf_begin ();
11155 int
11156 main ()
11157 {
11158 return elf_begin ();
11159 ;
11160 return 0;
11161 }
11162 _ACEOF
11163 if ac_fn_c_try_link "$LINENO"; then :
11164 ac_cv_lib_elf_elf_begin=yes
11165 else
11166 ac_cv_lib_elf_elf_begin=no
11167 fi
11168 rm -f core conftest.err conftest.$ac_objext \
11169 conftest$ac_exeext conftest.$ac_ext
11170 LIBS=$ac_check_lib_save_LIBS
11171 fi
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11173 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11174 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
11175 LIBS="-lelf $LIBS"
11176 fi
11177
11178 fi
11179 if test $ac_have_func = no; then
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11181 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11182 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11183 $as_echo_n "(cached) " >&6
11184 else
11185 ac_check_lib_save_LIBS=$LIBS
11186 LIBS="-lkvm $LIBS"
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11189
11190 /* Override any GCC internal prototype to avoid an error.
11191 Use char because int might match the return type of a GCC
11192 builtin and then its argument prototype would still apply. */
11193 #ifdef __cplusplus
11194 extern "C"
11195 #endif
11196 char kvm_open ();
11197 int
11198 main ()
11199 {
11200 return kvm_open ();
11201 ;
11202 return 0;
11203 }
11204 _ACEOF
11205 if ac_fn_c_try_link "$LINENO"; then :
11206 ac_cv_lib_kvm_kvm_open=yes
11207 else
11208 ac_cv_lib_kvm_kvm_open=no
11209 fi
11210 rm -f core conftest.err conftest.$ac_objext \
11211 conftest$ac_exeext conftest.$ac_ext
11212 LIBS=$ac_check_lib_save_LIBS
11213 fi
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11215 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11216 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
11217 LIBS="-lkvm $LIBS"
11218 fi
11219
11220 # Check for the 4.4BSD definition of getloadavg.
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11222 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11223 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 ac_check_lib_save_LIBS=$LIBS
11227 LIBS="-lutil $LIBS"
11228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h. */
11230
11231 /* Override any GCC internal prototype to avoid an error.
11232 Use char because int might match the return type of a GCC
11233 builtin and then its argument prototype would still apply. */
11234 #ifdef __cplusplus
11235 extern "C"
11236 #endif
11237 char getloadavg ();
11238 int
11239 main ()
11240 {
11241 return getloadavg ();
11242 ;
11243 return 0;
11244 }
11245 _ACEOF
11246 if ac_fn_c_try_link "$LINENO"; then :
11247 ac_cv_lib_util_getloadavg=yes
11248 else
11249 ac_cv_lib_util_getloadavg=no
11250 fi
11251 rm -f core conftest.err conftest.$ac_objext \
11252 conftest$ac_exeext conftest.$ac_ext
11253 LIBS=$ac_check_lib_save_LIBS
11254 fi
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11256 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11257 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
11258 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11259 fi
11260
11261 fi
11262
11263 if test $ac_have_func = no; then
11264 # There is a commonly available library for RS/6000 AIX.
11265 # Since it is not a standard part of AIX, it might be installed locally.
11266 ac_getloadavg_LIBS=$LIBS
11267 LIBS="-L/usr/local/lib $LIBS"
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11269 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11270 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273 ac_check_lib_save_LIBS=$LIBS
11274 LIBS="-lgetloadavg $LIBS"
11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11277
11278 /* Override any GCC internal prototype to avoid an error.
11279 Use char because int might match the return type of a GCC
11280 builtin and then its argument prototype would still apply. */
11281 #ifdef __cplusplus
11282 extern "C"
11283 #endif
11284 char getloadavg ();
11285 int
11286 main ()
11287 {
11288 return getloadavg ();
11289 ;
11290 return 0;
11291 }
11292 _ACEOF
11293 if ac_fn_c_try_link "$LINENO"; then :
11294 ac_cv_lib_getloadavg_getloadavg=yes
11295 else
11296 ac_cv_lib_getloadavg_getloadavg=no
11297 fi
11298 rm -f core conftest.err conftest.$ac_objext \
11299 conftest$ac_exeext conftest.$ac_ext
11300 LIBS=$ac_check_lib_save_LIBS
11301 fi
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11303 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11304 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
11305 LIBS="-lgetloadavg $LIBS"
11306 else
11307 LIBS=$ac_getloadavg_LIBS
11308 fi
11309
11310 fi
11311
11312 # Make sure it is really in the library, if we think we found it,
11313 # otherwise set up the replacement function.
11314 for ac_func in getloadavg
11315 do :
11316 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11317 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11318 cat >>confdefs.h <<_ACEOF
11319 #define HAVE_GETLOADAVG 1
11320 _ACEOF
11321
11322 else
11323 case " $LIBOBJS " in
11324 *" getloadavg.$ac_objext "* ) ;;
11325 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11326 ;;
11327 esac
11328
11329
11330 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11331
11332 # Figure out what our getloadavg.c needs.
11333 ac_have_func=no
11334 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11335 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
11336 ac_have_func=yes
11337
11338 $as_echo "#define DGUX 1" >>confdefs.h
11339
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11341 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11342 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11343 $as_echo_n "(cached) " >&6
11344 else
11345 ac_check_lib_save_LIBS=$LIBS
11346 LIBS="-ldgc $LIBS"
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11349
11350 /* Override any GCC internal prototype to avoid an error.
11351 Use char because int might match the return type of a GCC
11352 builtin and then its argument prototype would still apply. */
11353 #ifdef __cplusplus
11354 extern "C"
11355 #endif
11356 char dg_sys_info ();
11357 int
11358 main ()
11359 {
11360 return dg_sys_info ();
11361 ;
11362 return 0;
11363 }
11364 _ACEOF
11365 if ac_fn_c_try_link "$LINENO"; then :
11366 ac_cv_lib_dgc_dg_sys_info=yes
11367 else
11368 ac_cv_lib_dgc_dg_sys_info=no
11369 fi
11370 rm -f core conftest.err conftest.$ac_objext \
11371 conftest$ac_exeext conftest.$ac_ext
11372 LIBS=$ac_check_lib_save_LIBS
11373 fi
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11375 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11376 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
11377 cat >>confdefs.h <<_ACEOF
11378 #define HAVE_LIBDGC 1
11379 _ACEOF
11380
11381 LIBS="-ldgc $LIBS"
11382
11383 fi
11384
11385 fi
11386
11387
11388
11389 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11390 if test "x$ac_cv_header_locale_h" = x""yes; then :
11391
11392 fi
11393
11394
11395 for ac_func in setlocale
11396 do :
11397 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
11398 if test "x$ac_cv_func_setlocale" = x""yes; then :
11399 cat >>confdefs.h <<_ACEOF
11400 #define HAVE_SETLOCALE 1
11401 _ACEOF
11402
11403 fi
11404 done
11405
11406
11407 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11408 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11409 # Irix 4.0.5F has the header but not the library.
11410 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11411 ac_have_func=yes
11412
11413 $as_echo "#define SVR4 1" >>confdefs.h
11414
11415 fi
11416
11417 if test $ac_have_func = no; then
11418 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11419 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
11420 ac_have_func=yes
11421
11422 $as_echo "#define UMAX 1" >>confdefs.h
11423
11424
11425 $as_echo "#define UMAX4_3 1" >>confdefs.h
11426
11427 fi
11428
11429
11430 fi
11431
11432 if test $ac_have_func = no; then
11433 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11434 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
11435 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
11436
11437 fi
11438
11439
11440 fi
11441
11442 if test $ac_have_func = no; then
11443 for ac_header in mach/mach.h
11444 do :
11445 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11446 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
11447 cat >>confdefs.h <<_ACEOF
11448 #define HAVE_MACH_MACH_H 1
11449 _ACEOF
11450
11451 fi
11452
11453 done
11454
11455 fi
11456
11457 for ac_header in nlist.h
11458 do :
11459 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11460 if test "x$ac_cv_header_nlist_h" = x""yes; then :
11461 cat >>confdefs.h <<_ACEOF
11462 #define HAVE_NLIST_H 1
11463 _ACEOF
11464 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11465 "
11466 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
11467
11468 cat >>confdefs.h <<_ACEOF
11469 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11470 _ACEOF
11471
11472
11473 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11474
11475 fi
11476
11477
11478 fi
11479
11480 done
11481
11482 fi
11483 done
11484
11485
11486 # Some definitions of getloadavg require that the program be installed setgid.
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11488 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11489 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11490 $as_echo_n "(cached) " >&6
11491 else
11492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11493 /* end confdefs.h. */
11494 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11495 #ifdef LDAV_PRIVILEGED
11496 Yowza Am I SETGID yet
11497 #endif
11498 _ACEOF
11499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11500 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
11501 ac_cv_func_getloadavg_setgid=yes
11502 else
11503 ac_cv_func_getloadavg_setgid=no
11504 fi
11505 rm -f conftest*
11506
11507 fi
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11509 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11510 if test $ac_cv_func_getloadavg_setgid = yes; then
11511 NEED_SETGID=true
11512
11513 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11514
11515 else
11516 NEED_SETGID=false
11517 fi
11518
11519 if test $ac_cv_func_getloadavg_setgid = yes; then
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11521 $as_echo_n "checking group of /dev/kmem... " >&6; }
11522 if test "${ac_cv_group_kmem+set}" = set; then :
11523 $as_echo_n "(cached) " >&6
11524 else
11525 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11526 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11527 # If we got an error (system does not support symlinks), try without -L.
11528 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11529 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
11530 | sed -ne 's/[ ][ ]*/ /g;
11531 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11532 / /s/.* //;p;'`
11533
11534 fi
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11536 $as_echo "$ac_cv_group_kmem" >&6; }
11537 KMEM_GROUP=$ac_cv_group_kmem
11538 fi
11539 if test "x$ac_save_LIBS" = x; then
11540 GETLOADAVG_LIBS=$LIBS
11541 else
11542 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11543 fi
11544 LIBS=$ac_save_LIBS
11545
11546
11547
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11549 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11550 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11551 $as_echo_n "(cached) " >&6
11552 else
11553 while :; do
11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h. */
11556 #include <sys/types.h> /* for off_t */
11557 #include <stdio.h>
11558 int
11559 main ()
11560 {
11561 int (*fp) (FILE *, off_t, int) = fseeko;
11562 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11563 ;
11564 return 0;
11565 }
11566 _ACEOF
11567 if ac_fn_c_try_link "$LINENO"; then :
11568 ac_cv_sys_largefile_source=no; break
11569 fi
11570 rm -f core conftest.err conftest.$ac_objext \
11571 conftest$ac_exeext conftest.$ac_ext
11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11574 #define _LARGEFILE_SOURCE 1
11575 #include <sys/types.h> /* for off_t */
11576 #include <stdio.h>
11577 int
11578 main ()
11579 {
11580 int (*fp) (FILE *, off_t, int) = fseeko;
11581 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11582 ;
11583 return 0;
11584 }
11585 _ACEOF
11586 if ac_fn_c_try_link "$LINENO"; then :
11587 ac_cv_sys_largefile_source=1; break
11588 fi
11589 rm -f core conftest.err conftest.$ac_objext \
11590 conftest$ac_exeext conftest.$ac_ext
11591 ac_cv_sys_largefile_source=unknown
11592 break
11593 done
11594 fi
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11596 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11597 case $ac_cv_sys_largefile_source in #(
11598 no | unknown) ;;
11599 *)
11600 cat >>confdefs.h <<_ACEOF
11601 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11602 _ACEOF
11603 ;;
11604 esac
11605 rm -rf conftest*
11606
11607 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11608 # in glibc 2.1.3, but that breaks too many other things.
11609 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11610 if test $ac_cv_sys_largefile_source != unknown; then
11611
11612 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11613
11614 fi
11615
11616
11617 # Configure getopt.
11618 # getopt.m4 serial 10
11619
11620 # The getopt module assume you want GNU getopt, with getopt_long etc,
11621 # rather than vanilla POSIX getopt. This means your your code should
11622 # always include <getopt.h> for the getopt prototypes.
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634 # Prerequisites of lib/getopt*.
11635
11636
11637
11638
11639 GETOPT_H=
11640 for ac_header in getopt.h
11641 do :
11642 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11643 if test "x$ac_cv_header_getopt_h" = x""yes; then :
11644 cat >>confdefs.h <<_ACEOF
11645 #define HAVE_GETOPT_H 1
11646 _ACEOF
11647
11648 else
11649 GETOPT_H=getopt.h
11650 fi
11651
11652 done
11653
11654 if test -z "$GETOPT_H"; then
11655 for ac_func in getopt_long_only
11656 do :
11657 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11658 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
11659 cat >>confdefs.h <<_ACEOF
11660 #define HAVE_GETOPT_LONG_ONLY 1
11661 _ACEOF
11662
11663 else
11664 GETOPT_H=getopt.h
11665 fi
11666 done
11667
11668 fi
11669
11670 if test -z "$GETOPT_H"; then
11671 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11672 "
11673 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
11674 GETOPT_H=getopt.h
11675 fi
11676
11677 fi
11678
11679 if test -z "$GETOPT_H"; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11681 $as_echo_n "checking for working GNU getopt function... " >&6; }
11682 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
11683 $as_echo_n "(cached) " >&6
11684 else
11685 if test "$cross_compiling" = yes; then :
11686 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11687 "
11688 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
11689 gl_cv_func_gnu_getopt=no
11690 else
11691 gl_cv_func_gnu_getopt=yes
11692 fi
11693
11694 else
11695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11696 /* end confdefs.h. */
11697 #include <getopt.h>
11698 int
11699 main ()
11700 {
11701
11702 char *myargv[3];
11703 myargv[0] = "conftest";
11704 myargv[1] = "-+";
11705 myargv[2] = 0;
11706 return getopt (2, myargv, "+a") != '?';
11707
11708 ;
11709 return 0;
11710 }
11711 _ACEOF
11712 if ac_fn_c_try_run "$LINENO"; then :
11713 gl_cv_func_gnu_getopt=yes
11714 else
11715 gl_cv_func_gnu_getopt=no
11716 fi
11717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11718 conftest.$ac_objext conftest.beam conftest.$ac_ext
11719 fi
11720
11721 fi
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
11723 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11724 if test "$gl_cv_func_gnu_getopt" = "no"; then
11725 GETOPT_H=getopt.h
11726 fi
11727 fi
11728
11729
11730
11731 if test -n "$GETOPT_H"; then :
11732
11733
11734 GETOPT_H=getopt.h
11735
11736 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11737
11738
11739
11740 :
11741 GETOPTOBJS='getopt.o getopt1.o'
11742
11743 fi
11744
11745
11746
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11748 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11749 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
11750 $as_echo_n "(cached) " >&6
11751 else
11752 # Use it with a single arg.
11753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11754 /* end confdefs.h. */
11755 $ac_includes_default
11756 int
11757 main ()
11758 {
11759 getpgrp (0);
11760 ;
11761 return 0;
11762 }
11763 _ACEOF
11764 if ac_fn_c_try_compile "$LINENO"; then :
11765 ac_cv_func_getpgrp_void=no
11766 else
11767 ac_cv_func_getpgrp_void=yes
11768 fi
11769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11770
11771 fi
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11773 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
11774 if test $ac_cv_func_getpgrp_void = yes; then
11775
11776 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
11777
11778 fi
11779
11780
11781 for ac_func in strftime
11782 do :
11783 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
11784 if test "x$ac_cv_func_strftime" = x""yes; then :
11785 cat >>confdefs.h <<_ACEOF
11786 #define HAVE_STRFTIME 1
11787 _ACEOF
11788
11789 else
11790 # strftime is in -lintl on SCO UNIX.
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11792 $as_echo_n "checking for strftime in -lintl... " >&6; }
11793 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11794 $as_echo_n "(cached) " >&6
11795 else
11796 ac_check_lib_save_LIBS=$LIBS
11797 LIBS="-lintl $LIBS"
11798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11799 /* end confdefs.h. */
11800
11801 /* Override any GCC internal prototype to avoid an error.
11802 Use char because int might match the return type of a GCC
11803 builtin and then its argument prototype would still apply. */
11804 #ifdef __cplusplus
11805 extern "C"
11806 #endif
11807 char strftime ();
11808 int
11809 main ()
11810 {
11811 return strftime ();
11812 ;
11813 return 0;
11814 }
11815 _ACEOF
11816 if ac_fn_c_try_link "$LINENO"; then :
11817 ac_cv_lib_intl_strftime=yes
11818 else
11819 ac_cv_lib_intl_strftime=no
11820 fi
11821 rm -f core conftest.err conftest.$ac_objext \
11822 conftest$ac_exeext conftest.$ac_ext
11823 LIBS=$ac_check_lib_save_LIBS
11824 fi
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11826 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11827 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
11828 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11829
11830 LIBS="-lintl $LIBS"
11831 fi
11832
11833 fi
11834 done
11835
11836
11837 # UNIX98 PTYs.
11838 for ac_func in grantpt
11839 do :
11840 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
11841 if test "x$ac_cv_func_grantpt" = x""yes; then :
11842 cat >>confdefs.h <<_ACEOF
11843 #define HAVE_GRANTPT 1
11844 _ACEOF
11845
11846 fi
11847 done
11848
11849
11850 # PTY-related GNU extensions.
11851 for ac_func in getpt
11852 do :
11853 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
11854 if test "x$ac_cv_func_getpt" = x""yes; then :
11855 cat >>confdefs.h <<_ACEOF
11856 #define HAVE_GETPT 1
11857 _ACEOF
11858
11859 fi
11860 done
11861
11862
11863 # Check this now, so that we will NOT find the above functions in ncurses.
11864 # That is because we have not set up to link ncurses in lib-src.
11865 # It's better to believe a function is not available
11866 # than to expect to find it in ncurses.
11867 # Also we need tputs and frieds to be able to build at all.
11868 have_tputs_et_al=true
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
11870 $as_echo_n "checking for library containing tputs... " >&6; }
11871 if test "${ac_cv_search_tputs+set}" = set; then :
11872 $as_echo_n "(cached) " >&6
11873 else
11874 ac_func_search_save_LIBS=$LIBS
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h. */
11877
11878 /* Override any GCC internal prototype to avoid an error.
11879 Use char because int might match the return type of a GCC
11880 builtin and then its argument prototype would still apply. */
11881 #ifdef __cplusplus
11882 extern "C"
11883 #endif
11884 char tputs ();
11885 int
11886 main ()
11887 {
11888 return tputs ();
11889 ;
11890 return 0;
11891 }
11892 _ACEOF
11893 for ac_lib in '' ncurses terminfo termcap; do
11894 if test -z "$ac_lib"; then
11895 ac_res="none required"
11896 else
11897 ac_res=-l$ac_lib
11898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11899 fi
11900 if ac_fn_c_try_link "$LINENO"; then :
11901 ac_cv_search_tputs=$ac_res
11902 fi
11903 rm -f core conftest.err conftest.$ac_objext \
11904 conftest$ac_exeext
11905 if test "${ac_cv_search_tputs+set}" = set; then :
11906 break
11907 fi
11908 done
11909 if test "${ac_cv_search_tputs+set}" = set; then :
11910
11911 else
11912 ac_cv_search_tputs=no
11913 fi
11914 rm conftest.$ac_ext
11915 LIBS=$ac_func_search_save_LIBS
11916 fi
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
11918 $as_echo "$ac_cv_search_tputs" >&6; }
11919 ac_res=$ac_cv_search_tputs
11920 if test "$ac_res" != no; then :
11921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11922
11923 else
11924 have_tputs_et_al=false
11925 fi
11926
11927 if test "$have_tputs_et_al" != true; then
11928 as_fn_error "I couldn't find termcap functions (tputs and friends).
11929 Maybe some development libraries/packages are missing? Try installing
11930 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
11931 fi
11932 # Must define this when any termcap library is found.
11933
11934 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
11935
11936
11937 # Do we have res_init, for detecting changes in /etc/resolv.conf?
11938
11939 resolv=no
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h. */
11942 #include <netinet/in.h>
11943 #include <arpa/nameser.h>
11944 #include <resolv.h>
11945 int
11946 main ()
11947 {
11948 return res_init();
11949 ;
11950 return 0;
11951 }
11952 _ACEOF
11953 if ac_fn_c_try_link "$LINENO"; then :
11954 have_res_init=yes
11955 else
11956 have_res_init=no
11957 fi
11958 rm -f core conftest.err conftest.$ac_objext \
11959 conftest$ac_exeext conftest.$ac_ext
11960 if test "$have_res_init" = no; then
11961 OLIBS="$LIBS"
11962 LIBS="$LIBS -lresolv"
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
11964 $as_echo_n "checking for res_init with -lresolv... " >&6; }
11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11967 #include <netinet/in.h>
11968 #include <arpa/nameser.h>
11969 #include <resolv.h>
11970 int
11971 main ()
11972 {
11973 return res_init();
11974 ;
11975 return 0;
11976 }
11977 _ACEOF
11978 if ac_fn_c_try_link "$LINENO"; then :
11979 have_res_init=yes
11980 else
11981 have_res_init=no
11982 fi
11983 rm -f core conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
11986 $as_echo "$have_res_init" >&6; }
11987 if test "$have_res_init" = yes ; then
11988 resolv=yes
11989 fi
11990 LIBS="$OLIBS"
11991 fi
11992
11993 if test "$have_res_init" = yes; then
11994
11995 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
11996
11997 fi
11998
11999 # Do we need the Hesiod library to provide the support routines?
12000 LIBHESIOD=
12001 if test "$with_hesiod" != no ; then
12002 # Don't set $LIBS here -- see comments above. FIXME which comments?
12003 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
12004 if test "x$ac_cv_func_res_send" = x""yes; then :
12005
12006 else
12007 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
12008 if test "x$ac_cv_func___res_send" = x""yes; then :
12009
12010 else
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
12012 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12013 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
12014 $as_echo_n "(cached) " >&6
12015 else
12016 ac_check_lib_save_LIBS=$LIBS
12017 LIBS="-lresolv $LIBS"
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12020
12021 /* Override any GCC internal prototype to avoid an error.
12022 Use char because int might match the return type of a GCC
12023 builtin and then its argument prototype would still apply. */
12024 #ifdef __cplusplus
12025 extern "C"
12026 #endif
12027 char res_send ();
12028 int
12029 main ()
12030 {
12031 return res_send ();
12032 ;
12033 return 0;
12034 }
12035 _ACEOF
12036 if ac_fn_c_try_link "$LINENO"; then :
12037 ac_cv_lib_resolv_res_send=yes
12038 else
12039 ac_cv_lib_resolv_res_send=no
12040 fi
12041 rm -f core conftest.err conftest.$ac_objext \
12042 conftest$ac_exeext conftest.$ac_ext
12043 LIBS=$ac_check_lib_save_LIBS
12044 fi
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12046 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12047 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
12048 resolv=yes
12049 else
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12051 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12052 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055 ac_check_lib_save_LIBS=$LIBS
12056 LIBS="-lresolv $LIBS"
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059
12060 /* Override any GCC internal prototype to avoid an error.
12061 Use char because int might match the return type of a GCC
12062 builtin and then its argument prototype would still apply. */
12063 #ifdef __cplusplus
12064 extern "C"
12065 #endif
12066 char __res_send ();
12067 int
12068 main ()
12069 {
12070 return __res_send ();
12071 ;
12072 return 0;
12073 }
12074 _ACEOF
12075 if ac_fn_c_try_link "$LINENO"; then :
12076 ac_cv_lib_resolv___res_send=yes
12077 else
12078 ac_cv_lib_resolv___res_send=no
12079 fi
12080 rm -f core conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext conftest.$ac_ext
12082 LIBS=$ac_check_lib_save_LIBS
12083 fi
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12085 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12086 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
12087 resolv=yes
12088 fi
12089
12090 fi
12091
12092 fi
12093
12094 fi
12095
12096 if test "$resolv" = yes ; then
12097 RESOLVLIB=-lresolv
12098 else
12099 RESOLVLIB=
12100 fi
12101 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
12102 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
12103
12104 else
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12106 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12107 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12108 $as_echo_n "(cached) " >&6
12109 else
12110 ac_check_lib_save_LIBS=$LIBS
12111 LIBS="-lhesiod $RESOLVLIB $LIBS"
12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h. */
12114
12115 /* Override any GCC internal prototype to avoid an error.
12116 Use char because int might match the return type of a GCC
12117 builtin and then its argument prototype would still apply. */
12118 #ifdef __cplusplus
12119 extern "C"
12120 #endif
12121 char hes_getmailhost ();
12122 int
12123 main ()
12124 {
12125 return hes_getmailhost ();
12126 ;
12127 return 0;
12128 }
12129 _ACEOF
12130 if ac_fn_c_try_link "$LINENO"; then :
12131 ac_cv_lib_hesiod_hes_getmailhost=yes
12132 else
12133 ac_cv_lib_hesiod_hes_getmailhost=no
12134 fi
12135 rm -f core conftest.err conftest.$ac_objext \
12136 conftest$ac_exeext conftest.$ac_ext
12137 LIBS=$ac_check_lib_save_LIBS
12138 fi
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12140 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12141 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
12142 hesiod=yes
12143 else
12144 :
12145 fi
12146
12147 fi
12148
12149
12150 if test x"$hesiod" = xyes; then
12151
12152 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12153
12154 LIBHESIOD=-lhesiod
12155 fi
12156 fi
12157
12158
12159 # Do we need libresolv (due to res_init or Hesiod)?
12160 if test "$resolv" = yes ; then
12161
12162 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12163
12164 LIBRESOLV=-lresolv
12165 else
12166 LIBRESOLV=
12167 fi
12168
12169
12170 # These tell us which Kerberos-related libraries to use.
12171 COM_ERRLIB=
12172 CRYPTOLIB=
12173 KRB5LIB=
12174 DESLIB=
12175 KRB4LIB=
12176
12177 if test "${with_kerberos}" != no; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12179 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12180 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12181 $as_echo_n "(cached) " >&6
12182 else
12183 ac_check_lib_save_LIBS=$LIBS
12184 LIBS="-lcom_err $LIBS"
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12187
12188 /* Override any GCC internal prototype to avoid an error.
12189 Use char because int might match the return type of a GCC
12190 builtin and then its argument prototype would still apply. */
12191 #ifdef __cplusplus
12192 extern "C"
12193 #endif
12194 char com_err ();
12195 int
12196 main ()
12197 {
12198 return com_err ();
12199 ;
12200 return 0;
12201 }
12202 _ACEOF
12203 if ac_fn_c_try_link "$LINENO"; then :
12204 ac_cv_lib_com_err_com_err=yes
12205 else
12206 ac_cv_lib_com_err_com_err=no
12207 fi
12208 rm -f core conftest.err conftest.$ac_objext \
12209 conftest$ac_exeext conftest.$ac_ext
12210 LIBS=$ac_check_lib_save_LIBS
12211 fi
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12213 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12214 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
12215 have_com_err=yes
12216 else
12217 have_com_err=no
12218 fi
12219
12220 if test $have_com_err = yes; then
12221 COM_ERRLIB=-lcom_err
12222 LIBS="$COM_ERRLIB $LIBS"
12223
12224 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
12225
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12228 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12229 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 ac_check_lib_save_LIBS=$LIBS
12233 LIBS="-lcrypto $LIBS"
12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12236
12237 /* Override any GCC internal prototype to avoid an error.
12238 Use char because int might match the return type of a GCC
12239 builtin and then its argument prototype would still apply. */
12240 #ifdef __cplusplus
12241 extern "C"
12242 #endif
12243 char mit_des_cbc_encrypt ();
12244 int
12245 main ()
12246 {
12247 return mit_des_cbc_encrypt ();
12248 ;
12249 return 0;
12250 }
12251 _ACEOF
12252 if ac_fn_c_try_link "$LINENO"; then :
12253 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12254 else
12255 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12256 fi
12257 rm -f core conftest.err conftest.$ac_objext \
12258 conftest$ac_exeext conftest.$ac_ext
12259 LIBS=$ac_check_lib_save_LIBS
12260 fi
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12262 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12263 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
12264 have_crypto=yes
12265 else
12266 have_crypto=no
12267 fi
12268
12269 if test $have_crypto = yes; then
12270 CRYPTOLIB=-lcrypto
12271 LIBS="$CRYPTOLIB $LIBS"
12272
12273 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12274
12275 fi
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12277 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12278 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12279 $as_echo_n "(cached) " >&6
12280 else
12281 ac_check_lib_save_LIBS=$LIBS
12282 LIBS="-lk5crypto $LIBS"
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h. */
12285
12286 /* Override any GCC internal prototype to avoid an error.
12287 Use char because int might match the return type of a GCC
12288 builtin and then its argument prototype would still apply. */
12289 #ifdef __cplusplus
12290 extern "C"
12291 #endif
12292 char mit_des_cbc_encrypt ();
12293 int
12294 main ()
12295 {
12296 return mit_des_cbc_encrypt ();
12297 ;
12298 return 0;
12299 }
12300 _ACEOF
12301 if ac_fn_c_try_link "$LINENO"; then :
12302 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12303 else
12304 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12305 fi
12306 rm -f core conftest.err conftest.$ac_objext \
12307 conftest$ac_exeext conftest.$ac_ext
12308 LIBS=$ac_check_lib_save_LIBS
12309 fi
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12311 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12312 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
12313 have_k5crypto=yes
12314 else
12315 have_k5crypto=no
12316 fi
12317
12318 if test $have_k5crypto = yes; then
12319 CRYPTOLIB=-lk5crypto
12320 LIBS="$CRYPTOLIB $LIBS"
12321
12322 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
12323
12324 fi
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12326 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12327 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12328 $as_echo_n "(cached) " >&6
12329 else
12330 ac_check_lib_save_LIBS=$LIBS
12331 LIBS="-lkrb5 $LIBS"
12332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12334
12335 /* Override any GCC internal prototype to avoid an error.
12336 Use char because int might match the return type of a GCC
12337 builtin and then its argument prototype would still apply. */
12338 #ifdef __cplusplus
12339 extern "C"
12340 #endif
12341 char krb5_init_context ();
12342 int
12343 main ()
12344 {
12345 return krb5_init_context ();
12346 ;
12347 return 0;
12348 }
12349 _ACEOF
12350 if ac_fn_c_try_link "$LINENO"; then :
12351 ac_cv_lib_krb5_krb5_init_context=yes
12352 else
12353 ac_cv_lib_krb5_krb5_init_context=no
12354 fi
12355 rm -f core conftest.err conftest.$ac_objext \
12356 conftest$ac_exeext conftest.$ac_ext
12357 LIBS=$ac_check_lib_save_LIBS
12358 fi
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12360 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12361 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
12362 have_krb5=yes
12363 else
12364 have_krb5=no
12365 fi
12366
12367 if test $have_krb5=yes; then
12368 KRB5LIB=-lkrb5
12369 LIBS="$KRB5LIB $LIBS"
12370
12371 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
12372
12373 fi
12374 if test "${with_kerberos5}" = no; then
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12376 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12377 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12380 ac_check_lib_save_LIBS=$LIBS
12381 LIBS="-ldes425 $LIBS"
12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h. */
12384
12385 /* Override any GCC internal prototype to avoid an error.
12386 Use char because int might match the return type of a GCC
12387 builtin and then its argument prototype would still apply. */
12388 #ifdef __cplusplus
12389 extern "C"
12390 #endif
12391 char des_cbc_encrypt ();
12392 int
12393 main ()
12394 {
12395 return des_cbc_encrypt ();
12396 ;
12397 return 0;
12398 }
12399 _ACEOF
12400 if ac_fn_c_try_link "$LINENO"; then :
12401 ac_cv_lib_des425_des_cbc_encrypt=yes
12402 else
12403 ac_cv_lib_des425_des_cbc_encrypt=no
12404 fi
12405 rm -f core conftest.err conftest.$ac_objext \
12406 conftest$ac_exeext conftest.$ac_ext
12407 LIBS=$ac_check_lib_save_LIBS
12408 fi
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12410 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12411 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
12412 have_des425=yes
12413 else
12414 have_des425=no
12415 fi
12416
12417 if test $have_des425 = yes; then
12418 DESLIB=-ldes425
12419 LIBS="$DESLIB $LIBS"
12420
12421 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
12422
12423 else
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12425 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12426 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 ac_check_lib_save_LIBS=$LIBS
12430 LIBS="-ldes $LIBS"
12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h. */
12433
12434 /* Override any GCC internal prototype to avoid an error.
12435 Use char because int might match the return type of a GCC
12436 builtin and then its argument prototype would still apply. */
12437 #ifdef __cplusplus
12438 extern "C"
12439 #endif
12440 char des_cbc_encrypt ();
12441 int
12442 main ()
12443 {
12444 return des_cbc_encrypt ();
12445 ;
12446 return 0;
12447 }
12448 _ACEOF
12449 if ac_fn_c_try_link "$LINENO"; then :
12450 ac_cv_lib_des_des_cbc_encrypt=yes
12451 else
12452 ac_cv_lib_des_des_cbc_encrypt=no
12453 fi
12454 rm -f core conftest.err conftest.$ac_objext \
12455 conftest$ac_exeext conftest.$ac_ext
12456 LIBS=$ac_check_lib_save_LIBS
12457 fi
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12459 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12460 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
12461 have_des=yes
12462 else
12463 have_des=no
12464 fi
12465
12466 if test $have_des = yes; then
12467 DESLIB=-ldes
12468 LIBS="$DESLIB $LIBS"
12469
12470 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
12471
12472 fi
12473 fi
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12475 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12476 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12477 $as_echo_n "(cached) " >&6
12478 else
12479 ac_check_lib_save_LIBS=$LIBS
12480 LIBS="-lkrb4 $LIBS"
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12483
12484 /* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12487 #ifdef __cplusplus
12488 extern "C"
12489 #endif
12490 char krb_get_cred ();
12491 int
12492 main ()
12493 {
12494 return krb_get_cred ();
12495 ;
12496 return 0;
12497 }
12498 _ACEOF
12499 if ac_fn_c_try_link "$LINENO"; then :
12500 ac_cv_lib_krb4_krb_get_cred=yes
12501 else
12502 ac_cv_lib_krb4_krb_get_cred=no
12503 fi
12504 rm -f core conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
12506 LIBS=$ac_check_lib_save_LIBS
12507 fi
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12509 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12510 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
12511 have_krb4=yes
12512 else
12513 have_krb4=no
12514 fi
12515
12516 if test $have_krb4 = yes; then
12517 KRB4LIB=-lkrb4
12518 LIBS="$KRB4LIB $LIBS"
12519
12520 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
12521
12522 else
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12524 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12525 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
12526 $as_echo_n "(cached) " >&6
12527 else
12528 ac_check_lib_save_LIBS=$LIBS
12529 LIBS="-lkrb $LIBS"
12530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12531 /* end confdefs.h. */
12532
12533 /* Override any GCC internal prototype to avoid an error.
12534 Use char because int might match the return type of a GCC
12535 builtin and then its argument prototype would still apply. */
12536 #ifdef __cplusplus
12537 extern "C"
12538 #endif
12539 char krb_get_cred ();
12540 int
12541 main ()
12542 {
12543 return krb_get_cred ();
12544 ;
12545 return 0;
12546 }
12547 _ACEOF
12548 if ac_fn_c_try_link "$LINENO"; then :
12549 ac_cv_lib_krb_krb_get_cred=yes
12550 else
12551 ac_cv_lib_krb_krb_get_cred=no
12552 fi
12553 rm -f core conftest.err conftest.$ac_objext \
12554 conftest$ac_exeext conftest.$ac_ext
12555 LIBS=$ac_check_lib_save_LIBS
12556 fi
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
12558 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12559 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
12560 have_krb=yes
12561 else
12562 have_krb=no
12563 fi
12564
12565 if test $have_krb = yes; then
12566 KRB4LIB=-lkrb
12567 LIBS="$KRB4LIB $LIBS"
12568
12569 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
12570
12571 fi
12572 fi
12573 fi
12574
12575 if test "${with_kerberos5}" != no; then
12576 for ac_header in krb5.h
12577 do :
12578 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
12579 if test "x$ac_cv_header_krb5_h" = x""yes; then :
12580 cat >>confdefs.h <<_ACEOF
12581 #define HAVE_KRB5_H 1
12582 _ACEOF
12583 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
12584 "
12585 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
12586
12587 cat >>confdefs.h <<_ACEOF
12588 #define HAVE_KRB5_ERROR_TEXT 1
12589 _ACEOF
12590
12591
12592 fi
12593 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
12594 "
12595 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
12596
12597 cat >>confdefs.h <<_ACEOF
12598 #define HAVE_KRB5_ERROR_E_TEXT 1
12599 _ACEOF
12600
12601
12602 fi
12603
12604 fi
12605
12606 done
12607
12608 else
12609 for ac_header in des.h
12610 do :
12611 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
12612 if test "x$ac_cv_header_des_h" = x""yes; then :
12613 cat >>confdefs.h <<_ACEOF
12614 #define HAVE_DES_H 1
12615 _ACEOF
12616
12617 else
12618 for ac_header in kerberosIV/des.h
12619 do :
12620 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
12621 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
12622 cat >>confdefs.h <<_ACEOF
12623 #define HAVE_KERBEROSIV_DES_H 1
12624 _ACEOF
12625
12626 else
12627 for ac_header in kerberos/des.h
12628 do :
12629 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
12630 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
12631 cat >>confdefs.h <<_ACEOF
12632 #define HAVE_KERBEROS_DES_H 1
12633 _ACEOF
12634
12635 fi
12636
12637 done
12638
12639 fi
12640
12641 done
12642
12643 fi
12644
12645 done
12646
12647 for ac_header in krb.h
12648 do :
12649 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
12650 if test "x$ac_cv_header_krb_h" = x""yes; then :
12651 cat >>confdefs.h <<_ACEOF
12652 #define HAVE_KRB_H 1
12653 _ACEOF
12654
12655 else
12656 for ac_header in kerberosIV/krb.h
12657 do :
12658 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
12659 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
12660 cat >>confdefs.h <<_ACEOF
12661 #define HAVE_KERBEROSIV_KRB_H 1
12662 _ACEOF
12663
12664 else
12665 for ac_header in kerberos/krb.h
12666 do :
12667 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
12668 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
12669 cat >>confdefs.h <<_ACEOF
12670 #define HAVE_KERBEROS_KRB_H 1
12671 _ACEOF
12672
12673 fi
12674
12675 done
12676
12677 fi
12678
12679 done
12680
12681 fi
12682
12683 done
12684
12685 fi
12686 for ac_header in com_err.h
12687 do :
12688 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
12689 if test "x$ac_cv_header_com_err_h" = x""yes; then :
12690 cat >>confdefs.h <<_ACEOF
12691 #define HAVE_COM_ERR_H 1
12692 _ACEOF
12693
12694 fi
12695
12696 done
12697
12698 fi
12699
12700
12701
12702
12703
12704
12705
12706 # Solaris requires -lintl if you want strerror (which calls dgettext)
12707 # to return localized messages.
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
12709 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12710 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
12711 $as_echo_n "(cached) " >&6
12712 else
12713 ac_check_lib_save_LIBS=$LIBS
12714 LIBS="-lintl $LIBS"
12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h. */
12717
12718 /* Override any GCC internal prototype to avoid an error.
12719 Use char because int might match the return type of a GCC
12720 builtin and then its argument prototype would still apply. */
12721 #ifdef __cplusplus
12722 extern "C"
12723 #endif
12724 char dgettext ();
12725 int
12726 main ()
12727 {
12728 return dgettext ();
12729 ;
12730 return 0;
12731 }
12732 _ACEOF
12733 if ac_fn_c_try_link "$LINENO"; then :
12734 ac_cv_lib_intl_dgettext=yes
12735 else
12736 ac_cv_lib_intl_dgettext=no
12737 fi
12738 rm -f core conftest.err conftest.$ac_objext \
12739 conftest$ac_exeext conftest.$ac_ext
12740 LIBS=$ac_check_lib_save_LIBS
12741 fi
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
12743 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12744 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
12745 cat >>confdefs.h <<_ACEOF
12746 #define HAVE_LIBINTL 1
12747 _ACEOF
12748
12749 LIBS="-lintl $LIBS"
12750
12751 fi
12752
12753
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
12755 $as_echo_n "checking whether localtime caches TZ... " >&6; }
12756 if test "${emacs_cv_localtime_cache+set}" = set; then :
12757 $as_echo_n "(cached) " >&6
12758 else
12759 if test x$ac_cv_func_tzset = xyes; then
12760 if test "$cross_compiling" = yes; then :
12761 # If we have tzset, assume the worst when cross-compiling.
12762 emacs_cv_localtime_cache=yes
12763 else
12764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h. */
12766 #include <time.h>
12767 extern char **environ;
12768 unset_TZ ()
12769 {
12770 char **from, **to;
12771 for (to = from = environ; (*to = *from); from++)
12772 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
12773 to++;
12774 }
12775 char TZ_GMT0[] = "TZ=GMT0";
12776 char TZ_PST8[] = "TZ=PST8";
12777 main()
12778 {
12779 time_t now = time ((time_t *) 0);
12780 int hour_GMT0, hour_unset;
12781 if (putenv (TZ_GMT0) != 0)
12782 exit (1);
12783 hour_GMT0 = localtime (&now)->tm_hour;
12784 unset_TZ ();
12785 hour_unset = localtime (&now)->tm_hour;
12786 if (putenv (TZ_PST8) != 0)
12787 exit (1);
12788 if (localtime (&now)->tm_hour == hour_GMT0)
12789 exit (1);
12790 unset_TZ ();
12791 if (localtime (&now)->tm_hour != hour_unset)
12792 exit (1);
12793 exit (0);
12794 }
12795 _ACEOF
12796 if ac_fn_c_try_run "$LINENO"; then :
12797 emacs_cv_localtime_cache=no
12798 else
12799 emacs_cv_localtime_cache=yes
12800 fi
12801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12802 conftest.$ac_objext conftest.beam conftest.$ac_ext
12803 fi
12804
12805 else
12806 # If we lack tzset, report that localtime does not cache TZ,
12807 # since we can't invalidate the cache if we don't have tzset.
12808 emacs_cv_localtime_cache=no
12809 fi
12810 fi
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
12812 $as_echo "$emacs_cv_localtime_cache" >&6; }
12813 if test $emacs_cv_localtime_cache = yes; then
12814
12815 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
12816
12817 fi
12818
12819 if test "x$HAVE_TIMEVAL" = xyes; then
12820 for ac_func in gettimeofday
12821 do :
12822 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12823 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
12824 cat >>confdefs.h <<_ACEOF
12825 #define HAVE_GETTIMEOFDAY 1
12826 _ACEOF
12827
12828 fi
12829 done
12830
12831 if test $ac_cv_func_gettimeofday = yes; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
12833 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12834 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
12835 $as_echo_n "(cached) " >&6
12836 else
12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h. */
12839
12840 #ifdef TIME_WITH_SYS_TIME
12841 #include <sys/time.h>
12842 #include <time.h>
12843 #else
12844 #ifdef HAVE_SYS_TIME_H
12845 #include <sys/time.h>
12846 #else
12847 #include <time.h>
12848 #endif
12849 #endif
12850 int
12851 main ()
12852 {
12853 struct timeval time;
12854 gettimeofday (&time, 0);
12855 ;
12856 return 0;
12857 }
12858 _ACEOF
12859 if ac_fn_c_try_compile "$LINENO"; then :
12860 emacs_cv_gettimeofday_two_arguments=yes
12861 else
12862 emacs_cv_gettimeofday_two_arguments=no
12863 fi
12864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12865 fi
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
12867 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
12868 if test $emacs_cv_gettimeofday_two_arguments = no; then
12869
12870 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
12871
12872 fi
12873 fi
12874 fi
12875
12876 ok_so_far=yes
12877 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
12878 if test "x$ac_cv_func_socket" = x""yes; then :
12879
12880 else
12881 ok_so_far=no
12882 fi
12883
12884 if test $ok_so_far = yes; then
12885 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12886 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
12887
12888 else
12889 ok_so_far=no
12890 fi
12891
12892
12893 fi
12894 if test $ok_so_far = yes; then
12895 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
12896 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
12897
12898 else
12899 ok_so_far=no
12900 fi
12901
12902
12903 fi
12904 if test $ok_so_far = yes; then
12905
12906 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
12907
12908 fi
12909
12910 for ac_header in sys/ioctl.h
12911 do :
12912 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12913 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
12914 cat >>confdefs.h <<_ACEOF
12915 #define HAVE_SYS_IOCTL_H 1
12916 _ACEOF
12917
12918 fi
12919
12920 done
12921
12922
12923 if test -f /usr/lpp/X11/bin/smt.exp; then
12924
12925 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
12926
12927 fi
12928
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
12930 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
12931 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12933 $as_echo "yes" >&6; }
12934
12935 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
12936
12937 else
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12939 $as_echo "no" >&6; }
12940 fi
12941
12942 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12943 if test "x$ac_cv_type_pid_t" = x""yes; then :
12944
12945 else
12946
12947 cat >>confdefs.h <<_ACEOF
12948 #define pid_t int
12949 _ACEOF
12950
12951 fi
12952
12953 for ac_header in vfork.h
12954 do :
12955 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12956 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12957 cat >>confdefs.h <<_ACEOF
12958 #define HAVE_VFORK_H 1
12959 _ACEOF
12960
12961 fi
12962
12963 done
12964
12965 for ac_func in fork vfork
12966 do :
12967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12968 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12969 eval as_val=\$$as_ac_var
12970 if test "x$as_val" = x""yes; then :
12971 cat >>confdefs.h <<_ACEOF
12972 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12973 _ACEOF
12974
12975 fi
12976 done
12977
12978 if test "x$ac_cv_func_fork" = xyes; then
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12980 $as_echo_n "checking for working fork... " >&6; }
12981 if test "${ac_cv_func_fork_works+set}" = set; then :
12982 $as_echo_n "(cached) " >&6
12983 else
12984 if test "$cross_compiling" = yes; then :
12985 ac_cv_func_fork_works=cross
12986 else
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12989 $ac_includes_default
12990 int
12991 main ()
12992 {
12993
12994 /* By Ruediger Kuhlmann. */
12995 return fork () < 0;
12996
12997 ;
12998 return 0;
12999 }
13000 _ACEOF
13001 if ac_fn_c_try_run "$LINENO"; then :
13002 ac_cv_func_fork_works=yes
13003 else
13004 ac_cv_func_fork_works=no
13005 fi
13006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13007 conftest.$ac_objext conftest.beam conftest.$ac_ext
13008 fi
13009
13010 fi
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13012 $as_echo "$ac_cv_func_fork_works" >&6; }
13013
13014 else
13015 ac_cv_func_fork_works=$ac_cv_func_fork
13016 fi
13017 if test "x$ac_cv_func_fork_works" = xcross; then
13018 case $host in
13019 *-*-amigaos* | *-*-msdosdjgpp*)
13020 # Override, as these systems have only a dummy fork() stub
13021 ac_cv_func_fork_works=no
13022 ;;
13023 *)
13024 ac_cv_func_fork_works=yes
13025 ;;
13026 esac
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13028 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13029 fi
13030 ac_cv_func_vfork_works=$ac_cv_func_vfork
13031 if test "x$ac_cv_func_vfork" = xyes; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13033 $as_echo_n "checking for working vfork... " >&6; }
13034 if test "${ac_cv_func_vfork_works+set}" = set; then :
13035 $as_echo_n "(cached) " >&6
13036 else
13037 if test "$cross_compiling" = yes; then :
13038 ac_cv_func_vfork_works=cross
13039 else
13040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041 /* end confdefs.h. */
13042 /* Thanks to Paul Eggert for this test. */
13043 $ac_includes_default
13044 #include <sys/wait.h>
13045 #ifdef HAVE_VFORK_H
13046 # include <vfork.h>
13047 #endif
13048 /* On some sparc systems, changes by the child to local and incoming
13049 argument registers are propagated back to the parent. The compiler
13050 is told about this with #include <vfork.h>, but some compilers
13051 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13052 static variable whose address is put into a register that is
13053 clobbered by the vfork. */
13054 static void
13055 #ifdef __cplusplus
13056 sparc_address_test (int arg)
13057 # else
13058 sparc_address_test (arg) int arg;
13059 #endif
13060 {
13061 static pid_t child;
13062 if (!child) {
13063 child = vfork ();
13064 if (child < 0) {
13065 perror ("vfork");
13066 _exit(2);
13067 }
13068 if (!child) {
13069 arg = getpid();
13070 write(-1, "", 0);
13071 _exit (arg);
13072 }
13073 }
13074 }
13075
13076 int
13077 main ()
13078 {
13079 pid_t parent = getpid ();
13080 pid_t child;
13081
13082 sparc_address_test (0);
13083
13084 child = vfork ();
13085
13086 if (child == 0) {
13087 /* Here is another test for sparc vfork register problems. This
13088 test uses lots of local variables, at least as many local
13089 variables as main has allocated so far including compiler
13090 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13091 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13092 reuse the register of parent for one of the local variables,
13093 since it will think that parent can't possibly be used any more
13094 in this routine. Assigning to the local variable will thus
13095 munge parent in the parent process. */
13096 pid_t
13097 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13098 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13099 /* Convince the compiler that p..p7 are live; otherwise, it might
13100 use the same hardware register for all 8 local variables. */
13101 if (p != p1 || p != p2 || p != p3 || p != p4
13102 || p != p5 || p != p6 || p != p7)
13103 _exit(1);
13104
13105 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13106 from child file descriptors. If the child closes a descriptor
13107 before it execs or exits, this munges the parent's descriptor
13108 as well. Test for this by closing stdout in the child. */
13109 _exit(close(fileno(stdout)) != 0);
13110 } else {
13111 int status;
13112 struct stat st;
13113
13114 while (wait(&status) != child)
13115 ;
13116 return (
13117 /* Was there some problem with vforking? */
13118 child < 0
13119
13120 /* Did the child fail? (This shouldn't happen.) */
13121 || status
13122
13123 /* Did the vfork/compiler bug occur? */
13124 || parent != getpid()
13125
13126 /* Did the file descriptor bug occur? */
13127 || fstat(fileno(stdout), &st) != 0
13128 );
13129 }
13130 }
13131 _ACEOF
13132 if ac_fn_c_try_run "$LINENO"; then :
13133 ac_cv_func_vfork_works=yes
13134 else
13135 ac_cv_func_vfork_works=no
13136 fi
13137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13138 conftest.$ac_objext conftest.beam conftest.$ac_ext
13139 fi
13140
13141 fi
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13143 $as_echo "$ac_cv_func_vfork_works" >&6; }
13144
13145 fi;
13146 if test "x$ac_cv_func_fork_works" = xcross; then
13147 ac_cv_func_vfork_works=$ac_cv_func_vfork
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13149 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13150 fi
13151
13152 if test "x$ac_cv_func_vfork_works" = xyes; then
13153
13154 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13155
13156 else
13157
13158 $as_echo "#define vfork fork" >>confdefs.h
13159
13160 fi
13161 if test "x$ac_cv_func_fork_works" = xyes; then
13162
13163 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13164
13165 fi
13166
13167
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13169 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13170 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13172 else
13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h. */
13175 #include <langinfo.h>
13176 int
13177 main ()
13178 {
13179 char* cs = nl_langinfo(CODESET);
13180 ;
13181 return 0;
13182 }
13183 _ACEOF
13184 if ac_fn_c_try_link "$LINENO"; then :
13185 emacs_cv_langinfo_codeset=yes
13186 else
13187 emacs_cv_langinfo_codeset=no
13188 fi
13189 rm -f core conftest.err conftest.$ac_objext \
13190 conftest$ac_exeext conftest.$ac_ext
13191
13192 fi
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13194 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13195 if test $emacs_cv_langinfo_codeset = yes; then
13196
13197 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13198
13199 fi
13200
13201 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13202 if test "x$ac_cv_type_size_t" = x""yes; then :
13203
13204 cat >>confdefs.h <<_ACEOF
13205 #define HAVE_SIZE_T 1
13206 _ACEOF
13207
13208
13209 fi
13210
13211
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13213 $as_echo_n "checking for mbstate_t... " >&6; }
13214 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13215 $as_echo_n "(cached) " >&6
13216 else
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h. */
13219 $ac_includes_default
13220 # include <wchar.h>
13221 int
13222 main ()
13223 {
13224 mbstate_t x; return sizeof x;
13225 ;
13226 return 0;
13227 }
13228 _ACEOF
13229 if ac_fn_c_try_compile "$LINENO"; then :
13230 ac_cv_type_mbstate_t=yes
13231 else
13232 ac_cv_type_mbstate_t=no
13233 fi
13234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13235 fi
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13237 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13238 if test $ac_cv_type_mbstate_t = yes; then
13239
13240 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13241
13242 else
13243
13244 $as_echo "#define mbstate_t int" >>confdefs.h
13245
13246 fi
13247
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13249 $as_echo_n "checking for C restrict keyword... " >&6; }
13250 if test "${emacs_cv_c_restrict+set}" = set; then :
13251 $as_echo_n "(cached) " >&6
13252 else
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13255 void fred (int *restrict x);
13256 int
13257 main ()
13258 {
13259
13260 ;
13261 return 0;
13262 }
13263 _ACEOF
13264 if ac_fn_c_try_compile "$LINENO"; then :
13265 emacs_cv_c_restrict=yes
13266 else
13267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13269 void fred (int *__restrict x);
13270 int
13271 main ()
13272 {
13273
13274 ;
13275 return 0;
13276 }
13277 _ACEOF
13278 if ac_fn_c_try_compile "$LINENO"; then :
13279 emacs_cv_c_restrict=__restrict
13280 else
13281 emacs_cv_c_restrict=no
13282 fi
13283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284 fi
13285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13286 fi
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13288 $as_echo "$emacs_cv_c_restrict" >&6; }
13289 case "$emacs_cv_c_restrict" in
13290 yes) emacs_restrict=restrict;;
13291 no) emacs_restrict="";;
13292 *) emacs_restrict="$emacs_cv_c_restrict";;
13293 esac
13294 if test "$emacs_restrict" != __restrict; then
13295
13296 cat >>confdefs.h <<_ACEOF
13297 #define __restrict $emacs_restrict
13298 _ACEOF
13299
13300 fi
13301
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13303 $as_echo_n "checking for C restricted array declarations... " >&6; }
13304 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13305 $as_echo_n "(cached) " >&6
13306 else
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13309 void fred (int x[__restrict]);
13310 int
13311 main ()
13312 {
13313
13314 ;
13315 return 0;
13316 }
13317 _ACEOF
13318 if ac_fn_c_try_compile "$LINENO"; then :
13319 emacs_cv_c_restrict_arr=yes
13320 else
13321 emacs_cv_c_restrict_arr=no
13322 fi
13323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13324 fi
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13326 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13327 if test "$emacs_cv_c_restrict_arr" = yes; then
13328
13329 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13330
13331 fi
13332
13333
13334
13335 # Set up the CFLAGS for real compilation, so we can substitute it.
13336 CFLAGS="$REAL_CFLAGS"
13337 CPPFLAGS="$REAL_CPPFLAGS"
13338
13339 #### Find out which version of Emacs this is.
13340 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13341 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13342 if test x"${version}" = x; then
13343 as_fn_error "can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5
13344 fi
13345 if test x"${version}" != x"$PACKAGE_VERSION"; then
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13347 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13348 fi
13349
13350 ### Specify what sort of things we'll be editing into Makefile and config.h.
13351 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396 cat >>confdefs.h <<_ACEOF
13397 #define EMACS_CONFIGURATION "${canonical}"
13398 _ACEOF
13399
13400
13401 cat >>confdefs.h <<_ACEOF
13402 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13403 _ACEOF
13404
13405
13406 cat >>confdefs.h <<_ACEOF
13407 #define config_machfile "${machfile}"
13408 _ACEOF
13409
13410
13411 cat >>confdefs.h <<_ACEOF
13412 #define config_opsysfile "${opsysfile}"
13413 _ACEOF
13414
13415
13416 cat >>confdefs.h <<_ACEOF
13417 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
13418 _ACEOF
13419
13420
13421 cat >>confdefs.h <<_ACEOF
13422 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
13423 _ACEOF
13424
13425
13426 cat >>confdefs.h <<_ACEOF
13427 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
13428 _ACEOF
13429
13430
13431 cat >>confdefs.h <<_ACEOF
13432 #define UNEXEC_SRC ${UNEXEC_SRC}
13433 _ACEOF
13434
13435
13436 XMENU_OBJ=
13437 XOBJ=
13438 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13439
13440 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13441
13442 XMENU_OBJ=xmenu.o
13443 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
13444 fi
13445
13446
13447
13448 if test "${USE_X_TOOLKIT}" != "none" ; then
13449
13450 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13451
13452 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13453
13454 $as_echo "#define USE_LUCID 1" >>confdefs.h
13455
13456 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13457
13458 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13459
13460 fi
13461 fi
13462 if test "${HAVE_X11}" = "yes" ; then
13463
13464 $as_echo "#define HAVE_X11 1" >>confdefs.h
13465
13466 fi
13467 if test "${HAVE_MENUS}" = "yes" ; then
13468
13469 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
13470
13471 fi
13472 if test "${GNU_MALLOC}" = "yes" ; then
13473
13474 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
13475
13476 fi
13477 if test "${REL_ALLOC}" = "yes" ; then
13478
13479 $as_echo "#define REL_ALLOC 1" >>confdefs.h
13480
13481 fi
13482
13483
13484
13485
13486 #### Report on what we decided to do.
13487 #### Report GTK as a toolkit, even if it doesn't use Xt.
13488 #### It makes printing result more understandable as using GTK sets
13489 #### toolkit_scroll_bars to yes by default.
13490 if test "${HAVE_GTK}" = "yes"; then
13491 USE_X_TOOLKIT=GTK
13492 fi
13493
13494 echo "
13495 Configured for \`${canonical}'.
13496
13497 Where should the build process find the source code? ${srcdir}
13498 What operating system and machine description files should Emacs use?
13499 \`${opsysfile}' and \`${machfile}'
13500 What compiler should emacs be built with? ${CC} ${CFLAGS}
13501 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13502 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
13503 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
13504 What window system should Emacs use? ${window_system}
13505 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
13506
13507 if test -n "${x_includes}"; then
13508 echo " Where do we find X Windows header files? ${x_includes}"
13509 else
13510 echo " Where do we find X Windows header files? Standard dirs"
13511 fi
13512 if test -n "${x_libraries}"; then
13513 echo " Where do we find X Windows libraries? ${x_libraries}"
13514 else
13515 echo " Where do we find X Windows libraries? Standard dirs"
13516 fi
13517
13518 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
13519 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
13520 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
13521 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
13522 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
13523 echo " Does Emacs use -lpng? ${HAVE_PNG}"
13524 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
13525 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
13526 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
13527 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
13528 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
13529
13530 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
13531 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
13532 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
13533 echo " Does Emacs use -lxft? ${HAVE_XFT}"
13534
13535 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
13536 echo
13537
13538 if test $USE_XASSERTS = yes; then
13539 echo " Compiling with asserts turned on."
13540 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
13541 fi
13542
13543 echo
13544
13545 if test "$HAVE_NS" = "yes"; then
13546 echo
13547 echo "You must run \"make install\" in order to test the built application.
13548 The installed application will go to nextstep/Emacs.app and can be
13549 run or moved from there."
13550 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
13551 echo "The application will be fully self-contained."
13552 else
13553 echo "The lisp resources for the application will be installed under ${prefix}.
13554 You may need to run \"make install\" with sudo. The application will fail
13555 to run if these resources are not installed."
13556 fi
13557 echo
13558 fi
13559
13560 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
13561 echo "D-Bus integration has been tested for GNU/Linux only."
13562 echo
13563 fi
13564
13565
13566 # Remove any trailing slashes in these variables.
13567 test "${prefix}" != NONE &&
13568 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
13569 test "${exec_prefix}" != NONE &&
13570 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
13571
13572 # Now get this: Some word that is part of the ${srcdir} directory name
13573 # or the ${configuration} value might, just might, happen to be an
13574 # identifier like `sun4' or `i386' or something, and be predefined by
13575 # the C preprocessor to some helpful value like 1, or maybe the empty
13576 # string. Needless to say consequent macro substitutions are less
13577 # than conducive to the makefile finding the correct directory.
13578 cpp_undefs="`echo $srcdir $configuration $canonical unix |
13579 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13580 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
13581
13582 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
13583 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
13584 ## from Makefile.c can correctly provide the arg `-traditional' to the
13585 ## C preprocessor.
13586
13587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h. */
13589 yes..yes
13590 _ACEOF
13591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13592 $EGREP "yes..yes" >/dev/null 2>&1; then :
13593 CPP_NEED_TRADITIONAL=no
13594 else
13595 CPP_NEED_TRADITIONAL=yes
13596 fi
13597 rm -f conftest*
13598
13599
13600 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"
13601
13602 ac_config_commands="$ac_config_commands default"
13603
13604 cat >confcache <<\_ACEOF
13605 # This file is a shell script that caches the results of configure
13606 # tests run on this system so they can be shared between configure
13607 # scripts and configure runs, see configure's option --config-cache.
13608 # It is not useful on other systems. If it contains results you don't
13609 # want to keep, you may remove or edit it.
13610 #
13611 # config.status only pays attention to the cache file if you give it
13612 # the --recheck option to rerun configure.
13613 #
13614 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13615 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13616 # following values.
13617
13618 _ACEOF
13619
13620 # The following way of writing the cache mishandles newlines in values,
13621 # but we know of no workaround that is simple, portable, and efficient.
13622 # So, we kill variables containing newlines.
13623 # Ultrix sh set writes to stderr and can't be redirected directly,
13624 # and sets the high bit in the cache file unless we assign to the vars.
13625 (
13626 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13627 eval ac_val=\$$ac_var
13628 case $ac_val in #(
13629 *${as_nl}*)
13630 case $ac_var in #(
13631 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13632 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13633 esac
13634 case $ac_var in #(
13635 _ | IFS | as_nl) ;; #(
13636 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13637 *) { eval $ac_var=; unset $ac_var;} ;;
13638 esac ;;
13639 esac
13640 done
13641
13642 (set) 2>&1 |
13643 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13644 *${as_nl}ac_space=\ *)
13645 # `set' does not quote correctly, so add quotes: double-quote
13646 # substitution turns \\\\ into \\, and sed turns \\ into \.
13647 sed -n \
13648 "s/'/'\\\\''/g;
13649 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13650 ;; #(
13651 *)
13652 # `set' quotes correctly as required by POSIX, so do not add quotes.
13653 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13654 ;;
13655 esac |
13656 sort
13657 ) |
13658 sed '
13659 /^ac_cv_env_/b end
13660 t clear
13661 :clear
13662 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13663 t end
13664 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13665 :end' >>confcache
13666 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13667 if test -w "$cache_file"; then
13668 test "x$cache_file" != "x/dev/null" &&
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13670 $as_echo "$as_me: updating cache $cache_file" >&6;}
13671 cat confcache >$cache_file
13672 else
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13674 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13675 fi
13676 fi
13677 rm -f confcache
13678
13679 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13680 # Let make expand exec_prefix.
13681 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13682
13683 DEFS=-DHAVE_CONFIG_H
13684
13685 ac_libobjs=
13686 ac_ltlibobjs=
13687 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13688 # 1. Remove the extension, and $U if already installed.
13689 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13690 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13691 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13692 # will be set to the directory where LIBOBJS objects are built.
13693 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13694 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13695 done
13696 LIBOBJS=$ac_libobjs
13697
13698 LTLIBOBJS=$ac_ltlibobjs
13699
13700
13701
13702 : ${CONFIG_STATUS=./config.status}
13703 ac_write_fail=0
13704 ac_clean_files_save=$ac_clean_files
13705 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13707 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13708 as_write_fail=0
13709 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13710 #! $SHELL
13711 # Generated by $as_me.
13712 # Run this file to recreate the current configuration.
13713 # Compiler output produced by configure, useful for debugging
13714 # configure, is in config.log if it exists.
13715
13716 debug=false
13717 ac_cs_recheck=false
13718 ac_cs_silent=false
13719
13720 SHELL=\${CONFIG_SHELL-$SHELL}
13721 export SHELL
13722 _ASEOF
13723 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13724 ## -------------------- ##
13725 ## M4sh Initialization. ##
13726 ## -------------------- ##
13727
13728 # Be more Bourne compatible
13729 DUALCASE=1; export DUALCASE # for MKS sh
13730 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13731 emulate sh
13732 NULLCMD=:
13733 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13734 # is contrary to our usage. Disable this feature.
13735 alias -g '${1+"$@"}'='"$@"'
13736 setopt NO_GLOB_SUBST
13737 else
13738 case `(set -o) 2>/dev/null` in #(
13739 *posix*) :
13740 set -o posix ;; #(
13741 *) :
13742 ;;
13743 esac
13744 fi
13745
13746
13747 as_nl='
13748 '
13749 export as_nl
13750 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13751 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13752 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13753 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13754 # Prefer a ksh shell builtin over an external printf program on Solaris,
13755 # but without wasting forks for bash or zsh.
13756 if test -z "$BASH_VERSION$ZSH_VERSION" \
13757 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13758 as_echo='print -r --'
13759 as_echo_n='print -rn --'
13760 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13761 as_echo='printf %s\n'
13762 as_echo_n='printf %s'
13763 else
13764 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13765 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13766 as_echo_n='/usr/ucb/echo -n'
13767 else
13768 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13769 as_echo_n_body='eval
13770 arg=$1;
13771 case $arg in #(
13772 *"$as_nl"*)
13773 expr "X$arg" : "X\\(.*\\)$as_nl";
13774 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13775 esac;
13776 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13777 '
13778 export as_echo_n_body
13779 as_echo_n='sh -c $as_echo_n_body as_echo'
13780 fi
13781 export as_echo_body
13782 as_echo='sh -c $as_echo_body as_echo'
13783 fi
13784
13785 # The user is always right.
13786 if test "${PATH_SEPARATOR+set}" != set; then
13787 PATH_SEPARATOR=:
13788 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13789 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13790 PATH_SEPARATOR=';'
13791 }
13792 fi
13793
13794
13795 # IFS
13796 # We need space, tab and new line, in precisely that order. Quoting is
13797 # there to prevent editors from complaining about space-tab.
13798 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13799 # splitting by setting IFS to empty value.)
13800 IFS=" "" $as_nl"
13801
13802 # Find who we are. Look in the path if we contain no directory separator.
13803 case $0 in #((
13804 *[\\/]* ) as_myself=$0 ;;
13805 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13806 for as_dir in $PATH
13807 do
13808 IFS=$as_save_IFS
13809 test -z "$as_dir" && as_dir=.
13810 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13811 done
13812 IFS=$as_save_IFS
13813
13814 ;;
13815 esac
13816 # We did not find ourselves, most probably we were run as `sh COMMAND'
13817 # in which case we are not to be found in the path.
13818 if test "x$as_myself" = x; then
13819 as_myself=$0
13820 fi
13821 if test ! -f "$as_myself"; then
13822 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13823 exit 1
13824 fi
13825
13826 # Unset variables that we do not need and which cause bugs (e.g. in
13827 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13828 # suppresses any "Segmentation fault" message there. '((' could
13829 # trigger a bug in pdksh 5.2.14.
13830 for as_var in BASH_ENV ENV MAIL MAILPATH
13831 do eval test x\${$as_var+set} = xset \
13832 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13833 done
13834 PS1='$ '
13835 PS2='> '
13836 PS4='+ '
13837
13838 # NLS nuisances.
13839 LC_ALL=C
13840 export LC_ALL
13841 LANGUAGE=C
13842 export LANGUAGE
13843
13844 # CDPATH.
13845 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13846
13847
13848 # as_fn_error ERROR [LINENO LOG_FD]
13849 # ---------------------------------
13850 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13851 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13852 # script with status $?, using 1 if that was 0.
13853 as_fn_error ()
13854 {
13855 as_status=$?; test $as_status -eq 0 && as_status=1
13856 if test "$3"; then
13857 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13858 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13859 fi
13860 $as_echo "$as_me: error: $1" >&2
13861 as_fn_exit $as_status
13862 } # as_fn_error
13863
13864
13865 # as_fn_set_status STATUS
13866 # -----------------------
13867 # Set $? to STATUS, without forking.
13868 as_fn_set_status ()
13869 {
13870 return $1
13871 } # as_fn_set_status
13872
13873 # as_fn_exit STATUS
13874 # -----------------
13875 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13876 as_fn_exit ()
13877 {
13878 set +e
13879 as_fn_set_status $1
13880 exit $1
13881 } # as_fn_exit
13882
13883 # as_fn_unset VAR
13884 # ---------------
13885 # Portably unset VAR.
13886 as_fn_unset ()
13887 {
13888 { eval $1=; unset $1;}
13889 }
13890 as_unset=as_fn_unset
13891 # as_fn_append VAR VALUE
13892 # ----------------------
13893 # Append the text in VALUE to the end of the definition contained in VAR. Take
13894 # advantage of any shell optimizations that allow amortized linear growth over
13895 # repeated appends, instead of the typical quadratic growth present in naive
13896 # implementations.
13897 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13898 eval 'as_fn_append ()
13899 {
13900 eval $1+=\$2
13901 }'
13902 else
13903 as_fn_append ()
13904 {
13905 eval $1=\$$1\$2
13906 }
13907 fi # as_fn_append
13908
13909 # as_fn_arith ARG...
13910 # ------------------
13911 # Perform arithmetic evaluation on the ARGs, and store the result in the
13912 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13913 # must be portable across $(()) and expr.
13914 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13915 eval 'as_fn_arith ()
13916 {
13917 as_val=$(( $* ))
13918 }'
13919 else
13920 as_fn_arith ()
13921 {
13922 as_val=`expr "$@" || test $? -eq 1`
13923 }
13924 fi # as_fn_arith
13925
13926
13927 if expr a : '\(a\)' >/dev/null 2>&1 &&
13928 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13929 as_expr=expr
13930 else
13931 as_expr=false
13932 fi
13933
13934 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13935 as_basename=basename
13936 else
13937 as_basename=false
13938 fi
13939
13940 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13941 as_dirname=dirname
13942 else
13943 as_dirname=false
13944 fi
13945
13946 as_me=`$as_basename -- "$0" ||
13947 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13948 X"$0" : 'X\(//\)$' \| \
13949 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13950 $as_echo X/"$0" |
13951 sed '/^.*\/\([^/][^/]*\)\/*$/{
13952 s//\1/
13953 q
13954 }
13955 /^X\/\(\/\/\)$/{
13956 s//\1/
13957 q
13958 }
13959 /^X\/\(\/\).*/{
13960 s//\1/
13961 q
13962 }
13963 s/.*/./; q'`
13964
13965 # Avoid depending upon Character Ranges.
13966 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13967 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13968 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13969 as_cr_digits='0123456789'
13970 as_cr_alnum=$as_cr_Letters$as_cr_digits
13971
13972 ECHO_C= ECHO_N= ECHO_T=
13973 case `echo -n x` in #(((((
13974 -n*)
13975 case `echo 'xy\c'` in
13976 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13977 xy) ECHO_C='\c';;
13978 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13979 ECHO_T=' ';;
13980 esac;;
13981 *)
13982 ECHO_N='-n';;
13983 esac
13984
13985 rm -f conf$$ conf$$.exe conf$$.file
13986 if test -d conf$$.dir; then
13987 rm -f conf$$.dir/conf$$.file
13988 else
13989 rm -f conf$$.dir
13990 mkdir conf$$.dir 2>/dev/null
13991 fi
13992 if (echo >conf$$.file) 2>/dev/null; then
13993 if ln -s conf$$.file conf$$ 2>/dev/null; then
13994 as_ln_s='ln -s'
13995 # ... but there are two gotchas:
13996 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13997 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13998 # In both cases, we have to default to `cp -p'.
13999 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14000 as_ln_s='cp -p'
14001 elif ln conf$$.file conf$$ 2>/dev/null; then
14002 as_ln_s=ln
14003 else
14004 as_ln_s='cp -p'
14005 fi
14006 else
14007 as_ln_s='cp -p'
14008 fi
14009 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14010 rmdir conf$$.dir 2>/dev/null
14011
14012
14013 # as_fn_mkdir_p
14014 # -------------
14015 # Create "$as_dir" as a directory, including parents if necessary.
14016 as_fn_mkdir_p ()
14017 {
14018
14019 case $as_dir in #(
14020 -*) as_dir=./$as_dir;;
14021 esac
14022 test -d "$as_dir" || eval $as_mkdir_p || {
14023 as_dirs=
14024 while :; do
14025 case $as_dir in #(
14026 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14027 *) as_qdir=$as_dir;;
14028 esac
14029 as_dirs="'$as_qdir' $as_dirs"
14030 as_dir=`$as_dirname -- "$as_dir" ||
14031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14032 X"$as_dir" : 'X\(//\)[^/]' \| \
14033 X"$as_dir" : 'X\(//\)$' \| \
14034 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14035 $as_echo X"$as_dir" |
14036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14037 s//\1/
14038 q
14039 }
14040 /^X\(\/\/\)[^/].*/{
14041 s//\1/
14042 q
14043 }
14044 /^X\(\/\/\)$/{
14045 s//\1/
14046 q
14047 }
14048 /^X\(\/\).*/{
14049 s//\1/
14050 q
14051 }
14052 s/.*/./; q'`
14053 test -d "$as_dir" && break
14054 done
14055 test -z "$as_dirs" || eval "mkdir $as_dirs"
14056 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14057
14058
14059 } # as_fn_mkdir_p
14060 if mkdir -p . 2>/dev/null; then
14061 as_mkdir_p='mkdir -p "$as_dir"'
14062 else
14063 test -d ./-p && rmdir ./-p
14064 as_mkdir_p=false
14065 fi
14066
14067 if test -x / >/dev/null 2>&1; then
14068 as_test_x='test -x'
14069 else
14070 if ls -dL / >/dev/null 2>&1; then
14071 as_ls_L_option=L
14072 else
14073 as_ls_L_option=
14074 fi
14075 as_test_x='
14076 eval sh -c '\''
14077 if test -d "$1"; then
14078 test -d "$1/.";
14079 else
14080 case $1 in #(
14081 -*)set "./$1";;
14082 esac;
14083 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14084 ???[sx]*):;;*)false;;esac;fi
14085 '\'' sh
14086 '
14087 fi
14088 as_executable_p=$as_test_x
14089
14090 # Sed expression to map a string onto a valid CPP name.
14091 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14092
14093 # Sed expression to map a string onto a valid variable name.
14094 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14095
14096
14097 exec 6>&1
14098 ## ----------------------------------- ##
14099 ## Main body of $CONFIG_STATUS script. ##
14100 ## ----------------------------------- ##
14101 _ASEOF
14102 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14103
14104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14105 # Save the log message, to keep $0 and so on meaningful, and to
14106 # report actual input values of CONFIG_FILES etc. instead of their
14107 # values after options handling.
14108 ac_log="
14109 This file was extended by emacs $as_me 24.0.50, which was
14110 generated by GNU Autoconf 2.65. Invocation command line was
14111
14112 CONFIG_FILES = $CONFIG_FILES
14113 CONFIG_HEADERS = $CONFIG_HEADERS
14114 CONFIG_LINKS = $CONFIG_LINKS
14115 CONFIG_COMMANDS = $CONFIG_COMMANDS
14116 $ $0 $@
14117
14118 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14119 "
14120
14121 _ACEOF
14122
14123 case $ac_config_files in *"
14124 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14125 esac
14126
14127 case $ac_config_headers in *"
14128 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14129 esac
14130
14131
14132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14133 # Files that config.status was made for.
14134 config_files="$ac_config_files"
14135 config_headers="$ac_config_headers"
14136 config_commands="$ac_config_commands"
14137
14138 _ACEOF
14139
14140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14141 ac_cs_usage="\
14142 \`$as_me' instantiates files and other configuration actions
14143 from templates according to the current configuration. Unless the files
14144 and actions are specified as TAGs, all are instantiated by default.
14145
14146 Usage: $0 [OPTION]... [TAG]...
14147
14148 -h, --help print this help, then exit
14149 -V, --version print version number and configuration settings, then exit
14150 --config print configuration, then exit
14151 -q, --quiet, --silent
14152 do not print progress messages
14153 -d, --debug don't remove temporary files
14154 --recheck update $as_me by reconfiguring in the same conditions
14155 --file=FILE[:TEMPLATE]
14156 instantiate the configuration file FILE
14157 --header=FILE[:TEMPLATE]
14158 instantiate the configuration header FILE
14159
14160 Configuration files:
14161 $config_files
14162
14163 Configuration headers:
14164 $config_headers
14165
14166 Configuration commands:
14167 $config_commands
14168
14169 Report bugs to the package provider."
14170
14171 _ACEOF
14172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14173 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14174 ac_cs_version="\\
14175 emacs config.status 24.0.50
14176 configured by $0, generated by GNU Autoconf 2.65,
14177 with options \\"\$ac_cs_config\\"
14178
14179 Copyright (C) 2009 Free Software Foundation, Inc.
14180 This config.status script is free software; the Free Software Foundation
14181 gives unlimited permission to copy, distribute and modify it."
14182
14183 ac_pwd='$ac_pwd'
14184 srcdir='$srcdir'
14185 INSTALL='$INSTALL'
14186 test -n "\$AWK" || AWK=awk
14187 _ACEOF
14188
14189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14190 # The default lists apply if the user does not specify any file.
14191 ac_need_defaults=:
14192 while test $# != 0
14193 do
14194 case $1 in
14195 --*=*)
14196 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14197 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14198 ac_shift=:
14199 ;;
14200 *)
14201 ac_option=$1
14202 ac_optarg=$2
14203 ac_shift=shift
14204 ;;
14205 esac
14206
14207 case $ac_option in
14208 # Handling of the options.
14209 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14210 ac_cs_recheck=: ;;
14211 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14212 $as_echo "$ac_cs_version"; exit ;;
14213 --config | --confi | --conf | --con | --co | --c )
14214 $as_echo "$ac_cs_config"; exit ;;
14215 --debug | --debu | --deb | --de | --d | -d )
14216 debug=: ;;
14217 --file | --fil | --fi | --f )
14218 $ac_shift
14219 case $ac_optarg in
14220 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14221 esac
14222 as_fn_append CONFIG_FILES " '$ac_optarg'"
14223 ac_need_defaults=false;;
14224 --header | --heade | --head | --hea )
14225 $ac_shift
14226 case $ac_optarg in
14227 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14228 esac
14229 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14230 ac_need_defaults=false;;
14231 --he | --h)
14232 # Conflict between --help and --header
14233 as_fn_error "ambiguous option: \`$1'
14234 Try \`$0 --help' for more information.";;
14235 --help | --hel | -h )
14236 $as_echo "$ac_cs_usage"; exit ;;
14237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14238 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14239 ac_cs_silent=: ;;
14240
14241 # This is an error.
14242 -*) as_fn_error "unrecognized option: \`$1'
14243 Try \`$0 --help' for more information." ;;
14244
14245 *) as_fn_append ac_config_targets " $1"
14246 ac_need_defaults=false ;;
14247
14248 esac
14249 shift
14250 done
14251
14252 ac_configure_extra_args=
14253
14254 if $ac_cs_silent; then
14255 exec 6>/dev/null
14256 ac_configure_extra_args="$ac_configure_extra_args --silent"
14257 fi
14258
14259 _ACEOF
14260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14261 if \$ac_cs_recheck; then
14262 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14263 shift
14264 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14265 CONFIG_SHELL='$SHELL'
14266 export CONFIG_SHELL
14267 exec "\$@"
14268 fi
14269
14270 _ACEOF
14271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14272 exec 5>>config.log
14273 {
14274 echo
14275 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14276 ## Running $as_me. ##
14277 _ASBOX
14278 $as_echo "$ac_log"
14279 } >&5
14280
14281 _ACEOF
14282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14283 #
14284 # INIT-COMMANDS
14285 #
14286 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
14287
14288 _ACEOF
14289
14290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14291
14292 # Handling of arguments.
14293 for ac_config_target in $ac_config_targets
14294 do
14295 case $ac_config_target in
14296 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
14297 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14298 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
14299 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
14300 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
14301 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
14302 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
14303 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
14304 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
14305 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
14306 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
14307 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
14308 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14309
14310 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14311 esac
14312 done
14313
14314
14315 # If the user did not use the arguments to specify the items to instantiate,
14316 # then the envvar interface is used. Set only those that are not.
14317 # We use the long form for the default assignment because of an extremely
14318 # bizarre bug on SunOS 4.1.3.
14319 if $ac_need_defaults; then
14320 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14321 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14322 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14323 fi
14324
14325 # Have a temporary directory for convenience. Make it in the build tree
14326 # simply because there is no reason against having it here, and in addition,
14327 # creating and moving files from /tmp can sometimes cause problems.
14328 # Hook for its removal unless debugging.
14329 # Note that there is a small window in which the directory will not be cleaned:
14330 # after its creation but before its name has been assigned to `$tmp'.
14331 $debug ||
14332 {
14333 tmp=
14334 trap 'exit_status=$?
14335 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14336 ' 0
14337 trap 'as_fn_exit 1' 1 2 13 15
14338 }
14339 # Create a (secure) tmp directory for tmp files.
14340
14341 {
14342 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14343 test -n "$tmp" && test -d "$tmp"
14344 } ||
14345 {
14346 tmp=./conf$$-$RANDOM
14347 (umask 077 && mkdir "$tmp")
14348 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14349
14350 # Set up the scripts for CONFIG_FILES section.
14351 # No need to generate them if there are no CONFIG_FILES.
14352 # This happens for instance with `./config.status config.h'.
14353 if test -n "$CONFIG_FILES"; then
14354
14355
14356 ac_cr=`echo X | tr X '\015'`
14357 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14358 # But we know of no other shell where ac_cr would be empty at this
14359 # point, so we can use a bashism as a fallback.
14360 if test "x$ac_cr" = x; then
14361 eval ac_cr=\$\'\\r\'
14362 fi
14363 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14364 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14365 ac_cs_awk_cr='\r'
14366 else
14367 ac_cs_awk_cr=$ac_cr
14368 fi
14369
14370 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14371 _ACEOF
14372
14373
14374 {
14375 echo "cat >conf$$subs.awk <<_ACEOF" &&
14376 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14377 echo "_ACEOF"
14378 } >conf$$subs.sh ||
14379 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14380 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14381 ac_delim='%!_!# '
14382 for ac_last_try in false false false false false :; do
14383 . ./conf$$subs.sh ||
14384 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14385
14386 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14387 if test $ac_delim_n = $ac_delim_num; then
14388 break
14389 elif $ac_last_try; then
14390 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14391 else
14392 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14393 fi
14394 done
14395 rm -f conf$$subs.sh
14396
14397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14398 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14399 _ACEOF
14400 sed -n '
14401 h
14402 s/^/S["/; s/!.*/"]=/
14403 p
14404 g
14405 s/^[^!]*!//
14406 :repl
14407 t repl
14408 s/'"$ac_delim"'$//
14409 t delim
14410 :nl
14411 h
14412 s/\(.\{148\}\)..*/\1/
14413 t more1
14414 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14415 p
14416 n
14417 b repl
14418 :more1
14419 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14420 p
14421 g
14422 s/.\{148\}//
14423 t nl
14424 :delim
14425 h
14426 s/\(.\{148\}\)..*/\1/
14427 t more2
14428 s/["\\]/\\&/g; s/^/"/; s/$/"/
14429 p
14430 b
14431 :more2
14432 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14433 p
14434 g
14435 s/.\{148\}//
14436 t delim
14437 ' <conf$$subs.awk | sed '
14438 /^[^""]/{
14439 N
14440 s/\n//
14441 }
14442 ' >>$CONFIG_STATUS || ac_write_fail=1
14443 rm -f conf$$subs.awk
14444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14445 _ACAWK
14446 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14447 for (key in S) S_is_set[key] = 1
14448 FS = "\a"
14449
14450 }
14451 {
14452 line = $ 0
14453 nfields = split(line, field, "@")
14454 substed = 0
14455 len = length(field[1])
14456 for (i = 2; i < nfields; i++) {
14457 key = field[i]
14458 keylen = length(key)
14459 if (S_is_set[key]) {
14460 value = S[key]
14461 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14462 len += length(value) + length(field[++i])
14463 substed = 1
14464 } else
14465 len += 1 + keylen
14466 }
14467
14468 print line
14469 }
14470
14471 _ACAWK
14472 _ACEOF
14473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14474 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14475 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14476 else
14477 cat
14478 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14479 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14480 _ACEOF
14481
14482 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14483 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14484 # trailing colons and then remove the whole line if VPATH becomes empty
14485 # (actually we leave an empty line to preserve line numbers).
14486 if test "x$srcdir" = x.; then
14487 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14488 s/:*\$(srcdir):*/:/
14489 s/:*\${srcdir}:*/:/
14490 s/:*@srcdir@:*/:/
14491 s/^\([^=]*=[ ]*\):*/\1/
14492 s/:*$//
14493 s/^[^=]*=[ ]*$//
14494 }'
14495 fi
14496
14497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14498 fi # test -n "$CONFIG_FILES"
14499
14500 # Set up the scripts for CONFIG_HEADERS section.
14501 # No need to generate them if there are no CONFIG_HEADERS.
14502 # This happens for instance with `./config.status Makefile'.
14503 if test -n "$CONFIG_HEADERS"; then
14504 cat >"$tmp/defines.awk" <<\_ACAWK ||
14505 BEGIN {
14506 _ACEOF
14507
14508 # Transform confdefs.h into an awk script `defines.awk', embedded as
14509 # here-document in config.status, that substitutes the proper values into
14510 # config.h.in to produce config.h.
14511
14512 # Create a delimiter string that does not exist in confdefs.h, to ease
14513 # handling of long lines.
14514 ac_delim='%!_!# '
14515 for ac_last_try in false false :; do
14516 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14517 if test -z "$ac_t"; then
14518 break
14519 elif $ac_last_try; then
14520 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14521 else
14522 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14523 fi
14524 done
14525
14526 # For the awk script, D is an array of macro values keyed by name,
14527 # likewise P contains macro parameters if any. Preserve backslash
14528 # newline sequences.
14529
14530 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14531 sed -n '
14532 s/.\{148\}/&'"$ac_delim"'/g
14533 t rset
14534 :rset
14535 s/^[ ]*#[ ]*define[ ][ ]*/ /
14536 t def
14537 d
14538 :def
14539 s/\\$//
14540 t bsnl
14541 s/["\\]/\\&/g
14542 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14543 D["\1"]=" \3"/p
14544 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14545 d
14546 :bsnl
14547 s/["\\]/\\&/g
14548 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14549 D["\1"]=" \3\\\\\\n"\\/p
14550 t cont
14551 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14552 t cont
14553 d
14554 :cont
14555 n
14556 s/.\{148\}/&'"$ac_delim"'/g
14557 t clear
14558 :clear
14559 s/\\$//
14560 t bsnlc
14561 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14562 d
14563 :bsnlc
14564 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14565 b cont
14566 ' <confdefs.h | sed '
14567 s/'"$ac_delim"'/"\\\
14568 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14569
14570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14571 for (key in D) D_is_set[key] = 1
14572 FS = "\a"
14573 }
14574 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14575 line = \$ 0
14576 split(line, arg, " ")
14577 if (arg[1] == "#") {
14578 defundef = arg[2]
14579 mac1 = arg[3]
14580 } else {
14581 defundef = substr(arg[1], 2)
14582 mac1 = arg[2]
14583 }
14584 split(mac1, mac2, "(") #)
14585 macro = mac2[1]
14586 prefix = substr(line, 1, index(line, defundef) - 1)
14587 if (D_is_set[macro]) {
14588 # Preserve the white space surrounding the "#".
14589 print prefix "define", macro P[macro] D[macro]
14590 next
14591 } else {
14592 # Replace #undef with comments. This is necessary, for example,
14593 # in the case of _POSIX_SOURCE, which is predefined and required
14594 # on some systems where configure will not decide to define it.
14595 if (defundef == "undef") {
14596 print "/*", prefix defundef, macro, "*/"
14597 next
14598 }
14599 }
14600 }
14601 { print }
14602 _ACAWK
14603 _ACEOF
14604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14605 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14606 fi # test -n "$CONFIG_HEADERS"
14607
14608
14609 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14610 shift
14611 for ac_tag
14612 do
14613 case $ac_tag in
14614 :[FHLC]) ac_mode=$ac_tag; continue;;
14615 esac
14616 case $ac_mode$ac_tag in
14617 :[FHL]*:*);;
14618 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14619 :[FH]-) ac_tag=-:-;;
14620 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14621 esac
14622 ac_save_IFS=$IFS
14623 IFS=:
14624 set x $ac_tag
14625 IFS=$ac_save_IFS
14626 shift
14627 ac_file=$1
14628 shift
14629
14630 case $ac_mode in
14631 :L) ac_source=$1;;
14632 :[FH])
14633 ac_file_inputs=
14634 for ac_f
14635 do
14636 case $ac_f in
14637 -) ac_f="$tmp/stdin";;
14638 *) # Look for the file first in the build tree, then in the source tree
14639 # (if the path is not absolute). The absolute path cannot be DOS-style,
14640 # because $ac_f cannot contain `:'.
14641 test -f "$ac_f" ||
14642 case $ac_f in
14643 [\\/$]*) false;;
14644 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14645 esac ||
14646 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14647 esac
14648 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14649 as_fn_append ac_file_inputs " '$ac_f'"
14650 done
14651
14652 # Let's still pretend it is `configure' which instantiates (i.e., don't
14653 # use $as_me), people would be surprised to read:
14654 # /* config.h. Generated by config.status. */
14655 configure_input='Generated from '`
14656 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14657 `' by configure.'
14658 if test x"$ac_file" != x-; then
14659 configure_input="$ac_file. $configure_input"
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14661 $as_echo "$as_me: creating $ac_file" >&6;}
14662 fi
14663 # Neutralize special characters interpreted by sed in replacement strings.
14664 case $configure_input in #(
14665 *\&* | *\|* | *\\* )
14666 ac_sed_conf_input=`$as_echo "$configure_input" |
14667 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14668 *) ac_sed_conf_input=$configure_input;;
14669 esac
14670
14671 case $ac_tag in
14672 *:-:* | *:-) cat >"$tmp/stdin" \
14673 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14674 esac
14675 ;;
14676 esac
14677
14678 ac_dir=`$as_dirname -- "$ac_file" ||
14679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14680 X"$ac_file" : 'X\(//\)[^/]' \| \
14681 X"$ac_file" : 'X\(//\)$' \| \
14682 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14683 $as_echo X"$ac_file" |
14684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14685 s//\1/
14686 q
14687 }
14688 /^X\(\/\/\)[^/].*/{
14689 s//\1/
14690 q
14691 }
14692 /^X\(\/\/\)$/{
14693 s//\1/
14694 q
14695 }
14696 /^X\(\/\).*/{
14697 s//\1/
14698 q
14699 }
14700 s/.*/./; q'`
14701 as_dir="$ac_dir"; as_fn_mkdir_p
14702 ac_builddir=.
14703
14704 case "$ac_dir" in
14705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14706 *)
14707 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14708 # A ".." for each directory in $ac_dir_suffix.
14709 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14710 case $ac_top_builddir_sub in
14711 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14712 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14713 esac ;;
14714 esac
14715 ac_abs_top_builddir=$ac_pwd
14716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14717 # for backward compatibility:
14718 ac_top_builddir=$ac_top_build_prefix
14719
14720 case $srcdir in
14721 .) # We are building in place.
14722 ac_srcdir=.
14723 ac_top_srcdir=$ac_top_builddir_sub
14724 ac_abs_top_srcdir=$ac_pwd ;;
14725 [\\/]* | ?:[\\/]* ) # Absolute name.
14726 ac_srcdir=$srcdir$ac_dir_suffix;
14727 ac_top_srcdir=$srcdir
14728 ac_abs_top_srcdir=$srcdir ;;
14729 *) # Relative name.
14730 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14731 ac_top_srcdir=$ac_top_build_prefix$srcdir
14732 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14733 esac
14734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14735
14736
14737 case $ac_mode in
14738 :F)
14739 #
14740 # CONFIG_FILE
14741 #
14742
14743 case $INSTALL in
14744 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14745 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14746 esac
14747 _ACEOF
14748
14749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14750 # If the template does not know about datarootdir, expand it.
14751 # FIXME: This hack should be removed a few years after 2.60.
14752 ac_datarootdir_hack=; ac_datarootdir_seen=
14753 ac_sed_dataroot='
14754 /datarootdir/ {
14755 p
14756 q
14757 }
14758 /@datadir@/p
14759 /@docdir@/p
14760 /@infodir@/p
14761 /@localedir@/p
14762 /@mandir@/p'
14763 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14764 *datarootdir*) ac_datarootdir_seen=yes;;
14765 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14767 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14768 _ACEOF
14769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14770 ac_datarootdir_hack='
14771 s&@datadir@&$datadir&g
14772 s&@docdir@&$docdir&g
14773 s&@infodir@&$infodir&g
14774 s&@localedir@&$localedir&g
14775 s&@mandir@&$mandir&g
14776 s&\\\${datarootdir}&$datarootdir&g' ;;
14777 esac
14778 _ACEOF
14779
14780 # Neutralize VPATH when `$srcdir' = `.'.
14781 # Shell code in configure.ac might set extrasub.
14782 # FIXME: do we really want to maintain this feature?
14783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14784 ac_sed_extra="$ac_vpsub
14785 $extrasub
14786 _ACEOF
14787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14788 :t
14789 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14790 s|@configure_input@|$ac_sed_conf_input|;t t
14791 s&@top_builddir@&$ac_top_builddir_sub&;t t
14792 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14793 s&@srcdir@&$ac_srcdir&;t t
14794 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14795 s&@top_srcdir@&$ac_top_srcdir&;t t
14796 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14797 s&@builddir@&$ac_builddir&;t t
14798 s&@abs_builddir@&$ac_abs_builddir&;t t
14799 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14800 s&@INSTALL@&$ac_INSTALL&;t t
14801 $ac_datarootdir_hack
14802 "
14803 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14804 || as_fn_error "could not create $ac_file" "$LINENO" 5
14805
14806 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14807 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14808 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14810 which seems to be undefined. Please make sure it is defined." >&5
14811 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14812 which seems to be undefined. Please make sure it is defined." >&2;}
14813
14814 rm -f "$tmp/stdin"
14815 case $ac_file in
14816 -) cat "$tmp/out" && rm -f "$tmp/out";;
14817 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14818 esac \
14819 || as_fn_error "could not create $ac_file" "$LINENO" 5
14820 ;;
14821 :H)
14822 #
14823 # CONFIG_HEADER
14824 #
14825 if test x"$ac_file" != x-; then
14826 {
14827 $as_echo "/* $configure_input */" \
14828 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14829 } >"$tmp/config.h" \
14830 || as_fn_error "could not create $ac_file" "$LINENO" 5
14831 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14833 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14834 else
14835 rm -f "$ac_file"
14836 mv "$tmp/config.h" "$ac_file" \
14837 || as_fn_error "could not create $ac_file" "$LINENO" 5
14838 fi
14839 else
14840 $as_echo "/* $configure_input */" \
14841 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14842 || as_fn_error "could not create -" "$LINENO" 5
14843 fi
14844 ;;
14845
14846 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14847 $as_echo "$as_me: executing $ac_file commands" >&6;}
14848 ;;
14849 esac
14850
14851
14852 case $ac_file$ac_mode in
14853 "default":C)
14854
14855 ### Make the necessary directories, if they don't exist.
14856 for dir in etc lisp ; do
14857 test -d ${dir} || mkdir ${dir}
14858 done
14859
14860 # Build src/Makefile from ${srcdir}/src/Makefile.c
14861 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
14862 # This must be done after src/config.h is built, since we rely on that file.
14863
14864 echo creating src/epaths.h
14865 ${MAKE-make} epaths-force
14866
14867 # As of 2000-11-19, newest development versions of GNU cpp preprocess
14868 # `..' to `. .' unless invoked with -traditional
14869
14870 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
14871 CPPFLAGS="$CPPFLAGS -traditional"
14872 fi
14873
14874 echo creating lib-src/Makefile
14875 ( cd lib-src
14876 rm -f junk.c junk1.c junk2.c
14877 sed -e '/start of cpp stuff/q' \
14878 < Makefile.c > junk1.c
14879 sed -e '1,/start of cpp stuff/d'\
14880 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14881 < Makefile.c > junk.c
14882 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
14883 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14884 cat junk1.c junk2.c > Makefile.new
14885 rm -f junk.c junk1.c junk2.c
14886 chmod 444 Makefile.new
14887 mv -f Makefile.new Makefile
14888 )
14889
14890 echo creating src/Makefile
14891 ( cd src
14892 rm -f junk.c junk1.c junk2.c
14893 sed -e '/start of cpp stuff/q' \
14894 < Makefile.c > junk1.c
14895 sed -e '1,/start of cpp stuff/d'\
14896 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14897 < Makefile.c > junk.c
14898 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
14899 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14900 cat junk1.c junk2.c > Makefile.new
14901 rm -f junk.c junk1.c junk2.c
14902 chmod 444 Makefile.new
14903 mv -f Makefile.new Makefile
14904 )
14905
14906 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
14907 echo creating src/.gdbinit
14908 echo source $srcdir/src/.gdbinit > src/.gdbinit
14909 fi
14910
14911 ;;
14912
14913 esac
14914 done # for ac_tag
14915
14916
14917 as_fn_exit 0
14918 _ACEOF
14919 ac_clean_files=$ac_clean_files_save
14920
14921 test $ac_write_fail = 0 ||
14922 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14923
14924
14925 # configure is writing to config.log, and then calls config.status.
14926 # config.status does its own redirection, appending to config.log.
14927 # Unfortunately, on DOS this fails, as config.log is still kept open
14928 # by configure, so config.status won't be able to write to it; its
14929 # output is simply discarded. So we exec the FD to /dev/null,
14930 # effectively closing config.log, so it can be properly (re)opened and
14931 # appended to by config.status. When coming back to configure, we
14932 # need to make the FD available again.
14933 if test "$no_create" != yes; then
14934 ac_cs_success=:
14935 ac_config_status_args=
14936 test "$silent" = yes &&
14937 ac_config_status_args="$ac_config_status_args --quiet"
14938 exec 5>/dev/null
14939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14940 exec 5>>config.log
14941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14942 # would make configure fail if this is the last instruction.
14943 $ac_cs_success || as_fn_exit $?
14944 fi
14945 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14947 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14948 fi
14949
14950